2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bluez 5.19.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='bluez'
590 PACKAGE_VERSION='5.19'
591 PACKAGE_STRING='bluez 5.19'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_default_prefix=/usr/local
632 ac_subst_vars='am__EXEEXT_FALSE
650 SYSTEMD_SYSTEMUNITDIR
721 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
797 program_transform_name
810 enable_option_checking
812 enable_dependency_tracking
813 enable_maintainer_mode
826 with_dbussystembusdir
827 with_dbussessionbusdir
838 with_systemdsystemunitdir
839 with_systemduserunitdir
845 ac_precious_vars='build_alias
873 # Initialize some variables set by options.
875 ac_init_version=false
876 ac_unrecognized_opts=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 # Accept the important Cygnus configure options, so we can diagnose typos.
940 case $ac_dashdash$ac_option in
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
962 cache_file=config.cache ;;
964 -datadir | --datadir | --datadi | --datad)
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
990 eval enable_$ac_useropt=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 htmldir=$ac_optarg ;;
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1061 -libdir | --libdir | --libdi | --libd)
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1152 -psdir | --psdir | --psdi | --psd | --ps)
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 sbindir=$ac_optarg ;;
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 sharedstatedir=$ac_optarg ;;
1178 -site | --site | --sit)
1180 -site=* | --site=* | --sit=*)
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1236 eval with_$ac_useropt=no ;;
1239 # Obsolete; use --with-x.
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures bluez 5.19 to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/bluez]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of bluez 5.19:";;
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --enable-silent-rules less verbose build output (undo: `make V=1')
1490 --disable-silent-rules verbose build output (undo: `make V=0')
1491 --disable-dependency-tracking speeds up one-time build
1492 --enable-dependency-tracking do not reject slow dependency extractors
1493 --enable-maintainer-mode enable make rules and dependencies not useful
1494 (and sometimes confusing) to the casual installer
1495 --enable-static[=PKGS] build static libraries [default=no]
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --disable-optimization disable code optimization through compiler
1501 --enable-debug enable compiling with debugging information
1502 --enable-pie enable position independent executables flag
1503 --enable-threads enable threading support
1504 --enable-library install Bluetooth library
1505 --enable-test enable test/example scripts
1506 --disable-tools disable Bluetooth tools
1507 --disable-monitor disable Bluetooth monitor
1508 --disable-udev disable udev device support
1509 --disable-cups disable CUPS printer support
1510 --disable-obex disable OBEX profile support
1511 --disable-client disable command line client
1512 --disable-systemd disable systemd integration
1513 --disable-datafiles do not install configuration and data files
1514 --enable-experimental enable experimental plugins (SAP, NFC, ...)
1515 --enable-sixaxis enable sixaxis plugin
1516 --enable-android enable BlueZ for Android
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot=DIR Search for dependent libraries within DIR
1525 (or the compiler's sysroot if not specified).
1526 --with-dbusconfdir=DIR path to D-Bus configuration directory
1527 --with-dbussystembusdir=DIR
1528 path to D-Bus system bus services directory
1529 --with-dbussessionbusdir=DIR
1530 path to D-Bus session bus services directory
1531 --with-udevdir=DIR path to udev directory
1532 --with-systemdsystemunitdir=DIR
1533 path to systemd system unit directory
1534 --with-systemduserunitdir=DIR
1535 path to systemd user unit directory
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1546 PKG_CONFIG path to pkg-config utility
1548 directories to add to pkg-config's search path
1550 path overriding pkg-config's built-in search path
1551 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1552 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1554 C compiler flags for GTHREAD, overriding pkg-config
1556 linker flags for GTHREAD, overriding pkg-config
1557 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1558 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1559 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1560 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1561 ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
1562 ICAL_LIBS linker flags for ICAL, overriding pkg-config
1563 SBC_CFLAGS C compiler flags for SBC, overriding pkg-config
1564 SBC_LIBS linker flags for SBC, overriding pkg-config
1566 C compiler flags for SPEEXDSP, overriding pkg-config
1568 linker flags for SPEEXDSP, overriding pkg-config
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to the package provider.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1636 bluez configure 5.19
1637 generated by GNU Autoconf 2.69
1639 Copyright (C) 2012 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1730 ac_fn_c_check_header_mongrel ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if eval \${$3+:} false; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1754 ac_header_compiler=no
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1770 ac_header_preproc=no
1772 rm -f conftest.err conftest.i conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1802 eval "$3=\$ac_header_compiler"
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 } # ac_fn_c_check_header_mongrel
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1871 if ac_fn_c_try_compile "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_header_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1954 # include <limits.h>
1956 # include <assert.h>
1961 /* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined __stub_$2 || defined __stub___$2
1983 if ac_fn_c_try_link "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_func
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2001 It was created by bluez $as_me 5.19, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 $as_echo "PATH: $as_dir"
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2062 ac_must_keep_next=false
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 as_fn_append ac_configure_args1 " '$ac_arg'"
2079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091 -* ) ac_must_keep_next=true ;;
2094 as_fn_append ac_configure_args " '$ac_arg'"
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2167 for ac_var in $ac_subst_files
2169 eval ac_val=\$$ac_var
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 $as_echo "$ac_var='\''$ac_val'\''"
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2202 $as_echo "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1=./$CONFIG_SITE;;
2239 */*) ac_site_file1=$CONFIG_SITE;;
2240 *) ac_site_file1=./$CONFIG_SITE;;
2242 elif test "x$prefix" != xNONE; then
2243 ac_site_file1=$prefix/share/config.site
2244 ac_site_file2=$prefix/etc/config.site
2246 ac_site_file1=$ac_default_prefix/share/config.site
2247 ac_site_file2=$ac_default_prefix/etc/config.site
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251 test "x$ac_site_file" = xNONE && continue
2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2281 # Check that the precious variables saved in the cache have kept the same
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286 eval ac_new_set=\$ac_env_${ac_var}_set
2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288 eval ac_new_val=\$ac_env_${ac_var}_value
2289 case $ac_old_set,$ac_new_set in
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2300 if test "x$ac_old_val" != "x$ac_new_val"; then
2301 # differences in whitespace do not lead to failure.
2302 ac_old_val_w=`echo x $ac_old_val`
2303 ac_new_val_w=`echo x $ac_new_val`
2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307 ac_cache_corrupted=:
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311 eval $ac_var=\$ac_old_val
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2319 # Pass precious variables to config.status.
2320 if test "$ac_new_set" = set; then
2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 *) ac_arg=$ac_var=$ac_new_val ;;
2325 case " $ac_configure_args " in
2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2331 if $ac_cache_corrupted; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350 am__api_version='1.11'
2353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2354 if test -f "$ac_dir/install-sh"; then
2356 ac_install_sh="$ac_aux_dir/install-sh -c"
2358 elif test -f "$ac_dir/install.sh"; then
2360 ac_install_sh="$ac_aux_dir/install.sh -c"
2362 elif test -f "$ac_dir/shtool"; then
2364 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 if test -z "$ac_aux_dir"; then
2369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372 # These three variables are undocumented and unsupported,
2373 # and are intended to be withdrawn in a future Autoconf release.
2374 # They can cause serious problems if a builder's source tree is in a directory
2375 # whose full name contains unusual characters.
2376 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381 # Find a good install program. We prefer a C program (faster),
2382 # so one script is as good as another. But avoid the broken or
2383 # incompatible versions:
2384 # SysV /etc/install, /usr/sbin/install
2385 # SunOS /usr/etc/install
2386 # IRIX /sbin/install
2388 # AmigaOS /C/install, which installs bootblocks on floppy discs
2389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2392 # OS/2's system install, which has a completely different semantic
2393 # ./install, which can be erroneously created by make from ./install.sh.
2394 # Reject install programs that cannot install multiple files.
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2396 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2397 if test -z "$INSTALL"; then
2398 if ${ac_cv_path_install+:} false; then :
2399 $as_echo_n "(cached) " >&6
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 # Account for people who put trailing slashes in PATH elements.
2407 case $as_dir/ in #((
2408 ./ | .// | /[cC]/* | \
2409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2410 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413 # OSF1 and SCO ODT 3.0 have their own names for install.
2414 # Don't use installbsd from OSF since it installs stuff as root
2416 for ac_prog in ginstall scoinst install; do
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2419 if test $ac_prog = install &&
2420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # AIX install. It has an incompatible calling convention.
2423 elif test $ac_prog = install &&
2424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425 # program-specific install script used by HP pwplus--don't use.
2428 rm -rf conftest.one conftest.two conftest.dir
2429 echo one > conftest.one
2430 echo two > conftest.two
2432 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2433 test -s conftest.one && test -s conftest.two &&
2434 test -s conftest.dir/conftest.one &&
2435 test -s conftest.dir/conftest.two
2437 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2450 rm -rf conftest.one conftest.two conftest.dir
2453 if test "${ac_cv_path_install+set}" = set; then
2454 INSTALL=$ac_cv_path_install
2456 # As a last resort, use the slow shell script. Don't cache a
2457 # value for INSTALL within a source directory, because that will
2458 # break other packages using the cache if that directory is
2459 # removed, or if the value is a relative name.
2460 INSTALL=$ac_install_sh
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2464 $as_echo "$INSTALL" >&6; }
2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2467 # It thinks the first close brace ends the variable substitution.
2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2475 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 echo timestamp > conftest.file
2479 # Reject unsafe characters in $srcdir or the absolute working directory
2480 # name. Accept space and tab only in the latter.
2484 *[\\\"\#\$\&\'\`$am_lf]*)
2485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2489 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2492 # Do `set' in a subshell so we don't clobber the current shell's
2493 # arguments. Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2498 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2499 if test "$*" = "X"; then
2501 set X `ls -t "$srcdir/configure" conftest.file`
2504 if test "$*" != "X $srcdir/configure conftest.file" \
2505 && test "$*" != "X conftest.file $srcdir/configure"; then
2507 # If neither matched, then we have a broken ls. This can happen
2508 # if, for instance, CONFIG_SHELL is bash and it inherits a
2509 # broken ls alias from the environment. This has actually
2510 # happened. Such a system could not be considered "sane".
2511 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2512 alias in your environment" "$LINENO" 5
2515 test "$2" = conftest.file
2521 as_fn_error $? "newly created file is older than distributed files!
2522 Check your system clock" "$LINENO" 5
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE &&
2530 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2536 # expand $ac_aux_dir to an absolute path
2537 am_aux_dir=`cd $ac_aux_dir && pwd`
2539 if test x"${MISSING+set}" != xset; then
2542 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2544 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2547 # Use eval to expand $SHELL
2548 if eval "$MISSING --run true"; then
2549 am_missing_run="$MISSING --run "
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2553 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556 if test x"${install_sh}" != xset; then
2559 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2561 install_sh="\${SHELL} $am_aux_dir/install-sh"
2565 # Installed binaries are usually stripped using `strip' when the user
2566 # run `make install-strip'. However `strip' might not be the right
2567 # tool to use in cross-compilation environments, therefore Automake
2568 # will honor the `STRIP' environment variable to overrule this program.
2569 if test "$cross_compiling" != no; then
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}strip; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_STRIP+:} false; then :
2576 $as_echo_n "(cached) " >&6
2578 if test -n "$STRIP"; then
2579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 STRIP=$ac_cv_prog_STRIP
2599 if test -n "$STRIP"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2601 $as_echo "$STRIP" >&6; }
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2609 if test -z "$ac_cv_prog_STRIP"; then
2611 # Extract the first word of "strip", so it can be a program name with args.
2612 set dummy strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$ac_ct_STRIP"; then
2619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_ac_ct_STRIP="strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2639 if test -n "$ac_ct_STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2641 $as_echo "$ac_ct_STRIP" >&6; }
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2647 if test "x$ac_ct_STRIP" = x; then
2650 case $cross_compiling:$ac_tool_warned in
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654 ac_tool_warned=yes ;;
2659 STRIP="$ac_cv_prog_STRIP"
2663 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2666 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2667 if test -z "$MKDIR_P"; then
2668 if ${ac_cv_path_mkdir+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 test -z "$as_dir" && as_dir=.
2676 for ac_prog in mkdir gmkdir; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2679 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2680 'mkdir (GNU coreutils) '* | \
2681 'mkdir (coreutils) '* | \
2682 'mkdir (fileutils) '4.1*)
2683 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2693 test -d ./--version && rmdir ./--version
2694 if test "${ac_cv_path_mkdir+set}" = set; then
2695 MKDIR_P="$ac_cv_path_mkdir -p"
2697 # As a last resort, use the slow shell script. Don't cache a
2698 # value for MKDIR_P within a source directory, because that will
2699 # break other packages using the cache if that directory is
2700 # removed, or if the value is a relative name.
2701 MKDIR_P="$ac_install_sh -d"
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2705 $as_echo "$MKDIR_P" >&6; }
2709 [\\/$]* | ?:[\\/]*) ;;
2710 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2713 for ac_prog in gawk mawk nawk awk
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_AWK+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$AWK"; then
2723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_AWK="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$AWK"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2745 $as_echo "$AWK" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2752 test -n "$AWK" && break
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2756 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2758 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2759 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 cat >conftest.make <<\_ACEOF
2765 @echo '@@@%%%=$(MAKE)=@@@%%%'
2767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2768 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2770 eval ac_cv_prog_make_${ac_make}_set=yes;;
2772 eval ac_cv_prog_make_${ac_make}_set=no;;
2776 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778 $as_echo "yes" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 SET_MAKE="MAKE=${MAKE-make}"
2786 rm -rf .tst 2>/dev/null
2787 mkdir .tst 2>/dev/null
2788 if test -d .tst; then
2793 rmdir .tst 2>/dev/null
2795 # Check whether --enable-silent-rules was given.
2796 if test "${enable_silent_rules+set}" = set; then :
2797 enableval=$enable_silent_rules;
2800 case $enable_silent_rules in
2801 yes) AM_DEFAULT_VERBOSITY=0;;
2802 no) AM_DEFAULT_VERBOSITY=1;;
2803 *) AM_DEFAULT_VERBOSITY=1;;
2805 am_make=${MAKE-make}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2808 if ${am_cv_make_support_nested_variables+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 if $as_echo 'TRUE=$(BAR$(V))
2817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2818 am_cv_make_support_nested_variables=yes
2820 am_cv_make_support_nested_variables=no
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2825 if test $am_cv_make_support_nested_variables = yes; then
2827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2829 AM_V=$AM_DEFAULT_VERBOSITY
2830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2834 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2835 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2836 # is not polluted with repeated "-I."
2837 am__isrc=' -I$(srcdir)'
2838 # test to see if srcdir already configured
2839 if test -f $srcdir/config.status; then
2840 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2844 # test whether we have cygpath
2845 if test -z "$CYGPATH_W"; then
2846 if (cygpath --version) >/dev/null 2>/dev/null; then
2847 CYGPATH_W='cygpath -w'
2854 # Define the identity of the package.
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE "$PACKAGE"
2864 cat >>confdefs.h <<_ACEOF
2865 #define VERSION "$VERSION"
2868 # Some tools Automake needs.
2870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2884 # We need awk for the "check" target. The system "awk" is bad on
2886 # Always define AMTAR for backward compatibility. Yes, it's still used
2887 # in the wild :-( We should find a proper way to deprecate it ...
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2892 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2893 # Loop over all known methods to create a tar archive until one works.
2894 _am_tools='gnutar pax cpio none'
2895 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2896 # Do not fold the above two line into one, because Tru64 sh and
2897 # Solaris sh will not grok spaces in the rhs of `-'.
2898 for _am_tool in $_am_tools
2902 for _am_tar in tar gnutar gtar;
2904 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2905 ($_am_tar --version) >&5 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } && break
2910 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2911 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2912 am__untar="$_am_tar -xf -"
2915 # Must skip GNU tar: if it does not support --format= it doesn't create
2916 # ustar tarball either.
2917 (tar --version) >/dev/null 2>&1 && continue
2918 am__tar='tar chf - "$$tardir"'
2919 am__tar_='tar chf - "$tardir"'
2920 am__untar='tar xf -'
2923 am__tar='pax -L -x pax -w "$$tardir"'
2924 am__tar_='pax -L -x pax -w "$tardir"'
2928 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2929 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2930 am__untar='cpio -i -H pax -d'
2939 # If the value was cached, stop now. We just wanted to have am__tar
2940 # and am__untar set.
2941 test -n "${am_cv_prog_tar_pax}" && break
2943 # tar/untar a dummy directory, and stop if the command works
2946 echo GrepMe > conftest.dir/file
2947 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2948 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2953 if test -s conftest.tar; then
2954 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2955 ($am__untar <conftest.tar) >&5 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2964 if ${am_cv_prog_tar_pax+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 am_cv_prog_tar_pax=$_am_tool
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2971 $as_echo "$am_cv_prog_tar_pax" >&6; }
2977 ac_config_headers="$ac_config_headers config.h"
2979 DEPDIR="${am__leading_dot}deps"
2981 ac_config_commands="$ac_config_commands depfiles"
2984 am_make=${MAKE-make}
2985 cat > confinc << 'END'
2987 @echo this is the am__doit target
2990 # If we don't find an include directive, just comment out the code.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2996 # First try GNU make style include.
2997 echo "include confinc" > confmf
2998 # Ignore all kinds of additional output from `make'.
2999 case `$am_make -s -f confmf 2> /dev/null` in #(
3000 *the\ am__doit\ target*)
3006 # Now try BSD make style include.
3007 if test "$am__include" = "#"; then
3008 echo '.include "confinc"' > confmf
3009 case `$am_make -s -f confmf 2> /dev/null` in #(
3010 *the\ am__doit\ target*)
3011 am__include=.include
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3020 $as_echo "$_am_result" >&6; }
3021 rm -f confinc confmf
3023 # Check whether --enable-dependency-tracking was given.
3024 if test "${enable_dependency_tracking+set}" = set; then :
3025 enableval=$enable_dependency_tracking;
3028 if test "x$enable_dependency_tracking" != xno; then
3029 am_depcomp="$ac_aux_dir/depcomp"
3033 if test "x$enable_dependency_tracking" != xno; then
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_CC"; then
3088 # Extract the first word of "gcc", so it can be a program name with args.
3089 set dummy gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="gcc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_CC" = x; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="${ac_tool_prefix}cc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3180 if test -z "$CC"; then
3181 # Extract the first word of "cc", so it can be a program name with args.
3182 set dummy cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200 ac_prog_rejected=yes
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test $ac_prog_rejected = yes; then
3212 # We found a bogon in the path, so make sure we never use it.
3213 set dummy $ac_cv_prog_CC
3215 if test $# != 0; then
3216 # We chose a different compiler from the bogus one.
3217 # However, it has the same basename, so the bogon will be chosen
3218 # first if we set CC to just the basename; use the full file name.
3220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 for ac_prog in cl.exe
3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3277 test -n "$CC" && break
3280 if test -z "$CC"; then
3282 for ac_prog in cl.exe
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_CC="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 $as_echo "$ac_ct_CC" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3321 test -n "$ac_ct_CC" && break
3324 if test "x$ac_ct_CC" = x; then
3327 case $cross_compiling:$ac_tool_warned in
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3340 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3349 for ac_option in --version -v -V -qversion; do
3350 { { ac_try="$ac_compiler $ac_option >&5"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359 if test -s conftest.err; then
3361 ... rest of stderr output deleted ...
3362 10q' conftest.err >conftest.er1
3363 cat conftest.er1 >&5
3365 rm -f conftest.er1 conftest.err
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3394 for ac_file in $ac_files
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3403 if { { ac_try="$ac_link_default"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link_default") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3419 for ac_file in $ac_files ''
3421 test -f "$ac_file" || continue
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426 # We found the default executable, but exeext='' is most
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3449 if test -z "$ac_file"; then :
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error 77 "C compiler cannot create executables
3458 See \`config.log' for more details" "$LINENO" 5; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461 $as_echo "yes" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3464 $as_echo_n "checking for C compiler default output file name... " >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 ac_exeext=$ac_cv_exeext
3469 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3470 ac_clean_files=$ac_clean_files_save
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3472 $as_echo_n "checking for suffix of executables... " >&6; }
3473 if { { ac_try="$ac_link"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_link") 2>&5
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3485 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3486 # work properly (i.e., refer to `conftest.exe'), while it won't with
3488 for ac_file in conftest.exe conftest conftest.*; do
3489 test -f "$ac_file" || continue
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 rm -f conftest conftest$ac_cv_exeext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3505 $as_echo "$ac_cv_exeext" >&6; }
3507 rm -f conftest.$ac_ext
3508 EXEEXT=$ac_cv_exeext
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3516 FILE *f = fopen ("conftest.out", "w");
3517 return ferror (f) || fclose (f) != 0;
3523 ac_clean_files="$ac_clean_files conftest.out"
3524 # Check that the compiler produces executables we can run. If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3527 $as_echo_n "checking whether we are cross compiling... " >&6; }
3528 if test "$cross_compiling" != yes; then
3529 { { ac_try="$ac_link"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_link") 2>&5
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }
3540 if { ac_try='./conftest$ac_cv_exeext'
3541 { { case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_try") 2>&5
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; }; then
3553 if test "$cross_compiling" = maybe; then
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot run C compiled programs.
3559 If you meant to cross compile, use \`--host'.
3560 See \`config.log' for more details" "$LINENO" 5; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565 $as_echo "$cross_compiling" >&6; }
3567 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if ${ac_cv_objext+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 rm -f conftest.o conftest.obj
3586 if { { ac_try="$ac_compile"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compile") 2>&5
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details" "$LINENO" 5; }
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if ${ac_cv_c_compiler_gnu+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3639 if ac_fn_c_try_compile "$LINENO"; then :
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3659 if ${ac_cv_prog_cc_g+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 ac_save_c_werror_flag=$ac_c_werror_flag
3663 ac_c_werror_flag=yes
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"; then :
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3692 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3708 if ac_fn_c_try_compile "$LINENO"; then :
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719 $as_echo "$ac_cv_prog_cc_g" >&6; }
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3729 if test "$GCC" = yes; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737 if ${ac_cv_prog_cc_c89+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 ac_cv_prog_cc_c89=no
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3761 s = g (p, va_arg (v,int));
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776 inside strings and character constants. */
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 CC="$ac_save_CC $ac_arg"
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_c89=$ac_arg
3801 rm -f core conftest.err conftest.$ac_objext
3802 test "x$ac_cv_prog_cc_c89" != "xno" && break
3804 rm -f conftest.$ac_ext
3809 case "x$ac_cv_prog_cc_c89" in
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812 $as_echo "none needed" >&6; } ;;
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815 $as_echo "unsupported" >&6; } ;;
3817 CC="$CC $ac_cv_prog_cc_c89"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3821 if test "x$ac_cv_prog_cc_c89" != xno; then :
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 depcc="$CC" am_compiler_list=
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3834 $as_echo_n "checking dependency style of $depcc... " >&6; }
3835 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839 # We make a subdir and do the tests there. Otherwise we can end up
3840 # making bogus files that we don't know about and never remove. For
3841 # instance it was reported that on HP-UX the gcc test will end up
3842 # making a dummy file named `D' -- because `-MD' means `put the output
3846 # Copy depcomp to subdir because otherwise we won't find it if we're
3847 # using a relative directory.
3848 cp "$am_depcomp" conftest.dir
3850 # We will build objects and dependencies in a subdirectory because
3851 # it helps to detect inapplicable dependency modes. For instance
3852 # both Tru64's cc and ICC support -MD to output dependencies as a
3853 # side effect of compilation, but ICC will put the dependencies in
3854 # the current directory while Tru64 will put them in the object
3858 am_cv_CC_dependencies_compiler_type=none
3859 if test "$am_compiler_list" = ""; then
3860 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3863 case " $depcc " in #(
3864 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3867 for depmode in $am_compiler_list; do
3868 # Setup a source with many dependencies, because some compilers
3869 # like to wrap large dependency lists on column 80 (with \), and
3870 # we should not choose a depcomp mode which is confused by this.
3872 # We need to recreate these files for each test, as the compiler may
3873 # overwrite some of them when testing with obscure command lines.
3874 # This happens at least with the AIX C compiler.
3876 for i in 1 2 3 4 5 6; do
3877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879 # Solaris 8's {/usr,}/bin/sh.
3880 touch sub/conftst$i.h
3882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3885 # mode. It turns out that the SunPro C++ compiler does not properly
3886 # handle `-M -o', and we need to detect this. Also, some Intel
3887 # versions had trouble with output in subdirs
3888 am__obj=sub/conftest.${OBJEXT-o}
3889 am__minus_obj="-o $am__obj"
3892 # This depmode causes a compiler race in universal mode.
3893 test "$am__universal" = false || continue
3896 # after this tag, mechanisms are not by side-effect, so they'll
3897 # only be used when explicitly requested
3898 if test "x$enable_dependency_tracking" = xyes; then
3904 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3905 # This compiler won't grok `-c -o', but also, the minuso test has
3906 # not run yet. These depmodes are late enough in the game, and
3907 # so weak that their functioning should not be impacted.
3908 am__obj=conftest.${OBJEXT-o}
3913 if depmode=$depmode \
3914 source=sub/conftest.c object=$am__obj \
3915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3917 >/dev/null 2>conftest.err &&
3918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3922 # icc doesn't choke on unknown options, it will just issue warnings
3923 # or remarks (even with -Werror). So we grep stderr for any message
3924 # that says an option was ignored or not supported.
3925 # When given -MP, icc 7.0 and 7.1 complain thusly:
3926 # icc: Command line warning: ignoring option '-M'; no argument required
3927 # The diagnosis changed in icc 8.0:
3928 # icc: Command line remark: option '-MP' not supported
3929 if (grep 'ignoring option' conftest.err ||
3930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3931 am_cv_CC_dependencies_compiler_type=$depmode
3940 am_cv_CC_dependencies_compiler_type=none
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3945 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3946 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3949 test "x$enable_dependency_tracking" != xno \
3950 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3952 am__fastdepCC_FALSE='#'
3954 am__fastdepCC_TRUE='#'
3955 am__fastdepCC_FALSE=
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3967 # On Suns, sometimes $CPP names a directory.
3968 if test -n "$CPP" && test -d "$CPP"; then
3971 if test -z "$CPP"; then
3972 if ${ac_cv_prog_CPP+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 # Double quotes because CPP needs to be expanded
3976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3979 for ac_c_preproc_warn_flag in '' yes
3981 # Use a header file that comes with gcc, so configuring glibc
3982 # with a fresh cross-compiler works.
3983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984 # <limits.h> exists even on freestanding compilers.
3985 # On the NeXT, cc -E runs the code through the compiler's parser,
3986 # not just through cpp. "Syntax error" is here to catch this case.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3990 # include <limits.h>
3992 # include <assert.h>
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: fails on valid input.
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4004 # OK, works on sane cases. Now check whether nonexistent headers
4005 # can be detected and how.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <ac_nonexistent.h>
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011 # Broken: success on invalid input.
4014 # Passes both tests.
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.i conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then :
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4036 $as_echo "$CPP" >&6; }
4038 for ac_c_preproc_warn_flag in '' yes
4040 # Use a header file that comes with gcc, so configuring glibc
4041 # with a fresh cross-compiler works.
4042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043 # <limits.h> exists even on freestanding compilers.
4044 # On the NeXT, cc -E runs the code through the compiler's parser,
4045 # not just through cpp. "Syntax error" is here to catch this case.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4049 # include <limits.h>
4051 # include <assert.h>
4055 if ac_fn_c_try_cpp "$LINENO"; then :
4058 # Broken: fails on valid input.
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4063 # OK, works on sane cases. Now check whether nonexistent headers
4064 # can be detected and how.
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <ac_nonexistent.h>
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070 # Broken: success on invalid input.
4073 # Passes both tests.
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.i conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then :
4085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details" "$LINENO" 5; }
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4100 if ${ac_cv_path_GREP+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if test -z "$GREP"; then
4104 ac_path_GREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in grep ggrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4114 as_fn_executable_p "$ac_path_GREP" || continue
4115 # Check for GNU ac_path_GREP and select it if it is found.
4116 # Check for GNU $ac_path_GREP
4117 case `"$ac_path_GREP" --version 2>&1` in
4119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4122 $as_echo_n 0123456789 >"conftest.in"
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 $as_echo 'GREP' >> "conftest.nl"
4129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
4132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_GREP="$ac_path_GREP"
4135 ac_path_GREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 $ac_path_GREP_found && break 3
4148 if test -z "$ac_cv_path_GREP"; then
4149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4152 ac_cv_path_GREP=$GREP
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4157 $as_echo "$ac_cv_path_GREP" >&6; }
4158 GREP="$ac_cv_path_GREP"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4162 $as_echo_n "checking for egrep... " >&6; }
4163 if ${ac_cv_path_EGREP+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4167 then ac_cv_path_EGREP="$GREP -E"
4169 if test -z "$EGREP"; then
4170 ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in egrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180 as_fn_executable_p "$ac_path_EGREP" || continue
4181 # Check for GNU ac_path_EGREP and select it if it is found.
4182 # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 $as_echo_n 0123456789 >"conftest.in"
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 $as_echo 'EGREP' >> "conftest.nl"
4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 as_fn_arith $ac_count + 1 && ac_count=$as_val
4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_EGREP="$ac_path_EGREP"
4201 ac_path_EGREP_max=$ac_count
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 $ac_path_EGREP_found && break 3
4214 if test -z "$ac_cv_path_EGREP"; then
4215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218 ac_cv_path_EGREP=$EGREP
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4224 $as_echo "$ac_cv_path_EGREP" >&6; }
4225 EGREP="$ac_cv_path_EGREP"
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4229 $as_echo_n "checking for ANSI C header files... " >&6; }
4230 if ${ac_cv_header_stdc+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_header_stdc=yes
4251 ac_cv_header_stdc=no
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 if test $ac_cv_header_stdc = yes; then
4256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 $EGREP "memchr" >/dev/null 2>&1; then :
4266 ac_cv_header_stdc=no
4272 if test $ac_cv_header_stdc = yes; then
4273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 $EGREP "free" >/dev/null 2>&1; then :
4283 ac_cv_header_stdc=no
4289 if test $ac_cv_header_stdc = yes; then
4290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4291 if test "$cross_compiling" = yes; then :
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4298 #if ((' ' & 0x0FF) == 0x020)
4299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4302 # define ISLOWER(c) \
4303 (('a' <= (c) && (c) <= 'i') \
4304 || ('j' <= (c) && (c) <= 'r') \
4305 || ('s' <= (c) && (c) <= 'z'))
4306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4314 for (i = 0; i < 256; i++)
4315 if (XOR (islower (i), ISLOWER (i))
4316 || toupper (i) != TOUPPER (i))
4321 if ac_fn_c_try_run "$LINENO"; then :
4324 ac_cv_header_stdc=no
4326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4327 conftest.$ac_objext conftest.beam conftest.$ac_ext
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4333 $as_echo "$ac_cv_header_stdc" >&6; }
4334 if test $ac_cv_header_stdc = yes; then
4336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4342 inttypes.h stdint.h unistd.h
4344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4348 cat >>confdefs.h <<_ACEOF
4349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4358 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4359 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4366 if test "$MINIX" = yes; then
4368 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4371 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4374 $as_echo "#define _MINIX 1" >>confdefs.h
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4380 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4381 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 # define __EXTENSIONS__ 1
4388 $ac_includes_default
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_safe_to_define___extensions__=yes
4400 ac_cv_safe_to_define___extensions__=no
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4405 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4406 test $ac_cv_safe_to_define___extensions__ = yes &&
4407 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4409 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4411 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4413 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4415 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4419 # Check whether --enable-silent-rules was given.
4420 if test "${enable_silent_rules+set}" = set; then :
4421 enableval=$enable_silent_rules;
4424 case $enable_silent_rules in
4425 yes) AM_DEFAULT_VERBOSITY=0;;
4426 no) AM_DEFAULT_VERBOSITY=1;;
4427 *) AM_DEFAULT_VERBOSITY=0;;
4429 am_make=${MAKE-make}
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4431 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4432 if ${am_cv_make_support_nested_variables+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 if $as_echo 'TRUE=$(BAR$(V))
4441 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4442 am_cv_make_support_nested_variables=yes
4444 am_cv_make_support_nested_variables=no
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4448 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4449 if test $am_cv_make_support_nested_variables = yes; then
4451 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4453 AM_V=$AM_DEFAULT_VERBOSITY
4454 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4461 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4462 # Check whether --enable-maintainer-mode was given.
4463 if test "${enable_maintainer_mode+set}" = set; then :
4464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4466 USE_MAINTAINER_MODE=no
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4470 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4471 if test $USE_MAINTAINER_MODE = yes; then
4472 MAINTAINER_MODE_TRUE=
4473 MAINTAINER_MODE_FALSE='#'
4475 MAINTAINER_MODE_TRUE='#'
4476 MAINTAINER_MODE_FALSE=
4479 MAINT=$MAINTAINER_MODE_TRUE
4492 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4499 $as_echo_n "(cached) " >&6
4503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4525 if test -n "$PKG_CONFIG"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4527 $as_echo "$PKG_CONFIG" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test -z "$ac_cv_path_PKG_CONFIG"; then
4536 ac_pt_PKG_CONFIG=$PKG_CONFIG
4537 # Extract the first word of "pkg-config", so it can be a program name with args.
4538 set dummy pkg-config; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4542 $as_echo_n "(cached) " >&6
4544 case $ac_pt_PKG_CONFIG in
4546 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4568 if test -n "$ac_pt_PKG_CONFIG"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4570 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4576 if test "x$ac_pt_PKG_CONFIG" = x; then
4579 case $cross_compiling:$ac_tool_warned in
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4585 PKG_CONFIG=$ac_pt_PKG_CONFIG
4588 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4592 if test -n "$PKG_CONFIG"; then
4593 _pkg_min_version=0.9.0
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4595 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4596 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4598 $as_echo "yes" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4608 if (test "$USE_MAINTAINER_MODE" = "yes"); then
4609 with_cflags="$with_cflags -Wall -Werror -Wextra"
4610 with_cflags="$with_cflags -Wno-unused-parameter"
4611 with_cflags="$with_cflags -Wno-missing-field-initializers"
4612 with_cflags="$with_cflags -Wdeclaration-after-statement"
4613 with_cflags="$with_cflags -Wmissing-declarations"
4614 with_cflags="$with_cflags -Wredundant-decls"
4615 with_cflags="$with_cflags -Wcast-align"
4616 with_cflags="$with_cflags -DG_DISABLE_DEPRECATED"
4617 with_cflags="$with_cflags -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28"
4618 with_cflags="$with_cflags -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_28"
4620 WARNING_CFLAGS=$with_cflags
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4632 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4633 if ${ac_cv_c_restrict+:} false; then :
4634 $as_echo_n "(cached) " >&6
4637 # The order here caters to the fact that C++ does not require restrict.
4638 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 typedef int * int_ptr;
4642 int foo (int_ptr $ac_kw ip) {
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_c_restrict=$ac_kw
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 test "$ac_cv_c_restrict" != no && break
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4665 $as_echo "$ac_cv_c_restrict" >&6; }
4667 case $ac_cv_c_restrict in
4669 no) $as_echo "#define restrict /**/" >>confdefs.h
4671 *) cat >>confdefs.h <<_ACEOF
4672 #define restrict $ac_cv_c_restrict
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_CC+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC="$CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$ac_cv_prog_CC"; then
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$ac_ct_CC"; then
4732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_ac_ct_CC="gcc"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4752 if test -n "$ac_ct_CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4754 $as_echo "$ac_ct_CC" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4760 if test "x$ac_ct_CC" = x; then
4763 case $cross_compiling:$ac_tool_warned in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}cc; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_CC+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC="$CC" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_CC="${ac_tool_prefix}cc"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 # Extract the first word of "cc", so it can be a program name with args.
4818 set dummy cc; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_CC+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4836 ac_prog_rejected=yes
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test $ac_prog_rejected = yes; then
4848 # We found a bogon in the path, so make sure we never use it.
4849 set dummy $ac_cv_prog_CC
4851 if test $# != 0; then
4852 # We chose a different compiler from the bogus one.
4853 # However, it has the same basename, so the bogon will be chosen
4854 # first if we set CC to just the basename; use the full file name.
4856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4862 if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4872 if test -z "$CC"; then
4873 if test -n "$ac_tool_prefix"; then
4874 for ac_prog in cl.exe
4876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_CC+:} false; then :
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$CC"; then
4884 ac_cv_prog_CC="$CC" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 if test -n "$CC"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4906 $as_echo "$CC" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$CC" && break
4916 if test -z "$CC"; then
4918 for ac_prog in cl.exe
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4925 $as_echo_n "(cached) " >&6
4927 if test -n "$ac_ct_CC"; then
4928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_prog_ac_ct_CC="$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4950 $as_echo "$ac_ct_CC" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 test -n "$ac_ct_CC" && break
4960 if test "x$ac_ct_CC" = x; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error $? "no acceptable C compiler found in \$PATH
4979 See \`config.log' for more details" "$LINENO" 5; }
4981 # Provide some information about the compiler.
4982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4985 for ac_option in --version -v -V -qversion; do
4986 { { ac_try="$ac_compiler $ac_option >&5"
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4995 if test -s conftest.err; then
4997 ... rest of stderr output deleted ...
4998 10q' conftest.err >conftest.er1
4999 cat conftest.er1 >&5
5001 rm -f conftest.er1 conftest.err
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5008 if ${ac_cv_c_compiler_gnu+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5025 if ac_fn_c_try_compile "$LINENO"; then :
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5035 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5036 if test $ac_compiler_gnu = yes; then
5041 ac_test_CFLAGS=${CFLAGS+set}
5042 ac_save_CFLAGS=$CFLAGS
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5044 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5045 if ${ac_cv_prog_cc_g+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_save_c_werror_flag=$ac_c_werror_flag
5049 ac_c_werror_flag=yes
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5063 if ac_fn_c_try_compile "$LINENO"; then :
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5078 if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_c_werror_flag=$ac_save_c_werror_flag
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5094 if ac_fn_c_try_compile "$LINENO"; then :
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5105 $as_echo "$ac_cv_prog_cc_g" >&6; }
5106 if test "$ac_test_CFLAGS" = set; then
5107 CFLAGS=$ac_save_CFLAGS
5108 elif test $ac_cv_prog_cc_g = yes; then
5109 if test "$GCC" = yes; then
5115 if test "$GCC" = yes; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5123 if ${ac_cv_prog_cc_c89+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 ac_cv_prog_cc_c89=no
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5134 struct buf { int x; };
5135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5136 static char *e (p, i)
5142 static char *f (char * (*g) (char **, int), char **p, ...)
5147 s = g (p, va_arg (v,int));
5152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5153 function prototypes and stuff, but not '\xHH' hex character constants.
5154 These don't provoke an error unfortunately, instead are silently treated
5155 as 'x'. The following induces an error, until -std is added to get
5156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5157 array size at least. It's necessary to write '\x00'==0 to get something
5158 that's true only with -std. */
5159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5162 inside strings and character constants. */
5164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5166 int test (int i, double x);
5167 struct s1 {int (*f) (int a);};
5168 struct s2 {int (*f) (double a);};
5169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5183 CC="$ac_save_CC $ac_arg"
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185 ac_cv_prog_cc_c89=$ac_arg
5187 rm -f core conftest.err conftest.$ac_objext
5188 test "x$ac_cv_prog_cc_c89" != "xno" && break
5190 rm -f conftest.$ac_ext
5195 case "x$ac_cv_prog_cc_c89" in
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5198 $as_echo "none needed" >&6; } ;;
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5201 $as_echo "unsupported" >&6; } ;;
5203 CC="$CC $ac_cv_prog_cc_c89"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5207 if test "x$ac_cv_prog_cc_c89" != xno; then :
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 depcc="$CC" am_compiler_list=
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220 $as_echo_n "checking dependency style of $depcc... " >&6; }
5221 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5225 # We make a subdir and do the tests there. Otherwise we can end up
5226 # making bogus files that we don't know about and never remove. For
5227 # instance it was reported that on HP-UX the gcc test will end up
5228 # making a dummy file named `D' -- because `-MD' means `put the output
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5244 am_cv_CC_dependencies_compiler_type=none
5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5265 # Solaris 8's {/usr,}/bin/sh.
5266 touch sub/conftst$i.h
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5271 # mode. It turns out that the SunPro C++ compiler does not properly
5272 # handle `-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs
5274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5282 # after this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested
5284 if test "x$enable_dependency_tracking" = xyes; then
5290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5291 # This compiler won't grok `-c -o', but also, the minuso test has
5292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=$am__obj \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5326 am_cv_CC_dependencies_compiler_type=none
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5338 am__fastdepCC_FALSE='#'
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5345 if test "x$CC" != xcc; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5347 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5350 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5352 set dummy $CC; ac_cc=`$as_echo "$2" |
5353 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5354 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5368 # Make sure it works both with $CC and with simple cc.
5369 # We do the test twice because some compilers refuse to overwrite an
5370 # existing .o file with -o, though they will create one.
5371 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5373 if { { case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 $as_echo "$ac_try_echo"; } >&5
5379 (eval "$ac_try") 2>&5
5381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5382 test $ac_status = 0; } &&
5383 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 $as_echo "$ac_try_echo"; } >&5
5389 (eval "$ac_try") 2>&5
5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392 test $ac_status = 0; };
5394 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5395 if test "x$CC" != xcc; then
5396 # Test first that cc exists at all.
5397 if { ac_try='cc -c conftest.$ac_ext >&5'
5398 { { case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403 $as_echo "$ac_try_echo"; } >&5
5404 (eval "$ac_try") 2>&5
5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 test $ac_status = 0; }; }; then
5408 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5410 if { { case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415 $as_echo "$ac_try_echo"; } >&5
5416 (eval "$ac_try") 2>&5
5418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5419 test $ac_status = 0; } &&
5420 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5425 $as_echo "$ac_try_echo"; } >&5
5426 (eval "$ac_try") 2>&5
5428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5429 test $ac_status = 0; };
5434 # cc exists but doesn't like -o.
5435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5440 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5442 rm -f core conftest*
5445 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447 $as_echo "yes" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5452 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5456 # FIXME: we rely on the cache variable name because
5457 # there is no other way.
5459 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5460 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5461 if test "$am_t" != yes; then
5462 # Losing compiler, so override with the script.
5463 # FIXME: It is wrong to rewrite CC.
5464 # But if we don't then we get into trouble of one sort or another.
5465 # A longer-term fix would be to have automake use am__CC in this case,
5466 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5467 CC="$am_aux_dir/compile $CC"
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
5473 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
5474 if ${ac_cv_prog_cc_pie+:} false; then :
5475 $as_echo_n "(cached) " >&6
5478 echo 'void f(){}' > conftest.c
5479 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
5480 ac_cv_prog_cc_pie=yes
5482 ac_cv_prog_cc_pie=no
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
5488 $as_echo "$ac_cv_prog_cc_pie" >&6; }
5496 # Check whether --enable-static was given.
5497 if test "${enable_static+set}" = set; then :
5498 enableval=$enable_static; p=${PACKAGE-default}
5500 yes) enable_static=yes ;;
5501 no) enable_static=no ;;
5504 # Look at the argument we got. We use all the common list separators.
5505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5506 for pkg in $enableval; do
5508 if test "X$pkg" = "X$p"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5530 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5535 macro_version='2.4.2'
5536 macro_revision='1.3337'
5550 ltmain="$ac_aux_dir/ltmain.sh"
5552 # Make sure we can run config.sub.
5553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5557 $as_echo_n "checking build system type... " >&6; }
5558 if ${ac_cv_build+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 ac_build_alias=$build_alias
5562 test "x$ac_build_alias" = x &&
5563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5564 test "x$ac_build_alias" = x &&
5565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5571 $as_echo "$ac_cv_build" >&6; }
5572 case $ac_cv_build in
5574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5577 ac_save_IFS=$IFS; IFS='-'
5583 # Remember, the first character of IFS is used to create $*,
5584 # except with old shells:
5587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5591 $as_echo_n "checking host system type... " >&6; }
5592 if ${ac_cv_host+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 if test "x$host_alias" = x; then
5596 ac_cv_host=$ac_cv_build
5598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5604 $as_echo "$ac_cv_host" >&6; }
5607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5610 ac_save_IFS=$IFS; IFS='-'
5616 # Remember, the first character of IFS is used to create $*,
5617 # except with old shells:
5620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5623 # Backslashify metacharacters that are still active within
5624 # double-quoted strings.
5625 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5627 # Same as above, but do not quote variable references.
5628 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5630 # Sed substitution to delay expansion of an escaped shell variable in a
5631 # double_quote_subst'ed string.
5632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5634 # Sed substitution to delay expansion of an escaped single quote.
5635 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5637 # Sed substitution to avoid accidental globbing in evaled expressions
5638 no_glob_subst='s/\*/\\\*/g'
5640 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5641 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5642 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5645 $as_echo_n "checking how to print strings... " >&6; }
5646 # Test print first, because it will be a builtin if present.
5647 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5650 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5653 # Use this function as a fallback that always works.
5654 func_fallback_echo ()
5656 eval 'cat <<_LTECHO_EOF
5660 ECHO='func_fallback_echo'
5663 # func_echo_all arg...
5664 # Invoke $ECHO with all args, space-separated.
5671 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5672 $as_echo "printf" >&6; } ;;
5673 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5674 $as_echo "print -r" >&6; } ;;
5675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5676 $as_echo "cat" >&6; } ;;
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5693 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5694 if ${ac_cv_path_SED+:} false; then :
5695 $as_echo_n "(cached) " >&6
5697 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5698 for ac_i in 1 2 3 4 5 6 7; do
5699 ac_script="$ac_script$as_nl$ac_script"
5701 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5702 { ac_script=; unset ac_script;}
5703 if test -z "$SED"; then
5704 ac_path_SED_found=false
5705 # Loop through the user's path and test for each of PROGNAME-LIST
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_prog in sed gsed; do
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5714 as_fn_executable_p "$ac_path_SED" || continue
5715 # Check for GNU ac_path_SED and select it if it is found.
5716 # Check for GNU $ac_path_SED
5717 case `"$ac_path_SED" --version 2>&1` in
5719 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5722 $as_echo_n 0123456789 >"conftest.in"
5725 cat "conftest.in" "conftest.in" >"conftest.tmp"
5726 mv "conftest.tmp" "conftest.in"
5727 cp "conftest.in" "conftest.nl"
5728 $as_echo '' >> "conftest.nl"
5729 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731 as_fn_arith $ac_count + 1 && ac_count=$as_val
5732 if test $ac_count -gt ${ac_path_SED_max-0}; then
5733 # Best one so far, save it but keep looking for a better one
5734 ac_cv_path_SED="$ac_path_SED"
5735 ac_path_SED_max=$ac_count
5737 # 10*(2^10) chars as input seems more than enough
5738 test $ac_count -gt 10 && break
5740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743 $ac_path_SED_found && break 3
5748 if test -z "$ac_cv_path_SED"; then
5749 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5757 $as_echo "$ac_cv_path_SED" >&6; }
5758 SED="$ac_cv_path_SED"
5761 test -z "$SED" && SED=sed
5762 Xsed="$SED -e 1s/^X//"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5775 $as_echo_n "checking for fgrep... " >&6; }
5776 if ${ac_cv_path_FGREP+:} false; then :
5777 $as_echo_n "(cached) " >&6
5779 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5780 then ac_cv_path_FGREP="$GREP -F"
5782 if test -z "$FGREP"; then
5783 ac_path_FGREP_found=false
5784 # Loop through the user's path and test for each of PROGNAME-LIST
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5789 test -z "$as_dir" && as_dir=.
5790 for ac_prog in fgrep; do
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5793 as_fn_executable_p "$ac_path_FGREP" || continue
5794 # Check for GNU ac_path_FGREP and select it if it is found.
5795 # Check for GNU $ac_path_FGREP
5796 case `"$ac_path_FGREP" --version 2>&1` in
5798 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5801 $as_echo_n 0123456789 >"conftest.in"
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 $as_echo 'FGREP' >> "conftest.nl"
5808 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810 as_fn_arith $ac_count + 1 && ac_count=$as_val
5811 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_FGREP="$ac_path_FGREP"
5814 ac_path_FGREP_max=$ac_count
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 $ac_path_FGREP_found && break 3
5827 if test -z "$ac_cv_path_FGREP"; then
5828 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5831 ac_cv_path_FGREP=$FGREP
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5837 $as_echo "$ac_cv_path_FGREP" >&6; }
5838 FGREP="$ac_cv_path_FGREP"
5841 test -z "$GREP" && GREP=grep
5861 # Check whether --with-gnu-ld was given.
5862 if test "${with_gnu_ld+set}" = set; then :
5863 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5869 if test "$GCC" = yes; then
5870 # Check if gcc -print-prog-name=ld gives a path.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5872 $as_echo_n "checking for ld used by $CC... " >&6; }
5875 # gcc leaves a trailing carriage return which upsets mingw
5876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5881 # Accept absolute paths.
5883 re_direlt='/[^/][^/]*/\.\./'
5884 # Canonicalize the pathname of ld
5885 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5886 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5887 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5889 test -z "$LD" && LD="$ac_prog"
5892 # If it fails, then pretend we aren't using GCC.
5896 # If it is relative, then search for the first ld in PATH.
5900 elif test "$with_gnu_ld" = yes; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5902 $as_echo_n "checking for GNU ld... " >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5905 $as_echo_n "checking for non-GNU ld... " >&6; }
5907 if ${lt_cv_path_LD+:} false; then :
5908 $as_echo_n "(cached) " >&6
5910 if test -z "$LD"; then
5911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5912 for ac_dir in $PATH; do
5914 test -z "$ac_dir" && ac_dir=.
5915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5916 lt_cv_path_LD="$ac_dir/$ac_prog"
5917 # Check to see if the program is GNU ld. I'd rather use --version,
5918 # but apparently some variants of GNU ld only accept -v.
5919 # Break only if it was the GNU/non-GNU ld that we prefer.
5920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5921 *GNU* | *'with BFD'*)
5922 test "$with_gnu_ld" != no && break
5925 test "$with_gnu_ld" != yes && break
5932 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5937 if test -n "$LD"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5939 $as_echo "$LD" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5944 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5946 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5947 if ${lt_cv_prog_gnu_ld+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5951 case `$LD -v 2>&1 </dev/null` in
5952 *GNU* | *'with BFD'*)
5953 lt_cv_prog_gnu_ld=yes
5956 lt_cv_prog_gnu_ld=no
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5961 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5962 with_gnu_ld=$lt_cv_prog_gnu_ld
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5973 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5974 if ${lt_cv_path_NM+:} false; then :
5975 $as_echo_n "(cached) " >&6
5977 if test -n "$NM"; then
5978 # Let the user override the test.
5981 lt_nm_to_check="${ac_tool_prefix}nm"
5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983 lt_nm_to_check="$lt_nm_to_check nm"
5985 for lt_tmp_nm in $lt_nm_to_check; do
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 test -z "$ac_dir" && ac_dir=.
5990 tmp_nm="$ac_dir/$lt_tmp_nm"
5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992 # Check to see if the nm accepts a BSD-compat flag.
5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994 # nm: unknown option "B" ignored
5995 # Tru64's nm complains that /dev/null is an invalid object file
5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997 */dev/null* | *'Invalid file or object type'*)
5998 lt_cv_path_NM="$tmp_nm -B"
6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 lt_cv_path_NM="$tmp_nm -p"
6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009 continue # so that we can try to find one that supports BSD flags
6018 : ${lt_cv_path_NM=no}
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6022 $as_echo "$lt_cv_path_NM" >&6; }
6023 if test "$lt_cv_path_NM" != "no"; then
6026 # Didn't find any BSD compatible name lister, look for dumpbin.
6027 if test -n "$DUMPBIN"; then :
6028 # Let the user override the test.
6030 if test -n "$ac_tool_prefix"; then
6031 for ac_prog in dumpbin "link -dump"
6033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_DUMPBIN+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 if test -n "$DUMPBIN"; then
6041 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 DUMPBIN=$ac_cv_prog_DUMPBIN
6061 if test -n "$DUMPBIN"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6063 $as_echo "$DUMPBIN" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6070 test -n "$DUMPBIN" && break
6073 if test -z "$DUMPBIN"; then
6074 ac_ct_DUMPBIN=$DUMPBIN
6075 for ac_prog in dumpbin "link -dump"
6077 # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_DUMPBIN"; then
6085 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6105 if test -n "$ac_ct_DUMPBIN"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6107 $as_echo "$ac_ct_DUMPBIN" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6114 test -n "$ac_ct_DUMPBIN" && break
6117 if test "x$ac_ct_DUMPBIN" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6126 DUMPBIN=$ac_ct_DUMPBIN
6130 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6132 DUMPBIN="$DUMPBIN -symbols"
6140 if test "$DUMPBIN" != ":"; then
6144 test -z "$NM" && NM=nm
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6152 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6153 if ${lt_cv_nm_interface+:} false; then :
6154 $as_echo_n "(cached) " >&6
6156 lt_cv_nm_interface="BSD nm"
6157 echo "int some_variable = 0;" > conftest.$ac_ext
6158 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6159 (eval "$ac_compile" 2>conftest.err)
6160 cat conftest.err >&5
6161 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6162 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6163 cat conftest.err >&5
6164 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6165 cat conftest.out >&5
6166 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6167 lt_cv_nm_interface="MS dumpbin"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6172 $as_echo "$lt_cv_nm_interface" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6175 $as_echo_n "checking whether ln -s works... " >&6; }
6177 if test "$LN_S" = "ln -s"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6182 $as_echo "no, using $LN_S" >&6; }
6185 # find the maximum length of command line arguments
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6187 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6188 if ${lt_cv_sys_max_cmd_len+:} false; then :
6189 $as_echo_n "(cached) " >&6
6196 # On DJGPP, this test can blow up pretty badly due to problems in libc
6197 # (any single argument exceeding 2000 bytes causes a buffer overrun
6198 # during glob expansion). Even if it were fixed, the result of this
6199 # check would be larger than it should be.
6200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6204 # Under GNU Hurd, this test is not required because there is
6205 # no limit to the length of command line arguments.
6206 # Libtool will interpret -1 as no limit whatsoever
6207 lt_cv_sys_max_cmd_len=-1;
6210 cygwin* | mingw* | cegcc*)
6211 # On Win9x/ME, this test blows up -- it succeeds, but takes
6212 # about 5 minutes as the teststring grows exponentially.
6213 # Worse, since 9x/ME are not pre-emptively multitasking,
6214 # you end up with a "frozen" computer, even though with patience
6215 # the test eventually succeeds (with a max line length of 256k).
6216 # Instead, let's just punt: use the minimum linelength reported by
6217 # all of the supported platforms: 8192 (on NT/2K/XP).
6218 lt_cv_sys_max_cmd_len=8192;
6222 # On MiNT this can take a long time and run out of memory.
6223 lt_cv_sys_max_cmd_len=8192;
6227 # On AmigaOS with pdksh, this test takes hours, literally.
6228 # So we just punt and use a minimum line length of 8192.
6229 lt_cv_sys_max_cmd_len=8192;
6232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6233 # This has been around since 386BSD, at least. Likely further.
6234 if test -x /sbin/sysctl; then
6235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6236 elif test -x /usr/sbin/sysctl; then
6237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6241 # And add a safety zone
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6248 lt_cv_sys_max_cmd_len=196608
6252 # The test takes a long time on OS/2.
6253 lt_cv_sys_max_cmd_len=8192
6257 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6258 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6259 # nice to cause kernel panics so lets avoid the loop below.
6260 # First set a reasonable default.
6261 lt_cv_sys_max_cmd_len=16384
6263 if test -x /sbin/sysconfig; then
6264 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6265 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6270 lt_cv_sys_max_cmd_len=102400
6272 sysv5* | sco5v6* | sysv4.2uw2*)
6273 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6274 if test -n "$kargmax"; then
6275 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6277 lt_cv_sys_max_cmd_len=32768
6281 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6282 if test -n "$lt_cv_sys_max_cmd_len"; then
6283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6286 # Make teststring a little bigger before we do anything with it.
6287 # a 1K string should be a reasonable start.
6288 for i in 1 2 3 4 5 6 7 8 ; do
6289 teststring=$teststring$teststring
6291 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6292 # If test is not a shell built-in, we'll probably end up computing a
6293 # maximum length that is only half of the actual maximum length, but
6295 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6296 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6297 test $i != 17 # 1/2 MB should be enough
6300 teststring=$teststring$teststring
6302 # Only check the string length outside the loop.
6303 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6305 # Add a significant safety factor because C++ compilers can tack on
6306 # massive amounts of additional arguments before passing them to the
6307 # linker. It appears as though 1/2 is a usable value.
6308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6315 if test -n $lt_cv_sys_max_cmd_len ; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6317 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6320 $as_echo "none" >&6; }
6322 max_cmd_len=$lt_cv_sys_max_cmd_len
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6334 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6335 # Try some XSI features
6338 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6340 && eval 'test $(( 1 + 1 )) -eq 2 \
6341 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6344 $as_echo "$xsi_shell" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6348 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6350 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6352 && lt_shell_append=yes
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6354 $as_echo "$lt_shell_append" >&6; }
6357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6367 # test EBCDIC or ASCII
6368 case `echo X|tr X '\101'` in
6369 A) # ASCII based system
6370 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6371 lt_SP2NL='tr \040 \012'
6372 lt_NL2SP='tr \015\012 \040\040'
6374 *) # EBCDIC based system
6375 lt_SP2NL='tr \100 \n'
6376 lt_NL2SP='tr \r\n \100\100'
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6389 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6390 if ${lt_cv_to_host_file_cmd+:} false; then :
6391 $as_echo_n "(cached) " >&6
6396 *-*-mingw* ) # actually msys
6397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6400 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6402 * ) # otherwise, assume *nix
6403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6409 *-*-mingw* ) # actually msys
6410 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6413 lt_cv_to_host_file_cmd=func_convert_file_noop
6415 * ) # otherwise, assume *nix
6416 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6420 * ) # unhandled hosts (and "normal" native builds)
6421 lt_cv_to_host_file_cmd=func_convert_file_noop
6427 to_host_file_cmd=$lt_cv_to_host_file_cmd
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6429 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6436 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6437 if ${lt_cv_to_tool_file_cmd+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 #assume ordinary cross tools, or native build.
6441 lt_cv_to_tool_file_cmd=func_convert_file_noop
6445 *-*-mingw* ) # actually msys
6446 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6456 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6463 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6464 if ${lt_cv_ld_reload_flag+:} false; then :
6465 $as_echo_n "(cached) " >&6
6467 lt_cv_ld_reload_flag='-r'
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6470 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6471 reload_flag=$lt_cv_ld_reload_flag
6472 case $reload_flag in
6474 *) reload_flag=" $reload_flag" ;;
6476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478 cygwin* | mingw* | pw32* | cegcc*)
6479 if test "$GCC" != yes; then
6484 if test "$GCC" = yes; then
6485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_OBJDUMP+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 if test -n "$OBJDUMP"; then
6509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 OBJDUMP=$ac_cv_prog_OBJDUMP
6529 if test -n "$OBJDUMP"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6531 $as_echo "$OBJDUMP" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6539 if test -z "$ac_cv_prog_OBJDUMP"; then
6540 ac_ct_OBJDUMP=$OBJDUMP
6541 # Extract the first word of "objdump", so it can be a program name with args.
6542 set dummy objdump; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$ac_ct_OBJDUMP"; then
6549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6569 if test -n "$ac_ct_OBJDUMP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6571 $as_echo "$ac_ct_OBJDUMP" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6577 if test "x$ac_ct_OBJDUMP" = x; then
6580 case $cross_compiling:$ac_tool_warned in
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6586 OBJDUMP=$ac_ct_OBJDUMP
6589 OBJDUMP="$ac_cv_prog_OBJDUMP"
6592 test -z "$OBJDUMP" && OBJDUMP=objdump
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6604 if ${lt_cv_deplibs_check_method+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 lt_cv_file_magic_cmd='$MAGIC_CMD'
6608 lt_cv_file_magic_test_file=
6609 lt_cv_deplibs_check_method='unknown'
6610 # Need to set the preceding variable on all platforms that support
6611 # interlibrary dependencies.
6612 # 'none' -- dependencies not supported.
6613 # `unknown' -- same as none, but documents that we really don't know.
6614 # 'pass_all' -- all dependencies passed with no checks.
6615 # 'test_compile' -- check by making test program.
6616 # 'file_magic [[regex]]' -- check by looking for files in library path
6617 # which responds to the $file_magic_cmd with a given extended regex.
6618 # If you have `file' or equivalent on your system and you're not sure
6619 # whether `pass_all' will *always* work, you probably want this one.
6623 lt_cv_deplibs_check_method=pass_all
6627 lt_cv_deplibs_check_method=pass_all
6631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6632 lt_cv_file_magic_cmd='/usr/bin/file -L'
6633 lt_cv_file_magic_test_file=/shlib/libc.so
6637 # func_win32_libid is a shell function defined in ltmain.sh
6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639 lt_cv_file_magic_cmd='func_win32_libid'
6643 # Base MSYS/MinGW do not provide the 'file' command needed by
6644 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6645 # unless we find 'file', for example because we are cross-compiling.
6646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649 lt_cv_file_magic_cmd='func_win32_libid'
6651 # Keep this pattern in sync with the one in func_win32_libid.
6652 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6653 lt_cv_file_magic_cmd='$OBJDUMP -f'
6658 # use the weaker test based on 'objdump'. See mingw*.
6659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6660 lt_cv_file_magic_cmd='$OBJDUMP -f'
6663 darwin* | rhapsody*)
6664 lt_cv_deplibs_check_method=pass_all
6667 freebsd* | dragonfly*)
6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6671 # Not sure whether the presence of OpenBSD here was a mistake.
6672 # Let's accept both of them until this is cleared up.
6673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6674 lt_cv_file_magic_cmd=/usr/bin/file
6675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6679 lt_cv_deplibs_check_method=pass_all
6684 lt_cv_deplibs_check_method=pass_all
6687 hpux10.20* | hpux11*)
6688 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6695 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]'
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6710 irix5* | irix6* | nonstopux*)
6712 *-32|*"-32 ") libmagic=32-bit;;
6713 *-n32|*"-n32 ") libmagic=N32;;
6714 *-64|*"-64 ") libmagic=64-bit;;
6715 *) libmagic=never-match;;
6717 lt_cv_deplibs_check_method=pass_all
6720 # This must be glibc/ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6722 lt_cv_deplibs_check_method=pass_all
6725 netbsd* | netbsdelf*-gnu)
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6740 lt_cv_deplibs_check_method=pass_all
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 osf3* | osf4* | osf5*)
6752 lt_cv_deplibs_check_method=pass_all
6756 lt_cv_deplibs_check_method=pass_all
6760 lt_cv_deplibs_check_method=pass_all
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764 lt_cv_deplibs_check_method=pass_all
6768 case $host_vendor in
6770 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]'
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6774 lt_cv_deplibs_check_method=pass_all
6777 lt_cv_file_magic_cmd='/bin/file'
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6783 lt_cv_file_magic_test_file=/lib/libc.so
6786 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6795 lt_cv_deplibs_check_method=pass_all
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6805 if test "$build" = "$host"; then
6808 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6811 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6817 file_magic_cmd=$lt_cv_file_magic_cmd
6818 deplibs_check_method=$lt_cv_deplibs_check_method
6819 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_DLLTOOL+:} false; then :
6848 $as_echo_n "(cached) " >&6
6850 if test -n "$DLLTOOL"; then
6851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 DLLTOOL=$ac_cv_prog_DLLTOOL
6871 if test -n "$DLLTOOL"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6873 $as_echo "$DLLTOOL" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6881 if test -z "$ac_cv_prog_DLLTOOL"; then
6882 ac_ct_DLLTOOL=$DLLTOOL
6883 # Extract the first word of "dlltool", so it can be a program name with args.
6884 set dummy dlltool; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$ac_ct_DLLTOOL"; then
6891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6911 if test -n "$ac_ct_DLLTOOL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6913 $as_echo "$ac_ct_DLLTOOL" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6919 if test "x$ac_ct_DLLTOOL" = x; then
6922 case $cross_compiling:$ac_tool_warned in
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6928 DLLTOOL=$ac_ct_DLLTOOL
6931 DLLTOOL="$ac_cv_prog_DLLTOOL"
6934 test -z "$DLLTOOL" && DLLTOOL=dlltool
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6946 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6947 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6948 $as_echo_n "(cached) " >&6
6950 lt_cv_sharedlib_from_linklib_cmd='unknown'
6953 cygwin* | mingw* | pw32* | cegcc*)
6954 # two different shell functions defined in ltmain.sh
6955 # decide which to use based on capabilities of $DLLTOOL
6956 case `$DLLTOOL --help 2>&1` in
6957 *--identify-strict*)
6958 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6961 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6966 # fallback: assume linklib IS sharedlib
6967 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6973 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6974 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6975 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6983 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_AR+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 if test -n "$AR"; then
6994 ac_cv_prog_AR="$AR" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 if test -n "$AR"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7016 $as_echo "$AR" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023 test -n "$AR" && break
7026 if test -z "$AR"; then
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy $ac_prog; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 if test -n "$ac_ct_AR"; then
7038 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_AR="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7058 if test -n "$ac_ct_AR"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7060 $as_echo "$ac_ct_AR" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7067 test -n "$ac_ct_AR" && break
7070 if test "x$ac_ct_AR" = x; then
7073 case $cross_compiling:$ac_tool_warned in
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7097 $as_echo_n "checking for archiver @FILE support... " >&6; }
7098 if ${lt_cv_ar_at_file+:} false; then :
7099 $as_echo_n "(cached) " >&6
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 echo conftest.$ac_objext > conftest.lst
7115 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7117 (eval $lt_ar_try) 2>&5
7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120 test $ac_status = 0; }
7121 if test "$ac_status" -eq 0; then
7122 # Ensure the archiver fails upon bogus file names.
7123 rm -f conftest.$ac_objext libconftest.a
7124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7125 (eval $lt_ar_try) 2>&5
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; }
7129 if test "$ac_status" -ne 0; then
7133 rm -f conftest.* libconftest.a
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7140 $as_echo "$lt_cv_ar_at_file" >&6; }
7142 if test "x$lt_cv_ar_at_file" = xno; then
7145 archiver_list_spec=$lt_cv_ar_at_file
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}strip; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_STRIP+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 if test -n "$STRIP"; then
7163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 STRIP=$ac_cv_prog_STRIP
7183 if test -n "$STRIP"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7185 $as_echo "$STRIP" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7193 if test -z "$ac_cv_prog_STRIP"; then
7195 # Extract the first word of "strip", so it can be a program name with args.
7196 set dummy strip; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$ac_ct_STRIP"; then
7203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_ac_ct_STRIP="strip"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7223 if test -n "$ac_ct_STRIP"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7225 $as_echo "$ac_ct_STRIP" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7231 if test "x$ac_ct_STRIP" = x; then
7234 case $cross_compiling:$ac_tool_warned in
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7243 STRIP="$ac_cv_prog_STRIP"
7246 test -z "$STRIP" && STRIP=:
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_RANLIB+:} false; then :
7259 $as_echo_n "(cached) " >&6
7261 if test -n "$RANLIB"; then
7262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 RANLIB=$ac_cv_prog_RANLIB
7282 if test -n "$RANLIB"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7284 $as_echo "$RANLIB" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7292 if test -z "$ac_cv_prog_RANLIB"; then
7293 ac_ct_RANLIB=$RANLIB
7294 # Extract the first word of "ranlib", so it can be a program name with args.
7295 set dummy ranlib; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$ac_ct_RANLIB"; then
7302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_RANLIB="ranlib"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7322 if test -n "$ac_ct_RANLIB"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7324 $as_echo "$ac_ct_RANLIB" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7330 if test "x$ac_ct_RANLIB" = x; then
7333 case $cross_compiling:$ac_tool_warned in
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7339 RANLIB=$ac_ct_RANLIB
7342 RANLIB="$ac_cv_prog_RANLIB"
7345 test -z "$RANLIB" && RANLIB=:
7352 # Determine commands to create old-style static archives.
7353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7354 old_postinstall_cmds='chmod 644 $oldlib'
7355 old_postuninstall_cmds=
7357 if test -n "$RANLIB"; then
7360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7371 lock_old_archive_extraction=yes ;;
7373 lock_old_archive_extraction=no ;;
7414 # If no C compiler was specified, use CC.
7417 # If no C compiler flags were specified, use CFLAGS.
7418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7420 # Allow CC to be a program name with arguments.
7424 # Check for command to grab the raw symbol name followed by C symbol from nm.
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7427 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7428 $as_echo_n "(cached) " >&6
7431 # These are sane defaults that work on at least a few old systems.
7432 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7434 # Character class describing NM global symbol codes.
7435 symcode='[BCDEGRST]'
7437 # Regexp to match symbols that can be accessed directly from C.
7438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7440 # Define system-specific variables.
7445 cygwin* | mingw* | pw32* | cegcc*)
7446 symcode='[ABCDGISTW]'
7449 if test "$host_cpu" = ia64; then
7450 symcode='[ABCDEGRST]'
7454 symcode='[BCDEGRST]'
7457 symcode='[BCDEGQRST]'
7468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7476 # If we're using GNU nm, then use its standard symbol codes.
7477 case `$NM -V 2>&1` in
7478 *GNU* | *'with BFD'*)
7479 symcode='[ABCDGIRSTW]' ;;
7482 # Transform an extracted symbol line into a proper C declaration.
7483 # Some systems (esp. on ia64) link data and code symbols differently,
7484 # so use this general approach.
7485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7487 # Transform an extracted symbol line into symbol name and symbol address
7488 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7489 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'"
7491 # Handle CRLF in mingw tool chain
7495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7499 # Try without a prefix underscore, then with it.
7500 for ac_symprfx in "" "_"; do
7502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7503 symxfrm="\\1 $ac_symprfx\\2 \\2"
7505 # Write the raw and C identifiers.
7506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7507 # Fake it for dumpbin and say T for any non-static function
7508 # and D for any global variable.
7509 # Also find C++ and __fastcall symbols from MSVC++,
7510 # which start with @ or ?.
7511 lt_cv_sys_global_symbol_pipe="$AWK '"\
7512 " {last_section=section; section=\$ 3};"\
7513 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7514 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7515 " \$ 0!~/External *\|/{next};"\
7516 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7517 " {if(hide[section]) next};"\
7518 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7519 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7520 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7521 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7522 " ' prfx=^$ac_symprfx"
7524 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7526 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7528 # Check to see that the pipe works correctly.
7532 cat > conftest.$ac_ext <<_LT_EOF
7537 void nm_test_func(void);
7538 void nm_test_func(void){}
7542 int main(){nm_test_var='a';nm_test_func();return(0);}
7545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546 (eval $ac_compile) 2>&5
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 # Now try to grab the symbols.
7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7553 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; } && test -s "$nlist"; then
7557 # Try sorting and uniquifying the output.
7558 if sort "$nlist" | uniq > "$nlist"T; then
7559 mv -f "$nlist"T "$nlist"
7564 # Make sure that we snagged all the symbols we need.
7565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7567 cat <<_LT_EOF > conftest.$ac_ext
7568 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7569 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7570 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7571 relocations are performed -- see ld's documentation on pseudo-relocs. */
7572 # define LT_DLSYM_CONST
7573 #elif defined(__osf__)
7574 /* This system does not cope well with relocations in const data. */
7575 # define LT_DLSYM_CONST
7577 # define LT_DLSYM_CONST const
7585 # Now generate the symbol file.
7586 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7588 cat <<_LT_EOF >> conftest.$ac_ext
7590 /* The mapping between symbol names and symbols. */
7591 LT_DLSYM_CONST struct {
7595 lt__PROGRAM__LTX_preloaded_symbols[] =
7597 { "@PROGRAM@", (void *) 0 },
7599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7600 cat <<\_LT_EOF >> conftest.$ac_ext
7604 /* This works around a problem in FreeBSD linker */
7605 #ifdef FREEBSD_WORKAROUND
7606 static const void *lt_preloaded_setup() {
7607 return lt__PROGRAM__LTX_preloaded_symbols;
7615 # Now try linking the two files.
7616 mv conftest.$ac_objext conftstm.$ac_objext
7617 lt_globsym_save_LIBS=$LIBS
7618 lt_globsym_save_CFLAGS=$CFLAGS
7619 LIBS="conftstm.$ac_objext"
7620 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7622 (eval $ac_link) 2>&5
7624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7628 LIBS=$lt_globsym_save_LIBS
7629 CFLAGS=$lt_globsym_save_CFLAGS
7631 echo "cannot find nm_test_func in $nlist" >&5
7634 echo "cannot find nm_test_var in $nlist" >&5
7637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7640 echo "$progname: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7643 rm -rf conftest* conftst*
7645 # Do not use the global_symbol_pipe unless it works.
7646 if test "$pipe_works" = yes; then
7649 lt_cv_sys_global_symbol_pipe=
7655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7656 lt_cv_sys_global_symbol_to_cdecl=
7658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7660 $as_echo "failed" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7663 $as_echo "ok" >&6; }
7666 # Response file support.
7667 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7668 nm_file_list_spec='@'
7669 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7670 nm_file_list_spec='@'
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7700 $as_echo_n "checking for sysroot... " >&6; }
7702 # Check whether --with-sysroot was given.
7703 if test "${with_sysroot+set}" = set; then :
7704 withval=$with_sysroot;
7711 case ${with_sysroot} in #(
7713 if test "$GCC" = yes; then
7714 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7718 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7724 $as_echo "${with_sysroot}" >&6; }
7725 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7730 $as_echo "${lt_sysroot:-no}" >&6; }
7736 # Check whether --enable-libtool-lock was given.
7737 if test "${enable_libtool_lock+set}" = set; then :
7738 enableval=$enable_libtool_lock;
7741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7743 # Some flags need to be propagated to the compiler or linker for good
7747 # Find out which ABI we are using.
7748 echo 'int i;' > conftest.$ac_ext
7749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7750 (eval $ac_compile) 2>&5
7752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7753 test $ac_status = 0; }; then
7754 case `/usr/bin/file conftest.$ac_objext` in
7766 # Find out which ABI we are using.
7767 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769 (eval $ac_compile) 2>&5
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 if test "$lt_cv_prog_gnu_ld" = yes; then
7774 case `/usr/bin/file conftest.$ac_objext` in
7776 LD="${LD-ld} -melf32bsmip"
7779 LD="${LD-ld} -melf32bmipn32"
7782 LD="${LD-ld} -melf64bmip"
7786 case `/usr/bin/file conftest.$ac_objext` in
7802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7804 # Find out which ABI we are using.
7805 echo 'int i;' > conftest.$ac_ext
7806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7807 (eval $ac_compile) 2>&5
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; }; then
7811 case `/usr/bin/file conftest.o` in
7814 x86_64-*kfreebsd*-gnu)
7815 LD="${LD-ld} -m elf_i386_fbsd"
7818 LD="${LD-ld} -m elf_i386"
7820 ppc64-*linux*|powerpc64-*linux*)
7821 LD="${LD-ld} -m elf32ppclinux"
7824 LD="${LD-ld} -m elf_s390"
7827 LD="${LD-ld} -m elf32_sparc"
7833 x86_64-*kfreebsd*-gnu)
7834 LD="${LD-ld} -m elf_x86_64_fbsd"
7837 LD="${LD-ld} -m elf_x86_64"
7839 ppc*-*linux*|powerpc*-*linux*)
7840 LD="${LD-ld} -m elf64ppc"
7842 s390*-*linux*|s390*-*tpf*)
7843 LD="${LD-ld} -m elf64_s390"
7846 LD="${LD-ld} -m elf64_sparc"
7856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7857 SAVE_CFLAGS="$CFLAGS"
7858 CFLAGS="$CFLAGS -belf"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7861 if ${lt_cv_cc_needs_belf+:} false; then :
7862 $as_echo_n "(cached) " >&6
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7881 if ac_fn_c_try_link "$LINENO"; then :
7882 lt_cv_cc_needs_belf=yes
7884 lt_cv_cc_needs_belf=no
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7899 CFLAGS="$SAVE_CFLAGS"
7903 # Find out which ABI we are using.
7904 echo 'int i;' > conftest.$ac_ext
7905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7906 (eval $ac_compile) 2>&5
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }; then
7910 case `/usr/bin/file conftest.o` in
7912 case $lt_cv_prog_gnu_ld in
7916 LD="${LD-ld} -m elf_x86_64"
7919 LD="${LD-ld} -m elf64_sparc"
7922 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7923 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7928 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7940 need_locks="$enable_libtool_lock"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}mt; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$MANIFEST_TOOL"; then
7951 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7971 if test -n "$MANIFEST_TOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7973 $as_echo "$MANIFEST_TOOL" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7982 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7983 # Extract the first word of "mt", so it can be a program name with args.
7984 set dummy mt; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 if test -n "$ac_ct_MANIFEST_TOOL"; then
7991 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8011 if test -n "$ac_ct_MANIFEST_TOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8013 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8022 case $cross_compiling:$ac_tool_warned in
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8028 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8031 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8034 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8036 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8037 if ${lt_cv_path_mainfest_tool+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 lt_cv_path_mainfest_tool=no
8041 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8042 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8043 cat conftest.err >&5
8044 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8045 lt_cv_path_mainfest_tool=yes
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8050 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8051 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8061 rhapsody* | darwin*)
8062 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 if test -n "$DSYMUTIL"; then
8071 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8091 if test -n "$DSYMUTIL"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8093 $as_echo "$DSYMUTIL" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 if test -z "$ac_cv_prog_DSYMUTIL"; then
8102 ac_ct_DSYMUTIL=$DSYMUTIL
8103 # Extract the first word of "dsymutil", so it can be a program name with args.
8104 set dummy dsymutil; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8108 $as_echo_n "(cached) " >&6
8110 if test -n "$ac_ct_DSYMUTIL"; then
8111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8131 if test -n "$ac_ct_DSYMUTIL"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8133 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8139 if test "x$ac_ct_DSYMUTIL" = x; then
8142 case $cross_compiling:$ac_tool_warned in
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8148 DSYMUTIL=$ac_ct_DSYMUTIL
8151 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_NMEDIT+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$NMEDIT"; then
8163 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 NMEDIT=$ac_cv_prog_NMEDIT
8183 if test -n "$NMEDIT"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8185 $as_echo "$NMEDIT" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 if test -z "$ac_cv_prog_NMEDIT"; then
8194 ac_ct_NMEDIT=$NMEDIT
8195 # Extract the first word of "nmedit", so it can be a program name with args.
8196 set dummy nmedit; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8200 $as_echo_n "(cached) " >&6
8202 if test -n "$ac_ct_NMEDIT"; then
8203 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8223 if test -n "$ac_ct_NMEDIT"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8225 $as_echo "$ac_ct_NMEDIT" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8231 if test "x$ac_ct_NMEDIT" = x; then
8234 case $cross_compiling:$ac_tool_warned in
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8240 NMEDIT=$ac_ct_NMEDIT
8243 NMEDIT="$ac_cv_prog_NMEDIT"
8246 if test -n "$ac_tool_prefix"; then
8247 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_LIPO+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$LIPO"; then
8255 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 LIPO=$ac_cv_prog_LIPO
8275 if test -n "$LIPO"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8277 $as_echo "$LIPO" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8285 if test -z "$ac_cv_prog_LIPO"; then
8287 # Extract the first word of "lipo", so it can be a program name with args.
8288 set dummy lipo; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 if test -n "$ac_ct_LIPO"; then
8295 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_prog_ac_ct_LIPO="lipo"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8315 if test -n "$ac_ct_LIPO"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8317 $as_echo "$ac_ct_LIPO" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8323 if test "x$ac_ct_LIPO" = x; then
8326 case $cross_compiling:$ac_tool_warned in
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8335 LIPO="$ac_cv_prog_LIPO"
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}otool; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_OTOOL+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$OTOOL"; then
8347 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 OTOOL=$ac_cv_prog_OTOOL
8367 if test -n "$OTOOL"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8369 $as_echo "$OTOOL" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test -z "$ac_cv_prog_OTOOL"; then
8379 # Extract the first word of "otool", so it can be a program name with args.
8380 set dummy otool; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 if test -n "$ac_ct_OTOOL"; then
8387 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_ac_ct_OTOOL="otool"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8407 if test -n "$ac_ct_OTOOL"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8409 $as_echo "$ac_ct_OTOOL" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8415 if test "x$ac_ct_OTOOL" = x; then
8418 case $cross_compiling:$ac_tool_warned in
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8427 OTOOL="$ac_cv_prog_OTOOL"
8430 if test -n "$ac_tool_prefix"; then
8431 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8432 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_OTOOL64+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$OTOOL64"; then
8439 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 OTOOL64=$ac_cv_prog_OTOOL64
8459 if test -n "$OTOOL64"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8461 $as_echo "$OTOOL64" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8469 if test -z "$ac_cv_prog_OTOOL64"; then
8470 ac_ct_OTOOL64=$OTOOL64
8471 # Extract the first word of "otool64", so it can be a program name with args.
8472 set dummy otool64; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 if test -n "$ac_ct_OTOOL64"; then
8479 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_ac_ct_OTOOL64="otool64"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8499 if test -n "$ac_ct_OTOOL64"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8501 $as_echo "$ac_ct_OTOOL64" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8507 if test "x$ac_ct_OTOOL64" = x; then
8510 case $cross_compiling:$ac_tool_warned in
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8516 OTOOL64=$ac_ct_OTOOL64
8519 OTOOL64="$ac_cv_prog_OTOOL64"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8549 $as_echo_n "checking for -single_module linker flag... " >&6; }
8550 if ${lt_cv_apple_cc_single_mod+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 lt_cv_apple_cc_single_mod=no
8554 if test -z "${LT_MULTI_MODULE}"; then
8555 # By default we will add the -single_module flag. You can override
8556 # by either setting the environment variable LT_MULTI_MODULE
8557 # non-empty at configure time, or by adding -multi_module to the
8559 rm -rf libconftest.dylib*
8560 echo "int foo(void){return 1;}" > conftest.c
8561 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8562 -dynamiclib -Wl,-single_module conftest.c" >&5
8563 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8564 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8566 # If there is a non-empty error log, and "single_module"
8567 # appears in it, assume the flag caused a linker warning
8568 if test -s conftest.err && $GREP single_module conftest.err; then
8569 cat conftest.err >&5
8570 # Otherwise, if the output was created with a 0 exit code from
8571 # the compiler, it worked.
8572 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8573 lt_cv_apple_cc_single_mod=yes
8575 cat conftest.err >&5
8577 rm -rf libconftest.dylib*
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8582 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8585 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8586 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8587 $as_echo_n "(cached) " >&6
8589 lt_cv_ld_exported_symbols_list=no
8590 save_LDFLAGS=$LDFLAGS
8591 echo "_main" > conftest.sym
8592 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 lt_cv_ld_exported_symbols_list=yes
8607 lt_cv_ld_exported_symbols_list=no
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LDFLAGS="$save_LDFLAGS"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8615 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8618 $as_echo_n "checking for -force_load linker flag... " >&6; }
8619 if ${lt_cv_ld_force_load+:} false; then :
8620 $as_echo_n "(cached) " >&6
8622 lt_cv_ld_force_load=no
8623 cat > conftest.c << _LT_EOF
8624 int forced_loaded() { return 2;}
8626 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8627 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8628 echo "$AR cru libconftest.a conftest.o" >&5
8629 $AR cru libconftest.a conftest.o 2>&5
8630 echo "$RANLIB libconftest.a" >&5
8631 $RANLIB libconftest.a 2>&5
8632 cat > conftest.c << _LT_EOF
8633 int main() { return 0;}
8635 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8636 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8638 if test -s conftest.err && $GREP force_load conftest.err; then
8639 cat conftest.err >&5
8640 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8641 lt_cv_ld_force_load=yes
8643 cat conftest.err >&5
8645 rm -f conftest.err libconftest.a conftest conftest.c
8646 rm -rf conftest.dSYM
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8650 $as_echo "$lt_cv_ld_force_load" >&6; }
8652 rhapsody* | darwin1.[012])
8653 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8655 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8656 darwin*) # darwin 5.x on
8657 # if running on 10.5 or later, the deployment target defaults
8658 # to the OS version, if on x86, and 10.4, the deployment
8659 # target defaults to 10.4. Don't you love it?
8660 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8661 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8662 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8664 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8670 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8671 _lt_dar_single_mod='$single_module'
8673 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8674 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8676 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8678 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8679 _lt_dsymutil='~$DSYMUTIL $lib || :'
8686 for ac_header in dlfcn.h
8688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_DLFCN_H 1
8713 # Check whether --enable-shared was given.
8714 if test "${enable_shared+set}" = set; then :
8715 enableval=$enable_shared; p=${PACKAGE-default}
8717 yes) enable_shared=yes ;;
8718 no) enable_shared=no ;;
8721 # Look at the argument we got. We use all the common list separators.
8722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8723 for pkg in $enableval; do
8725 if test "X$pkg" = "X$p"; then
8746 # Check whether --with-pic was given.
8747 if test "${with_pic+set}" = set; then :
8748 withval=$with_pic; lt_p=${PACKAGE-default}
8750 yes|no) pic_mode=$withval ;;
8753 # Look at the argument we got. We use all the common list separators.
8754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8755 for lt_pkg in $withval; do
8757 if test "X$lt_pkg" = "X$lt_p"; then
8769 test -z "$pic_mode" && pic_mode=default
8777 # Check whether --enable-fast-install was given.
8778 if test "${enable_fast_install+set}" = set; then :
8779 enableval=$enable_fast_install; p=${PACKAGE-default}
8781 yes) enable_fast_install=yes ;;
8782 no) enable_fast_install=no ;;
8784 enable_fast_install=no
8785 # Look at the argument we got. We use all the common list separators.
8786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8787 for pkg in $enableval; do
8789 if test "X$pkg" = "X$p"; then
8790 enable_fast_install=yes
8797 enable_fast_install=yes
8810 # This can be used to rebuild libtool when needed
8811 LIBTOOL_DEPS="$ltmain"
8813 # Always use our own libtool.
8814 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8845 test -z "$LN_S" && LN_S="ln -s"
8860 if test -n "${ZSH_VERSION+set}" ; then
8861 setopt NO_GLOB_SUBST
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8865 $as_echo_n "checking for objdir... " >&6; }
8866 if ${lt_cv_objdir+:} false; then :
8867 $as_echo_n "(cached) " >&6
8869 rm -f .libs 2>/dev/null
8870 mkdir .libs 2>/dev/null
8871 if test -d .libs; then
8874 # MS-DOS does not allow filenames that begin with a dot.
8877 rmdir .libs 2>/dev/null
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8880 $as_echo "$lt_cv_objdir" >&6; }
8881 objdir=$lt_cv_objdir
8887 cat >>confdefs.h <<_ACEOF
8888 #define LT_OBJDIR "$lt_cv_objdir/"
8896 # AIX sometimes has problems with the GCC collect2 program. For some
8897 # reason, if we set the COLLECT_NAMES environment variable, the problems
8898 # vanish in a puff of smoke.
8899 if test "X${COLLECT_NAMES+set}" != Xset; then
8901 export COLLECT_NAMES
8908 can_build_shared=yes
8910 # All known linkers require a `.a' archive for static linking (except MSVC,
8911 # which needs '.lib').
8914 with_gnu_ld="$lt_cv_prog_gnu_ld"
8917 old_CFLAGS="$CFLAGS"
8919 # Set sane defaults for various variables
8920 test -z "$CC" && CC=cc
8921 test -z "$LTCC" && LTCC=$CC
8922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8923 test -z "$LD" && LD=ld
8924 test -z "$ac_objext" && ac_objext=o
8926 for cc_temp in $compiler""; do
8928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8934 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8937 # Only perform the check for file, if the check method requires it
8938 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8939 case $deplibs_check_method in
8941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8943 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8944 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8945 $as_echo_n "(cached) " >&6
8949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8952 lt_save_MAGIC_CMD="$MAGIC_CMD"
8953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8955 for ac_dir in $ac_dummy; do
8957 test -z "$ac_dir" && ac_dir=.
8958 if test -f $ac_dir/${ac_tool_prefix}file; then
8959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8960 if test -n "$file_magic_test_file"; then
8961 case $deplibs_check_method in
8963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8966 $EGREP "$file_magic_regex" > /dev/null; then
8971 *** Warning: the command libtool uses to detect shared libraries,
8972 *** $file_magic_cmd, produces output that libtool cannot recognize.
8973 *** The result is that libtool may fail to recognize shared libraries
8974 *** as such. This will affect the creation of libtool libraries that
8975 *** depend on shared libraries, but programs linked with such libtool
8976 *** libraries will work regardless of this problem. Nevertheless, you
8977 *** may want to report the problem to your system manager and/or to
8978 *** bug-libtool@gnu.org
8988 MAGIC_CMD="$lt_save_MAGIC_CMD"
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if test -n "$MAGIC_CMD"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8996 $as_echo "$MAGIC_CMD" >&6; }
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9006 if test -z "$lt_cv_path_MAGIC_CMD"; then
9007 if test -n "$ac_tool_prefix"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9009 $as_echo_n "checking for file... " >&6; }
9010 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9011 $as_echo_n "(cached) " >&6
9015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9018 lt_save_MAGIC_CMD="$MAGIC_CMD"
9019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9021 for ac_dir in $ac_dummy; do
9023 test -z "$ac_dir" && ac_dir=.
9024 if test -f $ac_dir/file; then
9025 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9026 if test -n "$file_magic_test_file"; then
9027 case $deplibs_check_method in
9029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9032 $EGREP "$file_magic_regex" > /dev/null; then
9037 *** Warning: the command libtool uses to detect shared libraries,
9038 *** $file_magic_cmd, produces output that libtool cannot recognize.
9039 *** The result is that libtool may fail to recognize shared libraries
9040 *** as such. This will affect the creation of libtool libraries that
9041 *** depend on shared libraries, but programs linked with such libtool
9042 *** libraries will work regardless of this problem. Nevertheless, you
9043 *** may want to report the problem to your system manager and/or to
9044 *** bug-libtool@gnu.org
9054 MAGIC_CMD="$lt_save_MAGIC_CMD"
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if test -n "$MAGIC_CMD"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9062 $as_echo "$MAGIC_CMD" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9078 # Use C for the default configuration in the libtool script
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9088 # Source file extension for C test sources.
9091 # Object file extension for compiled C test sources.
9095 # Code to be used in simple compile tests
9096 lt_simple_compile_test_code="int some_variable = 0;"
9098 # Code to be used in simple link tests
9099 lt_simple_link_test_code='int main(){return(0);}'
9107 # If no C compiler was specified, use CC.
9110 # If no C compiler flags were specified, use CFLAGS.
9111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9113 # Allow CC to be a program name with arguments.
9116 # Save the default compiler, since it gets overwritten when the other
9117 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9118 compiler_DEFAULT=$CC
9120 # save warnings/boilerplate of simple test code
9121 ac_outfile=conftest.$ac_objext
9122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9124 _lt_compiler_boilerplate=`cat conftest.err`
9127 ac_outfile=conftest.$ac_objext
9128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9130 _lt_linker_boilerplate=`cat conftest.err`
9134 if test -n "$compiler"; then
9136 lt_prog_compiler_no_builtin_flag=
9138 if test "$GCC" = yes; then
9139 case $cc_basename in
9141 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9143 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9147 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9148 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9149 $as_echo_n "(cached) " >&6
9151 lt_cv_prog_compiler_rtti_exceptions=no
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 lt_compiler_flag="-fno-rtti -fno-exceptions"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 # The option is referenced via a variable to avoid confusing sed.
9160 lt_compile=`echo "$ac_compile" | $SED \
9161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163 -e 's:$: $lt_compiler_flag:'`
9164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165 (eval "$lt_compile" 2>conftest.err)
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 if (exit $ac_status) && test -s "$ac_outfile"; then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings other than the usual output.
9172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_rtti_exceptions=yes
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9182 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9185 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9197 lt_prog_compiler_wl=
9198 lt_prog_compiler_pic=
9199 lt_prog_compiler_static=
9202 if test "$GCC" = yes; then
9203 lt_prog_compiler_wl='-Wl,'
9204 lt_prog_compiler_static='-static'
9208 # All AIX code is PIC.
9209 if test "$host_cpu" = ia64; then
9210 # AIX 5 now supports IA64 processor
9211 lt_prog_compiler_static='-Bstatic'
9218 # see comment about AmigaOS4 .so support
9219 lt_prog_compiler_pic='-fPIC'
9222 # FIXME: we need at least 68020 code to build shared libraries, but
9223 # adding the `-m68020' flag to GCC prevents building anything better,
9225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9231 # PIC is the default for these OSes.
9234 mingw* | cygwin* | pw32* | os2* | cegcc*)
9235 # This hack is so that the source file can tell whether it is being
9236 # built for inclusion in a dll (and should export symbols for example).
9237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9238 # (--disable-auto-import) libraries
9239 lt_prog_compiler_pic='-DDLL_EXPORT'
9242 darwin* | rhapsody*)
9243 # PIC is the default on this platform
9244 # Common symbols not allowed in MH_DYLIB files
9245 lt_prog_compiler_pic='-fno-common'
9249 # PIC is the default for Haiku.
9250 # The "-static" flag exists, but is broken.
9251 lt_prog_compiler_static=
9255 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9256 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9257 # sets the default TLS model and affects inlining.
9263 lt_prog_compiler_pic='-fPIC'
9269 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9270 # Instead, we relocate shared libraries at runtime.
9274 # Just because we use GCC doesn't mean we suddenly get shared libraries
9275 # on systems that don't support them.
9276 lt_prog_compiler_can_build_shared=no
9281 # QNX uses GNU C++, but need to define -shared option too, otherwise
9283 lt_prog_compiler_pic='-fPIC -shared'
9287 if test -d /usr/nec; then
9288 lt_prog_compiler_pic=-Kconform_pic
9293 lt_prog_compiler_pic='-fPIC'
9297 case $cc_basename in
9298 nvcc*) # Cuda Compiler Driver 2.2
9299 lt_prog_compiler_wl='-Xlinker '
9300 if test -n "$lt_prog_compiler_pic"; then
9301 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9306 # PORTME Check for flag to pass linker flags through the system compiler.
9309 lt_prog_compiler_wl='-Wl,'
9310 if test "$host_cpu" = ia64; then
9311 # AIX 5 now supports IA64 processor
9312 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9318 mingw* | cygwin* | pw32* | os2* | cegcc*)
9319 # This hack is so that the source file can tell whether it is being
9320 # built for inclusion in a dll (and should export symbols for example).
9321 lt_prog_compiler_pic='-DDLL_EXPORT'
9324 hpux9* | hpux10* | hpux11*)
9325 lt_prog_compiler_wl='-Wl,'
9326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9333 lt_prog_compiler_pic='+Z'
9336 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9337 lt_prog_compiler_static='${wl}-a ${wl}archive'
9340 irix5* | irix6* | nonstopux*)
9341 lt_prog_compiler_wl='-Wl,'
9342 # PIC (with -KPIC) is the default.
9343 lt_prog_compiler_static='-non_shared'
9346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9347 case $cc_basename in
9348 # old Intel for x86_64 which still supported -KPIC.
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-static'
9354 # icc used to be incompatible with GCC.
9355 # ICC 10 doesn't accept -KPIC any more.
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-fPIC'
9359 lt_prog_compiler_static='-static'
9361 # Lahey Fortran 8.1.
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_pic='--shared'
9365 lt_prog_compiler_static='--static'
9368 # NAG Fortran compiler
9369 lt_prog_compiler_wl='-Wl,-Wl,,'
9370 lt_prog_compiler_pic='-PIC'
9371 lt_prog_compiler_static='-Bstatic'
9373 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9374 # Portland Group compilers (*not* the Pentium gcc compiler,
9375 # which looks to be a dead project)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_pic='-fpic'
9378 lt_prog_compiler_static='-Bstatic'
9381 lt_prog_compiler_wl='-Wl,'
9382 # All Alpha code is PIC.
9383 lt_prog_compiler_static='-non_shared'
9385 xl* | bgxl* | bgf* | mpixl*)
9386 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9387 lt_prog_compiler_wl='-Wl,'
9388 lt_prog_compiler_pic='-qpic'
9389 lt_prog_compiler_static='-qstaticlink'
9392 case `$CC -V 2>&1 | sed 5q` in
9393 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9394 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 lt_prog_compiler_wl=''
9399 *Sun\ F* | *Sun*Fortran*)
9400 lt_prog_compiler_pic='-KPIC'
9401 lt_prog_compiler_static='-Bstatic'
9402 lt_prog_compiler_wl='-Qoption ld '
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 lt_prog_compiler_wl='-Wl,'
9410 *Intel*\ [CF]*Compiler*)
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_pic='-fPIC'
9413 lt_prog_compiler_static='-static'
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='-fpic'
9418 lt_prog_compiler_static='-Bstatic'
9426 lt_prog_compiler_pic='-KPIC'
9427 lt_prog_compiler_static='-Bstatic'
9431 # QNX uses GNU C++, but need to define -shared option too, otherwise
9433 lt_prog_compiler_pic='-fPIC -shared'
9436 osf3* | osf4* | osf5*)
9437 lt_prog_compiler_wl='-Wl,'
9438 # All OSF/1 code is PIC.
9439 lt_prog_compiler_static='-non_shared'
9443 lt_prog_compiler_static='-non_shared'
9447 lt_prog_compiler_pic='-KPIC'
9448 lt_prog_compiler_static='-Bstatic'
9449 case $cc_basename in
9450 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9451 lt_prog_compiler_wl='-Qoption ld ';;
9453 lt_prog_compiler_wl='-Wl,';;
9458 lt_prog_compiler_wl='-Qoption ld '
9459 lt_prog_compiler_pic='-PIC'
9460 lt_prog_compiler_static='-Bstatic'
9463 sysv4 | sysv4.2uw2* | sysv4.3*)
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='-KPIC'
9466 lt_prog_compiler_static='-Bstatic'
9470 if test -d /usr/nec ;then
9471 lt_prog_compiler_pic='-Kconform_pic'
9472 lt_prog_compiler_static='-Bstatic'
9476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9483 lt_prog_compiler_wl='-Wl,'
9484 lt_prog_compiler_can_build_shared=no
9488 lt_prog_compiler_pic='-pic'
9489 lt_prog_compiler_static='-Bstatic'
9493 lt_prog_compiler_can_build_shared=no
9499 # For platforms which do not support PIC, -DPIC is meaningless:
9501 lt_prog_compiler_pic=
9504 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9510 if ${lt_cv_prog_compiler_pic+:} false; then :
9511 $as_echo_n "(cached) " >&6
9513 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9516 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9517 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9520 # Check to make sure the PIC flag actually works.
9522 if test -n "$lt_prog_compiler_pic"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9524 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9525 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9526 $as_echo_n "(cached) " >&6
9528 lt_cv_prog_compiler_pic_works=no
9529 ac_outfile=conftest.$ac_objext
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9532 # Insert the option either (1) after the last *FLAGS variable, or
9533 # (2) before a word containing "conftest.", or (3) at the end.
9534 # Note that $ac_compile itself does not contain backslashes and begins
9535 # with a dollar sign (not a hyphen), so the echo should work correctly.
9536 # The option is referenced via a variable to avoid confusing sed.
9537 lt_compile=`echo "$ac_compile" | $SED \
9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540 -e 's:$: $lt_compiler_flag:'`
9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542 (eval "$lt_compile" 2>conftest.err)
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 if (exit $ac_status) && test -s "$ac_outfile"; then
9547 # The compiler can only warn and ignore the option if not recognized
9548 # So say no if there are warnings other than the usual output.
9549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler_pic_works=yes
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9559 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9561 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9562 case $lt_prog_compiler_pic in
9564 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9567 lt_prog_compiler_pic=
9568 lt_prog_compiler_can_build_shared=no
9584 # Check to make sure the static flag actually works.
9586 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9589 if ${lt_cv_prog_compiler_static_works+:} false; then :
9590 $as_echo_n "(cached) " >&6
9592 lt_cv_prog_compiler_static_works=no
9593 save_LDFLAGS="$LDFLAGS"
9594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9597 # The linker can only warn and ignore the option if not recognized
9598 # So say no if there are warnings
9599 if test -s conftest.err; then
9600 # Append any errors to the config.log.
9601 cat conftest.err 1>&5
9602 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604 if diff conftest.exp conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_static_works=yes
9608 lt_cv_prog_compiler_static_works=yes
9612 LDFLAGS="$save_LDFLAGS"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9616 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9618 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9621 lt_prog_compiler_static=
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9632 if ${lt_cv_prog_compiler_c_o+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 lt_cv_prog_compiler_c_o=no
9636 $RM -r conftest 2>/dev/null
9640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642 lt_compiler_flag="-o out/conftest2.$ac_objext"
9643 # Insert the option either (1) after the last *FLAGS variable, or
9644 # (2) before a word containing "conftest.", or (3) at the end.
9645 # Note that $ac_compile itself does not contain backslashes and begins
9646 # with a dollar sign (not a hyphen), so the echo should work correctly.
9647 lt_compile=`echo "$ac_compile" | $SED \
9648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9650 -e 's:$: $lt_compiler_flag:'`
9651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9652 (eval "$lt_compile" 2>out/conftest.err)
9654 cat out/conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9658 # The compiler can only warn and ignore the option if not recognized
9659 # So say no if there are warnings
9660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_c_o=yes
9668 # SGI C++ compiler will create directory out/ii_files/ for
9669 # template instantiation
9670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9671 $RM out/* && rmdir out
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9687 if ${lt_cv_prog_compiler_c_o+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 lt_cv_prog_compiler_c_o=no
9691 $RM -r conftest 2>/dev/null
9695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9697 lt_compiler_flag="-o out/conftest2.$ac_objext"
9698 # Insert the option either (1) after the last *FLAGS variable, or
9699 # (2) before a word containing "conftest.", or (3) at the end.
9700 # Note that $ac_compile itself does not contain backslashes and begins
9701 # with a dollar sign (not a hyphen), so the echo should work correctly.
9702 lt_compile=`echo "$ac_compile" | $SED \
9703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705 -e 's:$: $lt_compiler_flag:'`
9706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9707 (eval "$lt_compile" 2>out/conftest.err)
9709 cat out/conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9713 # The compiler can only warn and ignore the option if not recognized
9714 # So say no if there are warnings
9715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9718 lt_cv_prog_compiler_c_o=yes
9723 # SGI C++ compiler will create directory out/ii_files/ for
9724 # template instantiation
9725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9726 $RM out/* && rmdir out
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9738 hard_links="nottested"
9739 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9740 # do not overwrite the value of need_locks provided by the user
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9742 $as_echo_n "checking if we can lock with hard links... " >&6; }
9745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9747 ln conftest.a conftest.b 2>&5 || hard_links=no
9748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9750 $as_echo "$hard_links" >&6; }
9751 if test "$hard_links" = no; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9769 allow_undefined_flag=
9770 always_export_symbols=no
9772 archive_expsym_cmds=
9773 compiler_needs_object=no
9774 enable_shared_with_static_runtimes=no
9775 export_dynamic_flag_spec=
9776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9777 hardcode_automatic=no
9779 hardcode_direct_absolute=no
9780 hardcode_libdir_flag_spec=
9781 hardcode_libdir_separator=
9783 hardcode_shlibpath_var=unsupported
9785 link_all_deplibs=unknown
9788 old_archive_from_new_cmds=
9789 old_archive_from_expsyms_cmds=
9790 thread_safe_flag_spec=
9791 whole_archive_flag_spec=
9792 # include_expsyms should be a list of space-separated symbols to be *always*
9793 # included in the symbol list
9795 # exclude_expsyms can be an extended regexp of symbols to exclude
9796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9798 # as well as any symbol that contains `d'.
9799 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9801 # platforms (ab)use it in PIC code, but their linkers get confused if
9802 # the symbol is explicitly referenced. Since portable code cannot
9803 # rely on this symbol name, it's probably fine to never include it in
9804 # preloaded symbol tables.
9805 # Exclude shared library initialization/finalization symbols.
9806 extract_expsyms_cmds=
9809 cygwin* | mingw* | pw32* | cegcc*)
9810 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9811 # When not using gcc, we currently assume that we are using
9812 # Microsoft Visual C++.
9813 if test "$GCC" != yes; then
9818 # we just hope/assume this is gcc and not c89 (= MSVC++)
9824 linux* | k*bsd*-gnu | gnu*)
9831 # On some targets, GNU ld is compatible enough with the native linker
9832 # that we're better off using the native interface for both.
9833 lt_use_gnu_ld_interface=no
9834 if test "$with_gnu_ld" = yes; then
9837 # The AIX port of GNU ld has always aspired to compatibility
9838 # with the native linker. However, as the warning in the GNU ld
9839 # block says, versions before 2.19.5* couldn't really create working
9840 # shared libraries, regardless of the interface used.
9841 case `$LD -v 2>&1` in
9842 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9843 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9844 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9846 lt_use_gnu_ld_interface=yes
9851 lt_use_gnu_ld_interface=yes
9856 if test "$lt_use_gnu_ld_interface" = yes; then
9857 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 # Set some defaults for GNU ld with shared library support. These
9861 # are reset later if shared libraries are not supported. Putting them
9862 # here allows them to be overridden if necessary.
9863 runpath_var=LD_RUN_PATH
9864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865 export_dynamic_flag_spec='${wl}--export-dynamic'
9866 # ancient GNU ld didn't support --whole-archive et. al.
9867 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9870 whole_archive_flag_spec=
9872 supports_anon_versioning=no
9873 case `$LD -v 2>&1` in
9874 *GNU\ gold*) supports_anon_versioning=yes ;;
9875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9878 *\ 2.11.*) ;; # other 2.11 versions
9879 *) supports_anon_versioning=yes ;;
9882 # See if GNU ld supports shared libraries.
9885 # On AIX/PPC, the GNU linker is very broken
9886 if test "$host_cpu" != ia64; then
9890 *** Warning: the GNU linker, at least up to release 2.19, is reported
9891 *** to be unable to reliably create shared libraries on AIX.
9892 *** Therefore, libtool is disabling shared libraries support. If you
9893 *** really care for shared libraries, you may want to install binutils
9894 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9895 *** You will then need to restart the configuration process.
9904 # see comment about AmigaOS4 .so support
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds=''
9909 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)'
9910 hardcode_libdir_flag_spec='-L$libdir'
9911 hardcode_minus_L=yes
9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 allow_undefined_flag=unsupported
9919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9920 # support --undefined. This deserves some investigation. FIXME
9921 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9927 cygwin* | mingw* | pw32* | cegcc*)
9928 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9929 # as there is no search path for DLLs.
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 export_dynamic_flag_spec='${wl}--export-all-symbols'
9932 allow_undefined_flag=unsupported
9933 always_export_symbols=no
9934 enable_shared_with_static_runtimes=yes
9935 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'
9936 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9940 # If the export-symbols file already is a .def file (1st line
9941 # is EXPORTS), use it as is; otherwise, prepend...
9942 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9943 cp $export_symbols $output_objdir/$soname.def;
9945 echo EXPORTS > $output_objdir/$soname.def;
9946 cat $export_symbols >> $output_objdir/$soname.def;
9948 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 link_all_deplibs=yes
9961 hardcode_shlibpath_var=no
9962 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9963 export_dynamic_flag_spec='${wl}-E'
9964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9965 # Instead, shared libraries are loaded at an image base (0x10000000 by
9966 # default) and relocated if they conflict, which is a slow very memory
9967 # consuming and fragmenting process. To avoid this, we pick a random,
9968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9971 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'
9974 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9976 if test "$host_os" = linux-dietlibc; then
9977 case $cc_basename in
9978 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9981 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9982 && test "$tmp_diet" = no
9984 tmp_addflag=' $pic_flag'
9985 tmp_sharedflag='-shared'
9986 case $cc_basename,$host_cpu in
9987 pgcc*) # Portland Group C compiler
9988 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'
9989 tmp_addflag=' $pic_flag'
9991 pgf77* | pgf90* | pgf95* | pgfortran*)
9992 # Portland Group f77 and f90 compilers
9993 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'
9994 tmp_addflag=' $pic_flag -Mnomain' ;;
9995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9996 tmp_addflag=' -i_dynamic' ;;
9997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9998 tmp_addflag=' -i_dynamic -nofor_main' ;;
9999 ifc* | ifort*) # Intel Fortran compiler
10000 tmp_addflag=' -nofor_main' ;;
10001 lf95*) # Lahey Fortran 8.1
10002 whole_archive_flag_spec=
10003 tmp_sharedflag='--shared' ;;
10004 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10005 tmp_sharedflag='-qmkshrobj'
10007 nvcc*) # Cuda Compiler Driver 2.2
10008 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'
10009 compiler_needs_object=yes
10012 case `$CC -V 2>&1 | sed 5q` in
10013 *Sun\ C*) # Sun C 5.9
10014 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'
10015 compiler_needs_object=yes
10016 tmp_sharedflag='-G' ;;
10017 *Sun\ F*) # Sun Fortran 8.3
10018 tmp_sharedflag='-G' ;;
10020 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022 if test "x$supports_anon_versioning" = xyes; then
10023 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10025 echo "local: *; };" >> $output_objdir/$libname.ver~
10026 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10029 case $cc_basename in
10030 xlf* | bgf* | bgxlf* | mpixlf*)
10031 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10032 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10035 if test "x$supports_anon_versioning" = xyes; then
10036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10038 echo "local: *; };" >> $output_objdir/$libname.ver~
10039 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10048 netbsd* | netbsdelf*-gnu)
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10063 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10064 *** create shared libraries on Solaris systems. Therefore, libtool
10065 *** is disabling shared libraries support. We urge you to upgrade GNU
10066 *** binutils to release 2.9.1 or newer. Another option is to modify
10067 *** your PATH or compiler configuration so that the native linker is
10068 *** used, and then restart.
10071 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10080 case `$LD -v 2>&1` in
10081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10085 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10086 *** reliably create shared libraries on SCO systems. Therefore, libtool
10087 *** is disabling shared libraries support. We urge you to upgrade GNU
10088 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10089 *** your PATH or compiler configuration so that the native linker is
10090 *** used, and then restart.
10095 # For security reasons, it is highly recommended that you always
10096 # use absolute paths for naming shared libraries, and exclude the
10097 # DT_RUNPATH tag from executables and libraries. But doing so
10098 # requires that you compile everything twice, which is a pain.
10099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10127 if test "$ld_shlibs" = no; then
10129 hardcode_libdir_flag_spec=
10130 export_dynamic_flag_spec=
10131 whole_archive_flag_spec=
10134 # PORTME fill in a description of your system's linker (not GNU ld)
10137 allow_undefined_flag=unsupported
10138 always_export_symbols=yes
10139 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'
10140 # Note: this linker hardcodes the directories in LIBPATH if there
10141 # are no directories specified by -L.
10142 hardcode_minus_L=yes
10143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10144 # Neither direct hardcoding nor static linking is supported with a
10146 hardcode_direct=unsupported
10151 if test "$host_cpu" = ia64; then
10152 # On IA64, the linker does run time linking by default, so we don't
10153 # have to do anything special.
10154 aix_use_runtimelinking=no
10155 exp_sym_flag='-Bexport'
10158 # If we're using GNU nm, then we don't want the "-C" option.
10159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10160 # Also, AIX nm treats weak defined symbols like other global
10161 # defined symbols, whereas GNU nm marks them as "W".
10162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10163 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'
10165 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'
10167 aix_use_runtimelinking=no
10169 # Test if we are trying to use run time linking or normal
10170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10171 # need to do runtime linking.
10172 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10173 for ld_flag in $LDFLAGS; do
10174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10175 aix_use_runtimelinking=yes
10182 exp_sym_flag='-bexport'
10183 no_entry_flag='-bnoentry'
10186 # When large executables or shared objects are built, AIX ld can
10187 # have problems creating the table of contents. If linking a library
10188 # or program results in "error TOC overflow" add -mminimal-toc to
10189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10193 hardcode_direct=yes
10194 hardcode_direct_absolute=yes
10195 hardcode_libdir_separator=':'
10196 link_all_deplibs=yes
10197 file_list_spec='${wl}-f,'
10199 if test "$GCC" = yes; then
10200 case $host_os in aix4.[012]|aix4.[012].*)
10201 # We only want to do this on AIX 4.2 and lower, the check
10202 # below for broken collect2 doesn't work under 4.3+
10203 collect2name=`${CC} -print-prog-name=collect2`
10204 if test -f "$collect2name" &&
10205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10207 # We have reworked collect2
10210 # We have old collect2
10211 hardcode_direct=unsupported
10212 # It fails to find uninstalled libraries when the uninstalled
10213 # path is not listed in the libpath. Setting hardcode_minus_L
10214 # to unsupported forces relinking
10215 hardcode_minus_L=yes
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_libdir_separator=
10221 shared_flag='-shared'
10222 if test "$aix_use_runtimelinking" = yes; then
10223 shared_flag="$shared_flag "'${wl}-G'
10225 link_all_deplibs=no
10228 if test "$host_cpu" = ia64; then
10229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10230 # chokes on -Wl,-G. The following line is correct:
10233 if test "$aix_use_runtimelinking" = yes; then
10234 shared_flag='${wl}-G'
10236 shared_flag='${wl}-bM:SRE'
10241 export_dynamic_flag_spec='${wl}-bexpall'
10242 # It seems that -bexpall does not export symbols beginning with
10243 # underscore (_), so it is better to generate a list of symbols to export.
10244 always_export_symbols=yes
10245 if test "$aix_use_runtimelinking" = yes; then
10246 # Warning - without using the other runtime loading flags (-brtl),
10247 # -berok will link without error, but may produce a broken library.
10248 allow_undefined_flag='-berok'
10249 # Determine the default libpath from the value encoded in an
10250 # empty executable.
10251 if test "${lt_cv_aix_libpath+set}" = set; then
10252 aix_libpath=$lt_cv_aix_libpath
10254 if ${lt_cv_aix_libpath_+:} false; then :
10255 $as_echo_n "(cached) " >&6
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10268 if ac_fn_c_try_link "$LINENO"; then :
10270 lt_aix_libpath_sed='
10271 /Import File Strings/,/^$/ {
10273 s/^0 *\([^ ]*\) *$/\1/
10277 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10278 # Check for a 64-bit object if we didn't find anything.
10279 if test -z "$lt_cv_aix_libpath_"; then
10280 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10283 rm -f core conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 if test -z "$lt_cv_aix_libpath_"; then
10286 lt_cv_aix_libpath_="/usr/lib:/lib"
10291 aix_libpath=$lt_cv_aix_libpath_
10294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10295 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"
10297 if test "$host_cpu" = ia64; then
10298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10299 allow_undefined_flag="-z nodefs"
10300 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"
10302 # Determine the default libpath from the value encoded in an
10303 # empty executable.
10304 if test "${lt_cv_aix_libpath+set}" = set; then
10305 aix_libpath=$lt_cv_aix_libpath
10307 if ${lt_cv_aix_libpath_+:} false; then :
10308 $as_echo_n "(cached) " >&6
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10321 if ac_fn_c_try_link "$LINENO"; then :
10323 lt_aix_libpath_sed='
10324 /Import File Strings/,/^$/ {
10326 s/^0 *\([^ ]*\) *$/\1/
10330 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 # Check for a 64-bit object if we didn't find anything.
10332 if test -z "$lt_cv_aix_libpath_"; then
10333 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 if test -z "$lt_cv_aix_libpath_"; then
10339 lt_cv_aix_libpath_="/usr/lib:/lib"
10344 aix_libpath=$lt_cv_aix_libpath_
10347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 # Warning - without using the other run time loading flags,
10349 # -berok will link without error, but may produce a broken library.
10350 no_undefined_flag=' ${wl}-bernotok'
10351 allow_undefined_flag=' ${wl}-berok'
10352 if test "$with_gnu_ld" = yes; then
10353 # We only use this code for GNU lds that support --whole-archive.
10354 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10356 # Exported symbols can be pulled into shared objects from archives
10357 whole_archive_flag_spec='$convenience'
10359 archive_cmds_need_lc=yes
10360 # This is similar to how AIX traditionally builds its shared libraries.
10361 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'
10369 # see comment about AmigaOS4 .so support
10370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371 archive_expsym_cmds=''
10374 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)'
10375 hardcode_libdir_flag_spec='-L$libdir'
10376 hardcode_minus_L=yes
10382 export_dynamic_flag_spec=-rdynamic
10385 cygwin* | mingw* | pw32* | cegcc*)
10386 # When not using gcc, we currently assume that we are using
10387 # Microsoft Visual C++.
10388 # hardcode_libdir_flag_spec is actually meaningless, as there is
10389 # no search path for DLLs.
10390 case $cc_basename in
10393 hardcode_libdir_flag_spec=' '
10394 allow_undefined_flag=unsupported
10395 always_export_symbols=yes
10397 # Tell ltmain to make .lib files, not .a files.
10399 # Tell ltmain to make .dll files, not .so files.
10401 # FIXME: Setting linknames here is a bad hack.
10402 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10403 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10404 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10406 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10408 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10410 # The linker will not automatically build a static lib if we build a DLL.
10411 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10412 enable_shared_with_static_runtimes=yes
10413 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10416 old_postinstall_cmds='chmod 644 $oldlib'
10417 postlink_cmds='lt_outputfile="@OUTPUT@"~
10418 lt_tool_outputfile="@TOOL_OUTPUT@"~
10419 case $lt_outputfile in
10422 lt_outputfile="$lt_outputfile.exe"
10423 lt_tool_outputfile="$lt_tool_outputfile.exe"
10426 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10427 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10428 $RM "$lt_outputfile.manifest";
10432 # Assume MSVC wrapper
10433 hardcode_libdir_flag_spec=' '
10434 allow_undefined_flag=unsupported
10435 # Tell ltmain to make .lib files, not .a files.
10437 # Tell ltmain to make .dll files, not .so files.
10439 # FIXME: Setting linknames here is a bad hack.
10440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10441 # The linker will automatically build a .lib file if we build a DLL.
10442 old_archive_from_new_cmds='true'
10443 # FIXME: Should let the user specify the lib program.
10444 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10445 enable_shared_with_static_runtimes=yes
10450 darwin* | rhapsody*)
10453 archive_cmds_need_lc=no
10455 hardcode_automatic=yes
10456 hardcode_shlibpath_var=unsupported
10457 if test "$lt_cv_ld_force_load" = "yes"; then
10458 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\"`'
10461 whole_archive_flag_spec=''
10463 link_all_deplibs=yes
10464 allow_undefined_flag="$_lt_dar_allow_undefined"
10465 case $cc_basename in
10466 ifort*) _lt_dar_can_shared=yes ;;
10467 *) _lt_dar_can_shared=$GCC ;;
10469 if test "$_lt_dar_can_shared" = "yes"; then
10470 output_verbose_link_cmd=func_echo_all
10471 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10472 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10473 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}"
10474 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}"
10483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_libdir_flag_spec='-L$libdir'
10485 hardcode_shlibpath_var=no
10488 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10489 # support. Future versions do this automatically, but an explicit c++rt0.o
10490 # does not break anything, and helps significantly (at the cost of a little
10493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10494 hardcode_libdir_flag_spec='-R$libdir'
10495 hardcode_direct=yes
10496 hardcode_shlibpath_var=no
10499 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502 hardcode_direct=yes
10503 hardcode_minus_L=yes
10504 hardcode_shlibpath_var=no
10507 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10508 freebsd* | dragonfly*)
10509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10510 hardcode_libdir_flag_spec='-R$libdir'
10511 hardcode_direct=yes
10512 hardcode_shlibpath_var=no
10516 if test "$GCC" = yes; then
10517 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'
10519 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'
10521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_separator=:
10523 hardcode_direct=yes
10525 # hardcode_minus_L: Not really in the search PATH,
10526 # but as the default location of the library.
10527 hardcode_minus_L=yes
10528 export_dynamic_flag_spec='${wl}-E'
10532 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10533 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10537 if test "$with_gnu_ld" = no; then
10538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10539 hardcode_libdir_separator=:
10540 hardcode_direct=yes
10541 hardcode_direct_absolute=yes
10542 export_dynamic_flag_spec='${wl}-E'
10543 # hardcode_minus_L: Not really in the search PATH,
10544 # but as the default location of the library.
10545 hardcode_minus_L=yes
10550 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10553 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10565 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10572 # Older versions of the 11.00 compiler do not understand -b yet
10573 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10575 $as_echo_n "checking if $CC understands -b... " >&6; }
10576 if ${lt_cv_prog_compiler__b+:} false; then :
10577 $as_echo_n "(cached) " >&6
10579 lt_cv_prog_compiler__b=no
10580 save_LDFLAGS="$LDFLAGS"
10581 LDFLAGS="$LDFLAGS -b"
10582 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10584 # The linker can only warn and ignore the option if not recognized
10585 # So say no if there are warnings
10586 if test -s conftest.err; then
10587 # Append any errors to the config.log.
10588 cat conftest.err 1>&5
10589 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10591 if diff conftest.exp conftest.er2 >/dev/null; then
10592 lt_cv_prog_compiler__b=yes
10595 lt_cv_prog_compiler__b=yes
10599 LDFLAGS="$save_LDFLAGS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10603 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10605 if test x"$lt_cv_prog_compiler__b" = xyes; then
10606 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10614 if test "$with_gnu_ld" = no; then
10615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10616 hardcode_libdir_separator=:
10621 hardcode_shlibpath_var=no
10624 hardcode_direct=yes
10625 hardcode_direct_absolute=yes
10626 export_dynamic_flag_spec='${wl}-E'
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L=yes
10636 irix5* | irix6* | nonstopux*)
10637 if test "$GCC" = yes; then
10638 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'
10639 # Try to use the -exported_symbol ld option, if it does not
10640 # work, assume that -exports_file does not work either and
10641 # implicitly export all symbols.
10642 # This should be the same for all languages, so no per-tag cache variable.
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10644 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10645 if ${lt_cv_irix_exported_symbol+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 save_LDFLAGS="$LDFLAGS"
10649 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 int foo (void) { return 0; }
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 lt_cv_irix_exported_symbol=yes
10657 lt_cv_irix_exported_symbol=no
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LDFLAGS="$save_LDFLAGS"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10664 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10665 if test "$lt_cv_irix_exported_symbol" = yes; then
10666 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'
10669 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'
10670 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'
10672 archive_cmds_need_lc='no'
10673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674 hardcode_libdir_separator=:
10676 link_all_deplibs=yes
10679 netbsd* | netbsdelf*-gnu)
10680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10685 hardcode_libdir_flag_spec='-R$libdir'
10686 hardcode_direct=yes
10687 hardcode_shlibpath_var=no
10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 hardcode_direct=yes
10693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694 hardcode_libdir_separator=:
10695 hardcode_shlibpath_var=no
10702 if test -f /usr/libexec/ld.so; then
10703 hardcode_direct=yes
10704 hardcode_shlibpath_var=no
10705 hardcode_direct_absolute=yes
10706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10710 export_dynamic_flag_spec='${wl}-E'
10713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_libdir_flag_spec='-R$libdir'
10718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_minus_L=yes
10731 allow_undefined_flag=unsupported
10732 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'
10733 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10737 if test "$GCC" = yes; then
10738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10739 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'
10741 allow_undefined_flag=' -expect_unresolved \*'
10742 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'
10744 archive_cmds_need_lc='no'
10745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator=:
10749 osf4* | osf5*) # as osf3* with the addition of -msym flag
10750 if test "$GCC" = yes; then
10751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10752 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'
10753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10755 allow_undefined_flag=' -expect_unresolved \*'
10756 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'
10757 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~
10758 $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'
10760 # Both c and cxx compiler support -rpath directly
10761 hardcode_libdir_flag_spec='-rpath $libdir'
10763 archive_cmds_need_lc='no'
10764 hardcode_libdir_separator=:
10768 no_undefined_flag=' -z defs'
10769 if test "$GCC" = yes; then
10771 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10773 $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'
10775 case `$CC -V 2>&1` in
10778 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10784 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10786 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10790 hardcode_libdir_flag_spec='-R$libdir'
10791 hardcode_shlibpath_var=no
10793 solaris2.[0-5] | solaris2.[0-5].*) ;;
10795 # The compiler driver will combine and reorder linker options,
10796 # but understands `-z linker_flag'. GCC discards it without `$wl',
10797 # but is careful enough not to reorder.
10798 # Supported since Solaris 2.6 (maybe 2.5.1?)
10799 if test "$GCC" = yes; then
10800 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10802 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10806 link_all_deplibs=yes
10810 if test "x$host_vendor" = xsequent; then
10811 # Use $CC to link under sequent, because it throws in some extra .o
10812 # files that make .init and .fini sections work.
10813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_libdir_flag_spec='-L$libdir'
10818 hardcode_direct=yes
10819 hardcode_minus_L=yes
10820 hardcode_shlibpath_var=no
10824 case $host_vendor in
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes # is this really true???
10830 ## LD is ld it makes a PLAMLIB
10831 ## CC just makes a GrossModule.
10832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10833 reload_cmds='$CC -r -o $output$reload_objs'
10837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10841 runpath_var='LD_RUN_PATH'
10842 hardcode_shlibpath_var=no
10846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847 hardcode_shlibpath_var=no
10848 export_dynamic_flag_spec='-Bexport'
10852 if test -d /usr/nec; then
10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854 hardcode_shlibpath_var=no
10855 runpath_var=LD_RUN_PATH
10856 hardcode_runpath_var=yes
10861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10862 no_undefined_flag='${wl}-z,text'
10863 archive_cmds_need_lc=no
10864 hardcode_shlibpath_var=no
10865 runpath_var='LD_RUN_PATH'
10867 if test "$GCC" = yes; then
10868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 sysv5* | sco3.2v5* | sco5v6*)
10877 # Note: We can NOT use -z defs as we might desire, because we do not
10878 # link with -lc, and that would cause any symbols used from libc to
10879 # always be unresolved, which means just about no library would
10880 # ever link correctly. If we're not using GNU ld we use -z text
10881 # though, which does catch some bad symbols but isn't as heavy-handed
10883 no_undefined_flag='${wl}-z,text'
10884 allow_undefined_flag='${wl}-z,nodefs'
10885 archive_cmds_need_lc=no
10886 hardcode_shlibpath_var=no
10887 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10888 hardcode_libdir_separator=':'
10889 link_all_deplibs=yes
10890 export_dynamic_flag_spec='${wl}-Bexport'
10891 runpath_var='LD_RUN_PATH'
10893 if test "$GCC" = yes; then
10894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_libdir_flag_spec='-L$libdir'
10905 hardcode_shlibpath_var=no
10913 if test x$host_vendor = xsni; then
10915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10916 export_dynamic_flag_spec='${wl}-Blargedynsym'
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10923 $as_echo "$ld_shlibs" >&6; }
10924 test "$ld_shlibs" = no && can_build_shared=no
10926 with_gnu_ld=$with_gnu_ld
10943 # Do we need to explicitly link libc?
10945 case "x$archive_cmds_need_lc" in
10947 # Assume -lc should be added
10948 archive_cmds_need_lc=yes
10950 if test "$enable_shared" = yes && test "$GCC" = yes; then
10951 case $archive_cmds in
10953 # FIXME: we may have to deal with multi-command sequences.
10956 # Test whether the compiler implicitly links with -lc since on some
10957 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10958 # to ld, don't add -lc before -lgcc.
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10961 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10962 $as_echo_n "(cached) " >&6
10965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10968 (eval $ac_compile) 2>&5
10970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971 test $ac_status = 0; } 2>conftest.err; then
10974 libobjs=conftest.$ac_objext
10976 wl=$lt_prog_compiler_wl
10977 pic_flag=$lt_prog_compiler_pic
10983 lt_save_allow_undefined_flag=$allow_undefined_flag
10984 allow_undefined_flag=
10985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10986 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989 test $ac_status = 0; }
10991 lt_cv_archive_cmds_need_lc=no
10993 lt_cv_archive_cmds_need_lc=yes
10995 allow_undefined_flag=$lt_save_allow_undefined_flag
10997 cat conftest.err 1>&5
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11003 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11004 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11163 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11165 if test "$GCC" = yes; then
11167 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11168 *) lt_awk_arg="/^libraries:/" ;;
11171 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11172 *) lt_sed_strip_eq="s,=/,/,g" ;;
11174 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11175 case $lt_search_path_spec in
11177 # if the path contains ";" then we assume it to be the separator
11178 # otherwise default to the standard path separator (i.e. ":") - it is
11179 # assumed that no part of a normal pathname contains ";" but that should
11180 # okay in the real world where ";" in dirpaths is itself problematic.
11181 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11187 # Ok, now we have the path, separated by spaces, we can step through it
11188 # and add multilib dir if necessary.
11189 lt_tmp_lt_search_path_spec=
11190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11191 for lt_sys_path in $lt_search_path_spec; do
11192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11195 test -d "$lt_sys_path" && \
11196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11199 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11200 BEGIN {RS=" "; FS="/|\n";} {
11203 for (lt_i = NF; lt_i > 0; lt_i--) {
11204 if ($lt_i != "" && $lt_i != ".") {
11205 if ($lt_i == "..") {
11208 if (lt_count == 0) {
11209 lt_foo="/" $lt_i lt_foo;
11216 if (lt_foo != "") { lt_freq[lt_foo]++; }
11217 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11219 # AWK program above erroneously prepends '/' to C:/dos/paths
11222 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11223 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11225 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11227 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11229 library_names_spec=
11230 libname_spec='lib$name'
11234 postuninstall_cmds=
11238 shlibpath_overrides_runpath=unknown
11240 dynamic_linker="$host_os ld.so"
11241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11242 need_lib_prefix=unknown
11243 hardcode_into_libs=no
11245 # when you set need_version to no, make sure it does not cause -set_version
11246 # flags to be left without arguments
11247 need_version=unknown
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11253 shlibpath_var=LIBPATH
11255 # AIX 3 has no versioning support, so we append a major version to the name.
11256 soname_spec='${libname}${release}${shared_ext}$major'
11260 version_type=linux # correct to gnu/linux during the next big refactor
11263 hardcode_into_libs=yes
11264 if test "$host_cpu" = ia64; then
11265 # AIX 5 supports IA64
11266 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11267 shlibpath_var=LD_LIBRARY_PATH
11269 # With GCC up to 2.95.x, collect2 would create an import file
11270 # for dependence libraries. The import file would start with
11271 # the line `#! .'. This would cause the generated library to
11272 # depend on `.', always an invalid library. This was fixed in
11273 # development snapshots of GCC prior to 3.0.
11275 aix4 | aix4.[01] | aix4.[01].*)
11276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11278 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11281 can_build_shared=no
11285 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11286 # soname into executable. Probably we can add versioning support to
11287 # collect2, so additional links can be useful in future.
11288 if test "$aix_use_runtimelinking" = yes; then
11289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11290 # instead of lib<name>.a to let people know that these are not
11291 # typical AIX shared libraries.
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 # We preserve .a as extension for shared libraries through AIX4.2
11295 # and later when we are not doing run time linking.
11296 library_names_spec='${libname}${release}.a $libname.a'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LIBPATH
11306 # Since July 2007 AmigaOS4 officially supports .so libraries.
11307 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 library_names_spec='$libname.ixlibrary $libname.a'
11312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11313 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'
11319 library_names_spec='${libname}${shared_ext}'
11320 dynamic_linker="$host_os ld.so"
11321 shlibpath_var=LIBRARY_PATH
11325 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11332 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11333 # the default ld.so.conf also contains /usr/contrib/lib and
11334 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11335 # libtool to hard-code these into programs
11338 cygwin* | mingw* | pw32* | cegcc*)
11339 version_type=windows
11344 case $GCC,$cc_basename in
11347 library_names_spec='$libname.dll.a'
11348 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11349 postinstall_cmds='base_file=`basename \${file}`~
11350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11351 dldir=$destdir/`dirname \$dlpath`~
11352 test -d \$dldir || mkdir -p \$dldir~
11353 $install_prog $dir/$dlname \$dldir/$dlname~
11354 chmod a+x \$dldir/$dlname~
11355 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11356 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11359 dlpath=$dir/\$dldll~
11361 shlibpath_overrides_runpath=yes
11365 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11366 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11371 # MinGW DLLs use traditional 'lib' prefix
11372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11375 # pw32 DLLs use 'pw' prefix rather than 'lib'
11376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11379 dynamic_linker='Win32 ld.exe'
11384 libname_spec='$name'
11385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11386 library_names_spec='${libname}.dll.lib'
11390 sys_lib_search_path_spec=
11393 for lt_path in $LIB
11396 # Let DOS variable expansion print the short 8.3 style file name.
11397 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11398 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11401 # Convert to MSYS style.
11402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11405 # Convert to unix form, then to dos form, then back to unix form
11406 # but this time dos style (no spaces!) so that the unix form looks
11407 # like /cygdrive/c/PROGRA~1:/cygdr...
11408 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11409 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11410 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11413 sys_lib_search_path_spec="$LIB"
11414 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11415 # It is most probably a Windows format PATH.
11416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11420 # FIXME: find the short name or the path components, as spaces are
11421 # common. (e.g. "Program Files" -> "PROGRA~1")
11425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11426 postinstall_cmds='base_file=`basename \${file}`~
11427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11428 dldir=$destdir/`dirname \$dlpath`~
11429 test -d \$dldir || mkdir -p \$dldir~
11430 $install_prog $dir/$dlname \$dldir/$dlname'
11431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432 dlpath=$dir/\$dldll~
11434 shlibpath_overrides_runpath=yes
11435 dynamic_linker='Win32 link.exe'
11439 # Assume MSVC wrapper
11440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11441 dynamic_linker='Win32 ld.exe'
11444 # FIXME: first we should search . and the directory the executable is in
11448 darwin* | rhapsody*)
11449 dynamic_linker="$host_os dyld"
11450 version_type=darwin
11453 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11454 soname_spec='${libname}${release}${major}$shared_ext'
11455 shlibpath_overrides_runpath=yes
11456 shlibpath_var=DYLD_LIBRARY_PATH
11457 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11459 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11464 version_type=linux # correct to gnu/linux during the next big refactor
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11472 freebsd* | dragonfly*)
11473 # DragonFly does not have aout. When/if they implement a new
11474 # versioning mechanism, adjust this.
11475 if test -x /usr/bin/objformat; then
11476 objformat=`/usr/bin/objformat`
11479 freebsd[23].*) objformat=aout ;;
11480 *) objformat=elf ;;
11483 version_type=freebsd-$objformat
11484 case $version_type in
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11495 shlibpath_var=LD_LIBRARY_PATH
11498 shlibpath_overrides_runpath=yes
11500 freebsd3.[01]* | freebsdelf3.[01]*)
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11506 shlibpath_overrides_runpath=no
11507 hardcode_into_libs=yes
11509 *) # from 4.6 on, and DragonFly
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11517 version_type=linux # correct to gnu/linux during the next big refactor
11520 dynamic_linker="$host_os runtime_loader"
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11526 hardcode_into_libs=yes
11529 hpux9* | hpux10* | hpux11*)
11530 # Give a soname corresponding to the major version so that dld.sl refuses to
11531 # link against other versions.
11538 hardcode_into_libs=yes
11539 dynamic_linker="$host_os dld.so"
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 if test "X$HPUX_IA64_MODE" = X32; then
11545 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11553 hardcode_into_libs=yes
11554 dynamic_linker="$host_os dld.sl"
11555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11564 dynamic_linker="$host_os dld.sl"
11565 shlibpath_var=SHLIB_PATH
11566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 soname_spec='${libname}${release}${shared_ext}$major'
11571 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11572 postinstall_cmds='chmod 555 $lib'
11573 # or fails outright, so override atomically:
11574 install_override_mode=555
11578 version_type=linux # correct to gnu/linux during the next big refactor
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11589 irix5* | irix6* | nonstopux*)
11591 nonstopux*) version_type=nonstopux ;;
11593 if test "$lt_cv_prog_gnu_ld" = yes; then
11594 version_type=linux # correct to gnu/linux during the next big refactor
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11604 irix5* | nonstopux*)
11605 libsuff= shlibsuff=
11608 case $LD in # libtool.m4 will add one of these switches to LD
11609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11610 libsuff= shlibsuff= libmagic=32-bit;;
11611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11612 libsuff=32 shlibsuff=N32 libmagic=N32;;
11613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11615 *) libsuff= shlibsuff= libmagic=never-match;;
11619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11620 shlibpath_overrides_runpath=no
11621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11623 hardcode_into_libs=yes
11626 # No shared lib support for Linux oldld, aout, or coff.
11627 linux*oldld* | linux*aout* | linux*coff*)
11631 # This must be glibc/ELF.
11632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11642 # Some binutils ld are patched to set DT_RUNPATH
11643 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 lt_cv_shlibpath_overrides_runpath=no
11647 save_LDFLAGS=$LDFLAGS
11648 save_libdir=$libdir
11649 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664 lt_cv_shlibpath_overrides_runpath=yes
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LDFLAGS=$save_LDFLAGS
11670 libdir=$save_libdir
11674 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11676 # This implies no fast_install, which is unacceptable.
11677 # Some rework will be needed to allow for fast_install
11678 # before this can be enabled.
11679 hardcode_into_libs=yes
11681 # Append ld.so.conf contents to the search path
11682 if test -f /etc/ld.so.conf; then
11683 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' ' '`
11684 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11687 # We used to test for /lib/ld.so.1 and disable shared libraries on
11688 # powerpc, because MkLinux only supported shared libraries with the
11689 # GNU dynamic linker. Since this was broken with cross compilers,
11690 # most powerpc-linux boxes support dynamic linking these days and
11691 # people can always --disable-shared, the test was removed, and we
11692 # assume the GNU/Linux dynamic linker is in use.
11693 dynamic_linker='GNU/Linux ld.so'
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11705 dynamic_linker='NetBSD ld.elf_so'
11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11715 dynamic_linker='NetBSD (a.out) ld.so'
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 dynamic_linker='NetBSD ld.elf_so'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11723 hardcode_into_libs=yes
11727 version_type=linux # correct to gnu/linux during the next big refactor
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=no
11741 hardcode_into_libs=yes
11742 dynamic_linker='ldqnx.so'
11747 sys_lib_dlsearch_path_spec="/usr/lib"
11749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11752 *) need_version=no ;;
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11759 openbsd2.[89] | openbsd2.[89].*)
11760 shlibpath_overrides_runpath=no
11763 shlibpath_overrides_runpath=yes
11767 shlibpath_overrides_runpath=yes
11772 libname_spec='$name'
11775 library_names_spec='$libname${shared_ext} $libname.a'
11776 dynamic_linker='OS/2 ld.exe'
11777 shlibpath_var=LIBPATH
11780 osf3* | osf4* | osf5*)
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11796 version_type=linux # correct to gnu/linux during the next big refactor
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 hardcode_into_libs=yes
11804 # ldd complains unless libraries are executable
11805 postinstall_cmds='chmod +x $lib'
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=yes
11814 if test "$with_gnu_ld" = yes; then
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 case $host_vendor in
11827 shlibpath_overrides_runpath=no
11829 runpath_var=LD_RUN_PATH
11837 shlibpath_overrides_runpath=no
11838 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11844 if test -d /usr/nec ;then
11845 version_type=linux # correct to gnu/linux during the next big refactor
11846 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11847 soname_spec='$libname${shared_ext}.$major'
11848 shlibpath_var=LD_LIBRARY_PATH
11852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11853 version_type=freebsd-elf
11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=yes
11860 hardcode_into_libs=yes
11861 if test "$with_gnu_ld" = yes; then
11862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11864 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11871 sys_lib_dlsearch_path_spec='/usr/lib'
11875 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11876 version_type=linux # correct to gnu/linux during the next big refactor
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=no
11882 hardcode_into_libs=yes
11886 version_type=linux # correct to gnu/linux during the next big refactor
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 shlibpath_var=LD_LIBRARY_PATH
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11897 $as_echo "$dynamic_linker" >&6; }
11898 test "$dynamic_linker" = no && can_build_shared=no
11900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11901 if test "$GCC" = yes; then
11902 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11905 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11906 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11908 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11909 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12006 if test -n "$hardcode_libdir_flag_spec" ||
12007 test -n "$runpath_var" ||
12008 test "X$hardcode_automatic" = "Xyes" ; then
12010 # We can hardcode non-existent directories.
12011 if test "$hardcode_direct" != no &&
12012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12013 # have to relink, otherwise we might link with an installed library
12014 # when we should be linking with a yet-to-be-installed one
12015 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12016 test "$hardcode_minus_L" != no; then
12017 # Linking always hardcodes the temporary library directory.
12018 hardcode_action=relink
12020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12021 hardcode_action=immediate
12024 # We cannot hardcode anything, or else we can only hardcode existing
12026 hardcode_action=unsupported
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12029 $as_echo "$hardcode_action" >&6; }
12031 if test "$hardcode_action" = relink ||
12032 test "$inherit_rpath" = yes; then
12033 # Fast installation is not supported
12034 enable_fast_install=no
12035 elif test "$shlibpath_overrides_runpath" = yes ||
12036 test "$enable_shared" = no; then
12037 # Fast installation is not necessary
12038 enable_fast_install=needless
12046 if test "x$enable_dlopen" != xyes; then
12047 enable_dlopen=unknown
12048 enable_dlopen_self=unknown
12049 enable_dlopen_self_static=unknown
12056 lt_cv_dlopen="load_add_on"
12058 lt_cv_dlopen_self=yes
12061 mingw* | pw32* | cegcc*)
12062 lt_cv_dlopen="LoadLibrary"
12067 lt_cv_dlopen="dlopen"
12072 # if libdl is installed we need to link against it
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12075 if ${ac_cv_lib_dl_dlopen+:} false; then :
12076 $as_echo_n "(cached) " >&6
12078 ac_check_lib_save_LIBS=$LIBS
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 ac_cv_lib_dl_dlopen=yes
12101 ac_cv_lib_dl_dlopen=no
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12108 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12109 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12113 lt_cv_dlopen="dyld"
12115 lt_cv_dlopen_self=yes
12122 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12123 if test "x$ac_cv_func_shl_load" = xyes; then :
12124 lt_cv_dlopen="shl_load"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12127 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12128 if ${ac_cv_lib_dld_shl_load+:} false; then :
12129 $as_echo_n "(cached) " >&6
12131 ac_check_lib_save_LIBS=$LIBS
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12146 return shl_load ();
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_dld_shl_load=yes
12154 ac_cv_lib_dld_shl_load=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12161 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12162 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12163 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12165 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12166 if test "x$ac_cv_func_dlopen" = xyes; then :
12167 lt_cv_dlopen="dlopen"
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12170 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12171 if ${ac_cv_lib_dl_dlopen+:} false; then :
12172 $as_echo_n "(cached) " >&6
12174 ac_check_lib_save_LIBS=$LIBS
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 ac_cv_lib_dl_dlopen=yes
12197 ac_cv_lib_dl_dlopen=no
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12204 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12205 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12209 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12210 if ${ac_cv_lib_svld_dlopen+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lsvld $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_svld_dlopen=yes
12236 ac_cv_lib_svld_dlopen=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12243 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12244 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12248 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12249 if ${ac_cv_lib_dld_dld_link+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 ac_check_lib_save_LIBS=$LIBS
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12267 return dld_link ();
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_dld_dld_link=yes
12275 ac_cv_lib_dld_dld_link=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12282 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12283 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12284 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12305 if test "x$lt_cv_dlopen" != xno; then
12311 case $lt_cv_dlopen in
12313 save_CPPFLAGS="$CPPFLAGS"
12314 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12316 save_LDFLAGS="$LDFLAGS"
12317 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12320 LIBS="$lt_cv_dlopen_libs $LIBS"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12323 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12324 if ${lt_cv_dlopen_self+:} false; then :
12325 $as_echo_n "(cached) " >&6
12327 if test "$cross_compiling" = yes; then :
12328 lt_cv_dlopen_self=cross
12330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12331 lt_status=$lt_dlunknown
12332 cat > conftest.$ac_ext <<_LT_EOF
12333 #line $LINENO "configure"
12334 #include "confdefs.h"
12343 # define LT_DLGLOBAL RTLD_GLOBAL
12346 # define LT_DLGLOBAL DL_GLOBAL
12348 # define LT_DLGLOBAL 0
12352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12353 find out it does not work in some platform. */
12354 #ifndef LT_DLLAZY_OR_NOW
12356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12359 # define LT_DLLAZY_OR_NOW DL_LAZY
12362 # define LT_DLLAZY_OR_NOW RTLD_NOW
12365 # define LT_DLLAZY_OR_NOW DL_NOW
12367 # define LT_DLLAZY_OR_NOW 0
12374 /* When -fvisbility=hidden is used, assume the code has been annotated
12375 correspondingly for the symbols needed. */
12376 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12377 int fnord () __attribute__((visibility("default")));
12380 int fnord () { return 42; }
12383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12384 int status = $lt_dlunknown;
12388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12391 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12392 else puts (dlerror ());
12394 /* dlclose (self); */
12402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12403 (eval $ac_link) 2>&5
12405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12407 (./conftest; exit; ) >&5 2>/dev/null
12409 case x$lt_status in
12410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12412 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12415 # compilation failed
12416 lt_cv_dlopen_self=no
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12424 $as_echo "$lt_cv_dlopen_self" >&6; }
12426 if test "x$lt_cv_dlopen_self" = xyes; then
12427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12429 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12430 if ${lt_cv_dlopen_self_static+:} false; then :
12431 $as_echo_n "(cached) " >&6
12433 if test "$cross_compiling" = yes; then :
12434 lt_cv_dlopen_self_static=cross
12436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12437 lt_status=$lt_dlunknown
12438 cat > conftest.$ac_ext <<_LT_EOF
12439 #line $LINENO "configure"
12440 #include "confdefs.h"
12449 # define LT_DLGLOBAL RTLD_GLOBAL
12452 # define LT_DLGLOBAL DL_GLOBAL
12454 # define LT_DLGLOBAL 0
12458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12459 find out it does not work in some platform. */
12460 #ifndef LT_DLLAZY_OR_NOW
12462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12465 # define LT_DLLAZY_OR_NOW DL_LAZY
12468 # define LT_DLLAZY_OR_NOW RTLD_NOW
12471 # define LT_DLLAZY_OR_NOW DL_NOW
12473 # define LT_DLLAZY_OR_NOW 0
12480 /* When -fvisbility=hidden is used, assume the code has been annotated
12481 correspondingly for the symbols needed. */
12482 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12483 int fnord () __attribute__((visibility("default")));
12486 int fnord () { return 42; }
12489 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12490 int status = $lt_dlunknown;
12494 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12497 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12498 else puts (dlerror ());
12500 /* dlclose (self); */
12508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12509 (eval $ac_link) 2>&5
12511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12512 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12513 (./conftest; exit; ) >&5 2>/dev/null
12515 case x$lt_status in
12516 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12517 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12518 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12521 # compilation failed
12522 lt_cv_dlopen_self_static=no
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12530 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12533 CPPFLAGS="$save_CPPFLAGS"
12534 LDFLAGS="$save_LDFLAGS"
12539 case $lt_cv_dlopen_self in
12540 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12541 *) enable_dlopen_self=unknown ;;
12544 case $lt_cv_dlopen_self_static in
12545 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12546 *) enable_dlopen_self_static=unknown ;;
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12569 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12570 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12571 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12572 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12576 # FIXME - insert some real tests, host_os isn't really good enough
12579 if test -n "$STRIP" ; then
12580 striplib="$STRIP -x"
12581 old_striplib="$STRIP -S"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583 $as_echo "yes" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12607 # Report which library types will actually be built
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12609 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12611 $as_echo "$can_build_shared" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12614 $as_echo_n "checking whether to build shared libraries... " >&6; }
12615 test "$can_build_shared" = "no" && enable_shared=no
12617 # On AIX, shared libraries and static libraries use the same namespace, and
12618 # are all built from PIC.
12621 test "$enable_shared" = yes && enable_static=no
12622 if test -n "$RANLIB"; then
12623 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12624 postinstall_cmds='$RANLIB $lib'
12629 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12630 test "$enable_shared" = yes && enable_static=no
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12635 $as_echo "$enable_shared" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12638 $as_echo_n "checking whether to build static libraries... " >&6; }
12639 # Make sure either enable_shared or enable_static is yes.
12640 test "$enable_shared" = yes || enable_static=yes
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12642 $as_echo "$enable_static" >&6; }
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670 ac_config_commands="$ac_config_commands libtool"
12675 # Only expand once:
12682 # Check whether --enable-optimization was given.
12683 if test "${enable_optimization+set}" = set; then :
12684 enableval=$enable_optimization;
12685 if (test "${enableval}" = "no"); then
12686 misc_cflags="$misc_cflags -O0"
12691 # Check whether --enable-debug was given.
12692 if test "${enable_debug+set}" = set; then :
12693 enableval=$enable_debug;
12694 if (test "${enableval}" = "yes" &&
12695 test "${ac_cv_prog_cc_g}" = "yes"); then
12696 misc_cflags="$misc_cflags -g"
12701 # Check whether --enable-pie was given.
12702 if test "${enable_pie+set}" = set; then :
12703 enableval=$enable_pie;
12704 if (test "${enableval}" = "yes" &&
12705 test "${ac_cv_prog_cc_pie}" = "yes"); then
12706 misc_cflags="$misc_cflags -fPIC"
12707 misc_ldflags="$misc_ldflags -pie"
12712 MISC_CFLAGS=$misc_cflags
12714 MISC_LDFLAGS=$misc_ldflags
12718 # Check whether --enable-threads was given.
12719 if test "${enable_threads+set}" = set; then :
12720 enableval=$enable_threads; enable_threads=${enableval}
12724 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12725 if test "x$ac_cv_func_signalfd" = xyes; then :
12728 as_fn_error $? "signalfd support is required" "$LINENO" 5
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12733 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12734 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 ac_check_lib_save_LIBS=$LIBS
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12742 /* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12748 char clock_gettime ();
12752 return clock_gettime ();
12757 if ac_fn_c_try_link "$LINENO"; then :
12758 ac_cv_lib_rt_clock_gettime=yes
12760 ac_cv_lib_rt_clock_gettime=no
12762 rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12767 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12768 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12771 as_fn_error $? "realtime clock support is required" "$LINENO" 5
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12776 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12777 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12778 $as_echo_n "(cached) " >&6
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lpthread $LIBS"
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12791 char pthread_create ();
12795 return pthread_create ();
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 ac_cv_lib_pthread_pthread_create=yes
12803 ac_cv_lib_pthread_pthread_create=no
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12810 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12811 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12814 as_fn_error $? "posix thread support is required" "$LINENO" 5
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12820 if ${ac_cv_lib_dl_dlopen+:} false; then :
12821 $as_echo_n "(cached) " >&6
12823 ac_check_lib_save_LIBS=$LIBS
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12843 if ac_fn_c_try_link "$LINENO"; then :
12844 ac_cv_lib_dl_dlopen=yes
12846 ac_cv_lib_dl_dlopen=no
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12854 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12857 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12864 $as_echo_n "checking for GLIB... " >&6; }
12866 if test -n "$GLIB_CFLAGS"; then
12867 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12868 elif test -n "$PKG_CONFIG"; then
12869 if test -n "$PKG_CONFIG" && \
12870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12871 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; }; then
12875 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12876 test "x$?" != "x0" && pkg_failed=yes
12883 if test -n "$GLIB_LIBS"; then
12884 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12885 elif test -n "$PKG_CONFIG"; then
12886 if test -n "$PKG_CONFIG" && \
12887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12888 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891 test $ac_status = 0; }; then
12892 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12893 test "x$?" != "x0" && pkg_failed=yes
12903 if test $pkg_failed = yes; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12908 _pkg_short_errors_supported=yes
12910 _pkg_short_errors_supported=no
12912 if test $_pkg_short_errors_supported = yes; then
12913 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12915 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12917 # Put the nasty error message in config.log where it belongs
12918 echo "$GLIB_PKG_ERRORS" >&5
12920 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12921 elif test $pkg_failed = untried; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12926 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12927 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12935 if (test "${enable_threads}" = "yes"); then
12937 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12942 $as_echo_n "checking for GTHREAD... " >&6; }
12944 if test -n "$GTHREAD_CFLAGS"; then
12945 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12946 elif test -n "$PKG_CONFIG"; then
12947 if test -n "$PKG_CONFIG" && \
12948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12949 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12952 test $ac_status = 0; }; then
12953 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12954 test "x$?" != "x0" && pkg_failed=yes
12961 if test -n "$GTHREAD_LIBS"; then
12962 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12963 elif test -n "$PKG_CONFIG"; then
12964 if test -n "$PKG_CONFIG" && \
12965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12966 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; }; then
12970 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12971 test "x$?" != "x0" && pkg_failed=yes
12981 if test $pkg_failed = yes; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12986 _pkg_short_errors_supported=yes
12988 _pkg_short_errors_supported=no
12990 if test $_pkg_short_errors_supported = yes; then
12991 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12993 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12995 # Put the nasty error message in config.log where it belongs
12996 echo "$GTHREAD_PKG_ERRORS" >&5
12998 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12999 elif test $pkg_failed = untried; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
13004 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
13005 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13007 $as_echo "yes" >&6; }
13010 GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
13011 GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
13017 $as_echo_n "checking for DBUS... " >&6; }
13019 if test -n "$DBUS_CFLAGS"; then
13020 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
13021 elif test -n "$PKG_CONFIG"; then
13022 if test -n "$PKG_CONFIG" && \
13023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
13024 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
13026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027 test $ac_status = 0; }; then
13028 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.6" 2>/dev/null`
13029 test "x$?" != "x0" && pkg_failed=yes
13036 if test -n "$DBUS_LIBS"; then
13037 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
13038 elif test -n "$PKG_CONFIG"; then
13039 if test -n "$PKG_CONFIG" && \
13040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
13041 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044 test $ac_status = 0; }; then
13045 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.6" 2>/dev/null`
13046 test "x$?" != "x0" && pkg_failed=yes
13056 if test $pkg_failed = yes; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13061 _pkg_short_errors_supported=yes
13063 _pkg_short_errors_supported=no
13065 if test $_pkg_short_errors_supported = yes; then
13066 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
13068 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
13070 # Put the nasty error message in config.log where it belongs
13071 echo "$DBUS_PKG_ERRORS" >&5
13073 as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
13074 elif test $pkg_failed = untried; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077 as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
13079 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
13080 DBUS_LIBS=$pkg_cv_DBUS_LIBS
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13082 $as_echo "yes" >&6; }
13089 # Check whether --with-dbusconfdir was given.
13090 if test "${with_dbusconfdir+set}" = set; then :
13091 withval=$with_dbusconfdir; path_dbusconfdir=${withval}
13094 if (test -z "${path_dbusconfdir}"); then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus configuration directory" >&5
13096 $as_echo_n "checking D-Bus configuration directory... " >&6; }
13097 path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
13098 if (test -z "${path_dbusconfdir}"); then
13099 as_fn_error $? "D-Bus configuration directory is required" "$LINENO" 5
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbusconfdir}" >&5
13102 $as_echo "${path_dbusconfdir}" >&6; }
13104 DBUS_CONFDIR=${path_dbusconfdir}
13108 # Check whether --with-dbussystembusdir was given.
13109 if test "${with_dbussystembusdir+set}" = set; then :
13110 withval=$with_dbussystembusdir; path_dbussystembusdir=${withval}
13113 if (test -z "${path_dbussystembusdir}"); then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus system bus services dir" >&5
13115 $as_echo_n "checking D-Bus system bus services dir... " >&6; }
13116 path_dbussystembusdir="`$PKG_CONFIG --variable=system_bus_services_dir dbus-1`"
13117 if (test -z "${path_dbussystembusdir}"); then
13118 as_fn_error $? "D-Bus system bus services directory is required" "$LINENO" 5
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussystembusdir}" >&5
13121 $as_echo "${path_dbussystembusdir}" >&6; }
13123 DBUS_SYSTEMBUSDIR=${path_dbussystembusdir}
13127 # Check whether --with-dbussessionbusdir was given.
13128 if test "${with_dbussessionbusdir+set}" = set; then :
13129 withval=$with_dbussessionbusdir; path_dbussessionbusdir=${withval}
13132 if (test -z "${path_dbussessionbusdir}"); then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus session bus services dir" >&5
13134 $as_echo_n "checking D-Bus session bus services dir... " >&6; }
13135 path_dbussessionbusdir="`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`"
13136 if (test -z "${path_dbussessionbusdir}"); then
13137 as_fn_error $? "D-Bus session bus services directory is required" "$LINENO" 5
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussessionbusdir}" >&5
13140 $as_echo "${path_dbussessionbusdir}" >&6; }
13142 DBUS_SESSIONBUSDIR=${path_dbussessionbusdir}
13145 # Check whether --enable-library was given.
13146 if test "${enable_library+set}" = set; then :
13147 enableval=$enable_library; enable_library=${enableval}
13150 if test "${enable_library}" = "yes"; then
13159 # Check whether --enable-test was given.
13160 if test "${enable_test+set}" = set; then :
13161 enableval=$enable_test; enable_test=${enableval}
13164 if test "${enable_test}" = "yes"; then
13173 # Check whether --enable-tools was given.
13174 if test "${enable_tools+set}" = set; then :
13175 enableval=$enable_tools; enable_tools=${enableval}
13178 if test "${enable_tools}" != "no"; then
13187 # Check whether --enable-monitor was given.
13188 if test "${enable_monitor+set}" = set; then :
13189 enableval=$enable_monitor; enable_monitor=${enableval}
13192 if test "${enable_monitor}" != "no"; then
13201 # Check whether --enable-udev was given.
13202 if test "${enable_udev+set}" = set; then :
13203 enableval=$enable_udev; enable_udev=${enableval}
13206 if (test "${enable_tools}" != "no" && test "${enable_udev}" != "no"); then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
13210 $as_echo_n "checking for UDEV... " >&6; }
13212 if test -n "$UDEV_CFLAGS"; then
13213 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13214 elif test -n "$PKG_CONFIG"; then
13215 if test -n "$PKG_CONFIG" && \
13216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13217 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 test $ac_status = 0; }; then
13221 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
13222 test "x$?" != "x0" && pkg_failed=yes
13229 if test -n "$UDEV_LIBS"; then
13230 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13231 elif test -n "$PKG_CONFIG"; then
13232 if test -n "$PKG_CONFIG" && \
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13234 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237 test $ac_status = 0; }; then
13238 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
13239 test "x$?" != "x0" && pkg_failed=yes
13249 if test $pkg_failed = yes; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13253 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13254 _pkg_short_errors_supported=yes
13256 _pkg_short_errors_supported=no
13258 if test $_pkg_short_errors_supported = yes; then
13259 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
13261 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
13263 # Put the nasty error message in config.log where it belongs
13264 echo "$UDEV_PKG_ERRORS" >&5
13266 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
13267 elif test $pkg_failed = untried; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
13272 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13273 UDEV_LIBS=$pkg_cv_UDEV_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275 $as_echo "yes" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_hwdb_new in -ludev" >&5
13281 $as_echo_n "checking for udev_hwdb_new in -ludev... " >&6; }
13282 if ${ac_cv_lib_udev_udev_hwdb_new+:} false; then :
13283 $as_echo_n "(cached) " >&6
13285 ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-ludev $LIBS"
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13296 char udev_hwdb_new ();
13300 return udev_hwdb_new ();
13305 if ac_fn_c_try_link "$LINENO"; then :
13306 ac_cv_lib_udev_udev_hwdb_new=yes
13308 ac_cv_lib_udev_udev_hwdb_new=no
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_hwdb_new" >&5
13315 $as_echo "$ac_cv_lib_udev_udev_hwdb_new" >&6; }
13316 if test "x$ac_cv_lib_udev_udev_hwdb_new" = xyes; then :
13318 $as_echo "#define HAVE_UDEV_HWDB_NEW 1" >>confdefs.h
13323 if test "${enable_udev}" != "no"; then
13333 # Check whether --with-udevdir was given.
13334 if test "${with_udevdir+set}" = set; then :
13335 withval=$with_udevdir; path_udevdir=${withval}
13338 if (test "${enable_udev}" != "no" && test -z "${path_udevdir}"); then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking udev directory" >&5
13340 $as_echo_n "checking udev directory... " >&6; }
13341 path_udevdir="`$PKG_CONFIG --variable=udevdir udev`"
13342 if (test -z "${path_udevdir}"); then
13343 as_fn_error $? "udev directory is required" "$LINENO" 5
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_udevdir}" >&5
13346 $as_echo "${path_udevdir}" >&6; }
13348 UDEV_DIR=${path_udevdir}
13351 if test "${enable_tools}" != "no" &&
13352 test "${enable_udev}" != "no"; then
13361 # Check whether --enable-cups was given.
13362 if test "${enable_cups+set}" = set; then :
13363 enableval=$enable_cups; enable_cups=${enableval}
13366 if test "${enable_cups}" != "no"; then
13375 # Check whether --enable-obex was given.
13376 if test "${enable_obex+set}" = set; then :
13377 enableval=$enable_obex; enable_obex=${enableval}
13380 if (test "${enable_obex}" != "no"); then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICAL" >&5
13384 $as_echo_n "checking for ICAL... " >&6; }
13386 if test -n "$ICAL_CFLAGS"; then
13387 pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
13388 elif test -n "$PKG_CONFIG"; then
13389 if test -n "$PKG_CONFIG" && \
13390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
13391 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
13393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394 test $ac_status = 0; }; then
13395 pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
13396 test "x$?" != "x0" && pkg_failed=yes
13403 if test -n "$ICAL_LIBS"; then
13404 pkg_cv_ICAL_LIBS="$ICAL_LIBS"
13405 elif test -n "$PKG_CONFIG"; then
13406 if test -n "$PKG_CONFIG" && \
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
13408 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
13410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411 test $ac_status = 0; }; then
13412 pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
13413 test "x$?" != "x0" && pkg_failed=yes
13423 if test $pkg_failed = yes; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13428 _pkg_short_errors_supported=yes
13430 _pkg_short_errors_supported=no
13432 if test $_pkg_short_errors_supported = yes; then
13433 ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
13435 ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
13437 # Put the nasty error message in config.log where it belongs
13438 echo "$ICAL_PKG_ERRORS" >&5
13440 as_fn_error $? "libical is required" "$LINENO" 5
13441 elif test $pkg_failed = untried; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13444 as_fn_error $? "libical is required" "$LINENO" 5
13446 ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
13447 ICAL_LIBS=$pkg_cv_ICAL_LIBS
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13455 if test "${enable_obex}" != "no"; then
13464 # Check whether --enable-client was given.
13465 if test "${enable_client+set}" = set; then :
13466 enableval=$enable_client; enable_client=${enableval}
13469 if test "${enable_client}" != "no"; then
13478 if (test "${enable_client}" != "no"); then
13479 for ac_header in readline/readline.h
13481 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13482 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_READLINE_READLINE_H 1
13486 enable_readline=yes
13488 as_fn_error $? "readline header files are required" "$LINENO" 5
13494 if test "${enable_readline}" = "yes"; then
13503 # Check whether --enable-systemd was given.
13504 if test "${enable_systemd+set}" = set; then :
13505 enableval=$enable_systemd; enable_systemd=${enableval}
13508 if test "${enable_systemd}" != "no"; then
13518 # Check whether --with-systemdsystemunitdir was given.
13519 if test "${with_systemdsystemunitdir+set}" = set; then :
13520 withval=$with_systemdsystemunitdir; path_systemunitdir=${withval}
13523 if (test "${enable_systemd}" != "no" && test -z "${path_systemunitdir}"); then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd system unit dir" >&5
13525 $as_echo_n "checking systemd system unit dir... " >&6; }
13526 path_systemunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
13527 if (test -z "${path_systemunitdir}"); then
13528 as_fn_error $? "systemd system unit directory is required" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_systemunitdir}" >&5
13531 $as_echo "${path_systemunitdir}" >&6; }
13533 SYSTEMD_SYSTEMUNITDIR=${path_systemunitdir}
13537 # Check whether --with-systemduserunitdir was given.
13538 if test "${with_systemduserunitdir+set}" = set; then :
13539 withval=$with_systemduserunitdir; path_userunitdir=${withval}
13542 if (test "${enable_systemd}" != "no" && test -z "${path_userunitdir}"); then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd user unit dir" >&5
13544 $as_echo_n "checking systemd user unit dir... " >&6; }
13545 path_userunitdir="`$PKG_CONFIG --variable=systemduserunitdir systemd`"
13546 if (test -z "${path_userunitdir}"); then
13547 as_fn_error $? "systemd user unit directory is required" "$LINENO" 5
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_userunitdir}" >&5
13550 $as_echo "${path_userunitdir}" >&6; }
13552 SYSTEMD_USERUNITDIR=${path_userunitdir}
13555 # Check whether --enable-datafiles was given.
13556 if test "${enable_datafiles+set}" = set; then :
13557 enableval=$enable_datafiles; enable_datafiles=${enableval}
13560 if test "${enable_datafiles}" != "no"; then
13562 DATAFILES_FALSE='#'
13569 # Check whether --enable-experimental was given.
13570 if test "${enable_experimental+set}" = set; then :
13571 enableval=$enable_experimental; enable_experimental=${enableval}
13574 if test "${enable_experimental}" = "yes"; then
13576 EXPERIMENTAL_FALSE='#'
13578 EXPERIMENTAL_TRUE='#'
13579 EXPERIMENTAL_FALSE=
13583 # Check whether --enable-sixaxis was given.
13584 if test "${enable_sixaxis+set}" = set; then :
13585 enableval=$enable_sixaxis; enable_sixaxis=${enableval}
13588 if test "${enable_sixaxis}" = "yes" &&
13589 test "${enable_udev}" != "no"; then
13598 if (test "${prefix}" = "NONE"); then
13599 if (test "$localstatedir" = '${prefix}/var'); then
13600 localstatedir='/var'
13604 prefix="${ac_default_prefix}"
13607 if (test "$localstatedir" = '${prefix}/var'); then
13608 storagedir="${prefix}/var/lib/bluetooth"
13610 storagedir="${localstatedir}/lib/bluetooth"
13613 cat >>confdefs.h <<_ACEOF
13614 #define STORAGEDIR "${storagedir}"
13618 if (test "$sysconfdir" = '${prefix}/etc'); then
13619 configdir="${prefix}/etc/bluetooth"
13621 configdir="${sysconfdir}/bluetooth"
13624 cat >>confdefs.h <<_ACEOF
13625 #define CONFIGDIR "${configdir}"
13628 CONFIGDIR="${configdir}"
13631 # Check whether --enable-android was given.
13632 if test "${enable_android+set}" = set; then :
13633 enableval=$enable_android; enable_android=${enableval}
13636 if test "${enable_android}" = "yes"; then
13645 if (test "${enable_android}" = "yes"); then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SBC" >&5
13649 $as_echo_n "checking for SBC... " >&6; }
13651 if test -n "$SBC_CFLAGS"; then
13652 pkg_cv_SBC_CFLAGS="$SBC_CFLAGS"
13653 elif test -n "$PKG_CONFIG"; then
13654 if test -n "$PKG_CONFIG" && \
13655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
13656 ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
13658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659 test $ac_status = 0; }; then
13660 pkg_cv_SBC_CFLAGS=`$PKG_CONFIG --cflags "sbc >= 1.2" 2>/dev/null`
13661 test "x$?" != "x0" && pkg_failed=yes
13668 if test -n "$SBC_LIBS"; then
13669 pkg_cv_SBC_LIBS="$SBC_LIBS"
13670 elif test -n "$PKG_CONFIG"; then
13671 if test -n "$PKG_CONFIG" && \
13672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
13673 ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676 test $ac_status = 0; }; then
13677 pkg_cv_SBC_LIBS=`$PKG_CONFIG --libs "sbc >= 1.2" 2>/dev/null`
13678 test "x$?" != "x0" && pkg_failed=yes
13688 if test $pkg_failed = yes; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13693 _pkg_short_errors_supported=yes
13695 _pkg_short_errors_supported=no
13697 if test $_pkg_short_errors_supported = yes; then
13698 SBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
13700 SBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
13702 # Put the nasty error message in config.log where it belongs
13703 echo "$SBC_PKG_ERRORS" >&5
13705 as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
13706 elif test $pkg_failed = untried; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709 as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
13711 SBC_CFLAGS=$pkg_cv_SBC_CFLAGS
13712 SBC_LIBS=$pkg_cv_SBC_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 $as_echo "yes" >&6; }
13721 if (test "${enable_android}" = "yes"); then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPEEXDSP" >&5
13725 $as_echo_n "checking for SPEEXDSP... " >&6; }
13727 if test -n "$SPEEXDSP_CFLAGS"; then
13728 pkg_cv_SPEEXDSP_CFLAGS="$SPEEXDSP_CFLAGS"
13729 elif test -n "$PKG_CONFIG"; then
13730 if test -n "$PKG_CONFIG" && \
13731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
13732 ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; }; then
13736 pkg_cv_SPEEXDSP_CFLAGS=`$PKG_CONFIG --cflags "speexdsp >= 1.2" 2>/dev/null`
13737 test "x$?" != "x0" && pkg_failed=yes
13744 if test -n "$SPEEXDSP_LIBS"; then
13745 pkg_cv_SPEEXDSP_LIBS="$SPEEXDSP_LIBS"
13746 elif test -n "$PKG_CONFIG"; then
13747 if test -n "$PKG_CONFIG" && \
13748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
13749 ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; }; then
13753 pkg_cv_SPEEXDSP_LIBS=`$PKG_CONFIG --libs "speexdsp >= 1.2" 2>/dev/null`
13754 test "x$?" != "x0" && pkg_failed=yes
13764 if test $pkg_failed = yes; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13768 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13769 _pkg_short_errors_supported=yes
13771 _pkg_short_errors_supported=no
13773 if test $_pkg_short_errors_supported = yes; then
13774 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
13776 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
13778 # Put the nasty error message in config.log where it belongs
13779 echo "$SPEEXDSP_PKG_ERRORS" >&5
13781 as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
13782 elif test $pkg_failed = untried; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13785 as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
13787 SPEEXDSP_CFLAGS=$pkg_cv_SPEEXDSP_CFLAGS
13788 SPEEXDSP_LIBS=$pkg_cv_SPEEXDSP_LIBS
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790 $as_echo "yes" >&6; }
13798 cat >>confdefs.h <<_ACEOF
13799 #define ANDROID_STORAGEDIR "${storagedir}/android"
13803 ac_config_files="$ac_config_files Makefile src/bluetoothd.8 lib/bluez.pc"
13805 cat >confcache <<\_ACEOF
13806 # This file is a shell script that caches the results of configure
13807 # tests run on this system so they can be shared between configure
13808 # scripts and configure runs, see configure's option --config-cache.
13809 # It is not useful on other systems. If it contains results you don't
13810 # want to keep, you may remove or edit it.
13812 # config.status only pays attention to the cache file if you give it
13813 # the --recheck option to rerun configure.
13815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13817 # following values.
13821 # The following way of writing the cache mishandles newlines in values,
13822 # but we know of no workaround that is simple, portable, and efficient.
13823 # So, we kill variables containing newlines.
13824 # Ultrix sh set writes to stderr and can't be redirected directly,
13825 # and sets the high bit in the cache file unless we assign to the vars.
13827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13828 eval ac_val=\$$ac_var
13832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13836 _ | IFS | as_nl) ;; #(
13837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13838 *) { eval $ac_var=; unset $ac_var;} ;;
13844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13845 *${as_nl}ac_space=\ *)
13846 # `set' does not quote correctly, so add quotes: double-quote
13847 # substitution turns \\\\ into \\, and sed turns \\ into \.
13850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13853 # `set' quotes correctly as required by POSIX, so do not add quotes.
13854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13867 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13868 if test -w "$cache_file"; then
13869 if test "x$cache_file" != "x/dev/null"; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13871 $as_echo "$as_me: updating cache $cache_file" >&6;}
13872 if test ! -f "$cache_file" || test -h "$cache_file"; then
13873 cat confcache >"$cache_file"
13875 case $cache_file in #(
13877 mv -f confcache "$cache_file"$$ &&
13878 mv -f "$cache_file"$$ "$cache_file" ;; #(
13880 mv -f confcache "$cache_file" ;;
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13886 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13892 # Let make expand exec_prefix.
13893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13895 DEFS=-DHAVE_CONFIG_H
13900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13901 # 1. Remove the extension, and $U if already installed.
13902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13905 # will be set to the directory where LIBOBJS objects are built.
13906 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13907 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13909 LIBOBJS=$ac_libobjs
13911 LTLIBOBJS=$ac_ltlibobjs
13914 if test -n "$EXEEXT"; then
13916 am__EXEEXT_FALSE='#'
13918 am__EXEEXT_TRUE='#'
13922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13923 as_fn_error $? "conditional \"AMDEP\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13927 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13930 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13931 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13934 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13935 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13938 if test -z "${LIBRARY_TRUE}" && test -z "${LIBRARY_FALSE}"; then
13939 as_fn_error $? "conditional \"LIBRARY\" was never defined.
13940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13942 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13943 as_fn_error $? "conditional \"TEST\" was never defined.
13944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13946 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13947 as_fn_error $? "conditional \"TOOLS\" was never defined.
13948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13950 if test -z "${MONITOR_TRUE}" && test -z "${MONITOR_FALSE}"; then
13951 as_fn_error $? "conditional \"MONITOR\" was never defined.
13952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13954 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13955 as_fn_error $? "conditional \"UDEV\" was never defined.
13956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13958 if test -z "${HID2HCI_TRUE}" && test -z "${HID2HCI_FALSE}"; then
13959 as_fn_error $? "conditional \"HID2HCI\" was never defined.
13960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13962 if test -z "${CUPS_TRUE}" && test -z "${CUPS_FALSE}"; then
13963 as_fn_error $? "conditional \"CUPS\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13966 if test -z "${OBEX_TRUE}" && test -z "${OBEX_FALSE}"; then
13967 as_fn_error $? "conditional \"OBEX\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13970 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13971 as_fn_error $? "conditional \"CLIENT\" was never defined.
13972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13974 if test -z "${READLINE_TRUE}" && test -z "${READLINE_FALSE}"; then
13975 as_fn_error $? "conditional \"READLINE\" was never defined.
13976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13978 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13979 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13982 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13983 as_fn_error $? "conditional \"DATAFILES\" was never defined.
13984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13986 if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
13987 as_fn_error $? "conditional \"EXPERIMENTAL\" was never defined.
13988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13990 if test -z "${SIXAXIS_TRUE}" && test -z "${SIXAXIS_FALSE}"; then
13991 as_fn_error $? "conditional \"SIXAXIS\" was never defined.
13992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13994 if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
13995 as_fn_error $? "conditional \"ANDROID\" was never defined.
13996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999 : "${CONFIG_STATUS=./config.status}"
14001 ac_clean_files_save=$ac_clean_files
14002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14008 # Generated by $as_me.
14009 # Run this file to recreate the current configuration.
14010 # Compiler output produced by configure, useful for debugging
14011 # configure, is in config.log if it exists.
14014 ac_cs_recheck=false
14017 SHELL=\${CONFIG_SHELL-$SHELL}
14020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14021 ## -------------------- ##
14022 ## M4sh Initialization. ##
14023 ## -------------------- ##
14025 # Be more Bourne compatible
14026 DUALCASE=1; export DUALCASE # for MKS sh
14027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14031 # is contrary to our usage. Disable this feature.
14032 alias -g '${1+"$@"}'='"$@"'
14033 setopt NO_GLOB_SUBST
14035 case `(set -o) 2>/dev/null` in #(
14047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14051 # Prefer a ksh shell builtin over an external printf program on Solaris,
14052 # but without wasting forks for bash or zsh.
14053 if test -z "$BASH_VERSION$ZSH_VERSION" \
14054 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14055 as_echo='print -r --'
14056 as_echo_n='print -rn --'
14057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14058 as_echo='printf %s\n'
14059 as_echo_n='printf %s'
14061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14062 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14063 as_echo_n='/usr/ucb/echo -n'
14065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14066 as_echo_n_body='eval
14070 expr "X$arg" : "X\\(.*\\)$as_nl";
14071 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14073 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14075 export as_echo_n_body
14076 as_echo_n='sh -c $as_echo_n_body as_echo'
14078 export as_echo_body
14079 as_echo='sh -c $as_echo_body as_echo'
14082 # The user is always right.
14083 if test "${PATH_SEPARATOR+set}" != set; then
14085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14093 # We need space, tab and new line, in precisely that order. Quoting is
14094 # there to prevent editors from complaining about space-tab.
14095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14096 # splitting by setting IFS to empty value.)
14099 # Find who we are. Look in the path if we contain no directory separator.
14102 *[\\/]* ) as_myself=$0 ;;
14103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14114 # We did not find ourselves, most probably we were run as `sh COMMAND'
14115 # in which case we are not to be found in the path.
14116 if test "x$as_myself" = x; then
14119 if test ! -f "$as_myself"; then
14120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14124 # Unset variables that we do not need and which cause bugs (e.g. in
14125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14126 # suppresses any "Segmentation fault" message there. '((' could
14127 # trigger a bug in pdksh 5.2.14.
14128 for as_var in BASH_ENV ENV MAIL MAILPATH
14129 do eval test x\${$as_var+set} = xset \
14130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14147 # ----------------------------------------
14148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14150 # script with STATUS, using 1 if that was 0.
14153 as_status=$1; test $as_status -eq 0 && as_status=1
14155 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14158 $as_echo "$as_me: error: $2" >&2
14159 as_fn_exit $as_status
14163 # as_fn_set_status STATUS
14164 # -----------------------
14165 # Set $? to STATUS, without forking.
14166 as_fn_set_status ()
14169 } # as_fn_set_status
14171 # as_fn_exit STATUS
14172 # -----------------
14173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14177 as_fn_set_status $1
14183 # Portably unset VAR.
14186 { eval $1=; unset $1;}
14188 as_unset=as_fn_unset
14189 # as_fn_append VAR VALUE
14190 # ----------------------
14191 # Append the text in VALUE to the end of the definition contained in VAR. Take
14192 # advantage of any shell optimizations that allow amortized linear growth over
14193 # repeated appends, instead of the typical quadratic growth present in naive
14195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14196 eval 'as_fn_append ()
14207 # as_fn_arith ARG...
14208 # ------------------
14209 # Perform arithmetic evaluation on the ARGs, and store the result in the
14210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14211 # must be portable across $(()) and expr.
14212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14213 eval 'as_fn_arith ()
14220 as_val=`expr "$@" || test $? -eq 1`
14225 if expr a : '\(a\)' >/dev/null 2>&1 &&
14226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14233 as_basename=basename
14238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14244 as_me=`$as_basename -- "$0" ||
14245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14246 X"$0" : 'X\(//\)$' \| \
14247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14249 sed '/^.*\/\([^/][^/]*\)\/*$/{
14263 # Avoid depending upon Character Ranges.
14264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14267 as_cr_digits='0123456789'
14268 as_cr_alnum=$as_cr_Letters$as_cr_digits
14270 ECHO_C= ECHO_N= ECHO_T=
14271 case `echo -n x` in #(((((
14273 case `echo 'xy\c'` in
14274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14283 rm -f conf$$ conf$$.exe conf$$.file
14284 if test -d conf$$.dir; then
14285 rm -f conf$$.dir/conf$$.file
14288 mkdir conf$$.dir 2>/dev/null
14290 if (echo >conf$$.file) 2>/dev/null; then
14291 if ln -s conf$$.file conf$$ 2>/dev/null; then
14293 # ... but there are two gotchas:
14294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14296 # In both cases, we have to default to `cp -pR'.
14297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14299 elif ln conf$$.file conf$$ 2>/dev/null; then
14307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14308 rmdir conf$$.dir 2>/dev/null
14313 # Create "$as_dir" as a directory, including parents if necessary.
14318 -*) as_dir=./$as_dir;;
14320 test -d "$as_dir" || eval $as_mkdir_p || {
14324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14325 *) as_qdir=$as_dir;;
14327 as_dirs="'$as_qdir' $as_dirs"
14328 as_dir=`$as_dirname -- "$as_dir" ||
14329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14330 X"$as_dir" : 'X\(//\)[^/]' \| \
14331 X"$as_dir" : 'X\(//\)$' \| \
14332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14333 $as_echo X"$as_dir" |
14334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14338 /^X\(\/\/\)[^/].*/{
14351 test -d "$as_dir" && break
14353 test -z "$as_dirs" || eval "mkdir $as_dirs"
14354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14358 if mkdir -p . 2>/dev/null; then
14359 as_mkdir_p='mkdir -p "$as_dir"'
14361 test -d ./-p && rmdir ./-p
14366 # as_fn_executable_p FILE
14367 # -----------------------
14368 # Test if FILE is an executable regular file.
14369 as_fn_executable_p ()
14371 test -f "$1" && test -x "$1"
14372 } # as_fn_executable_p
14373 as_test_x='test -x'
14374 as_executable_p=as_fn_executable_p
14376 # Sed expression to map a string onto a valid CPP name.
14377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14379 # Sed expression to map a string onto a valid variable name.
14380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14384 ## ----------------------------------- ##
14385 ## Main body of $CONFIG_STATUS script. ##
14386 ## ----------------------------------- ##
14388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 # Save the log message, to keep $0 and so on meaningful, and to
14392 # report actual input values of CONFIG_FILES etc. instead of their
14393 # values after options handling.
14395 This file was extended by bluez $as_me 5.19, which was
14396 generated by GNU Autoconf 2.69. Invocation command line was
14398 CONFIG_FILES = $CONFIG_FILES
14399 CONFIG_HEADERS = $CONFIG_HEADERS
14400 CONFIG_LINKS = $CONFIG_LINKS
14401 CONFIG_COMMANDS = $CONFIG_COMMANDS
14404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14409 case $ac_config_files in *"
14410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14413 case $ac_config_headers in *"
14414 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14419 # Files that config.status was made for.
14420 config_files="$ac_config_files"
14421 config_headers="$ac_config_headers"
14422 config_commands="$ac_config_commands"
14426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14428 \`$as_me' instantiates files and other configuration actions
14429 from templates according to the current configuration. Unless the files
14430 and actions are specified as TAGs, all are instantiated by default.
14432 Usage: $0 [OPTION]... [TAG]...
14434 -h, --help print this help, then exit
14435 -V, --version print version number and configuration settings, then exit
14436 --config print configuration, then exit
14437 -q, --quiet, --silent
14438 do not print progress messages
14439 -d, --debug don't remove temporary files
14440 --recheck update $as_me by reconfiguring in the same conditions
14441 --file=FILE[:TEMPLATE]
14442 instantiate the configuration file FILE
14443 --header=FILE[:TEMPLATE]
14444 instantiate the configuration header FILE
14446 Configuration files:
14449 Configuration headers:
14452 Configuration commands:
14455 Report bugs to the package provider."
14458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14461 bluez config.status 5.19
14462 configured by $0, generated by GNU Autoconf 2.69,
14463 with options \\"\$ac_cs_config\\"
14465 Copyright (C) 2012 Free Software Foundation, Inc.
14466 This config.status script is free software; the Free Software Foundation
14467 gives unlimited permission to copy, distribute and modify it."
14474 test -n "\$AWK" || AWK=awk
14477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478 # The default lists apply if the user does not specify any file.
14484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14485 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14489 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14501 # Handling of the options.
14502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14504 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14505 $as_echo "$ac_cs_version"; exit ;;
14506 --config | --confi | --conf | --con | --co | --c )
14507 $as_echo "$ac_cs_config"; exit ;;
14508 --debug | --debu | --deb | --de | --d | -d )
14510 --file | --fil | --fi | --f )
14513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14514 '') as_fn_error $? "missing file argument" ;;
14516 as_fn_append CONFIG_FILES " '$ac_optarg'"
14517 ac_need_defaults=false;;
14518 --header | --heade | --head | --hea )
14521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14523 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14524 ac_need_defaults=false;;
14526 # Conflict between --help and --header
14527 as_fn_error $? "ambiguous option: \`$1'
14528 Try \`$0 --help' for more information.";;
14529 --help | --hel | -h )
14530 $as_echo "$ac_cs_usage"; exit ;;
14531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14535 # This is an error.
14536 -*) as_fn_error $? "unrecognized option: \`$1'
14537 Try \`$0 --help' for more information." ;;
14539 *) as_fn_append ac_config_targets " $1"
14540 ac_need_defaults=false ;;
14546 ac_configure_extra_args=
14548 if $ac_cs_silent; then
14550 ac_configure_extra_args="$ac_configure_extra_args --silent"
14554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14555 if \$ac_cs_recheck; then
14556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14559 CONFIG_SHELL='$SHELL'
14560 export CONFIG_SHELL
14565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14570 ## Running $as_me. ##
14576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14583 # The HP-UX ksh and POSIX shell print the target directory to stdout
14584 # if CDPATH is set.
14585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14587 sed_quote_subst='$sed_quote_subst'
14588 double_quote_subst='$double_quote_subst'
14589 delay_variable_subst='$delay_variable_subst'
14590 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14591 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14592 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14593 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14594 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14595 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14596 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14597 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14598 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14619 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14620 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14621 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14622 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14624 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14625 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14626 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14627 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14628 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14629 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14645 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14646 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"`'
14647 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14648 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14649 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14650 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14651 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14652 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14653 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14654 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14655 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14656 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14657 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14658 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14659 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14660 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14661 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14662 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14663 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14664 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14665 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14666 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14667 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14668 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14669 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14670 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14671 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14672 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14673 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14674 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14675 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14676 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14677 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14678 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14679 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14680 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14681 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14682 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14683 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14684 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14685 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14686 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14687 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14688 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14689 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14690 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14691 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14692 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14693 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14694 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14695 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14696 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14697 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14698 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14699 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14700 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14701 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14702 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14703 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14704 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14705 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14706 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14707 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14708 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14709 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14710 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14711 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14712 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14713 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14714 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14715 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14716 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14717 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14718 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14719 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14722 LTCFLAGS='$LTCFLAGS'
14723 compiler='$compiler_DEFAULT'
14725 # A function that is used when there is no print builtin or printf.
14726 func_fallback_echo ()
14728 eval 'cat <<_LTECHO_EOF
14733 # Quote evaled strings.
14748 deplibs_check_method \
14753 sharedlib_from_linklib_cmd \
14756 archiver_list_spec \
14762 lt_cv_sys_global_symbol_pipe \
14763 lt_cv_sys_global_symbol_to_cdecl \
14764 lt_cv_sys_global_symbol_to_c_name_address \
14765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14766 nm_file_list_spec \
14767 lt_prog_compiler_no_builtin_flag \
14768 lt_prog_compiler_pic \
14769 lt_prog_compiler_wl \
14770 lt_prog_compiler_static \
14771 lt_cv_prog_compiler_c_o \
14780 export_dynamic_flag_spec \
14781 whole_archive_flag_spec \
14782 compiler_needs_object \
14784 allow_undefined_flag \
14785 no_undefined_flag \
14786 hardcode_libdir_flag_spec \
14787 hardcode_libdir_separator \
14791 variables_saved_for_relink \
14793 library_names_spec \
14795 install_override_mode \
14799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14800 *[\\\\\\\`\\"\\\$]*)
14801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14809 # Double-quote double-evaled strings.
14810 for var in reload_cmds \
14811 old_postinstall_cmds \
14812 old_postuninstall_cmds \
14814 extract_expsyms_cmds \
14815 old_archive_from_new_cmds \
14816 old_archive_from_expsyms_cmds \
14818 archive_expsym_cmds \
14820 module_expsym_cmds \
14821 export_symbols_cmds \
14825 postuninstall_cmds \
14827 sys_lib_search_path_spec \
14828 sys_lib_dlsearch_path_spec; do
14829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14830 *[\\\\\\\`\\"\\\$]*)
14831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14839 ac_aux_dir='$ac_aux_dir'
14840 xsi_shell='$xsi_shell'
14841 lt_shell_append='$lt_shell_append'
14843 # See if we are running on zsh, and set the options which allow our
14844 # commands through without removal of \ escapes INIT.
14845 if test -n "\${ZSH_VERSION+set}" ; then
14846 setopt NO_GLOB_SUBST
14852 TIMESTAMP='$TIMESTAMP'
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863 # Handling of arguments.
14864 for ac_config_target in $ac_config_targets
14866 case $ac_config_target in
14867 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14868 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14869 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14871 "src/bluetoothd.8") CONFIG_FILES="$CONFIG_FILES src/bluetoothd.8" ;;
14872 "lib/bluez.pc") CONFIG_FILES="$CONFIG_FILES lib/bluez.pc" ;;
14874 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14879 # If the user did not use the arguments to specify the items to instantiate,
14880 # then the envvar interface is used. Set only those that are not.
14881 # We use the long form for the default assignment because of an extremely
14882 # bizarre bug on SunOS 4.1.3.
14883 if $ac_need_defaults; then
14884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14889 # Have a temporary directory for convenience. Make it in the build tree
14890 # simply because there is no reason against having it here, and in addition,
14891 # creating and moving files from /tmp can sometimes cause problems.
14892 # Hook for its removal unless debugging.
14893 # Note that there is a small window in which the directory will not be cleaned:
14894 # after its creation but before its name has been assigned to `$tmp'.
14898 trap 'exit_status=$?
14899 : "${ac_tmp:=$tmp}"
14900 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14902 trap 'as_fn_exit 1' 1 2 13 15
14904 # Create a (secure) tmp directory for tmp files.
14907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14911 tmp=./conf$$-$RANDOM
14912 (umask 077 && mkdir "$tmp")
14913 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14916 # Set up the scripts for CONFIG_FILES section.
14917 # No need to generate them if there are no CONFIG_FILES.
14918 # This happens for instance with `./config.status config.h'.
14919 if test -n "$CONFIG_FILES"; then
14922 ac_cr=`echo X | tr X '\015'`
14923 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14924 # But we know of no other shell where ac_cr would be empty at this
14925 # point, so we can use a bashism as a fallback.
14926 if test "x$ac_cr" = x; then
14927 eval ac_cr=\$\'\\r\'
14929 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14930 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14933 ac_cs_awk_cr=$ac_cr
14936 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14941 echo "cat >conf$$subs.awk <<_ACEOF" &&
14942 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14944 } >conf$$subs.sh ||
14945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14946 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14948 for ac_last_try in false false false false false :; do
14949 . ./conf$$subs.sh ||
14950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14952 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14953 if test $ac_delim_n = $ac_delim_num; then
14955 elif $ac_last_try; then
14956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14961 rm -f conf$$subs.sh
14963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14968 s/^/S["/; s/!.*/"]=/
14978 s/\(.\{148\}\)..*/\1/
14980 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14985 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14992 s/\(.\{148\}\)..*/\1/
14994 s/["\\]/\\&/g; s/^/"/; s/$/"/
14998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15003 ' <conf$$subs.awk | sed '
15008 ' >>$CONFIG_STATUS || ac_write_fail=1
15009 rm -f conf$$subs.awk
15010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15012 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15013 for (key in S) S_is_set[key] = 1
15019 nfields = split(line, field, "@")
15021 len = length(field[1])
15022 for (i = 2; i < nfields; i++) {
15024 keylen = length(key)
15025 if (S_is_set[key]) {
15027 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15028 len += length(value) + length(field[++i])
15039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15040 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15041 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15044 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15045 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15048 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15049 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15050 # trailing colons and then remove the whole line if VPATH becomes empty
15051 # (actually we leave an empty line to preserve line numbers).
15052 if test "x$srcdir" = x.; then
15053 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 fi # test -n "$CONFIG_FILES"
15074 # Set up the scripts for CONFIG_HEADERS section.
15075 # No need to generate them if there are no CONFIG_HEADERS.
15076 # This happens for instance with `./config.status Makefile'.
15077 if test -n "$CONFIG_HEADERS"; then
15078 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15082 # Transform confdefs.h into an awk script `defines.awk', embedded as
15083 # here-document in config.status, that substitutes the proper values into
15084 # config.h.in to produce config.h.
15086 # Create a delimiter string that does not exist in confdefs.h, to ease
15087 # handling of long lines.
15089 for ac_last_try in false false :; do
15090 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15091 if test -z "$ac_tt"; then
15093 elif $ac_last_try; then
15094 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15100 # For the awk script, D is an array of macro values keyed by name,
15101 # likewise P contains macro parameters if any. Preserve backslash
15102 # newline sequences.
15104 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15106 s/.\{148\}/&'"$ac_delim"'/g
15109 s/^[ ]*#[ ]*define[ ][ ]*/ /
15116 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15118 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15122 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15123 D["\1"]=" \3\\\\\\n"\\/p
15125 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15130 s/.\{148\}/&'"$ac_delim"'/g
15135 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15138 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15140 ' <confdefs.h | sed '
15141 s/'"$ac_delim"'/"\\\
15142 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145 for (key in D) D_is_set[key] = 1
15148 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15150 split(line, arg, " ")
15151 if (arg[1] == "#") {
15155 defundef = substr(arg[1], 2)
15158 split(mac1, mac2, "(") #)
15160 prefix = substr(line, 1, index(line, defundef) - 1)
15161 if (D_is_set[macro]) {
15162 # Preserve the white space surrounding the "#".
15163 print prefix "define", macro P[macro] D[macro]
15166 # Replace #undef with comments. This is necessary, for example,
15167 # in the case of _POSIX_SOURCE, which is predefined and required
15168 # on some systems where configure will not decide to define it.
15169 if (defundef == "undef") {
15170 print "/*", prefix defundef, macro, "*/"
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15180 fi # test -n "$CONFIG_HEADERS"
15183 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15188 :[FHLC]) ac_mode=$ac_tag; continue;;
15190 case $ac_mode$ac_tag in
15192 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15193 :[FH]-) ac_tag=-:-;;
15194 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15211 -) ac_f="$ac_tmp/stdin";;
15212 *) # Look for the file first in the build tree, then in the source tree
15213 # (if the path is not absolute). The absolute path cannot be DOS-style,
15214 # because $ac_f cannot contain `:'.
15218 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15220 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15222 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15223 as_fn_append ac_file_inputs " '$ac_f'"
15226 # Let's still pretend it is `configure' which instantiates (i.e., don't
15227 # use $as_me), people would be surprised to read:
15228 # /* config.h. Generated by config.status. */
15229 configure_input='Generated from '`
15230 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15232 if test x"$ac_file" != x-; then
15233 configure_input="$ac_file. $configure_input"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15235 $as_echo "$as_me: creating $ac_file" >&6;}
15237 # Neutralize special characters interpreted by sed in replacement strings.
15238 case $configure_input in #(
15239 *\&* | *\|* | *\\* )
15240 ac_sed_conf_input=`$as_echo "$configure_input" |
15241 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15242 *) ac_sed_conf_input=$configure_input;;
15246 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15252 ac_dir=`$as_dirname -- "$ac_file" ||
15253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15254 X"$ac_file" : 'X\(//\)[^/]' \| \
15255 X"$ac_file" : 'X\(//\)$' \| \
15256 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15257 $as_echo X"$ac_file" |
15258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15262 /^X\(\/\/\)[^/].*/{
15275 as_dir="$ac_dir"; as_fn_mkdir_p
15279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15281 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15282 # A ".." for each directory in $ac_dir_suffix.
15283 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15284 case $ac_top_builddir_sub in
15285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15289 ac_abs_top_builddir=$ac_pwd
15290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15291 # for backward compatibility:
15292 ac_top_builddir=$ac_top_build_prefix
15295 .) # We are building in place.
15297 ac_top_srcdir=$ac_top_builddir_sub
15298 ac_abs_top_srcdir=$ac_pwd ;;
15299 [\\/]* | ?:[\\/]* ) # Absolute name.
15300 ac_srcdir=$srcdir$ac_dir_suffix;
15301 ac_top_srcdir=$srcdir
15302 ac_abs_top_srcdir=$srcdir ;;
15303 *) # Relative name.
15304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15305 ac_top_srcdir=$ac_top_build_prefix$srcdir
15306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15318 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15319 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15321 ac_MKDIR_P=$MKDIR_P
15323 [\\/$]* | ?:[\\/]* ) ;;
15324 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15329 # If the template does not know about datarootdir, expand it.
15330 # FIXME: This hack should be removed a few years after 2.60.
15331 ac_datarootdir_hack=; ac_datarootdir_seen=
15342 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15343 *datarootdir*) ac_datarootdir_seen=yes;;
15344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15346 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 ac_datarootdir_hack='
15350 s&@datadir@&$datadir&g
15351 s&@docdir@&$docdir&g
15352 s&@infodir@&$infodir&g
15353 s&@localedir@&$localedir&g
15354 s&@mandir@&$mandir&g
15355 s&\\\${datarootdir}&$datarootdir&g' ;;
15359 # Neutralize VPATH when `$srcdir' = `.'.
15360 # Shell code in configure.ac might set extrasub.
15361 # FIXME: do we really want to maintain this feature?
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363 ac_sed_extra="$ac_vpsub
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15369 s|@configure_input@|$ac_sed_conf_input|;t t
15370 s&@top_builddir@&$ac_top_builddir_sub&;t t
15371 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15372 s&@srcdir@&$ac_srcdir&;t t
15373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15374 s&@top_srcdir@&$ac_top_srcdir&;t t
15375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15376 s&@builddir@&$ac_builddir&;t t
15377 s&@abs_builddir@&$ac_abs_builddir&;t t
15378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15379 s&@INSTALL@&$ac_INSTALL&;t t
15380 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15381 $ac_datarootdir_hack
15383 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15384 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15386 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15387 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15388 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15389 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15391 which seems to be undefined. Please make sure it is defined" >&5
15392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15393 which seems to be undefined. Please make sure it is defined" >&2;}
15395 rm -f "$ac_tmp/stdin"
15397 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15398 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15406 if test x"$ac_file" != x-; then
15408 $as_echo "/* $configure_input */" \
15409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15410 } >"$ac_tmp/config.h" \
15411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15412 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15414 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15417 mv "$ac_tmp/config.h" "$ac_file" \
15418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15421 $as_echo "/* $configure_input */" \
15422 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15423 || as_fn_error $? "could not create -" "$LINENO" 5
15425 # Compute "$ac_file"'s index in $config_headers.
15428 for _am_header in $config_headers :; do
15429 case $_am_header in
15430 $_am_arg | $_am_arg:* )
15433 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15436 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15437 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15438 X"$_am_arg" : 'X\(//\)[^/]' \| \
15439 X"$_am_arg" : 'X\(//\)$' \| \
15440 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15441 $as_echo X"$_am_arg" |
15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15446 /^X\(\/\/\)[^/].*/{
15458 s/.*/./; q'`/stamp-h$_am_stamp_count
15461 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15462 $as_echo "$as_me: executing $ac_file commands" >&6;}
15467 case $ac_file$ac_mode in
15468 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15469 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15470 # are listed without --file. Let's play safe and only enable the eval
15471 # if we detect the quoting.
15472 case $CONFIG_FILES in
15473 *\'*) eval set x "$CONFIG_FILES" ;;
15474 *) set x $CONFIG_FILES ;;
15479 # Strip MF so we end up with the name of the file.
15480 mf=`echo "$mf" | sed -e 's/:.*$//'`
15481 # Check whether this is an Automake generated Makefile or not.
15482 # We used to match only the files named `Makefile.in', but
15483 # some people rename them; so instead we look at the file content.
15484 # Grep'ing the first line is not enough: some people post-process
15485 # each Makefile.in and add a new line on top of each file to say so.
15486 # Grep'ing the whole file is not good either: AIX grep has a line
15487 # limit of 2048, but all sed's we know have understand at least 4000.
15488 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15489 dirpart=`$as_dirname -- "$mf" ||
15490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15491 X"$mf" : 'X\(//\)[^/]' \| \
15492 X"$mf" : 'X\(//\)$' \| \
15493 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15499 /^X\(\/\/\)[^/].*/{
15515 # Extract the definition of DEPDIR, am__include, and am__quote
15516 # from the Makefile without running `make'.
15517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15518 test -z "$DEPDIR" && continue
15519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15520 test -z "am__include" && continue
15521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15522 # When using ansi2knr, U may be empty or an underscore; expand it
15523 U=`sed -n 's/^U = //p' < "$mf"`
15524 # Find all dependency output files, they are included files with
15525 # $(DEPDIR) in their names. We invoke sed twice because it is the
15526 # simplest approach to changing $(DEPDIR) to its actual value in the
15528 for file in `sed -n "
15529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15531 # Make sure the directory exists.
15532 test -f "$dirpart/$file" && continue
15533 fdir=`$as_dirname -- "$file" ||
15534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535 X"$file" : 'X\(//\)[^/]' \| \
15536 X"$file" : 'X\(//\)$' \| \
15537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X"$file" |
15539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15543 /^X\(\/\/\)[^/].*/{
15556 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15557 # echo "creating $dirpart/$file"
15558 echo '# dummy' > "$dirpart/$file"
15565 # See if we are running on zsh, and set the options which allow our
15566 # commands through without removal of \ escapes.
15567 if test -n "${ZSH_VERSION+set}" ; then
15568 setopt NO_GLOB_SUBST
15571 cfgfile="${ofile}T"
15572 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15575 cat <<_LT_EOF >> "$cfgfile"
15578 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15579 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15581 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15583 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15584 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15586 # Written by Gordon Matzigkeit, 1996
15588 # This file is part of GNU Libtool.
15590 # GNU Libtool is free software; you can redistribute it and/or
15591 # modify it under the terms of the GNU General Public License as
15592 # published by the Free Software Foundation; either version 2 of
15593 # the License, or (at your option) any later version.
15595 # As a special exception to the GNU General Public License,
15596 # if you distribute this file as part of a program or library that
15597 # is built using GNU Libtool, you may include this file under the
15598 # same distribution terms that you use for the rest of that program.
15600 # GNU Libtool is distributed in the hope that it will be useful,
15601 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15603 # GNU General Public License for more details.
15605 # You should have received a copy of the GNU General Public License
15606 # along with GNU Libtool; see the file COPYING. If not, a copy
15607 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15608 # obtained by writing to the Free Software Foundation, Inc.,
15609 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15612 # The names of the tagged configurations supported by this script.
15615 # ### BEGIN LIBTOOL CONFIG
15617 # Whether or not to build static libraries.
15618 build_old_libs=$enable_static
15620 # Which release of libtool.m4 was used?
15621 macro_version=$macro_version
15622 macro_revision=$macro_revision
15624 # Whether or not to build shared libraries.
15625 build_libtool_libs=$enable_shared
15627 # What type of objects to build.
15630 # Whether or not to optimize for fast installation.
15631 fast_install=$enable_fast_install
15633 # Shell to use when invoking shell scripts.
15636 # An echo program that protects backslashes.
15639 # The PATH separator for the build system.
15640 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15643 host_alias=$host_alias
15647 # The build system.
15648 build_alias=$build_alias
15652 # A sed program that does not truncate output.
15655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15656 Xsed="\$SED -e 1s/^X//"
15658 # A grep program that handles long lines.
15664 # A literal string matcher.
15667 # A BSD- or MS-compatible name lister.
15670 # Whether we need soft or hard links.
15673 # What is the maximum length of a command?
15674 max_cmd_len=$max_cmd_len
15676 # Object file suffix (normally "o").
15679 # Executable file suffix (normally "").
15682 # whether the shell understands "unset".
15685 # turn spaces into newlines.
15688 # turn newlines into spaces.
15691 # convert \$build file names to \$host format.
15692 to_host_file_cmd=$lt_cv_to_host_file_cmd
15694 # convert \$build files to toolchain format.
15695 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15697 # An object symbol dumper.
15698 OBJDUMP=$lt_OBJDUMP
15700 # Method to check whether dependent libraries are shared objects.
15701 deplibs_check_method=$lt_deplibs_check_method
15703 # Command to use when deplibs_check_method = "file_magic".
15704 file_magic_cmd=$lt_file_magic_cmd
15706 # How to find potential files when deplibs_check_method = "file_magic".
15707 file_magic_glob=$lt_file_magic_glob
15709 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15710 want_nocaseglob=$lt_want_nocaseglob
15712 # DLL creation program.
15713 DLLTOOL=$lt_DLLTOOL
15715 # Command to associate shared and link libraries.
15716 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15721 # Flags to create an archive.
15722 AR_FLAGS=$lt_AR_FLAGS
15724 # How to feed a file listing to the archiver.
15725 archiver_list_spec=$lt_archiver_list_spec
15727 # A symbol stripping program.
15730 # Commands used to install an old-style archive.
15732 old_postinstall_cmds=$lt_old_postinstall_cmds
15733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15735 # Whether to use a lock for old archive extraction.
15736 lock_old_archive_extraction=$lock_old_archive_extraction
15741 # LTCC compiler flags.
15742 LTCFLAGS=$lt_CFLAGS
15744 # Take the output of nm and produce a listing of raw symbols and C names.
15745 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15747 # Transform the output of nm in a proper C declaration.
15748 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15750 # Transform the output of nm in a C name address pair.
15751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15753 # Transform the output of nm in a C name address pair when lib prefix is needed.
15754 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15756 # Specify filename containing input files for \$NM.
15757 nm_file_list_spec=$lt_nm_file_list_spec
15759 # The root where to search for dependent libraries,and in which our libraries should be installed.
15760 lt_sysroot=$lt_sysroot
15762 # The name of the directory that contains temporary libtool files.
15765 # Used to examine libraries when file_magic_cmd begins with "file".
15766 MAGIC_CMD=$MAGIC_CMD
15768 # Must we lock files when doing compilation?
15769 need_locks=$lt_need_locks
15772 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15774 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15775 DSYMUTIL=$lt_DSYMUTIL
15777 # Tool to change global to local symbols on Mac OS X.
15780 # Tool to manipulate fat objects and archives on Mac OS X.
15783 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15786 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15787 OTOOL64=$lt_OTOOL64
15789 # Old archive suffix (normally "a").
15792 # Shared library suffix (normally ".so").
15793 shrext_cmds=$lt_shrext_cmds
15795 # The commands to extract the exported symbol list from a shared archive.
15796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15798 # Variables whose values should be saved in libtool wrapper scripts and
15799 # restored at link time.
15800 variables_saved_for_relink=$lt_variables_saved_for_relink
15802 # Do we need the "lib" prefix for modules?
15803 need_lib_prefix=$need_lib_prefix
15805 # Do we need a version for libraries?
15806 need_version=$need_version
15808 # Library versioning type.
15809 version_type=$version_type
15811 # Shared library runtime path variable.
15812 runpath_var=$runpath_var
15814 # Shared library path variable.
15815 shlibpath_var=$shlibpath_var
15817 # Is shlibpath searched before the hard-coded library search path?
15818 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15820 # Format of library name prefix.
15821 libname_spec=$lt_libname_spec
15823 # List of archive names. First name is the real one, the rest are links.
15824 # The last name is the one that the linker finds with -lNAME
15825 library_names_spec=$lt_library_names_spec
15827 # The coded name of the library, if different from the real name.
15828 soname_spec=$lt_soname_spec
15830 # Permission mode override for installation of shared libraries.
15831 install_override_mode=$lt_install_override_mode
15833 # Command to use after installation of a shared archive.
15834 postinstall_cmds=$lt_postinstall_cmds
15836 # Command to use after uninstallation of a shared archive.
15837 postuninstall_cmds=$lt_postuninstall_cmds
15839 # Commands used to finish a libtool library installation in a directory.
15840 finish_cmds=$lt_finish_cmds
15842 # As "finish_cmds", except a single script fragment to be evaled but
15844 finish_eval=$lt_finish_eval
15846 # Whether we should hardcode library paths into libraries.
15847 hardcode_into_libs=$hardcode_into_libs
15849 # Compile-time system search path for libraries.
15850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15852 # Run-time system search path for libraries.
15853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15855 # Whether dlopen is supported.
15856 dlopen_support=$enable_dlopen
15858 # Whether dlopen of programs is supported.
15859 dlopen_self=$enable_dlopen_self
15861 # Whether dlopen of statically linked programs is supported.
15862 dlopen_self_static=$enable_dlopen_self_static
15864 # Commands to strip libraries.
15865 old_striplib=$lt_old_striplib
15866 striplib=$lt_striplib
15869 # The linker used to build libraries.
15872 # How to create reloadable object files.
15873 reload_flag=$lt_reload_flag
15874 reload_cmds=$lt_reload_cmds
15876 # Commands used to build an old-style archive.
15877 old_archive_cmds=$lt_old_archive_cmds
15879 # A language specific compiler.
15882 # Is the compiler the GNU compiler?
15885 # Compiler flag to turn off builtin functions.
15886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15888 # Additional compiler flags for building library objects.
15889 pic_flag=$lt_lt_prog_compiler_pic
15891 # How to pass a linker flag through the compiler.
15892 wl=$lt_lt_prog_compiler_wl
15894 # Compiler flag to prevent dynamic linking.
15895 link_static_flag=$lt_lt_prog_compiler_static
15897 # Does compiler simultaneously support -c and -o options?
15898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15900 # Whether or not to add -lc for building shared libraries.
15901 build_libtool_need_lc=$archive_cmds_need_lc
15903 # Whether or not to disallow shared libs when runtime libs are static.
15904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15906 # Compiler flag to allow reflexive dlopens.
15907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15909 # Compiler flag to generate shared objects directly from archives.
15910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15912 # Whether the compiler copes with passing no objects directly.
15913 compiler_needs_object=$lt_compiler_needs_object
15915 # Create an old-style archive from a shared archive.
15916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15918 # Create a temporary old-style archive to link instead of a shared archive.
15919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15921 # Commands used to build a shared archive.
15922 archive_cmds=$lt_archive_cmds
15923 archive_expsym_cmds=$lt_archive_expsym_cmds
15925 # Commands used to build a loadable module if different from building
15926 # a shared archive.
15927 module_cmds=$lt_module_cmds
15928 module_expsym_cmds=$lt_module_expsym_cmds
15930 # Whether we are building with GNU ld or not.
15931 with_gnu_ld=$lt_with_gnu_ld
15933 # Flag that allows shared libraries with undefined symbols to be built.
15934 allow_undefined_flag=$lt_allow_undefined_flag
15936 # Flag that enforces no undefined symbols.
15937 no_undefined_flag=$lt_no_undefined_flag
15939 # Flag to hardcode \$libdir into a binary during linking.
15940 # This must work even if \$libdir does not exist
15941 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15943 # Whether we need a single "-rpath" flag with a separated argument.
15944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15947 # DIR into the resulting binary.
15948 hardcode_direct=$hardcode_direct
15950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15951 # DIR into the resulting binary and the resulting library dependency is
15952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15953 # library is relocated.
15954 hardcode_direct_absolute=$hardcode_direct_absolute
15956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15957 # into the resulting binary.
15958 hardcode_minus_L=$hardcode_minus_L
15960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15961 # into the resulting binary.
15962 hardcode_shlibpath_var=$hardcode_shlibpath_var
15964 # Set to "yes" if building a shared library automatically hardcodes DIR
15965 # into the library and all subsequent libraries and executables linked
15967 hardcode_automatic=$hardcode_automatic
15969 # Set to yes if linker adds runtime paths of dependent libraries
15970 # to runtime path list.
15971 inherit_rpath=$inherit_rpath
15973 # Whether libtool must link a program against all its dependency libraries.
15974 link_all_deplibs=$link_all_deplibs
15976 # Set to "yes" if exported symbols are required.
15977 always_export_symbols=$always_export_symbols
15979 # The commands to list exported symbols.
15980 export_symbols_cmds=$lt_export_symbols_cmds
15982 # Symbols that should not be listed in the preloaded symbols.
15983 exclude_expsyms=$lt_exclude_expsyms
15985 # Symbols that must always be exported.
15986 include_expsyms=$lt_include_expsyms
15988 # Commands necessary for linking programs (against libraries) with templates.
15989 prelink_cmds=$lt_prelink_cmds
15991 # Commands necessary for finishing linking programs.
15992 postlink_cmds=$lt_postlink_cmds
15994 # Specify filename containing input files.
15995 file_list_spec=$lt_file_list_spec
15997 # How to hardcode a shared library path into an executable.
15998 hardcode_action=$hardcode_action
16000 # ### END LIBTOOL CONFIG
16006 cat <<\_LT_EOF >> "$cfgfile"
16007 # AIX sometimes has problems with the GCC collect2 program. For some
16008 # reason, if we set the COLLECT_NAMES environment variable, the problems
16009 # vanish in a puff of smoke.
16010 if test "X${COLLECT_NAMES+set}" != Xset; then
16012 export COLLECT_NAMES
16019 ltmain="$ac_aux_dir/ltmain.sh"
16022 # We use sed instead of cat because bash on DJGPP gets confused if
16023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16024 # text mode, it properly converts lines to CR/LF. This bash problem
16025 # is reportedly fixed, but why not run on old versions too?
16026 sed '$q' "$ltmain" >> "$cfgfile" \
16027 || (rm -f "$cfgfile"; exit 1)
16029 if test x"$xsi_shell" = xyes; then
16030 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16034 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16035 \ * ) func_dirname_result="${3}" ;;\
16037 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16038 && mv -f "$cfgfile.tmp" "$cfgfile" \
16039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16040 test 0 -eq $? || _lt_function_replace_fail=:
16043 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16046 \ func_basename_result="${1##*/}"\
16047 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16048 && mv -f "$cfgfile.tmp" "$cfgfile" \
16049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16050 test 0 -eq $? || _lt_function_replace_fail=:
16053 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16054 func_dirname_and_basename ()\
16057 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16058 \ * ) func_dirname_result="${3}" ;;\
16060 \ func_basename_result="${1##*/}"\
16061 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16062 && mv -f "$cfgfile.tmp" "$cfgfile" \
16063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16064 test 0 -eq $? || _lt_function_replace_fail=:
16067 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16070 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16071 \ # positional parameters, so assign one to ordinary parameter first.\
16072 \ func_stripname_result=${3}\
16073 \ func_stripname_result=${func_stripname_result#"${1}"}\
16074 \ func_stripname_result=${func_stripname_result%"${2}"}\
16075 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16076 && mv -f "$cfgfile.tmp" "$cfgfile" \
16077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16078 test 0 -eq $? || _lt_function_replace_fail=:
16081 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16082 func_split_long_opt ()\
16084 \ func_split_long_opt_name=${1%%=*}\
16085 \ func_split_long_opt_arg=${1#*=}\
16086 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16087 && mv -f "$cfgfile.tmp" "$cfgfile" \
16088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16089 test 0 -eq $? || _lt_function_replace_fail=:
16092 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16093 func_split_short_opt ()\
16095 \ func_split_short_opt_arg=${1#??}\
16096 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16097 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16098 && mv -f "$cfgfile.tmp" "$cfgfile" \
16099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16100 test 0 -eq $? || _lt_function_replace_fail=:
16103 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16107 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16108 \ *) func_lo2o_result=${1} ;;\
16110 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16111 && mv -f "$cfgfile.tmp" "$cfgfile" \
16112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16113 test 0 -eq $? || _lt_function_replace_fail=:
16116 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16119 func_xform_result=${1%.*}.lo\
16120 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16121 && mv -f "$cfgfile.tmp" "$cfgfile" \
16122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16123 test 0 -eq $? || _lt_function_replace_fail=:
16126 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16129 func_arith_result=$(( $* ))\
16130 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16131 && mv -f "$cfgfile.tmp" "$cfgfile" \
16132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16133 test 0 -eq $? || _lt_function_replace_fail=:
16136 sed -e '/^func_len ()$/,/^} # func_len /c\
16139 func_len_result=${#1}\
16140 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16141 && mv -f "$cfgfile.tmp" "$cfgfile" \
16142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16143 test 0 -eq $? || _lt_function_replace_fail=:
16147 if test x"$lt_shell_append" = xyes; then
16148 sed -e '/^func_append ()$/,/^} # func_append /c\
16151 eval "${1}+=\\${2}"\
16152 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16153 && mv -f "$cfgfile.tmp" "$cfgfile" \
16154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16155 test 0 -eq $? || _lt_function_replace_fail=:
16158 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16159 func_append_quoted ()\
16161 \ func_quote_for_eval "${2}"\
16162 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16163 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16164 && mv -f "$cfgfile.tmp" "$cfgfile" \
16165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16166 test 0 -eq $? || _lt_function_replace_fail=:
16169 # Save a `func_append' function call where possible by direct use of '+='
16170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16171 && mv -f "$cfgfile.tmp" "$cfgfile" \
16172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16173 test 0 -eq $? || _lt_function_replace_fail=:
16175 # Save a `func_append' function call even when '+=' is not available
16176 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16177 && mv -f "$cfgfile.tmp" "$cfgfile" \
16178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16179 test 0 -eq $? || _lt_function_replace_fail=:
16182 if test x"$_lt_function_replace_fail" = x":"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16184 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16188 mv -f "$cfgfile" "$ofile" ||
16189 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16200 ac_clean_files=$ac_clean_files_save
16202 test $ac_write_fail = 0 ||
16203 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16206 # configure is writing to config.log, and then calls config.status.
16207 # config.status does its own redirection, appending to config.log.
16208 # Unfortunately, on DOS this fails, as config.log is still kept open
16209 # by configure, so config.status won't be able to write to it; its
16210 # output is simply discarded. So we exec the FD to /dev/null,
16211 # effectively closing config.log, so it can be properly (re)opened and
16212 # appended to by config.status. When coming back to configure, we
16213 # need to make the FD available again.
16214 if test "$no_create" != yes; then
16216 ac_config_status_args=
16217 test "$silent" = yes &&
16218 ac_config_status_args="$ac_config_status_args --quiet"
16220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16223 # would make configure fail if this is the last instruction.
16224 $ac_cs_success || as_fn_exit 1
16226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}