2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for connman 1.29.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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.
588 PACKAGE_NAME='connman'
589 PACKAGE_TARNAME='connman'
590 PACKAGE_VERSION='1.29'
591 PACKAGE_STRING='connman 1.29'
595 ac_default_prefix=/usr/local
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
688 SESSION_POLICY_LOCAL_BUILTIN_FALSE
689 SESSION_POLICY_LOCAL_BUILTIN_TRUE
690 SESSION_POLICY_LOCAL_FALSE
691 SESSION_POLICY_LOCAL_TRUE
714 OPENVPN_BUILTIN_FALSE
719 OPENCONNECT_BUILTIN_FALSE
720 OPENCONNECT_BUILTIN_TRUE
724 HH2SERIAL_GPS_BUILTIN_FALSE
725 HH2SERIAL_GPS_BUILTIN_TRUE
781 MAINTAINER_MODE_FALSE
795 INSTALL_STRIP_PROGRAM
837 program_transform_name
850 enable_option_checking
852 enable_maintainer_mode
853 enable_dependency_tracking
877 enable_session_policy_local
878 with_stats_max_file_size
900 ac_precious_vars='build_alias
922 # Initialize some variables set by options.
924 ac_init_version=false
925 ac_unrecognized_opts=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name=s,x,x,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_$ac_useropt"
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1039 eval enable_$ac_useropt=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1269 eval with_$ac_useropt=\$ac_optarg ;;
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1285 eval with_$ac_useropt=no ;;
1288 # Obsolete; use --with-x.
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1356 # Be sure to have absolute directory names.
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures connman 1.29 to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/connman]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of connman 1.29:";;
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-silent-rules less verbose build output (undo: `make V=1')
1539 --disable-silent-rules verbose build output (undo: `make V=0')
1540 --enable-maintainer-mode enable make rules and dependencies not useful
1541 (and sometimes confusing) to the casual installer
1542 --disable-dependency-tracking speeds up one-time build
1543 --enable-dependency-tracking do not reject slow dependency extractors
1544 --enable-static[=PKGS] build static libraries [default=no]
1545 --enable-shared[=PKGS] build shared libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --disable-optimization disable code optimization through compiler
1550 --enable-debug enable compiling with debugging information
1551 --enable-pie enable position independent executables flag
1552 --enable-hh2serial-gps enable hh2serial GPS support
1553 --enable-openconnect enable openconnect support
1554 --enable-openvpn enable openvpn support
1555 --enable-vpnc enable vpnc support
1556 --enable-l2tp enable l2tp support
1557 --enable-pptp enable pptp support
1558 --enable-iospm enable Intel OSPM support
1559 --enable-tist enable TI Shared Transport support
1560 --enable-session-policy-local
1561 enable local file Session policy configuration
1563 --enable-test enable test/example scripts
1564 --enable-nmcompat enable Network Manager support
1565 --enable-polkit enable PolicyKit support
1566 --enable-selinux enable selinux support
1567 --disable-loopback disable loopback support
1568 --disable-ethernet disable Ethernet support
1569 --disable-gadget disable USB Gadget support
1570 --disable-wifi disable WiFi support
1571 --disable-bluetooth disable Bluetooth support
1572 --disable-ofono disable oFono support
1573 --disable-dundee disable dundee support (Bluetooth DUN)
1574 --disable-pacrunner disable PACrunner support
1575 --disable-neard disable Neard support
1576 --disable-wispr disable WISPr support
1577 --disable-tools disable testing tools
1578 --disable-client disable command line client
1579 --disable-datafiles don't install configuration and data files
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-sysroot=DIR Search for dependent libraries within DIR
1588 (or the compiler's sysroot if not specified).
1589 --with-openconnect=PROGRAM
1590 specify location of openconnect binary
1591 --with-openvpn=PROGRAM specify location of openvpn binary
1592 --with-vpnc=PROGRAM specify location of vpnc binary
1593 --with-l2tp=PROGRAM specify location of l2tp binary
1594 --with-pptp=PROGRAM specify location of pptp binary
1595 --with-stats-max-file-size=SIZE
1596 Maximal size of a statistics round robin file
1597 --with-dbusconfdir=PATH path to D-Bus config directory
1598 --with-dbusdatadir=PATH path to D-Bus data directory
1599 --with-systemdunitdir=DIR
1600 path to systemd service directory
1602 Some influential environment variables:
1603 PKG_CONFIG path to pkg-config utility
1605 directories to add to pkg-config's search path
1607 path overriding pkg-config's built-in search path
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1616 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1617 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1618 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1619 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1621 C compiler flags for XTABLES, overriding pkg-config
1623 linker flags for XTABLES, overriding pkg-config
1625 C compiler flags for GNUTLS, overriding pkg-config
1626 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1661 .) # We are building in place.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1694 connman configure 1.29
1695 generated by GNU Autoconf 2.69
1697 Copyright (C) 2012 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_compile
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 test -x conftest$ac_exeext
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_link
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_header_compile
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1902 # ac_fn_c_check_func LINENO FUNC VAR
1903 # ----------------------------------
1904 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1905 ac_fn_c_check_func ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1917 #define $2 innocuous_$2
1919 /* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char $2 (); below.
1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1922 <limits.h> exists even on freestanding compilers. */
1925 # include <limits.h>
1927 # include <assert.h>
1932 /* Override any GCC internal prototype to avoid an error.
1933 Use char because int might match the return type of a GCC
1934 builtin and then its argument prototype would still apply. */
1939 /* The GNU C library defines this for functions which it implements
1940 to always fail with ENOSYS. Some functions are actually named
1941 something starting with __ and the normal name is an alias. */
1942 #if defined __stub_$2 || defined __stub___$2
1954 if ac_fn_c_try_link "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext \
1960 conftest$ac_exeext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_func
1969 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1972 # the include files in INCLUDES and setting the cache variable VAR
1974 ac_fn_c_check_header_mongrel ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if eval \${$3+:} false; then :
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1987 # Is the header compilable?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1989 $as_echo_n "checking $2 usability... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_header_compiler=yes
1998 ac_header_compiler=no
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2002 $as_echo "$ac_header_compiler" >&6; }
2004 # Is the header present?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2006 $as_echo_n "checking $2 presence... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 if ac_fn_c_try_cpp "$LINENO"; then :
2012 ac_header_preproc=yes
2014 ac_header_preproc=no
2016 rm -f conftest.err conftest.i conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2018 $as_echo "$ac_header_preproc" >&6; }
2020 # So? What about this header?
2021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2024 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2030 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2032 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2034 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2036 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 eval "$3=\$ac_header_compiler"
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_header_mongrel
2055 cat >config.log <<_ACEOF
2056 This file contains any messages produced by compilers while
2057 running configure, to aid debugging if configure makes a mistake.
2059 It was created by connman $as_me 1.29, which was
2060 generated by GNU Autoconf 2.69. Invocation command line was
2072 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2078 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2081 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2082 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2083 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2085 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2086 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2087 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 $as_echo "PATH: $as_dir"
2112 # Keep a trace of the command line.
2113 # Strip out --no-create and --no-recursion so they do not pile up.
2114 # Strip out --silent because we don't want to record it for future runs.
2115 # Also quote any args containing shell meta-characters.
2116 # Make two passes to allow for proper duplicate-argument suppression.
2120 ac_must_keep_next=false
2126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128 | -silent | --silent | --silen | --sile | --sil)
2131 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2136 as_fn_append ac_configure_args1 " '$ac_arg'"
2137 if test $ac_must_keep_next = true; then
2138 ac_must_keep_next=false # Got value, back to normal.
2141 *=* | --config-cache | -C | -disable-* | --disable-* \
2142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144 | -with-* | --with-* | -without-* | --without-* | --x)
2145 case "$ac_configure_args0 " in
2146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149 -* ) ac_must_keep_next=true ;;
2152 as_fn_append ac_configure_args " '$ac_arg'"
2157 { ac_configure_args0=; unset ac_configure_args0;}
2158 { ac_configure_args1=; unset ac_configure_args1;}
2160 # When interrupted or exit'd, cleanup temporary files, and complete
2161 # config.log. We remove comments because anyway the quotes in there
2162 # would cause problems or look ugly.
2163 # WARNING: Use '\'' to represent an apostrophe within the trap.
2164 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165 trap 'exit_status=$?
2166 # Save into config.log some information that might help in debugging.
2170 $as_echo "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2174 # The following way of writing the cache mishandles newlines in values,
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185 _ | IFS | as_nl) ;; #(
2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187 *) { eval $ac_var=; unset $ac_var;} ;;
2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206 $as_echo "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2210 for ac_var in $ac_subst_vars
2212 eval ac_val=\$$ac_var
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 $as_echo "$ac_var='\''$ac_val'\''"
2220 if test -n "$ac_subst_files"; then
2221 $as_echo "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2225 for ac_var in $ac_subst_files
2227 eval ac_val=\$$ac_var
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 $as_echo "$ac_var='\''$ac_val'\''"
2236 if test -s confdefs.h; then
2237 $as_echo "## ----------- ##
2244 test "$ac_signal" != 0 &&
2245 $as_echo "$as_me: caught signal $ac_signal"
2246 $as_echo "$as_me: exit $exit_status"
2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252 for ac_signal in 1 2 13 15; do
2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2260 $as_echo "/* confdefs.h */" > confdefs.h
2262 # Predefined preprocessor variables.
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_NAME "$PACKAGE_NAME"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_STRING "$PACKAGE_STRING"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_URL "$PACKAGE_URL"
2289 # Let the site file select an alternate cache file if it wants to.
2290 # Prefer an explicitly selected file to automatically selected ones.
2293 if test -n "$CONFIG_SITE"; then
2294 # We do not want a PATH search for config.site.
2295 case $CONFIG_SITE in #((
2296 -*) ac_site_file1=./$CONFIG_SITE;;
2297 */*) ac_site_file1=$CONFIG_SITE;;
2298 *) ac_site_file1=./$CONFIG_SITE;;
2300 elif test "x$prefix" != xNONE; then
2301 ac_site_file1=$prefix/share/config.site
2302 ac_site_file2=$prefix/etc/config.site
2304 ac_site_file1=$ac_default_prefix/share/config.site
2305 ac_site_file2=$ac_default_prefix/etc/config.site
2307 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2309 test "x$ac_site_file" = xNONE && continue
2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313 sed 's/^/| /' "$ac_site_file" >&5
2315 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2322 if test -r "$cache_file"; then
2323 # Some versions of bash will fail to source /dev/null (special files
2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 $as_echo "$as_me: loading cache $cache_file" >&6;}
2329 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330 *) . "./$cache_file";;
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 $as_echo "$as_me: creating cache $cache_file" >&6;}
2339 # Check that the precious variables saved in the cache have kept the same
2341 ac_cache_corrupted=false
2342 for ac_var in $ac_precious_vars; do
2343 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344 eval ac_new_set=\$ac_env_${ac_var}_set
2345 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346 eval ac_new_val=\$ac_env_${ac_var}_value
2347 case $ac_old_set,$ac_new_set in
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351 ac_cache_corrupted=: ;;
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2358 if test "x$ac_old_val" != "x$ac_new_val"; then
2359 # differences in whitespace do not lead to failure.
2360 ac_old_val_w=`echo x $ac_old_val`
2361 ac_new_val_w=`echo x $ac_new_val`
2362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365 ac_cache_corrupted=:
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369 eval $ac_var=\$ac_old_val
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2372 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2374 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2377 # Pass precious variables to config.status.
2378 if test "$ac_new_set" = set; then
2380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381 *) ac_arg=$ac_var=$ac_new_val ;;
2383 case " $ac_configure_args " in
2384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2385 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389 if $ac_cache_corrupted; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2396 ## -------------------- ##
2397 ## Main body of script. ##
2398 ## -------------------- ##
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 am__api_version='1.11'
2411 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2412 if test -f "$ac_dir/install-sh"; then
2414 ac_install_sh="$ac_aux_dir/install-sh -c"
2416 elif test -f "$ac_dir/install.sh"; then
2418 ac_install_sh="$ac_aux_dir/install.sh -c"
2420 elif test -f "$ac_dir/shtool"; then
2422 ac_install_sh="$ac_aux_dir/shtool install -c"
2426 if test -z "$ac_aux_dir"; then
2427 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430 # These three variables are undocumented and unsupported,
2431 # and are intended to be withdrawn in a future Autoconf release.
2432 # They can cause serious problems if a builder's source tree is in a directory
2433 # whose full name contains unusual characters.
2434 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2439 # Find a good install program. We prefer a C program (faster),
2440 # so one script is as good as another. But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if ${ac_cv_path_install+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466 ./ | .// | /[cC]/* | \
2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2474 for ac_prog in ginstall scoinst install; do
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2477 if test $ac_prog = install &&
2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # AIX install. It has an incompatible calling convention.
2481 elif test $ac_prog = install &&
2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # program-specific install script used by HP pwplus--don't use.
2486 rm -rf conftest.one conftest.two conftest.dir
2487 echo one > conftest.one
2488 echo two > conftest.two
2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491 test -s conftest.one && test -s conftest.two &&
2492 test -s conftest.dir/conftest.one &&
2493 test -s conftest.dir/conftest.two
2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508 rm -rf conftest.one conftest.two conftest.dir
2511 if test "${ac_cv_path_install+set}" = set; then
2512 INSTALL=$ac_cv_path_install
2514 # As a last resort, use the slow shell script. Don't cache a
2515 # value for INSTALL within a source directory, because that will
2516 # break other packages using the cache if that directory is
2517 # removed, or if the value is a relative name.
2518 INSTALL=$ac_install_sh
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2533 $as_echo_n "checking whether build environment is sane... " >&6; }
2536 echo timestamp > conftest.file
2537 # Reject unsafe characters in $srcdir or the absolute working directory
2538 # name. Accept space and tab only in the latter.
2542 *[\\\"\#\$\&\'\`$am_lf]*)
2543 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2547 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2550 # Do `set' in a subshell so we don't clobber the current shell's
2551 # arguments. Must try -L first in case configure is actually a
2552 # symlink; some systems play weird games with the mod time of symlinks
2553 # (eg FreeBSD returns the mod time of the symlink's containing
2556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2557 if test "$*" = "X"; then
2559 set X `ls -t "$srcdir/configure" conftest.file`
2562 if test "$*" != "X $srcdir/configure conftest.file" \
2563 && test "$*" != "X conftest.file $srcdir/configure"; then
2565 # If neither matched, then we have a broken ls. This can happen
2566 # if, for instance, CONFIG_SHELL is bash and it inherits a
2567 # broken ls alias from the environment. This has actually
2568 # happened. Such a system could not be considered "sane".
2569 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2570 alias in your environment" "$LINENO" 5
2573 test "$2" = conftest.file
2579 as_fn_error $? "newly created file is older than distributed files!
2580 Check your system clock" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 test "$program_prefix" != NONE &&
2585 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2586 # Use a double $ so make ignores it.
2587 test "$program_suffix" != NONE &&
2588 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2589 # Double any \ or $.
2590 # By default was `s,x,x', remove it if useless.
2591 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2592 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2594 # expand $ac_aux_dir to an absolute path
2595 am_aux_dir=`cd $ac_aux_dir && pwd`
2597 if test x"${MISSING+set}" != xset; then
2600 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2602 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2605 # Use eval to expand $SHELL
2606 if eval "$MISSING --run true"; then
2607 am_missing_run="$MISSING --run "
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2611 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2614 if test x"${install_sh}" != xset; then
2617 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2619 install_sh="\${SHELL} $am_aux_dir/install-sh"
2623 # Installed binaries are usually stripped using `strip' when the user
2624 # run `make install-strip'. However `strip' might not be the right
2625 # tool to use in cross-compilation environments, therefore Automake
2626 # will honor the `STRIP' environment variable to overrule this program.
2627 if test "$cross_compiling" != no; then
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}strip; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_STRIP+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 if test -n "$STRIP"; then
2637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 STRIP=$ac_cv_prog_STRIP
2657 if test -n "$STRIP"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2659 $as_echo "$STRIP" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2667 if test -z "$ac_cv_prog_STRIP"; then
2669 # Extract the first word of "strip", so it can be a program name with args.
2670 set dummy strip; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 if test -n "$ac_ct_STRIP"; then
2677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_STRIP="strip"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2697 if test -n "$ac_ct_STRIP"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2699 $as_echo "$ac_ct_STRIP" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2705 if test "x$ac_ct_STRIP" = x; then
2708 case $cross_compiling:$ac_tool_warned in
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712 ac_tool_warned=yes ;;
2717 STRIP="$ac_cv_prog_STRIP"
2721 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2724 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2725 if test -z "$MKDIR_P"; then
2726 if ${ac_cv_path_mkdir+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2733 test -z "$as_dir" && as_dir=.
2734 for ac_prog in mkdir gmkdir; do
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2737 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2738 'mkdir (GNU coreutils) '* | \
2739 'mkdir (coreutils) '* | \
2740 'mkdir (fileutils) '4.1*)
2741 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 test -d ./--version && rmdir ./--version
2752 if test "${ac_cv_path_mkdir+set}" = set; then
2753 MKDIR_P="$ac_cv_path_mkdir -p"
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for MKDIR_P within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 MKDIR_P="$ac_install_sh -d"
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2763 $as_echo "$MKDIR_P" >&6; }
2767 [\\/$]* | ?:[\\/]*) ;;
2768 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2771 for ac_prog in gawk mawk nawk awk
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_AWK+:} false; then :
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$AWK"; then
2781 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_AWK="$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$AWK"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2803 $as_echo "$AWK" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$AWK" && break
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2817 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 cat >conftest.make <<\_ACEOF
2823 @echo '@@@%%%=$(MAKE)=@@@%%%'
2825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2828 eval ac_cv_prog_make_${ac_make}_set=yes;;
2830 eval ac_cv_prog_make_${ac_make}_set=no;;
2834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 SET_MAKE="MAKE=${MAKE-make}"
2844 rm -rf .tst 2>/dev/null
2845 mkdir .tst 2>/dev/null
2846 if test -d .tst; then
2851 rmdir .tst 2>/dev/null
2853 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2855 # is not polluted with repeated "-I."
2856 am__isrc=' -I$(srcdir)'
2857 # test to see if srcdir already configured
2858 if test -f $srcdir/config.status; then
2859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2863 # test whether we have cygpath
2864 if test -z "$CYGPATH_W"; then
2865 if (cygpath --version) >/dev/null 2>/dev/null; then
2866 CYGPATH_W='cygpath -w'
2873 # Define the identity of the package.
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE "$PACKAGE"
2883 cat >>confdefs.h <<_ACEOF
2884 #define VERSION "$VERSION"
2887 # Some tools Automake needs.
2889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2903 # We need awk for the "check" target. The system "awk" is bad on
2905 # Always define AMTAR for backward compatibility. Yes, it's still used
2906 # in the wild :-( We should find a proper way to deprecate it ...
2909 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2915 ac_config_headers="$ac_config_headers config.h"
2918 # Check whether --enable-silent-rules was given.
2919 if test "${enable_silent_rules+set}" = set; then :
2920 enableval=$enable_silent_rules;
2923 case $enable_silent_rules in
2924 yes) AM_DEFAULT_VERBOSITY=0;;
2925 no) AM_DEFAULT_VERBOSITY=1;;
2926 *) AM_DEFAULT_VERBOSITY=0;;
2928 am_make=${MAKE-make}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2930 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2931 if ${am_cv_make_support_nested_variables+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if $as_echo 'TRUE=$(BAR$(V))
2940 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2941 am_cv_make_support_nested_variables=yes
2943 am_cv_make_support_nested_variables=no
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2947 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2948 if test $am_cv_make_support_nested_variables = yes; then
2950 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2952 AM_V=$AM_DEFAULT_VERBOSITY
2953 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2960 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2961 # Check whether --enable-maintainer-mode was given.
2962 if test "${enable_maintainer_mode+set}" = set; then :
2963 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2965 USE_MAINTAINER_MODE=no
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2969 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2970 if test $USE_MAINTAINER_MODE = yes; then
2971 MAINTAINER_MODE_TRUE=
2972 MAINTAINER_MODE_FALSE='#'
2974 MAINTAINER_MODE_TRUE='#'
2975 MAINTAINER_MODE_FALSE=
2978 MAINT=$MAINTAINER_MODE_TRUE
2991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2998 $as_echo_n "(cached) " >&6
3002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3024 if test -n "$PKG_CONFIG"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3026 $as_echo "$PKG_CONFIG" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$ac_cv_path_PKG_CONFIG"; then
3035 ac_pt_PKG_CONFIG=$PKG_CONFIG
3036 # Extract the first word of "pkg-config", so it can be a program name with args.
3037 set dummy pkg-config; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 case $ac_pt_PKG_CONFIG in
3045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3067 if test -n "$ac_pt_PKG_CONFIG"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3075 if test "x$ac_pt_PKG_CONFIG" = x; then
3078 case $cross_compiling:$ac_tool_warned in
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3084 PKG_CONFIG=$ac_pt_PKG_CONFIG
3087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3091 if test -n "$PKG_CONFIG"; then
3092 _pkg_min_version=0.9.0
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3106 if (test "${CFLAGS}" = ""); then
3107 CFLAGS="-Wall -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3109 if (test "$USE_MAINTAINER_MODE" = "yes"); then
3110 CFLAGS+=" -Werror -Wextra"
3111 CFLAGS+=" -Wno-unused-parameter"
3112 CFLAGS+=" -Wno-missing-field-initializers"
3113 CFLAGS+=" -Wdeclaration-after-statement"
3114 CFLAGS+=" -Wmissing-declarations"
3115 CFLAGS+=" -Wredundant-decls"
3116 CFLAGS+=" -Wcast-align"
3117 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_CC"; then
3177 # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CC="gcc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_CC" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC="${ac_tool_prefix}cc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289 ac_prog_rejected=yes
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 if test $ac_prog_rejected = yes; then
3301 # We found a bogon in the path, so make sure we never use it.
3302 set dummy $ac_cv_prog_CC
3304 if test $# != 0; then
3305 # We chose a different compiler from the bogus one.
3306 # However, it has the same basename, so the bogon will be chosen
3307 # first if we set CC to just the basename; use the full file name.
3309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315 if test -n "$CC"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$CC" && break
3369 if test -z "$CC"; then
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$ac_ct_CC" && break
3413 if test "x$ac_ct_CC" = x; then
3416 case $cross_compiling:$ac_tool_warned in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438 for ac_option in --version -v -V -qversion; do
3439 { { ac_try="$ac_compiler $ac_option >&5"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 if test -s conftest.err; then
3450 ... rest of stderr output deleted ...
3451 10q' conftest.err >conftest.er1
3452 cat conftest.er1 >&5
3454 rm -f conftest.er1 conftest.err
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 for ac_file in $ac_files
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 if { { ac_try="$ac_link_default"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link_default") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3508 for ac_file in $ac_files ''
3510 test -f "$ac_file" || continue
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 # We found the default executable, but exeext='' is most
3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523 # We set ac_cv_exeext here because the later test for it is not
3524 # safe: cross compilers may not add the suffix if given an `-o'
3525 # argument, so we may need to know it at that point already.
3526 # Even if this section looks crufty: it has the advantage of
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3538 if test -z "$ac_file"; then :
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error 77 "C compiler cannot create executables
3547 See \`config.log' for more details" "$LINENO" 5; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 ac_exeext=$ac_cv_exeext
3558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3559 ac_clean_files=$ac_clean_files_save
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3561 $as_echo_n "checking for suffix of executables... " >&6; }
3562 if { { ac_try="$ac_link"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3574 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3575 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 for ac_file in conftest.exe conftest conftest.*; do
3578 test -f "$ac_file" || continue
3580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest conftest$ac_cv_exeext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3594 $as_echo "$ac_cv_exeext" >&6; }
3596 rm -f conftest.$ac_ext
3597 EXEEXT=$ac_cv_exeext
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3605 FILE *f = fopen ("conftest.out", "w");
3606 return ferror (f) || fclose (f) != 0;
3612 ac_clean_files="$ac_clean_files conftest.out"
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 if test "$cross_compiling" != yes; then
3618 { { ac_try="$ac_link"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link") 2>&5
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3629 if { ac_try='./conftest$ac_cv_exeext'
3630 { { case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_try") 2>&5
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; }; then
3642 if test "$cross_compiling" = maybe; then
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details" "$LINENO" 5; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3654 $as_echo "$cross_compiling" >&6; }
3656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3659 $as_echo_n "checking for suffix of object files... " >&6; }
3660 if ${ac_cv_objext+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 rm -f conftest.o conftest.obj
3675 if { { ac_try="$ac_compile"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_compile") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 for ac_file in conftest.o conftest.obj conftest.*; do
3687 test -f "$ac_file" || continue;
3689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of object files: cannot compile
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if ${ac_cv_c_compiler_gnu+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3728 if ac_fn_c_try_compile "$LINENO"; then :
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3739 if test $ac_compiler_gnu = yes; then
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3748 if ${ac_cv_prog_cc_g+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 ac_save_c_werror_flag=$ac_c_werror_flag
3752 ac_c_werror_flag=yes
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 if ac_fn_c_try_compile "$LINENO"; then :
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3797 if ac_fn_c_try_compile "$LINENO"; then :
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 $as_echo "$ac_cv_prog_cc_g" >&6; }
3809 if test "$ac_test_CFLAGS" = set; then
3810 CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812 if test "$GCC" = yes; then
3818 if test "$GCC" = yes; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826 if ${ac_cv_prog_cc_c89+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 ac_cv_prog_cc_c89=no
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3850 s = g (p, va_arg (v,int));
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3856 function prototypes and stuff, but not '\xHH' hex character constants.
3857 These don't provoke an error unfortunately, instead are silently treated
3858 as 'x'. The following induces an error, until -std is added to get
3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3860 array size at least. It's necessary to write '\x00'==0 to get something
3861 that's true only with -std. */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865 inside strings and character constants. */
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 CC="$ac_save_CC $ac_arg"
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_c89=$ac_arg
3890 rm -f core conftest.err conftest.$ac_objext
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 rm -f conftest.$ac_ext
3898 case "x$ac_cv_prog_cc_c89" in
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3906 CC="$CC $ac_cv_prog_cc_c89"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 DEPDIR="${am__leading_dot}deps"
3921 ac_config_commands="$ac_config_commands depfiles"
3924 am_make=${MAKE-make}
3925 cat > confinc << 'END'
3927 @echo this is the am__doit target
3930 # If we don't find an include directive, just comment out the code.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3932 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3936 # First try GNU make style include.
3937 echo "include confinc" > confmf
3938 # Ignore all kinds of additional output from `make'.
3939 case `$am_make -s -f confmf 2> /dev/null` in #(
3940 *the\ am__doit\ target*)
3946 # Now try BSD make style include.
3947 if test "$am__include" = "#"; then
3948 echo '.include "confinc"' > confmf
3949 case `$am_make -s -f confmf 2> /dev/null` in #(
3950 *the\ am__doit\ target*)
3951 am__include=.include
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3960 $as_echo "$_am_result" >&6; }
3961 rm -f confinc confmf
3963 # Check whether --enable-dependency-tracking was given.
3964 if test "${enable_dependency_tracking+set}" = set; then :
3965 enableval=$enable_dependency_tracking;
3968 if test "x$enable_dependency_tracking" != xno; then
3969 am_depcomp="$ac_aux_dir/depcomp"
3973 if test "x$enable_dependency_tracking" != xno; then
3983 depcc="$CC" am_compiler_list=
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986 $as_echo_n "checking dependency style of $depcc... " >&6; }
3987 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3991 # We make a subdir and do the tests there. Otherwise we can end up
3992 # making bogus files that we don't know about and never remove. For
3993 # instance it was reported that on HP-UX the gcc test will end up
3994 # making a dummy file named `D' -- because `-MD' means `put the output
3998 # Copy depcomp to subdir because otherwise we won't find it if we're
3999 # using a relative directory.
4000 cp "$am_depcomp" conftest.dir
4002 # We will build objects and dependencies in a subdirectory because
4003 # it helps to detect inapplicable dependency modes. For instance
4004 # both Tru64's cc and ICC support -MD to output dependencies as a
4005 # side effect of compilation, but ICC will put the dependencies in
4006 # the current directory while Tru64 will put them in the object
4010 am_cv_CC_dependencies_compiler_type=none
4011 if test "$am_compiler_list" = ""; then
4012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4015 case " $depcc " in #(
4016 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4019 for depmode in $am_compiler_list; do
4020 # Setup a source with many dependencies, because some compilers
4021 # like to wrap large dependency lists on column 80 (with \), and
4022 # we should not choose a depcomp mode which is confused by this.
4024 # We need to recreate these files for each test, as the compiler may
4025 # overwrite some of them when testing with obscure command lines.
4026 # This happens at least with the AIX C compiler.
4028 for i in 1 2 3 4 5 6; do
4029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031 # Solaris 8's {/usr,}/bin/sh.
4032 touch sub/conftst$i.h
4034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037 # mode. It turns out that the SunPro C++ compiler does not properly
4038 # handle `-M -o', and we need to detect this. Also, some Intel
4039 # versions had trouble with output in subdirs
4040 am__obj=sub/conftest.${OBJEXT-o}
4041 am__minus_obj="-o $am__obj"
4044 # This depmode causes a compiler race in universal mode.
4045 test "$am__universal" = false || continue
4048 # after this tag, mechanisms are not by side-effect, so they'll
4049 # only be used when explicitly requested
4050 if test "x$enable_dependency_tracking" = xyes; then
4056 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4057 # This compiler won't grok `-c -o', but also, the minuso test has
4058 # not run yet. These depmodes are late enough in the game, and
4059 # so weak that their functioning should not be impacted.
4060 am__obj=conftest.${OBJEXT-o}
4065 if depmode=$depmode \
4066 source=sub/conftest.c object=$am__obj \
4067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069 >/dev/null 2>conftest.err &&
4070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074 # icc doesn't choke on unknown options, it will just issue warnings
4075 # or remarks (even with -Werror). So we grep stderr for any message
4076 # that says an option was ignored or not supported.
4077 # When given -MP, icc 7.0 and 7.1 complain thusly:
4078 # icc: Command line warning: ignoring option '-M'; no argument required
4079 # The diagnosis changed in icc 8.0:
4080 # icc: Command line remark: option '-MP' not supported
4081 if (grep 'ignoring option' conftest.err ||
4082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083 am_cv_CC_dependencies_compiler_type=$depmode
4092 am_cv_CC_dependencies_compiler_type=none
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4101 test "x$enable_dependency_tracking" != xno \
4102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4104 am__fastdepCC_FALSE='#'
4106 am__fastdepCC_TRUE='#'
4107 am__fastdepCC_FALSE=
4111 if test "x$CC" != xcc; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4113 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4116 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4118 set dummy $CC; ac_cc=`$as_echo "$2" |
4119 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4120 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4134 # Make sure it works both with $CC and with simple cc.
4135 # We do the test twice because some compilers refuse to overwrite an
4136 # existing .o file with -o, though they will create one.
4137 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4139 if { { case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_try") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; } &&
4149 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 $as_echo "$ac_try_echo"; } >&5
4155 (eval "$ac_try") 2>&5
4157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158 test $ac_status = 0; };
4160 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4161 if test "x$CC" != xcc; then
4162 # Test first that cc exists at all.
4163 if { ac_try='cc -c conftest.$ac_ext >&5'
4164 { { case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169 $as_echo "$ac_try_echo"; } >&5
4170 (eval "$ac_try") 2>&5
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }; }; then
4174 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4176 if { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; } &&
4186 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_try") 2>&5
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; };
4200 # cc exists but doesn't like -o.
4201 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4206 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4208 rm -f core conftest*
4211 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4218 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4222 # FIXME: we rely on the cache variable name because
4223 # there is no other way.
4225 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4226 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4227 if test "$am_t" != yes; then
4228 # Losing compiler, so override with the script.
4229 # FIXME: It is wrong to rewrite CC.
4230 # But if we don't then we get into trouble of one sort or another.
4231 # A longer-term fix would be to have automake use am__CC in this case,
4232 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4233 CC="$am_aux_dir/compile $CC"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4239 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4240 if ${ac_cv_prog_cc_pie+:} false; then :
4241 $as_echo_n "(cached) " >&6
4244 echo 'void f(){}' > conftest.c
4245 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4246 ac_cv_prog_cc_pie=yes
4248 ac_cv_prog_cc_pie=no
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4254 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4262 # Check whether --enable-static was given.
4263 if test "${enable_static+set}" = set; then :
4264 enableval=$enable_static; p=${PACKAGE-default}
4266 yes) enable_static=yes ;;
4267 no) enable_static=no ;;
4270 # Look at the argument we got. We use all the common list separators.
4271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4272 for pkg in $enableval; do
4274 if test "X$pkg" = "X$p"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4296 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4301 macro_version='2.4.2'
4302 macro_revision='1.3337'
4316 ltmain="$ac_aux_dir/ltmain.sh"
4318 # Make sure we can run config.sub.
4319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4323 $as_echo_n "checking build system type... " >&6; }
4324 if ${ac_cv_build+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 ac_build_alias=$build_alias
4328 test "x$ac_build_alias" = x &&
4329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4330 test "x$ac_build_alias" = x &&
4331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4337 $as_echo "$ac_cv_build" >&6; }
4338 case $ac_cv_build in
4340 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4343 ac_save_IFS=$IFS; IFS='-'
4349 # Remember, the first character of IFS is used to create $*,
4350 # except with old shells:
4353 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4357 $as_echo_n "checking host system type... " >&6; }
4358 if ${ac_cv_host+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 if test "x$host_alias" = x; then
4362 ac_cv_host=$ac_cv_build
4364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4370 $as_echo "$ac_cv_host" >&6; }
4373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4376 ac_save_IFS=$IFS; IFS='-'
4382 # Remember, the first character of IFS is used to create $*,
4383 # except with old shells:
4386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4389 # Backslashify metacharacters that are still active within
4390 # double-quoted strings.
4391 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4393 # Same as above, but do not quote variable references.
4394 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4396 # Sed substitution to delay expansion of an escaped shell variable in a
4397 # double_quote_subst'ed string.
4398 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4400 # Sed substitution to delay expansion of an escaped single quote.
4401 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4403 # Sed substitution to avoid accidental globbing in evaled expressions
4404 no_glob_subst='s/\*/\\\*/g'
4406 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4408 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4411 $as_echo_n "checking how to print strings... " >&6; }
4412 # Test print first, because it will be a builtin if present.
4413 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4414 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4416 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4419 # Use this function as a fallback that always works.
4420 func_fallback_echo ()
4422 eval 'cat <<_LTECHO_EOF
4426 ECHO='func_fallback_echo'
4429 # func_echo_all arg...
4430 # Invoke $ECHO with all args, space-separated.
4437 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4438 $as_echo "printf" >&6; } ;;
4439 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4440 $as_echo "print -r" >&6; } ;;
4441 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4442 $as_echo "cat" >&6; } ;;
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4459 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4460 if ${ac_cv_path_SED+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4464 for ac_i in 1 2 3 4 5 6 7; do
4465 ac_script="$ac_script$as_nl$ac_script"
4467 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4468 { ac_script=; unset ac_script;}
4469 if test -z "$SED"; then
4470 ac_path_SED_found=false
4471 # Loop through the user's path and test for each of PROGNAME-LIST
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_prog in sed gsed; do
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4480 as_fn_executable_p "$ac_path_SED" || continue
4481 # Check for GNU ac_path_SED and select it if it is found.
4482 # Check for GNU $ac_path_SED
4483 case `"$ac_path_SED" --version 2>&1` in
4485 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4488 $as_echo_n 0123456789 >"conftest.in"
4491 cat "conftest.in" "conftest.in" >"conftest.tmp"
4492 mv "conftest.tmp" "conftest.in"
4493 cp "conftest.in" "conftest.nl"
4494 $as_echo '' >> "conftest.nl"
4495 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497 as_fn_arith $ac_count + 1 && ac_count=$as_val
4498 if test $ac_count -gt ${ac_path_SED_max-0}; then
4499 # Best one so far, save it but keep looking for a better one
4500 ac_cv_path_SED="$ac_path_SED"
4501 ac_path_SED_max=$ac_count
4503 # 10*(2^10) chars as input seems more than enough
4504 test $ac_count -gt 10 && break
4506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 $ac_path_SED_found && break 3
4514 if test -z "$ac_cv_path_SED"; then
4515 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4523 $as_echo "$ac_cv_path_SED" >&6; }
4524 SED="$ac_cv_path_SED"
4527 test -z "$SED" && SED=sed
4528 Xsed="$SED -e 1s/^X//"
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -z "$GREP"; then
4546 ac_path_GREP_found=false
4547 # Loop through the user's path and test for each of PROGNAME-LIST
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 test -z "$as_dir" && as_dir=.
4553 for ac_prog in grep ggrep; do
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556 as_fn_executable_p "$ac_path_GREP" || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558 # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 $as_echo_n 0123456789 >"conftest.in"
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 $as_echo 'GREP' >> "conftest.nl"
4571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573 as_fn_arith $ac_count + 1 && ac_count=$as_val
4574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_GREP="$ac_path_GREP"
4577 ac_path_GREP_max=$ac_count
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 $ac_path_GREP_found && break 3
4590 if test -z "$ac_cv_path_GREP"; then
4591 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 ac_cv_path_GREP=$GREP
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600 GREP="$ac_cv_path_GREP"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609 then ac_cv_path_EGREP="$GREP -E"
4611 if test -z "$EGREP"; then
4612 ac_path_EGREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in egrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622 as_fn_executable_p "$ac_path_EGREP" || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624 # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 $as_echo_n 0123456789 >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'EGREP' >> "conftest.nl"
4637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_EGREP="$ac_path_EGREP"
4643 ac_path_EGREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 $ac_path_EGREP_found && break 3
4656 if test -z "$ac_cv_path_EGREP"; then
4657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 ac_cv_path_EGREP=$EGREP
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667 EGREP="$ac_cv_path_EGREP"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4671 $as_echo_n "checking for fgrep... " >&6; }
4672 if ${ac_cv_path_FGREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4676 then ac_cv_path_FGREP="$GREP -F"
4678 if test -z "$FGREP"; then
4679 ac_path_FGREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in fgrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4689 as_fn_executable_p "$ac_path_FGREP" || continue
4690 # Check for GNU ac_path_FGREP and select it if it is found.
4691 # Check for GNU $ac_path_FGREP
4692 case `"$ac_path_FGREP" --version 2>&1` in
4694 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4697 $as_echo_n 0123456789 >"conftest.in"
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'FGREP' >> "conftest.nl"
4704 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_FGREP="$ac_path_FGREP"
4710 ac_path_FGREP_max=$ac_count
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4718 $ac_path_FGREP_found && break 3
4723 if test -z "$ac_cv_path_FGREP"; then
4724 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4727 ac_cv_path_FGREP=$FGREP
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4733 $as_echo "$ac_cv_path_FGREP" >&6; }
4734 FGREP="$ac_cv_path_FGREP"
4737 test -z "$GREP" && GREP=grep
4757 # Check whether --with-gnu-ld was given.
4758 if test "${with_gnu_ld+set}" = set; then :
4759 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4765 if test "$GCC" = yes; then
4766 # Check if gcc -print-prog-name=ld gives a path.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4768 $as_echo_n "checking for ld used by $CC... " >&6; }
4771 # gcc leaves a trailing carriage return which upsets mingw
4772 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4774 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4777 # Accept absolute paths.
4779 re_direlt='/[^/][^/]*/\.\./'
4780 # Canonicalize the pathname of ld
4781 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4782 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4783 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4785 test -z "$LD" && LD="$ac_prog"
4788 # If it fails, then pretend we aren't using GCC.
4792 # If it is relative, then search for the first ld in PATH.
4796 elif test "$with_gnu_ld" = yes; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4798 $as_echo_n "checking for GNU ld... " >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4801 $as_echo_n "checking for non-GNU ld... " >&6; }
4803 if ${lt_cv_path_LD+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -z "$LD"; then
4807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4808 for ac_dir in $PATH; do
4810 test -z "$ac_dir" && ac_dir=.
4811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4812 lt_cv_path_LD="$ac_dir/$ac_prog"
4813 # Check to see if the program is GNU ld. I'd rather use --version,
4814 # but apparently some variants of GNU ld only accept -v.
4815 # Break only if it was the GNU/non-GNU ld that we prefer.
4816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4817 *GNU* | *'with BFD'*)
4818 test "$with_gnu_ld" != no && break
4821 test "$with_gnu_ld" != yes && break
4828 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4833 if test -n "$LD"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4835 $as_echo "$LD" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4840 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4843 if ${lt_cv_prog_gnu_ld+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4847 case `$LD -v 2>&1 </dev/null` in
4848 *GNU* | *'with BFD'*)
4849 lt_cv_prog_gnu_ld=yes
4852 lt_cv_prog_gnu_ld=no
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4858 with_gnu_ld=$lt_cv_prog_gnu_ld
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4869 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4870 if ${lt_cv_path_NM+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$NM"; then
4874 # Let the user override the test.
4877 lt_nm_to_check="${ac_tool_prefix}nm"
4878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4879 lt_nm_to_check="$lt_nm_to_check nm"
4881 for lt_tmp_nm in $lt_nm_to_check; do
4882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4885 test -z "$ac_dir" && ac_dir=.
4886 tmp_nm="$ac_dir/$lt_tmp_nm"
4887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4888 # Check to see if the nm accepts a BSD-compat flag.
4889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4890 # nm: unknown option "B" ignored
4891 # Tru64's nm complains that /dev/null is an invalid object file
4892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4893 */dev/null* | *'Invalid file or object type'*)
4894 lt_cv_path_NM="$tmp_nm -B"
4898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4900 lt_cv_path_NM="$tmp_nm -p"
4904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4905 continue # so that we can try to find one that supports BSD flags
4914 : ${lt_cv_path_NM=no}
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4918 $as_echo "$lt_cv_path_NM" >&6; }
4919 if test "$lt_cv_path_NM" != "no"; then
4922 # Didn't find any BSD compatible name lister, look for dumpbin.
4923 if test -n "$DUMPBIN"; then :
4924 # Let the user override the test.
4926 if test -n "$ac_tool_prefix"; then
4927 for ac_prog in dumpbin "link -dump"
4929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_DUMPBIN+:} false; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$DUMPBIN"; then
4937 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 DUMPBIN=$ac_cv_prog_DUMPBIN
4957 if test -n "$DUMPBIN"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4959 $as_echo "$DUMPBIN" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 test -n "$DUMPBIN" && break
4969 if test -z "$DUMPBIN"; then
4970 ac_ct_DUMPBIN=$DUMPBIN
4971 for ac_prog in dumpbin "link -dump"
4973 # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 if test -n "$ac_ct_DUMPBIN"; then
4981 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5001 if test -n "$ac_ct_DUMPBIN"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5003 $as_echo "$ac_ct_DUMPBIN" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5010 test -n "$ac_ct_DUMPBIN" && break
5013 if test "x$ac_ct_DUMPBIN" = x; then
5016 case $cross_compiling:$ac_tool_warned in
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5022 DUMPBIN=$ac_ct_DUMPBIN
5026 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5028 DUMPBIN="$DUMPBIN -symbols"
5036 if test "$DUMPBIN" != ":"; then
5040 test -z "$NM" && NM=nm
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5048 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5049 if ${lt_cv_nm_interface+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 lt_cv_nm_interface="BSD nm"
5053 echo "int some_variable = 0;" > conftest.$ac_ext
5054 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5055 (eval "$ac_compile" 2>conftest.err)
5056 cat conftest.err >&5
5057 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5058 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5059 cat conftest.err >&5
5060 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5061 cat conftest.out >&5
5062 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5063 lt_cv_nm_interface="MS dumpbin"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5068 $as_echo "$lt_cv_nm_interface" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5071 $as_echo_n "checking whether ln -s works... " >&6; }
5073 if test "$LN_S" = "ln -s"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075 $as_echo "yes" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5078 $as_echo "no, using $LN_S" >&6; }
5081 # find the maximum length of command line arguments
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5083 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5084 if ${lt_cv_sys_max_cmd_len+:} false; then :
5085 $as_echo_n "(cached) " >&6
5092 # On DJGPP, this test can blow up pretty badly due to problems in libc
5093 # (any single argument exceeding 2000 bytes causes a buffer overrun
5094 # during glob expansion). Even if it were fixed, the result of this
5095 # check would be larger than it should be.
5096 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5100 # Under GNU Hurd, this test is not required because there is
5101 # no limit to the length of command line arguments.
5102 # Libtool will interpret -1 as no limit whatsoever
5103 lt_cv_sys_max_cmd_len=-1;
5106 cygwin* | mingw* | cegcc*)
5107 # On Win9x/ME, this test blows up -- it succeeds, but takes
5108 # about 5 minutes as the teststring grows exponentially.
5109 # Worse, since 9x/ME are not pre-emptively multitasking,
5110 # you end up with a "frozen" computer, even though with patience
5111 # the test eventually succeeds (with a max line length of 256k).
5112 # Instead, let's just punt: use the minimum linelength reported by
5113 # all of the supported platforms: 8192 (on NT/2K/XP).
5114 lt_cv_sys_max_cmd_len=8192;
5118 # On MiNT this can take a long time and run out of memory.
5119 lt_cv_sys_max_cmd_len=8192;
5123 # On AmigaOS with pdksh, this test takes hours, literally.
5124 # So we just punt and use a minimum line length of 8192.
5125 lt_cv_sys_max_cmd_len=8192;
5128 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5129 # This has been around since 386BSD, at least. Likely further.
5130 if test -x /sbin/sysctl; then
5131 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5132 elif test -x /usr/sbin/sysctl; then
5133 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5135 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5137 # And add a safety zone
5138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5143 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5144 lt_cv_sys_max_cmd_len=196608
5148 # The test takes a long time on OS/2.
5149 lt_cv_sys_max_cmd_len=8192
5153 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5154 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5155 # nice to cause kernel panics so lets avoid the loop below.
5156 # First set a reasonable default.
5157 lt_cv_sys_max_cmd_len=16384
5159 if test -x /sbin/sysconfig; then
5160 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5161 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5166 lt_cv_sys_max_cmd_len=102400
5168 sysv5* | sco5v6* | sysv4.2uw2*)
5169 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5170 if test -n "$kargmax"; then
5171 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5173 lt_cv_sys_max_cmd_len=32768
5177 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5178 if test -n "$lt_cv_sys_max_cmd_len"; then
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5182 # Make teststring a little bigger before we do anything with it.
5183 # a 1K string should be a reasonable start.
5184 for i in 1 2 3 4 5 6 7 8 ; do
5185 teststring=$teststring$teststring
5187 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5188 # If test is not a shell built-in, we'll probably end up computing a
5189 # maximum length that is only half of the actual maximum length, but
5191 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5192 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5193 test $i != 17 # 1/2 MB should be enough
5196 teststring=$teststring$teststring
5198 # Only check the string length outside the loop.
5199 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5201 # Add a significant safety factor because C++ compilers can tack on
5202 # massive amounts of additional arguments before passing them to the
5203 # linker. It appears as though 1/2 is a usable value.
5204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5211 if test -n $lt_cv_sys_max_cmd_len ; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5213 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5216 $as_echo "none" >&6; }
5218 max_cmd_len=$lt_cv_sys_max_cmd_len
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5230 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5231 # Try some XSI features
5234 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5236 && eval 'test $(( 1 + 1 )) -eq 2 \
5237 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5240 $as_echo "$xsi_shell" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5244 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5246 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5248 && lt_shell_append=yes
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5250 $as_echo "$lt_shell_append" >&6; }
5253 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5263 # test EBCDIC or ASCII
5264 case `echo X|tr X '\101'` in
5265 A) # ASCII based system
5266 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5267 lt_SP2NL='tr \040 \012'
5268 lt_NL2SP='tr \015\012 \040\040'
5270 *) # EBCDIC based system
5271 lt_SP2NL='tr \100 \n'
5272 lt_NL2SP='tr \r\n \100\100'
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5285 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5286 if ${lt_cv_to_host_file_cmd+:} false; then :
5287 $as_echo_n "(cached) " >&6
5292 *-*-mingw* ) # actually msys
5293 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5296 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5298 * ) # otherwise, assume *nix
5299 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5305 *-*-mingw* ) # actually msys
5306 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5309 lt_cv_to_host_file_cmd=func_convert_file_noop
5311 * ) # otherwise, assume *nix
5312 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5316 * ) # unhandled hosts (and "normal" native builds)
5317 lt_cv_to_host_file_cmd=func_convert_file_noop
5323 to_host_file_cmd=$lt_cv_to_host_file_cmd
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5325 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5332 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5333 if ${lt_cv_to_tool_file_cmd+:} false; then :
5334 $as_echo_n "(cached) " >&6
5336 #assume ordinary cross tools, or native build.
5337 lt_cv_to_tool_file_cmd=func_convert_file_noop
5341 *-*-mingw* ) # actually msys
5342 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5350 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5352 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5359 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5360 if ${lt_cv_ld_reload_flag+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 lt_cv_ld_reload_flag='-r'
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5366 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5367 reload_flag=$lt_cv_ld_reload_flag
5368 case $reload_flag in
5370 *) reload_flag=" $reload_flag" ;;
5372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5374 cygwin* | mingw* | pw32* | cegcc*)
5375 if test "$GCC" != yes; then
5380 if test "$GCC" = yes; then
5381 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5396 if test -n "$ac_tool_prefix"; then
5397 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$OBJDUMP"; then
5405 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 OBJDUMP=$ac_cv_prog_OBJDUMP
5425 if test -n "$OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5427 $as_echo "$OBJDUMP" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5435 if test -z "$ac_cv_prog_OBJDUMP"; then
5436 ac_ct_OBJDUMP=$OBJDUMP
5437 # Extract the first word of "objdump", so it can be a program name with args.
5438 set dummy objdump; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 if test -n "$ac_ct_OBJDUMP"; then
5445 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5465 if test -n "$ac_ct_OBJDUMP"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5467 $as_echo "$ac_ct_OBJDUMP" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5473 if test "x$ac_ct_OBJDUMP" = x; then
5476 case $cross_compiling:$ac_tool_warned in
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5480 ac_tool_warned=yes ;;
5482 OBJDUMP=$ac_ct_OBJDUMP
5485 OBJDUMP="$ac_cv_prog_OBJDUMP"
5488 test -z "$OBJDUMP" && OBJDUMP=objdump
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5499 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5500 if ${lt_cv_deplibs_check_method+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 lt_cv_file_magic_cmd='$MAGIC_CMD'
5504 lt_cv_file_magic_test_file=
5505 lt_cv_deplibs_check_method='unknown'
5506 # Need to set the preceding variable on all platforms that support
5507 # interlibrary dependencies.
5508 # 'none' -- dependencies not supported.
5509 # `unknown' -- same as none, but documents that we really don't know.
5510 # 'pass_all' -- all dependencies passed with no checks.
5511 # 'test_compile' -- check by making test program.
5512 # 'file_magic [[regex]]' -- check by looking for files in library path
5513 # which responds to the $file_magic_cmd with a given extended regex.
5514 # If you have `file' or equivalent on your system and you're not sure
5515 # whether `pass_all' will *always* work, you probably want this one.
5519 lt_cv_deplibs_check_method=pass_all
5523 lt_cv_deplibs_check_method=pass_all
5527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5528 lt_cv_file_magic_cmd='/usr/bin/file -L'
5529 lt_cv_file_magic_test_file=/shlib/libc.so
5533 # func_win32_libid is a shell function defined in ltmain.sh
5534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5535 lt_cv_file_magic_cmd='func_win32_libid'
5539 # Base MSYS/MinGW do not provide the 'file' command needed by
5540 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5541 # unless we find 'file', for example because we are cross-compiling.
5542 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5543 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5547 # Keep this pattern in sync with the one in func_win32_libid.
5548 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5549 lt_cv_file_magic_cmd='$OBJDUMP -f'
5554 # use the weaker test based on 'objdump'. See mingw*.
5555 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5556 lt_cv_file_magic_cmd='$OBJDUMP -f'
5559 darwin* | rhapsody*)
5560 lt_cv_deplibs_check_method=pass_all
5563 freebsd* | dragonfly*)
5564 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5567 # Not sure whether the presence of OpenBSD here was a mistake.
5568 # Let's accept both of them until this is cleared up.
5569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5570 lt_cv_file_magic_cmd=/usr/bin/file
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5575 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method=pass_all
5583 hpux10.20* | hpux11*)
5584 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591 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]'
5592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5596 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5606 irix5* | irix6* | nonstopux*)
5608 *-32|*"-32 ") libmagic=32-bit;;
5609 *-n32|*"-n32 ") libmagic=N32;;
5610 *-64|*"-64 ") libmagic=64-bit;;
5611 *) libmagic=never-match;;
5613 lt_cv_deplibs_check_method=pass_all
5616 # This must be glibc/ELF.
5617 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5618 lt_cv_deplibs_check_method=pass_all
5621 netbsd* | netbsdelf*-gnu)
5622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5631 lt_cv_file_magic_cmd=/usr/bin/file
5632 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636 lt_cv_deplibs_check_method=pass_all
5640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647 osf3* | osf4* | osf5*)
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5656 lt_cv_deplibs_check_method=pass_all
5659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5660 lt_cv_deplibs_check_method=pass_all
5664 case $host_vendor in
5666 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]'
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 lt_cv_file_magic_cmd='/bin/file'
5678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5679 lt_cv_file_magic_test_file=/lib/libc.so
5682 lt_cv_deplibs_check_method=pass_all
5685 lt_cv_deplibs_check_method=pass_all
5691 lt_cv_deplibs_check_method=pass_all
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5697 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5701 if test "$build" = "$host"; then
5704 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5707 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5713 file_magic_cmd=$lt_cv_file_magic_cmd
5714 deplibs_check_method=$lt_cv_deplibs_check_method
5715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5738 if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_DLLTOOL+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$DLLTOOL"; then
5747 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 DLLTOOL=$ac_cv_prog_DLLTOOL
5767 if test -n "$DLLTOOL"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5769 $as_echo "$DLLTOOL" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5777 if test -z "$ac_cv_prog_DLLTOOL"; then
5778 ac_ct_DLLTOOL=$DLLTOOL
5779 # Extract the first word of "dlltool", so it can be a program name with args.
5780 set dummy dlltool; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5784 $as_echo_n "(cached) " >&6
5786 if test -n "$ac_ct_DLLTOOL"; then
5787 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5807 if test -n "$ac_ct_DLLTOOL"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5809 $as_echo "$ac_ct_DLLTOOL" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5815 if test "x$ac_ct_DLLTOOL" = x; then
5818 case $cross_compiling:$ac_tool_warned in
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822 ac_tool_warned=yes ;;
5824 DLLTOOL=$ac_ct_DLLTOOL
5827 DLLTOOL="$ac_cv_prog_DLLTOOL"
5830 test -z "$DLLTOOL" && DLLTOOL=dlltool
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5842 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5843 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 lt_cv_sharedlib_from_linklib_cmd='unknown'
5849 cygwin* | mingw* | pw32* | cegcc*)
5850 # two different shell functions defined in ltmain.sh
5851 # decide which to use based on capabilities of $DLLTOOL
5852 case `$DLLTOOL --help 2>&1` in
5853 *--identify-strict*)
5854 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5857 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5862 # fallback: assume linklib IS sharedlib
5863 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5869 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5870 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5871 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5880 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_AR+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$AR"; then
5891 ac_cv_prog_AR="$AR" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 if test -n "$AR"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5913 $as_echo "$AR" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5920 test -n "$AR" && break
5923 if test -z "$AR"; then
5927 # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$ac_ct_AR"; then
5935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_AR="$ac_prog"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5957 $as_echo "$ac_ct_AR" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5964 test -n "$ac_ct_AR" && break
5967 if test "x$ac_ct_AR" = x; then
5970 case $cross_compiling:$ac_tool_warned in
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5994 $as_echo_n "checking for archiver @FILE support... " >&6; }
5995 if ${lt_cv_ar_at_file+:} false; then :
5996 $as_echo_n "(cached) " >&6
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 echo conftest.$ac_objext > conftest.lst
6012 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6014 (eval $lt_ar_try) 2>&5
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }
6018 if test "$ac_status" -eq 0; then
6019 # Ensure the archiver fails upon bogus file names.
6020 rm -f conftest.$ac_objext libconftest.a
6021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6022 (eval $lt_ar_try) 2>&5
6024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; }
6026 if test "$ac_status" -ne 0; then
6030 rm -f conftest.* libconftest.a
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6037 $as_echo "$lt_cv_ar_at_file" >&6; }
6039 if test "x$lt_cv_ar_at_file" = xno; then
6042 archiver_list_spec=$lt_cv_ar_at_file
6051 if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}strip; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_STRIP+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$STRIP"; then
6060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 STRIP=$ac_cv_prog_STRIP
6080 if test -n "$STRIP"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6082 $as_echo "$STRIP" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6090 if test -z "$ac_cv_prog_STRIP"; then
6092 # Extract the first word of "strip", so it can be a program name with args.
6093 set dummy strip; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 if test -n "$ac_ct_STRIP"; then
6100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 ac_cv_prog_ac_ct_STRIP="strip"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120 if test -n "$ac_ct_STRIP"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6122 $as_echo "$ac_ct_STRIP" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6128 if test "x$ac_ct_STRIP" = x; then
6131 case $cross_compiling:$ac_tool_warned in
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6140 STRIP="$ac_cv_prog_STRIP"
6143 test -z "$STRIP" && STRIP=:
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_RANLIB+:} false; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181 $as_echo "$RANLIB" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6189 if test -z "$ac_cv_prog_RANLIB"; then
6190 ac_ct_RANLIB=$RANLIB
6191 # Extract the first word of "ranlib", so it can be a program name with args.
6192 set dummy ranlib; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_ac_ct_RANLIB="ranlib"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219 if test -n "$ac_ct_RANLIB"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221 $as_echo "$ac_ct_RANLIB" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6227 if test "x$ac_ct_RANLIB" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6236 RANLIB=$ac_ct_RANLIB
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 test -z "$RANLIB" && RANLIB=:
6249 # Determine commands to create old-style static archives.
6250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6251 old_postinstall_cmds='chmod 644 $oldlib'
6252 old_postuninstall_cmds=
6254 if test -n "$RANLIB"; then
6257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6263 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6268 lock_old_archive_extraction=yes ;;
6270 lock_old_archive_extraction=no ;;
6311 # If no C compiler was specified, use CC.
6314 # If no C compiler flags were specified, use CFLAGS.
6315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6317 # Allow CC to be a program name with arguments.
6321 # Check for command to grab the raw symbol name followed by C symbol from nm.
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6323 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6324 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6325 $as_echo_n "(cached) " >&6
6328 # These are sane defaults that work on at least a few old systems.
6329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6331 # Character class describing NM global symbol codes.
6332 symcode='[BCDEGRST]'
6334 # Regexp to match symbols that can be accessed directly from C.
6335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6337 # Define system-specific variables.
6342 cygwin* | mingw* | pw32* | cegcc*)
6343 symcode='[ABCDGISTW]'
6346 if test "$host_cpu" = ia64; then
6347 symcode='[ABCDEGRST]'
6351 symcode='[BCDEGRST]'
6354 symcode='[BCDEGQRST]'
6365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6373 # If we're using GNU nm, then use its standard symbol codes.
6374 case `$NM -V 2>&1` in
6375 *GNU* | *'with BFD'*)
6376 symcode='[ABCDGIRSTW]' ;;
6379 # Transform an extracted symbol line into a proper C declaration.
6380 # Some systems (esp. on ia64) link data and code symbols differently,
6381 # so use this general approach.
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6384 # Transform an extracted symbol line into symbol name and symbol address
6385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6386 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'"
6388 # Handle CRLF in mingw tool chain
6392 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 # Try without a prefix underscore, then with it.
6397 for ac_symprfx in "" "_"; do
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6402 # Write the raw and C identifiers.
6403 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404 # Fake it for dumpbin and say T for any non-static function
6405 # and D for any global variable.
6406 # Also find C++ and __fastcall symbols from MSVC++,
6407 # which start with @ or ?.
6408 lt_cv_sys_global_symbol_pipe="$AWK '"\
6409 " {last_section=section; section=\$ 3};"\
6410 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6411 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6412 " \$ 0!~/External *\|/{next};"\
6413 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6414 " {if(hide[section]) next};"\
6415 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6416 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6417 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6418 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6419 " ' prfx=^$ac_symprfx"
6421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6423 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6425 # Check to see that the pipe works correctly.
6429 cat > conftest.$ac_ext <<_LT_EOF
6434 void nm_test_func(void);
6435 void nm_test_func(void){}
6439 int main(){nm_test_var='a';nm_test_func();return(0);}
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 # Now try to grab the symbols.
6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6450 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; } && test -s "$nlist"; then
6454 # Try sorting and uniquifying the output.
6455 if sort "$nlist" | uniq > "$nlist"T; then
6456 mv -f "$nlist"T "$nlist"
6461 # Make sure that we snagged all the symbols we need.
6462 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6463 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6464 cat <<_LT_EOF > conftest.$ac_ext
6465 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6466 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6467 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6468 relocations are performed -- see ld's documentation on pseudo-relocs. */
6469 # define LT_DLSYM_CONST
6470 #elif defined(__osf__)
6471 /* This system does not cope well with relocations in const data. */
6472 # define LT_DLSYM_CONST
6474 # define LT_DLSYM_CONST const
6482 # Now generate the symbol file.
6483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6485 cat <<_LT_EOF >> conftest.$ac_ext
6487 /* The mapping between symbol names and symbols. */
6488 LT_DLSYM_CONST struct {
6492 lt__PROGRAM__LTX_preloaded_symbols[] =
6494 { "@PROGRAM@", (void *) 0 },
6496 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6497 cat <<\_LT_EOF >> conftest.$ac_ext
6501 /* This works around a problem in FreeBSD linker */
6502 #ifdef FREEBSD_WORKAROUND
6503 static const void *lt_preloaded_setup() {
6504 return lt__PROGRAM__LTX_preloaded_symbols;
6512 # Now try linking the two files.
6513 mv conftest.$ac_objext conftstm.$ac_objext
6514 lt_globsym_save_LIBS=$LIBS
6515 lt_globsym_save_CFLAGS=$CFLAGS
6516 LIBS="conftstm.$ac_objext"
6517 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6519 (eval $ac_link) 2>&5
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6525 LIBS=$lt_globsym_save_LIBS
6526 CFLAGS=$lt_globsym_save_CFLAGS
6528 echo "cannot find nm_test_func in $nlist" >&5
6531 echo "cannot find nm_test_var in $nlist" >&5
6534 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6537 echo "$progname: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 rm -rf conftest* conftst*
6542 # Do not use the global_symbol_pipe unless it works.
6543 if test "$pipe_works" = yes; then
6546 lt_cv_sys_global_symbol_pipe=
6552 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6553 lt_cv_sys_global_symbol_to_cdecl=
6555 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6557 $as_echo "failed" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6560 $as_echo "ok" >&6; }
6563 # Response file support.
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565 nm_file_list_spec='@'
6566 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6567 nm_file_list_spec='@'
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6597 $as_echo_n "checking for sysroot... " >&6; }
6599 # Check whether --with-sysroot was given.
6600 if test "${with_sysroot+set}" = set; then :
6601 withval=$with_sysroot;
6608 case ${with_sysroot} in #(
6610 if test "$GCC" = yes; then
6611 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6615 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6621 $as_echo "${with_sysroot}" >&6; }
6622 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6627 $as_echo "${lt_sysroot:-no}" >&6; }
6633 # Check whether --enable-libtool-lock was given.
6634 if test "${enable_libtool_lock+set}" = set; then :
6635 enableval=$enable_libtool_lock;
6638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6640 # Some flags need to be propagated to the compiler or linker for good
6644 # Find out which ABI we are using.
6645 echo 'int i;' > conftest.$ac_ext
6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6647 (eval $ac_compile) 2>&5
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; }; then
6651 case `/usr/bin/file conftest.$ac_objext` in
6663 # Find out which ABI we are using.
6664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666 (eval $ac_compile) 2>&5
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }; then
6670 if test "$lt_cv_prog_gnu_ld" = yes; then
6671 case `/usr/bin/file conftest.$ac_objext` in
6673 LD="${LD-ld} -melf32bsmip"
6676 LD="${LD-ld} -melf32bmipn32"
6679 LD="${LD-ld} -melf64bmip"
6683 case `/usr/bin/file conftest.$ac_objext` in
6699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6701 # Find out which ABI we are using.
6702 echo 'int i;' > conftest.$ac_ext
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704 (eval $ac_compile) 2>&5
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }; then
6708 case `/usr/bin/file conftest.o` in
6711 x86_64-*kfreebsd*-gnu)
6712 LD="${LD-ld} -m elf_i386_fbsd"
6715 LD="${LD-ld} -m elf_i386"
6717 ppc64-*linux*|powerpc64-*linux*)
6718 LD="${LD-ld} -m elf32ppclinux"
6721 LD="${LD-ld} -m elf_s390"
6724 LD="${LD-ld} -m elf32_sparc"
6730 x86_64-*kfreebsd*-gnu)
6731 LD="${LD-ld} -m elf_x86_64_fbsd"
6734 LD="${LD-ld} -m elf_x86_64"
6736 ppc*-*linux*|powerpc*-*linux*)
6737 LD="${LD-ld} -m elf64ppc"
6739 s390*-*linux*|s390*-*tpf*)
6740 LD="${LD-ld} -m elf64_s390"
6743 LD="${LD-ld} -m elf64_sparc"
6753 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6754 SAVE_CFLAGS="$CFLAGS"
6755 CFLAGS="$CFLAGS -belf"
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6757 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6758 if ${lt_cv_cc_needs_belf+:} false; then :
6759 $as_echo_n "(cached) " >&6
6762 ac_cpp='$CPP $CPPFLAGS'
6763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 lt_cv_cc_needs_belf=yes
6781 lt_cv_cc_needs_belf=no
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6793 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6796 CFLAGS="$SAVE_CFLAGS"
6800 # Find out which ABI we are using.
6801 echo 'int i;' > conftest.$ac_ext
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803 (eval $ac_compile) 2>&5
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }; then
6807 case `/usr/bin/file conftest.o` in
6809 case $lt_cv_prog_gnu_ld in
6813 LD="${LD-ld} -m elf_x86_64"
6816 LD="${LD-ld} -m elf64_sparc"
6819 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6820 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6825 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6837 need_locks="$enable_libtool_lock"
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}mt; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 if test -n "$MANIFEST_TOOL"; then
6848 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6868 if test -n "$MANIFEST_TOOL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6870 $as_echo "$MANIFEST_TOOL" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6878 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6879 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6880 # Extract the first word of "mt", so it can be a program name with args.
6881 set dummy mt; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6885 $as_echo_n "(cached) " >&6
6887 if test -n "$ac_ct_MANIFEST_TOOL"; then
6888 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6908 if test -n "$ac_ct_MANIFEST_TOOL"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6910 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6916 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6919 case $cross_compiling:$ac_tool_warned in
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6925 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6928 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6931 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6933 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6934 if ${lt_cv_path_mainfest_tool+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 lt_cv_path_mainfest_tool=no
6938 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6939 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6940 cat conftest.err >&5
6941 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6942 lt_cv_path_mainfest_tool=yes
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6947 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6948 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6958 rhapsody* | darwin*)
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 if test -n "$DSYMUTIL"; then
6968 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6988 if test -n "$DSYMUTIL"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6990 $as_echo "$DSYMUTIL" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6998 if test -z "$ac_cv_prog_DSYMUTIL"; then
6999 ac_ct_DSYMUTIL=$DSYMUTIL
7000 # Extract the first word of "dsymutil", so it can be a program name with args.
7001 set dummy dsymutil; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 if test -n "$ac_ct_DSYMUTIL"; then
7008 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7028 if test -n "$ac_ct_DSYMUTIL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7036 if test "x$ac_ct_DSYMUTIL" = x; then
7039 case $cross_compiling:$ac_tool_warned in
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7045 DSYMUTIL=$ac_ct_DSYMUTIL
7048 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_prog_NMEDIT+:} false; then :
7057 $as_echo_n "(cached) " >&6
7059 if test -n "$NMEDIT"; then
7060 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 NMEDIT=$ac_cv_prog_NMEDIT
7080 if test -n "$NMEDIT"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7082 $as_echo "$NMEDIT" >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7090 if test -z "$ac_cv_prog_NMEDIT"; then
7091 ac_ct_NMEDIT=$NMEDIT
7092 # Extract the first word of "nmedit", so it can be a program name with args.
7093 set dummy nmedit; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 if test -n "$ac_ct_NMEDIT"; then
7100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7120 if test -n "$ac_ct_NMEDIT"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7122 $as_echo "$ac_ct_NMEDIT" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7128 if test "x$ac_ct_NMEDIT" = x; then
7131 case $cross_compiling:$ac_tool_warned in
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7137 NMEDIT=$ac_ct_NMEDIT
7140 NMEDIT="$ac_cv_prog_NMEDIT"
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_LIPO+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$LIPO"; then
7152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 LIPO=$ac_cv_prog_LIPO
7172 if test -n "$LIPO"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7174 $as_echo "$LIPO" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_LIPO"; then
7184 # Extract the first word of "lipo", so it can be a program name with args.
7185 set dummy lipo; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$ac_ct_LIPO"; then
7192 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_LIPO="lipo"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7212 if test -n "$ac_ct_LIPO"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7214 $as_echo "$ac_ct_LIPO" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_LIPO" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7232 LIPO="$ac_cv_prog_LIPO"
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}otool; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_OTOOL+:} false; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$OTOOL"; then
7244 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 OTOOL=$ac_cv_prog_OTOOL
7264 if test -n "$OTOOL"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7266 $as_echo "$OTOOL" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_OTOOL"; then
7276 # Extract the first word of "otool", so it can be a program name with args.
7277 set dummy otool; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7281 $as_echo_n "(cached) " >&6
7283 if test -n "$ac_ct_OTOOL"; then
7284 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_OTOOL="otool"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7304 if test -n "$ac_ct_OTOOL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7306 $as_echo "$ac_ct_OTOOL" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_OTOOL" = x; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7324 OTOOL="$ac_cv_prog_OTOOL"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_OTOOL64+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$OTOOL64"; then
7336 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 OTOOL64=$ac_cv_prog_OTOOL64
7356 if test -n "$OTOOL64"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7358 $as_echo "$OTOOL64" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_OTOOL64"; then
7367 ac_ct_OTOOL64=$OTOOL64
7368 # Extract the first word of "otool64", so it can be a program name with args.
7369 set dummy otool64; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_OTOOL64"; then
7376 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_OTOOL64="otool64"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7396 if test -n "$ac_ct_OTOOL64"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7398 $as_echo "$ac_ct_OTOOL64" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_OTOOL64" = x; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7413 OTOOL64=$ac_ct_OTOOL64
7416 OTOOL64="$ac_cv_prog_OTOOL64"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7446 $as_echo_n "checking for -single_module linker flag... " >&6; }
7447 if ${lt_cv_apple_cc_single_mod+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 lt_cv_apple_cc_single_mod=no
7451 if test -z "${LT_MULTI_MODULE}"; then
7452 # By default we will add the -single_module flag. You can override
7453 # by either setting the environment variable LT_MULTI_MODULE
7454 # non-empty at configure time, or by adding -multi_module to the
7456 rm -rf libconftest.dylib*
7457 echo "int foo(void){return 1;}" > conftest.c
7458 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7459 -dynamiclib -Wl,-single_module conftest.c" >&5
7460 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7461 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7463 # If there is a non-empty error log, and "single_module"
7464 # appears in it, assume the flag caused a linker warning
7465 if test -s conftest.err && $GREP single_module conftest.err; then
7466 cat conftest.err >&5
7467 # Otherwise, if the output was created with a 0 exit code from
7468 # the compiler, it worked.
7469 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7470 lt_cv_apple_cc_single_mod=yes
7472 cat conftest.err >&5
7474 rm -rf libconftest.dylib*
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7479 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7482 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7483 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7484 $as_echo_n "(cached) " >&6
7486 lt_cv_ld_exported_symbols_list=no
7487 save_LDFLAGS=$LDFLAGS
7488 echo "_main" > conftest.sym
7489 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 lt_cv_ld_exported_symbols_list=yes
7504 lt_cv_ld_exported_symbols_list=no
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 LDFLAGS="$save_LDFLAGS"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7512 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7515 $as_echo_n "checking for -force_load linker flag... " >&6; }
7516 if ${lt_cv_ld_force_load+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 lt_cv_ld_force_load=no
7520 cat > conftest.c << _LT_EOF
7521 int forced_loaded() { return 2;}
7523 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7524 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7525 echo "$AR cru libconftest.a conftest.o" >&5
7526 $AR cru libconftest.a conftest.o 2>&5
7527 echo "$RANLIB libconftest.a" >&5
7528 $RANLIB libconftest.a 2>&5
7529 cat > conftest.c << _LT_EOF
7530 int main() { return 0;}
7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7533 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7535 if test -s conftest.err && $GREP force_load conftest.err; then
7536 cat conftest.err >&5
7537 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7538 lt_cv_ld_force_load=yes
7540 cat conftest.err >&5
7542 rm -f conftest.err libconftest.a conftest conftest.c
7543 rm -rf conftest.dSYM
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7547 $as_echo "$lt_cv_ld_force_load" >&6; }
7549 rhapsody* | darwin1.[012])
7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553 darwin*) # darwin 5.x on
7554 # if running on 10.5 or later, the deployment target defaults
7555 # to the OS version, if on x86, and 10.4, the deployment
7556 # target defaults to 10.4. Don't you love it?
7557 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7558 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7567 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7568 _lt_dar_single_mod='$single_module'
7570 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7571 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7573 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7575 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7576 _lt_dsymutil='~$DSYMUTIL $lib || :'
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7590 # On Suns, sometimes $CPP names a directory.
7591 if test -n "$CPP" && test -d "$CPP"; then
7594 if test -z "$CPP"; then
7595 if ${ac_cv_prog_CPP+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 # Double quotes because CPP needs to be expanded
7599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7602 for ac_c_preproc_warn_flag in '' yes
7604 # Use a header file that comes with gcc, so configuring glibc
7605 # with a fresh cross-compiler works.
7606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7607 # <limits.h> exists even on freestanding compilers.
7608 # On the NeXT, cc -E runs the code through the compiler's parser,
7609 # not just through cpp. "Syntax error" is here to catch this case.
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 # include <limits.h>
7615 # include <assert.h>
7619 if ac_fn_c_try_cpp "$LINENO"; then :
7622 # Broken: fails on valid input.
7625 rm -f conftest.err conftest.i conftest.$ac_ext
7627 # OK, works on sane cases. Now check whether nonexistent headers
7628 # can be detected and how.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #include <ac_nonexistent.h>
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7634 # Broken: success on invalid input.
7637 # Passes both tests.
7641 rm -f conftest.err conftest.i conftest.$ac_ext
7644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7645 rm -f conftest.i conftest.err conftest.$ac_ext
7646 if $ac_preproc_ok; then :
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7659 $as_echo "$CPP" >&6; }
7661 for ac_c_preproc_warn_flag in '' yes
7663 # Use a header file that comes with gcc, so configuring glibc
7664 # with a fresh cross-compiler works.
7665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666 # <limits.h> exists even on freestanding compilers.
7667 # On the NeXT, cc -E runs the code through the compiler's parser,
7668 # not just through cpp. "Syntax error" is here to catch this case.
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7672 # include <limits.h>
7674 # include <assert.h>
7678 if ac_fn_c_try_cpp "$LINENO"; then :
7681 # Broken: fails on valid input.
7684 rm -f conftest.err conftest.i conftest.$ac_ext
7686 # OK, works on sane cases. Now check whether nonexistent headers
7687 # can be detected and how.
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <ac_nonexistent.h>
7692 if ac_fn_c_try_cpp "$LINENO"; then :
7693 # Broken: success on invalid input.
7696 # Passes both tests.
7700 rm -f conftest.err conftest.i conftest.$ac_ext
7703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7704 rm -f conftest.i conftest.err conftest.$ac_ext
7705 if $ac_preproc_ok; then :
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7710 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7711 See \`config.log' for more details" "$LINENO" 5; }
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7722 $as_echo_n "checking for ANSI C header files... " >&6; }
7723 if ${ac_cv_header_stdc+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7741 if ac_fn_c_try_compile "$LINENO"; then :
7742 ac_cv_header_stdc=yes
7744 ac_cv_header_stdc=no
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 if test $ac_cv_header_stdc = yes; then
7749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7756 $EGREP "memchr" >/dev/null 2>&1; then :
7759 ac_cv_header_stdc=no
7765 if test $ac_cv_header_stdc = yes; then
7766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "free" >/dev/null 2>&1; then :
7776 ac_cv_header_stdc=no
7782 if test $ac_cv_header_stdc = yes; then
7783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784 if test "$cross_compiling" = yes; then :
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7791 #if ((' ' & 0x0FF) == 0x020)
7792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7795 # define ISLOWER(c) \
7796 (('a' <= (c) && (c) <= 'i') \
7797 || ('j' <= (c) && (c) <= 'r') \
7798 || ('s' <= (c) && (c) <= 'z'))
7799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7807 for (i = 0; i < 256; i++)
7808 if (XOR (islower (i), ISLOWER (i))
7809 || toupper (i) != TOUPPER (i))
7814 if ac_fn_c_try_run "$LINENO"; then :
7817 ac_cv_header_stdc=no
7819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7820 conftest.$ac_objext conftest.beam conftest.$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7826 $as_echo "$ac_cv_header_stdc" >&6; }
7827 if test $ac_cv_header_stdc = yes; then
7829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7834 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7835 inttypes.h stdint.h unistd.h
7837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7838 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7841 cat >>confdefs.h <<_ACEOF
7842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7850 for ac_header in dlfcn.h
7852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7854 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_DLFCN_H 1
7877 # Check whether --enable-shared was given.
7878 if test "${enable_shared+set}" = set; then :
7879 enableval=$enable_shared; p=${PACKAGE-default}
7881 yes) enable_shared=yes ;;
7882 no) enable_shared=no ;;
7885 # Look at the argument we got. We use all the common list separators.
7886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7887 for pkg in $enableval; do
7889 if test "X$pkg" = "X$p"; then
7910 # Check whether --with-pic was given.
7911 if test "${with_pic+set}" = set; then :
7912 withval=$with_pic; lt_p=${PACKAGE-default}
7914 yes|no) pic_mode=$withval ;;
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for lt_pkg in $withval; do
7921 if test "X$lt_pkg" = "X$lt_p"; then
7933 test -z "$pic_mode" && pic_mode=default
7941 # Check whether --enable-fast-install was given.
7942 if test "${enable_fast_install+set}" = set; then :
7943 enableval=$enable_fast_install; p=${PACKAGE-default}
7945 yes) enable_fast_install=yes ;;
7946 no) enable_fast_install=no ;;
7948 enable_fast_install=no
7949 # Look at the argument we got. We use all the common list separators.
7950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7951 for pkg in $enableval; do
7953 if test "X$pkg" = "X$p"; then
7954 enable_fast_install=yes
7961 enable_fast_install=yes
7974 # This can be used to rebuild libtool when needed
7975 LIBTOOL_DEPS="$ltmain"
7977 # Always use our own libtool.
7978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8009 test -z "$LN_S" && LN_S="ln -s"
8024 if test -n "${ZSH_VERSION+set}" ; then
8025 setopt NO_GLOB_SUBST
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8029 $as_echo_n "checking for objdir... " >&6; }
8030 if ${lt_cv_objdir+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 rm -f .libs 2>/dev/null
8034 mkdir .libs 2>/dev/null
8035 if test -d .libs; then
8038 # MS-DOS does not allow filenames that begin with a dot.
8041 rmdir .libs 2>/dev/null
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8044 $as_echo "$lt_cv_objdir" >&6; }
8045 objdir=$lt_cv_objdir
8051 cat >>confdefs.h <<_ACEOF
8052 #define LT_OBJDIR "$lt_cv_objdir/"
8060 # AIX sometimes has problems with the GCC collect2 program. For some
8061 # reason, if we set the COLLECT_NAMES environment variable, the problems
8062 # vanish in a puff of smoke.
8063 if test "X${COLLECT_NAMES+set}" != Xset; then
8065 export COLLECT_NAMES
8072 can_build_shared=yes
8074 # All known linkers require a `.a' archive for static linking (except MSVC,
8075 # which needs '.lib').
8078 with_gnu_ld="$lt_cv_prog_gnu_ld"
8081 old_CFLAGS="$CFLAGS"
8083 # Set sane defaults for various variables
8084 test -z "$CC" && CC=cc
8085 test -z "$LTCC" && LTCC=$CC
8086 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8087 test -z "$LD" && LD=ld
8088 test -z "$ac_objext" && ac_objext=o
8090 for cc_temp in $compiler""; do
8092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8098 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8101 # Only perform the check for file, if the check method requires it
8102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8103 case $deplibs_check_method in
8105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8107 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8108 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8109 $as_echo_n "(cached) " >&6
8113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8116 lt_save_MAGIC_CMD="$MAGIC_CMD"
8117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8119 for ac_dir in $ac_dummy; do
8121 test -z "$ac_dir" && ac_dir=.
8122 if test -f $ac_dir/${ac_tool_prefix}file; then
8123 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8124 if test -n "$file_magic_test_file"; then
8125 case $deplibs_check_method in
8127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8130 $EGREP "$file_magic_regex" > /dev/null; then
8135 *** Warning: the command libtool uses to detect shared libraries,
8136 *** $file_magic_cmd, produces output that libtool cannot recognize.
8137 *** The result is that libtool may fail to recognize shared libraries
8138 *** as such. This will affect the creation of libtool libraries that
8139 *** depend on shared libraries, but programs linked with such libtool
8140 *** libraries will work regardless of this problem. Nevertheless, you
8141 *** may want to report the problem to your system manager and/or to
8142 *** bug-libtool@gnu.org
8152 MAGIC_CMD="$lt_save_MAGIC_CMD"
8157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8158 if test -n "$MAGIC_CMD"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8160 $as_echo "$MAGIC_CMD" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8170 if test -z "$lt_cv_path_MAGIC_CMD"; then
8171 if test -n "$ac_tool_prefix"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8173 $as_echo_n "checking for file... " >&6; }
8174 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8175 $as_echo_n "(cached) " >&6
8179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8182 lt_save_MAGIC_CMD="$MAGIC_CMD"
8183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8185 for ac_dir in $ac_dummy; do
8187 test -z "$ac_dir" && ac_dir=.
8188 if test -f $ac_dir/file; then
8189 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8190 if test -n "$file_magic_test_file"; then
8191 case $deplibs_check_method in
8193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8196 $EGREP "$file_magic_regex" > /dev/null; then
8201 *** Warning: the command libtool uses to detect shared libraries,
8202 *** $file_magic_cmd, produces output that libtool cannot recognize.
8203 *** The result is that libtool may fail to recognize shared libraries
8204 *** as such. This will affect the creation of libtool libraries that
8205 *** depend on shared libraries, but programs linked with such libtool
8206 *** libraries will work regardless of this problem. Nevertheless, you
8207 *** may want to report the problem to your system manager and/or to
8208 *** bug-libtool@gnu.org
8218 MAGIC_CMD="$lt_save_MAGIC_CMD"
8223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224 if test -n "$MAGIC_CMD"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8226 $as_echo "$MAGIC_CMD" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8242 # Use C for the default configuration in the libtool script
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252 # Source file extension for C test sources.
8255 # Object file extension for compiled C test sources.
8259 # Code to be used in simple compile tests
8260 lt_simple_compile_test_code="int some_variable = 0;"
8262 # Code to be used in simple link tests
8263 lt_simple_link_test_code='int main(){return(0);}'
8271 # If no C compiler was specified, use CC.
8274 # If no C compiler flags were specified, use CFLAGS.
8275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8277 # Allow CC to be a program name with arguments.
8280 # Save the default compiler, since it gets overwritten when the other
8281 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8282 compiler_DEFAULT=$CC
8284 # save warnings/boilerplate of simple test code
8285 ac_outfile=conftest.$ac_objext
8286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8288 _lt_compiler_boilerplate=`cat conftest.err`
8291 ac_outfile=conftest.$ac_objext
8292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8294 _lt_linker_boilerplate=`cat conftest.err`
8298 if test -n "$compiler"; then
8300 lt_prog_compiler_no_builtin_flag=
8302 if test "$GCC" = yes; then
8303 case $cc_basename in
8305 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8307 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8312 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 lt_cv_prog_compiler_rtti_exceptions=no
8316 ac_outfile=conftest.$ac_objext
8317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318 lt_compiler_flag="-fno-rtti -fno-exceptions"
8319 # Insert the option either (1) after the last *FLAGS variable, or
8320 # (2) before a word containing "conftest.", or (3) at the end.
8321 # Note that $ac_compile itself does not contain backslashes and begins
8322 # with a dollar sign (not a hyphen), so the echo should work correctly.
8323 # The option is referenced via a variable to avoid confusing sed.
8324 lt_compile=`echo "$ac_compile" | $SED \
8325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327 -e 's:$: $lt_compiler_flag:'`
8328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329 (eval "$lt_compile" 2>conftest.err)
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 if (exit $ac_status) && test -s "$ac_outfile"; then
8334 # The compiler can only warn and ignore the option if not recognized
8335 # So say no if there are warnings other than the usual output.
8336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339 lt_cv_prog_compiler_rtti_exceptions=yes
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8348 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8349 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8361 lt_prog_compiler_wl=
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_static=
8366 if test "$GCC" = yes; then
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_static='-static'
8372 # All AIX code is PIC.
8373 if test "$host_cpu" = ia64; then
8374 # AIX 5 now supports IA64 processor
8375 lt_prog_compiler_static='-Bstatic'
8382 # see comment about AmigaOS4 .so support
8383 lt_prog_compiler_pic='-fPIC'
8386 # FIXME: we need at least 68020 code to build shared libraries, but
8387 # adding the `-m68020' flag to GCC prevents building anything better,
8389 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8394 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8395 # PIC is the default for these OSes.
8398 mingw* | cygwin* | pw32* | os2* | cegcc*)
8399 # This hack is so that the source file can tell whether it is being
8400 # built for inclusion in a dll (and should export symbols for example).
8401 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8402 # (--disable-auto-import) libraries
8403 lt_prog_compiler_pic='-DDLL_EXPORT'
8406 darwin* | rhapsody*)
8407 # PIC is the default on this platform
8408 # Common symbols not allowed in MH_DYLIB files
8409 lt_prog_compiler_pic='-fno-common'
8413 # PIC is the default for Haiku.
8414 # The "-static" flag exists, but is broken.
8415 lt_prog_compiler_static=
8419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8421 # sets the default TLS model and affects inlining.
8427 lt_prog_compiler_pic='-fPIC'
8433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8434 # Instead, we relocate shared libraries at runtime.
8438 # Just because we use GCC doesn't mean we suddenly get shared libraries
8439 # on systems that don't support them.
8440 lt_prog_compiler_can_build_shared=no
8445 # QNX uses GNU C++, but need to define -shared option too, otherwise
8447 lt_prog_compiler_pic='-fPIC -shared'
8451 if test -d /usr/nec; then
8452 lt_prog_compiler_pic=-Kconform_pic
8457 lt_prog_compiler_pic='-fPIC'
8461 case $cc_basename in
8462 nvcc*) # Cuda Compiler Driver 2.2
8463 lt_prog_compiler_wl='-Xlinker '
8464 if test -n "$lt_prog_compiler_pic"; then
8465 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8470 # PORTME Check for flag to pass linker flags through the system compiler.
8473 lt_prog_compiler_wl='-Wl,'
8474 if test "$host_cpu" = ia64; then
8475 # AIX 5 now supports IA64 processor
8476 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8482 mingw* | cygwin* | pw32* | os2* | cegcc*)
8483 # This hack is so that the source file can tell whether it is being
8484 # built for inclusion in a dll (and should export symbols for example).
8485 lt_prog_compiler_pic='-DDLL_EXPORT'
8488 hpux9* | hpux10* | hpux11*)
8489 lt_prog_compiler_wl='-Wl,'
8490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8497 lt_prog_compiler_pic='+Z'
8500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8501 lt_prog_compiler_static='${wl}-a ${wl}archive'
8504 irix5* | irix6* | nonstopux*)
8505 lt_prog_compiler_wl='-Wl,'
8506 # PIC (with -KPIC) is the default.
8507 lt_prog_compiler_static='-non_shared'
8510 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8511 case $cc_basename in
8512 # old Intel for x86_64 which still supported -KPIC.
8514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-static'
8518 # icc used to be incompatible with GCC.
8519 # ICC 10 doesn't accept -KPIC any more.
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='-fPIC'
8523 lt_prog_compiler_static='-static'
8525 # Lahey Fortran 8.1.
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='--shared'
8529 lt_prog_compiler_static='--static'
8532 # NAG Fortran compiler
8533 lt_prog_compiler_wl='-Wl,-Wl,,'
8534 lt_prog_compiler_pic='-PIC'
8535 lt_prog_compiler_static='-Bstatic'
8537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8538 # Portland Group compilers (*not* the Pentium gcc compiler,
8539 # which looks to be a dead project)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fpic'
8542 lt_prog_compiler_static='-Bstatic'
8545 lt_prog_compiler_wl='-Wl,'
8546 # All Alpha code is PIC.
8547 lt_prog_compiler_static='-non_shared'
8549 xl* | bgxl* | bgf* | mpixl*)
8550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-qpic'
8553 lt_prog_compiler_static='-qstaticlink'
8556 case `$CC -V 2>&1 | sed 5q` in
8557 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl=''
8563 *Sun\ F* | *Sun*Fortran*)
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 lt_prog_compiler_wl='-Qoption ld '
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 lt_prog_compiler_wl='-Wl,'
8574 *Intel*\ [CF]*Compiler*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fPIC'
8577 lt_prog_compiler_static='-static'
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fpic'
8582 lt_prog_compiler_static='-Bstatic'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8595 # QNX uses GNU C++, but need to define -shared option too, otherwise
8597 lt_prog_compiler_pic='-fPIC -shared'
8600 osf3* | osf4* | osf5*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All OSF/1 code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8607 lt_prog_compiler_static='-non_shared'
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 case $cc_basename in
8614 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8615 lt_prog_compiler_wl='-Qoption ld ';;
8617 lt_prog_compiler_wl='-Wl,';;
8622 lt_prog_compiler_wl='-Qoption ld '
8623 lt_prog_compiler_pic='-PIC'
8624 lt_prog_compiler_static='-Bstatic'
8627 sysv4 | sysv4.2uw2* | sysv4.3*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8634 if test -d /usr/nec ;then
8635 lt_prog_compiler_pic='-Kconform_pic'
8636 lt_prog_compiler_static='-Bstatic'
8640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_can_build_shared=no
8652 lt_prog_compiler_pic='-pic'
8653 lt_prog_compiler_static='-Bstatic'
8657 lt_prog_compiler_can_build_shared=no
8663 # For platforms which do not support PIC, -DPIC is meaningless:
8665 lt_prog_compiler_pic=
8668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8674 if ${lt_cv_prog_compiler_pic+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8680 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8681 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8684 # Check to make sure the PIC flag actually works.
8686 if test -n "$lt_prog_compiler_pic"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8689 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8690 $as_echo_n "(cached) " >&6
8692 lt_cv_prog_compiler_pic_works=no
8693 ac_outfile=conftest.$ac_objext
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8696 # Insert the option either (1) after the last *FLAGS variable, or
8697 # (2) before a word containing "conftest.", or (3) at the end.
8698 # Note that $ac_compile itself does not contain backslashes and begins
8699 # with a dollar sign (not a hyphen), so the echo should work correctly.
8700 # The option is referenced via a variable to avoid confusing sed.
8701 lt_compile=`echo "$ac_compile" | $SED \
8702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704 -e 's:$: $lt_compiler_flag:'`
8705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706 (eval "$lt_compile" 2>conftest.err)
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 if (exit $ac_status) && test -s "$ac_outfile"; then
8711 # The compiler can only warn and ignore the option if not recognized
8712 # So say no if there are warnings other than the usual output.
8713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_pic_works=yes
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8726 case $lt_prog_compiler_pic in
8728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8731 lt_prog_compiler_pic=
8732 lt_prog_compiler_can_build_shared=no
8748 # Check to make sure the static flag actually works.
8750 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8752 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8753 if ${lt_cv_prog_compiler_static_works+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 lt_cv_prog_compiler_static_works=no
8757 save_LDFLAGS="$LDFLAGS"
8758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8761 # The linker can only warn and ignore the option if not recognized
8762 # So say no if there are warnings
8763 if test -s conftest.err; then
8764 # Append any errors to the config.log.
8765 cat conftest.err 1>&5
8766 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768 if diff conftest.exp conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_static_works=yes
8772 lt_cv_prog_compiler_static_works=yes
8776 LDFLAGS="$save_LDFLAGS"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8782 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8785 lt_prog_compiler_static=
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8796 if ${lt_cv_prog_compiler_c_o+:} false; then :
8797 $as_echo_n "(cached) " >&6
8799 lt_cv_prog_compiler_c_o=no
8800 $RM -r conftest 2>/dev/null
8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806 lt_compiler_flag="-o out/conftest2.$ac_objext"
8807 # Insert the option either (1) after the last *FLAGS variable, or
8808 # (2) before a word containing "conftest.", or (3) at the end.
8809 # Note that $ac_compile itself does not contain backslashes and begins
8810 # with a dollar sign (not a hyphen), so the echo should work correctly.
8811 lt_compile=`echo "$ac_compile" | $SED \
8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814 -e 's:$: $lt_compiler_flag:'`
8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816 (eval "$lt_compile" 2>out/conftest.err)
8818 cat out/conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8822 # The compiler can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_c_o=yes
8832 # SGI C++ compiler will create directory out/ii_files/ for
8833 # template instantiation
8834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8835 $RM out/* && rmdir out
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8842 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8851 if ${lt_cv_prog_compiler_c_o+:} false; then :
8852 $as_echo_n "(cached) " >&6
8854 lt_cv_prog_compiler_c_o=no
8855 $RM -r conftest 2>/dev/null
8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861 lt_compiler_flag="-o out/conftest2.$ac_objext"
8862 # Insert the option either (1) after the last *FLAGS variable, or
8863 # (2) before a word containing "conftest.", or (3) at the end.
8864 # Note that $ac_compile itself does not contain backslashes and begins
8865 # with a dollar sign (not a hyphen), so the echo should work correctly.
8866 lt_compile=`echo "$ac_compile" | $SED \
8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869 -e 's:$: $lt_compiler_flag:'`
8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871 (eval "$lt_compile" 2>out/conftest.err)
8873 cat out/conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877 # The compiler can only warn and ignore the option if not recognized
8878 # So say no if there are warnings
8879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler_c_o=yes
8887 # SGI C++ compiler will create directory out/ii_files/ for
8888 # template instantiation
8889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8890 $RM out/* && rmdir out
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8897 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8902 hard_links="nottested"
8903 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8904 # do not overwrite the value of need_locks provided by the user
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8906 $as_echo_n "checking if we can lock with hard links... " >&6; }
8909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911 ln conftest.a conftest.b 2>&5 || hard_links=no
8912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8914 $as_echo "$hard_links" >&6; }
8915 if test "$hard_links" = no; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8933 allow_undefined_flag=
8934 always_export_symbols=no
8936 archive_expsym_cmds=
8937 compiler_needs_object=no
8938 enable_shared_with_static_runtimes=no
8939 export_dynamic_flag_spec=
8940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941 hardcode_automatic=no
8943 hardcode_direct_absolute=no
8944 hardcode_libdir_flag_spec=
8945 hardcode_libdir_separator=
8947 hardcode_shlibpath_var=unsupported
8949 link_all_deplibs=unknown
8952 old_archive_from_new_cmds=
8953 old_archive_from_expsyms_cmds=
8954 thread_safe_flag_spec=
8955 whole_archive_flag_spec=
8956 # include_expsyms should be a list of space-separated symbols to be *always*
8957 # included in the symbol list
8959 # exclude_expsyms can be an extended regexp of symbols to exclude
8960 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8961 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8962 # as well as any symbol that contains `d'.
8963 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8964 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8965 # platforms (ab)use it in PIC code, but their linkers get confused if
8966 # the symbol is explicitly referenced. Since portable code cannot
8967 # rely on this symbol name, it's probably fine to never include it in
8968 # preloaded symbol tables.
8969 # Exclude shared library initialization/finalization symbols.
8970 extract_expsyms_cmds=
8973 cygwin* | mingw* | pw32* | cegcc*)
8974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8975 # When not using gcc, we currently assume that we are using
8976 # Microsoft Visual C++.
8977 if test "$GCC" != yes; then
8982 # we just hope/assume this is gcc and not c89 (= MSVC++)
8988 linux* | k*bsd*-gnu | gnu*)
8995 # On some targets, GNU ld is compatible enough with the native linker
8996 # that we're better off using the native interface for both.
8997 lt_use_gnu_ld_interface=no
8998 if test "$with_gnu_ld" = yes; then
9001 # The AIX port of GNU ld has always aspired to compatibility
9002 # with the native linker. However, as the warning in the GNU ld
9003 # block says, versions before 2.19.5* couldn't really create working
9004 # shared libraries, regardless of the interface used.
9005 case `$LD -v 2>&1` in
9006 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9007 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9008 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9010 lt_use_gnu_ld_interface=yes
9015 lt_use_gnu_ld_interface=yes
9020 if test "$lt_use_gnu_ld_interface" = yes; then
9021 # If archive_cmds runs LD, not CC, wlarc should be empty
9024 # Set some defaults for GNU ld with shared library support. These
9025 # are reset later if shared libraries are not supported. Putting them
9026 # here allows them to be overridden if necessary.
9027 runpath_var=LD_RUN_PATH
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 export_dynamic_flag_spec='${wl}--export-dynamic'
9030 # ancient GNU ld didn't support --whole-archive et. al.
9031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9034 whole_archive_flag_spec=
9036 supports_anon_versioning=no
9037 case `$LD -v 2>&1` in
9038 *GNU\ gold*) supports_anon_versioning=yes ;;
9039 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9042 *\ 2.11.*) ;; # other 2.11 versions
9043 *) supports_anon_versioning=yes ;;
9046 # See if GNU ld supports shared libraries.
9049 # On AIX/PPC, the GNU linker is very broken
9050 if test "$host_cpu" != ia64; then
9054 *** Warning: the GNU linker, at least up to release 2.19, is reported
9055 *** to be unable to reliably create shared libraries on AIX.
9056 *** Therefore, libtool is disabling shared libraries support. If you
9057 *** really care for shared libraries, you may want to install binutils
9058 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9059 *** You will then need to restart the configuration process.
9068 # see comment about AmigaOS4 .so support
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds=''
9073 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)'
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 hardcode_minus_L=yes
9081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9082 allow_undefined_flag=unsupported
9083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9084 # support --undefined. This deserves some investigation. FIXME
9085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 cygwin* | mingw* | pw32* | cegcc*)
9092 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9093 # as there is no search path for DLLs.
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 export_dynamic_flag_spec='${wl}--export-all-symbols'
9096 allow_undefined_flag=unsupported
9097 always_export_symbols=no
9098 enable_shared_with_static_runtimes=yes
9099 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'
9100 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9104 # If the export-symbols file already is a .def file (1st line
9105 # is EXPORTS), use it as is; otherwise, prepend...
9106 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9107 cp $export_symbols $output_objdir/$soname.def;
9109 echo EXPORTS > $output_objdir/$soname.def;
9110 cat $export_symbols >> $output_objdir/$soname.def;
9112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 link_all_deplibs=yes
9125 hardcode_shlibpath_var=no
9126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127 export_dynamic_flag_spec='${wl}-E'
9128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9129 # Instead, shared libraries are loaded at an image base (0x10000000 by
9130 # default) and relocated if they conflict, which is a slow very memory
9131 # consuming and fragmenting process. To avoid this, we pick a random,
9132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9135 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'
9138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9140 if test "$host_os" = linux-dietlibc; then
9141 case $cc_basename in
9142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9146 && test "$tmp_diet" = no
9148 tmp_addflag=' $pic_flag'
9149 tmp_sharedflag='-shared'
9150 case $cc_basename,$host_cpu in
9151 pgcc*) # Portland Group C compiler
9152 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'
9153 tmp_addflag=' $pic_flag'
9155 pgf77* | pgf90* | pgf95* | pgfortran*)
9156 # Portland Group f77 and f90 compilers
9157 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'
9158 tmp_addflag=' $pic_flag -Mnomain' ;;
9159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9160 tmp_addflag=' -i_dynamic' ;;
9161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9162 tmp_addflag=' -i_dynamic -nofor_main' ;;
9163 ifc* | ifort*) # Intel Fortran compiler
9164 tmp_addflag=' -nofor_main' ;;
9165 lf95*) # Lahey Fortran 8.1
9166 whole_archive_flag_spec=
9167 tmp_sharedflag='--shared' ;;
9168 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9169 tmp_sharedflag='-qmkshrobj'
9171 nvcc*) # Cuda Compiler Driver 2.2
9172 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'
9173 compiler_needs_object=yes
9176 case `$CC -V 2>&1 | sed 5q` in
9177 *Sun\ C*) # Sun C 5.9
9178 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'
9179 compiler_needs_object=yes
9180 tmp_sharedflag='-G' ;;
9181 *Sun\ F*) # Sun Fortran 8.3
9182 tmp_sharedflag='-G' ;;
9184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 if test "x$supports_anon_versioning" = xyes; then
9187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9189 echo "local: *; };" >> $output_objdir/$libname.ver~
9190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9193 case $cc_basename in
9194 xlf* | bgf* | bgxlf* | mpixlf*)
9195 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9196 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9199 if test "x$supports_anon_versioning" = xyes; then
9200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202 echo "local: *; };" >> $output_objdir/$libname.ver~
9203 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9212 netbsd* | netbsdelf*-gnu)
9213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9223 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems. Therefore, libtool
9229 *** is disabling shared libraries support. We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer. Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9235 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244 case `$LD -v 2>&1` in
9245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9250 *** reliably create shared libraries on SCO systems. Therefore, libtool
9251 *** is disabling shared libraries support. We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9259 # For security reasons, it is highly recommended that you always
9260 # use absolute paths for naming shared libraries, and exclude the
9261 # DT_RUNPATH tag from executables and libraries. But doing so
9262 # requires that you compile everything twice, which is a pain.
9263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_shlibpath_var=no
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9291 if test "$ld_shlibs" = no; then
9293 hardcode_libdir_flag_spec=
9294 export_dynamic_flag_spec=
9295 whole_archive_flag_spec=
9298 # PORTME fill in a description of your system's linker (not GNU ld)
9301 allow_undefined_flag=unsupported
9302 always_export_symbols=yes
9303 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'
9304 # Note: this linker hardcodes the directories in LIBPATH if there
9305 # are no directories specified by -L.
9306 hardcode_minus_L=yes
9307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9308 # Neither direct hardcoding nor static linking is supported with a
9310 hardcode_direct=unsupported
9315 if test "$host_cpu" = ia64; then
9316 # On IA64, the linker does run time linking by default, so we don't
9317 # have to do anything special.
9318 aix_use_runtimelinking=no
9319 exp_sym_flag='-Bexport'
9322 # If we're using GNU nm, then we don't want the "-C" option.
9323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9324 # Also, AIX nm treats weak defined symbols like other global
9325 # defined symbols, whereas GNU nm marks them as "W".
9326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9327 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'
9329 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'
9331 aix_use_runtimelinking=no
9333 # Test if we are trying to use run time linking or normal
9334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9335 # need to do runtime linking.
9336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9337 for ld_flag in $LDFLAGS; do
9338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9339 aix_use_runtimelinking=yes
9346 exp_sym_flag='-bexport'
9347 no_entry_flag='-bnoentry'
9350 # When large executables or shared objects are built, AIX ld can
9351 # have problems creating the table of contents. If linking a library
9352 # or program results in "error TOC overflow" add -mminimal-toc to
9353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9358 hardcode_direct_absolute=yes
9359 hardcode_libdir_separator=':'
9360 link_all_deplibs=yes
9361 file_list_spec='${wl}-f,'
9363 if test "$GCC" = yes; then
9364 case $host_os in aix4.[012]|aix4.[012].*)
9365 # We only want to do this on AIX 4.2 and lower, the check
9366 # below for broken collect2 doesn't work under 4.3+
9367 collect2name=`${CC} -print-prog-name=collect2`
9368 if test -f "$collect2name" &&
9369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9371 # We have reworked collect2
9374 # We have old collect2
9375 hardcode_direct=unsupported
9376 # It fails to find uninstalled libraries when the uninstalled
9377 # path is not listed in the libpath. Setting hardcode_minus_L
9378 # to unsupported forces relinking
9379 hardcode_minus_L=yes
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_libdir_separator=
9385 shared_flag='-shared'
9386 if test "$aix_use_runtimelinking" = yes; then
9387 shared_flag="$shared_flag "'${wl}-G'
9392 if test "$host_cpu" = ia64; then
9393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9394 # chokes on -Wl,-G. The following line is correct:
9397 if test "$aix_use_runtimelinking" = yes; then
9398 shared_flag='${wl}-G'
9400 shared_flag='${wl}-bM:SRE'
9405 export_dynamic_flag_spec='${wl}-bexpall'
9406 # It seems that -bexpall does not export symbols beginning with
9407 # underscore (_), so it is better to generate a list of symbols to export.
9408 always_export_symbols=yes
9409 if test "$aix_use_runtimelinking" = yes; then
9410 # Warning - without using the other runtime loading flags (-brtl),
9411 # -berok will link without error, but may produce a broken library.
9412 allow_undefined_flag='-berok'
9413 # Determine the default libpath from the value encoded in an
9415 if test "${lt_cv_aix_libpath+set}" = set; then
9416 aix_libpath=$lt_cv_aix_libpath
9418 if ${lt_cv_aix_libpath_+:} false; then :
9419 $as_echo_n "(cached) " >&6
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9432 if ac_fn_c_try_link "$LINENO"; then :
9434 lt_aix_libpath_sed='
9435 /Import File Strings/,/^$/ {
9437 s/^0 *\([^ ]*\) *$/\1/
9441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9442 # Check for a 64-bit object if we didn't find anything.
9443 if test -z "$lt_cv_aix_libpath_"; then
9444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 if test -z "$lt_cv_aix_libpath_"; then
9450 lt_cv_aix_libpath_="/usr/lib:/lib"
9455 aix_libpath=$lt_cv_aix_libpath_
9458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9459 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"
9461 if test "$host_cpu" = ia64; then
9462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9463 allow_undefined_flag="-z nodefs"
9464 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"
9466 # Determine the default libpath from the value encoded in an
9468 if test "${lt_cv_aix_libpath+set}" = set; then
9469 aix_libpath=$lt_cv_aix_libpath
9471 if ${lt_cv_aix_libpath_+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9485 if ac_fn_c_try_link "$LINENO"; then :
9487 lt_aix_libpath_sed='
9488 /Import File Strings/,/^$/ {
9490 s/^0 *\([^ ]*\) *$/\1/
9494 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495 # Check for a 64-bit object if we didn't find anything.
9496 if test -z "$lt_cv_aix_libpath_"; then
9497 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 if test -z "$lt_cv_aix_libpath_"; then
9503 lt_cv_aix_libpath_="/usr/lib:/lib"
9508 aix_libpath=$lt_cv_aix_libpath_
9511 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9512 # Warning - without using the other run time loading flags,
9513 # -berok will link without error, but may produce a broken library.
9514 no_undefined_flag=' ${wl}-bernotok'
9515 allow_undefined_flag=' ${wl}-berok'
9516 if test "$with_gnu_ld" = yes; then
9517 # We only use this code for GNU lds that support --whole-archive.
9518 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9520 # Exported symbols can be pulled into shared objects from archives
9521 whole_archive_flag_spec='$convenience'
9523 archive_cmds_need_lc=yes
9524 # This is similar to how AIX traditionally builds its shared libraries.
9525 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'
9533 # see comment about AmigaOS4 .so support
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds=''
9538 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)'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_minus_L=yes
9546 export_dynamic_flag_spec=-rdynamic
9549 cygwin* | mingw* | pw32* | cegcc*)
9550 # When not using gcc, we currently assume that we are using
9551 # Microsoft Visual C++.
9552 # hardcode_libdir_flag_spec is actually meaningless, as there is
9553 # no search path for DLLs.
9554 case $cc_basename in
9557 hardcode_libdir_flag_spec=' '
9558 allow_undefined_flag=unsupported
9559 always_export_symbols=yes
9561 # Tell ltmain to make .lib files, not .a files.
9563 # Tell ltmain to make .dll files, not .so files.
9565 # FIXME: Setting linknames here is a bad hack.
9566 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9567 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9568 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9570 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9572 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9574 # The linker will not automatically build a static lib if we build a DLL.
9575 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9576 enable_shared_with_static_runtimes=yes
9577 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9580 old_postinstall_cmds='chmod 644 $oldlib'
9581 postlink_cmds='lt_outputfile="@OUTPUT@"~
9582 lt_tool_outputfile="@TOOL_OUTPUT@"~
9583 case $lt_outputfile in
9586 lt_outputfile="$lt_outputfile.exe"
9587 lt_tool_outputfile="$lt_tool_outputfile.exe"
9590 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9591 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9592 $RM "$lt_outputfile.manifest";
9596 # Assume MSVC wrapper
9597 hardcode_libdir_flag_spec=' '
9598 allow_undefined_flag=unsupported
9599 # Tell ltmain to make .lib files, not .a files.
9601 # Tell ltmain to make .dll files, not .so files.
9603 # FIXME: Setting linknames here is a bad hack.
9604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9605 # The linker will automatically build a .lib file if we build a DLL.
9606 old_archive_from_new_cmds='true'
9607 # FIXME: Should let the user specify the lib program.
9608 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9609 enable_shared_with_static_runtimes=yes
9614 darwin* | rhapsody*)
9617 archive_cmds_need_lc=no
9619 hardcode_automatic=yes
9620 hardcode_shlibpath_var=unsupported
9621 if test "$lt_cv_ld_force_load" = "yes"; then
9622 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\"`'
9625 whole_archive_flag_spec=''
9627 link_all_deplibs=yes
9628 allow_undefined_flag="$_lt_dar_allow_undefined"
9629 case $cc_basename in
9630 ifort*) _lt_dar_can_shared=yes ;;
9631 *) _lt_dar_can_shared=$GCC ;;
9633 if test "$_lt_dar_can_shared" = "yes"; then
9634 output_verbose_link_cmd=func_echo_all
9635 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9636 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9637 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}"
9638 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}"
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_shlibpath_var=no
9652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9653 # support. Future versions do this automatically, but an explicit c++rt0.o
9654 # does not break anything, and helps significantly (at the cost of a little
9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9658 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_shlibpath_var=no
9663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_minus_L=yes
9668 hardcode_shlibpath_var=no
9671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9672 freebsd* | dragonfly*)
9673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9674 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_shlibpath_var=no
9680 if test "$GCC" = yes; then
9681 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'
9683 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'
9685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9686 hardcode_libdir_separator=:
9689 # hardcode_minus_L: Not really in the search PATH,
9690 # but as the default location of the library.
9691 hardcode_minus_L=yes
9692 export_dynamic_flag_spec='${wl}-E'
9696 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9697 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 if test "$with_gnu_ld" = no; then
9702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9703 hardcode_libdir_separator=:
9705 hardcode_direct_absolute=yes
9706 export_dynamic_flag_spec='${wl}-E'
9707 # hardcode_minus_L: Not really in the search PATH,
9708 # but as the default location of the library.
9709 hardcode_minus_L=yes
9714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9736 # Older versions of the 11.00 compiler do not understand -b yet
9737 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9739 $as_echo_n "checking if $CC understands -b... " >&6; }
9740 if ${lt_cv_prog_compiler__b+:} false; then :
9741 $as_echo_n "(cached) " >&6
9743 lt_cv_prog_compiler__b=no
9744 save_LDFLAGS="$LDFLAGS"
9745 LDFLAGS="$LDFLAGS -b"
9746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9748 # The linker can only warn and ignore the option if not recognized
9749 # So say no if there are warnings
9750 if test -s conftest.err; then
9751 # Append any errors to the config.log.
9752 cat conftest.err 1>&5
9753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755 if diff conftest.exp conftest.er2 >/dev/null; then
9756 lt_cv_prog_compiler__b=yes
9759 lt_cv_prog_compiler__b=yes
9763 LDFLAGS="$save_LDFLAGS"
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9767 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9769 if test x"$lt_cv_prog_compiler__b" = xyes; then
9770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9778 if test "$with_gnu_ld" = no; then
9779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9780 hardcode_libdir_separator=:
9785 hardcode_shlibpath_var=no
9789 hardcode_direct_absolute=yes
9790 export_dynamic_flag_spec='${wl}-E'
9792 # hardcode_minus_L: Not really in the search PATH,
9793 # but as the default location of the library.
9794 hardcode_minus_L=yes
9800 irix5* | irix6* | nonstopux*)
9801 if test "$GCC" = yes; then
9802 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'
9803 # Try to use the -exported_symbol ld option, if it does not
9804 # work, assume that -exports_file does not work either and
9805 # implicitly export all symbols.
9806 # This should be the same for all languages, so no per-tag cache variable.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9808 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9809 if ${lt_cv_irix_exported_symbol+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 save_LDFLAGS="$LDFLAGS"
9813 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 int foo (void) { return 0; }
9818 if ac_fn_c_try_link "$LINENO"; then :
9819 lt_cv_irix_exported_symbol=yes
9821 lt_cv_irix_exported_symbol=no
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LDFLAGS="$save_LDFLAGS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9828 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9829 if test "$lt_cv_irix_exported_symbol" = yes; then
9830 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'
9833 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'
9834 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'
9836 archive_cmds_need_lc='no'
9837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9838 hardcode_libdir_separator=:
9840 link_all_deplibs=yes
9843 netbsd* | netbsdelf*-gnu)
9844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9849 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_shlibpath_var=no
9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858 hardcode_libdir_separator=:
9859 hardcode_shlibpath_var=no
9866 if test -f /usr/libexec/ld.so; then
9868 hardcode_shlibpath_var=no
9869 hardcode_direct_absolute=yes
9870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9874 export_dynamic_flag_spec='${wl}-E'
9877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9879 hardcode_libdir_flag_spec='-R$libdir'
9882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9893 hardcode_libdir_flag_spec='-L$libdir'
9894 hardcode_minus_L=yes
9895 allow_undefined_flag=unsupported
9896 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'
9897 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9901 if test "$GCC" = yes; then
9902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9903 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'
9905 allow_undefined_flag=' -expect_unresolved \*'
9906 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'
9908 archive_cmds_need_lc='no'
9909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910 hardcode_libdir_separator=:
9913 osf4* | osf5*) # as osf3* with the addition of -msym flag
9914 if test "$GCC" = yes; then
9915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9916 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'
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 allow_undefined_flag=' -expect_unresolved \*'
9920 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'
9921 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~
9922 $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'
9924 # Both c and cxx compiler support -rpath directly
9925 hardcode_libdir_flag_spec='-rpath $libdir'
9927 archive_cmds_need_lc='no'
9928 hardcode_libdir_separator=:
9932 no_undefined_flag=' -z defs'
9933 if test "$GCC" = yes; then
9935 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937 $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'
9939 case `$CC -V 2>&1` in
9942 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9944 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9948 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9950 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9954 hardcode_libdir_flag_spec='-R$libdir'
9955 hardcode_shlibpath_var=no
9957 solaris2.[0-5] | solaris2.[0-5].*) ;;
9959 # The compiler driver will combine and reorder linker options,
9960 # but understands `-z linker_flag'. GCC discards it without `$wl',
9961 # but is careful enough not to reorder.
9962 # Supported since Solaris 2.6 (maybe 2.5.1?)
9963 if test "$GCC" = yes; then
9964 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9966 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9970 link_all_deplibs=yes
9974 if test "x$host_vendor" = xsequent; then
9975 # Use $CC to link under sequent, because it throws in some extra .o
9976 # files that make .init and .fini sections work.
9977 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_minus_L=yes
9984 hardcode_shlibpath_var=no
9988 case $host_vendor in
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=yes # is this really true???
9994 ## LD is ld it makes a PLAMLIB
9995 ## CC just makes a GrossModule.
9996 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9997 reload_cmds='$CC -r -o $output$reload_objs'
10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10005 runpath_var='LD_RUN_PATH'
10006 hardcode_shlibpath_var=no
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_shlibpath_var=no
10012 export_dynamic_flag_spec='-Bexport'
10016 if test -d /usr/nec; then
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_shlibpath_var=no
10019 runpath_var=LD_RUN_PATH
10020 hardcode_runpath_var=yes
10025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10026 no_undefined_flag='${wl}-z,text'
10027 archive_cmds_need_lc=no
10028 hardcode_shlibpath_var=no
10029 runpath_var='LD_RUN_PATH'
10031 if test "$GCC" = yes; then
10032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 sysv5* | sco3.2v5* | sco5v6*)
10041 # Note: We can NOT use -z defs as we might desire, because we do not
10042 # link with -lc, and that would cause any symbols used from libc to
10043 # always be unresolved, which means just about no library would
10044 # ever link correctly. If we're not using GNU ld we use -z text
10045 # though, which does catch some bad symbols but isn't as heavy-handed
10047 no_undefined_flag='${wl}-z,text'
10048 allow_undefined_flag='${wl}-z,nodefs'
10049 archive_cmds_need_lc=no
10050 hardcode_shlibpath_var=no
10051 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10052 hardcode_libdir_separator=':'
10053 link_all_deplibs=yes
10054 export_dynamic_flag_spec='${wl}-Bexport'
10055 runpath_var='LD_RUN_PATH'
10057 if test "$GCC" = yes; then
10058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 hardcode_shlibpath_var=no
10077 if test x$host_vendor = xsni; then
10079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10080 export_dynamic_flag_spec='${wl}-Blargedynsym'
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10087 $as_echo "$ld_shlibs" >&6; }
10088 test "$ld_shlibs" = no && can_build_shared=no
10090 with_gnu_ld=$with_gnu_ld
10107 # Do we need to explicitly link libc?
10109 case "x$archive_cmds_need_lc" in
10111 # Assume -lc should be added
10112 archive_cmds_need_lc=yes
10114 if test "$enable_shared" = yes && test "$GCC" = yes; then
10115 case $archive_cmds in
10117 # FIXME: we may have to deal with multi-command sequences.
10120 # Test whether the compiler implicitly links with -lc since on some
10121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10122 # to ld, don't add -lc before -lgcc.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10125 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10126 $as_echo_n "(cached) " >&6
10129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10132 (eval $ac_compile) 2>&5
10134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135 test $ac_status = 0; } 2>conftest.err; then
10138 libobjs=conftest.$ac_objext
10140 wl=$lt_prog_compiler_wl
10141 pic_flag=$lt_prog_compiler_pic
10147 lt_save_allow_undefined_flag=$allow_undefined_flag
10148 allow_undefined_flag=
10149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10150 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10153 test $ac_status = 0; }
10155 lt_cv_archive_cmds_need_lc=no
10157 lt_cv_archive_cmds_need_lc=yes
10159 allow_undefined_flag=$lt_save_allow_undefined_flag
10161 cat conftest.err 1>&5
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10167 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10168 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10329 if test "$GCC" = yes; then
10331 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10332 *) lt_awk_arg="/^libraries:/" ;;
10335 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10336 *) lt_sed_strip_eq="s,=/,/,g" ;;
10338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10339 case $lt_search_path_spec in
10341 # if the path contains ";" then we assume it to be the separator
10342 # otherwise default to the standard path separator (i.e. ":") - it is
10343 # assumed that no part of a normal pathname contains ";" but that should
10344 # okay in the real world where ";" in dirpaths is itself problematic.
10345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10351 # Ok, now we have the path, separated by spaces, we can step through it
10352 # and add multilib dir if necessary.
10353 lt_tmp_lt_search_path_spec=
10354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10355 for lt_sys_path in $lt_search_path_spec; do
10356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10359 test -d "$lt_sys_path" && \
10360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10364 BEGIN {RS=" "; FS="/|\n";} {
10367 for (lt_i = NF; lt_i > 0; lt_i--) {
10368 if ($lt_i != "" && $lt_i != ".") {
10369 if ($lt_i == "..") {
10372 if (lt_count == 0) {
10373 lt_foo="/" $lt_i lt_foo;
10380 if (lt_foo != "") { lt_freq[lt_foo]++; }
10381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10383 # AWK program above erroneously prepends '/' to C:/dos/paths
10386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393 library_names_spec=
10394 libname_spec='lib$name'
10398 postuninstall_cmds=
10402 shlibpath_overrides_runpath=unknown
10404 dynamic_linker="$host_os ld.so"
10405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10406 need_lib_prefix=unknown
10407 hardcode_into_libs=no
10409 # when you set need_version to no, make sure it does not cause -set_version
10410 # flags to be left without arguments
10411 need_version=unknown
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10417 shlibpath_var=LIBPATH
10419 # AIX 3 has no versioning support, so we append a major version to the name.
10420 soname_spec='${libname}${release}${shared_ext}$major'
10424 version_type=linux # correct to gnu/linux during the next big refactor
10427 hardcode_into_libs=yes
10428 if test "$host_cpu" = ia64; then
10429 # AIX 5 supports IA64
10430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10431 shlibpath_var=LD_LIBRARY_PATH
10433 # With GCC up to 2.95.x, collect2 would create an import file
10434 # for dependence libraries. The import file would start with
10435 # the line `#! .'. This would cause the generated library to
10436 # depend on `.', always an invalid library. This was fixed in
10437 # development snapshots of GCC prior to 3.0.
10439 aix4 | aix4.[01] | aix4.[01].*)
10440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10445 can_build_shared=no
10449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10450 # soname into executable. Probably we can add versioning support to
10451 # collect2, so additional links can be useful in future.
10452 if test "$aix_use_runtimelinking" = yes; then
10453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10454 # instead of lib<name>.a to let people know that these are not
10455 # typical AIX shared libraries.
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 # We preserve .a as extension for shared libraries through AIX4.2
10459 # and later when we are not doing run time linking.
10460 library_names_spec='${libname}${release}.a $libname.a'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LIBPATH
10470 # Since July 2007 AmigaOS4 officially supports .so libraries.
10471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 library_names_spec='$libname.ixlibrary $libname.a'
10476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10477 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'
10483 library_names_spec='${libname}${shared_ext}'
10484 dynamic_linker="$host_os ld.so"
10485 shlibpath_var=LIBRARY_PATH
10489 version_type=linux # correct to gnu/linux during the next big refactor
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10497 # the default ld.so.conf also contains /usr/contrib/lib and
10498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10499 # libtool to hard-code these into programs
10502 cygwin* | mingw* | pw32* | cegcc*)
10503 version_type=windows
10508 case $GCC,$cc_basename in
10511 library_names_spec='$libname.dll.a'
10512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10513 postinstall_cmds='base_file=`basename \${file}`~
10514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10515 dldir=$destdir/`dirname \$dlpath`~
10516 test -d \$dldir || mkdir -p \$dldir~
10517 $install_prog $dir/$dlname \$dldir/$dlname~
10518 chmod a+x \$dldir/$dlname~
10519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10523 dlpath=$dir/\$dldll~
10525 shlibpath_overrides_runpath=yes
10529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10535 # MinGW DLLs use traditional 'lib' prefix
10536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539 # pw32 DLLs use 'pw' prefix rather than 'lib'
10540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10543 dynamic_linker='Win32 ld.exe'
10548 libname_spec='$name'
10549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550 library_names_spec='${libname}.dll.lib'
10554 sys_lib_search_path_spec=
10557 for lt_path in $LIB
10560 # Let DOS variable expansion print the short 8.3 style file name.
10561 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10562 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10565 # Convert to MSYS style.
10566 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10569 # Convert to unix form, then to dos form, then back to unix form
10570 # but this time dos style (no spaces!) so that the unix form looks
10571 # like /cygdrive/c/PROGRA~1:/cygdr...
10572 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10573 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10574 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10577 sys_lib_search_path_spec="$LIB"
10578 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10579 # It is most probably a Windows format PATH.
10580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 # FIXME: find the short name or the path components, as spaces are
10585 # common. (e.g. "Program Files" -> "PROGRA~1")
10589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10590 postinstall_cmds='base_file=`basename \${file}`~
10591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10592 dldir=$destdir/`dirname \$dlpath`~
10593 test -d \$dldir || mkdir -p \$dldir~
10594 $install_prog $dir/$dlname \$dldir/$dlname'
10595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10596 dlpath=$dir/\$dldll~
10598 shlibpath_overrides_runpath=yes
10599 dynamic_linker='Win32 link.exe'
10603 # Assume MSVC wrapper
10604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10605 dynamic_linker='Win32 ld.exe'
10608 # FIXME: first we should search . and the directory the executable is in
10612 darwin* | rhapsody*)
10613 dynamic_linker="$host_os dyld"
10614 version_type=darwin
10617 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10618 soname_spec='${libname}${release}${major}$shared_ext'
10619 shlibpath_overrides_runpath=yes
10620 shlibpath_var=DYLD_LIBRARY_PATH
10621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10628 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10636 freebsd* | dragonfly*)
10637 # DragonFly does not have aout. When/if they implement a new
10638 # versioning mechanism, adjust this.
10639 if test -x /usr/bin/objformat; then
10640 objformat=`/usr/bin/objformat`
10643 freebsd[23].*) objformat=aout ;;
10644 *) objformat=elf ;;
10647 version_type=freebsd-$objformat
10648 case $version_type in
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10659 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10664 freebsd3.[01]* | freebsdelf3.[01]*)
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10670 shlibpath_overrides_runpath=no
10671 hardcode_into_libs=yes
10673 *) # from 4.6 on, and DragonFly
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10681 version_type=linux # correct to gnu/linux during the next big refactor
10684 dynamic_linker="$host_os runtime_loader"
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10689 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10690 hardcode_into_libs=yes
10693 hpux9* | hpux10* | hpux11*)
10694 # Give a soname corresponding to the major version so that dld.sl refuses to
10695 # link against other versions.
10702 hardcode_into_libs=yes
10703 dynamic_linker="$host_os dld.so"
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 if test "X$HPUX_IA64_MODE" = X32; then
10709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10717 hardcode_into_libs=yes
10718 dynamic_linker="$host_os dld.sl"
10719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10728 dynamic_linker="$host_os dld.sl"
10729 shlibpath_var=SHLIB_PATH
10730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10735 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10736 postinstall_cmds='chmod 555 $lib'
10737 # or fails outright, so override atomically:
10738 install_override_mode=555
10742 version_type=linux # correct to gnu/linux during the next big refactor
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=no
10750 hardcode_into_libs=yes
10753 irix5* | irix6* | nonstopux*)
10755 nonstopux*) version_type=nonstopux ;;
10757 if test "$lt_cv_prog_gnu_ld" = yes; then
10758 version_type=linux # correct to gnu/linux during the next big refactor
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10768 irix5* | nonstopux*)
10769 libsuff= shlibsuff=
10772 case $LD in # libtool.m4 will add one of these switches to LD
10773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10774 libsuff= shlibsuff= libmagic=32-bit;;
10775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10776 libsuff=32 shlibsuff=N32 libmagic=N32;;
10777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10779 *) libsuff= shlibsuff= libmagic=never-match;;
10783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10784 shlibpath_overrides_runpath=no
10785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10787 hardcode_into_libs=yes
10790 # No shared lib support for Linux oldld, aout, or coff.
10791 linux*oldld* | linux*aout* | linux*coff*)
10795 # This must be glibc/ELF.
10796 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10797 version_type=linux # correct to gnu/linux during the next big refactor
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=no
10806 # Some binutils ld are patched to set DT_RUNPATH
10807 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 lt_cv_shlibpath_overrides_runpath=no
10811 save_LDFLAGS=$LDFLAGS
10812 save_libdir=$libdir
10813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10828 lt_cv_shlibpath_overrides_runpath=yes
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LDFLAGS=$save_LDFLAGS
10834 libdir=$save_libdir
10838 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10840 # This implies no fast_install, which is unacceptable.
10841 # Some rework will be needed to allow for fast_install
10842 # before this can be enabled.
10843 hardcode_into_libs=yes
10845 # Append ld.so.conf contents to the search path
10846 if test -f /etc/ld.so.conf; then
10847 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' ' '`
10848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10851 # We used to test for /lib/ld.so.1 and disable shared libraries on
10852 # powerpc, because MkLinux only supported shared libraries with the
10853 # GNU dynamic linker. Since this was broken with cross compilers,
10854 # most powerpc-linux boxes support dynamic linking these days and
10855 # people can always --disable-shared, the test was removed, and we
10856 # assume the GNU/Linux dynamic linker is in use.
10857 dynamic_linker='GNU/Linux ld.so'
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=no
10868 hardcode_into_libs=yes
10869 dynamic_linker='NetBSD ld.elf_so'
10876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10879 dynamic_linker='NetBSD (a.out) ld.so'
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 dynamic_linker='NetBSD ld.elf_so'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10887 hardcode_into_libs=yes
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=yes
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=no
10905 hardcode_into_libs=yes
10906 dynamic_linker='ldqnx.so'
10911 sys_lib_dlsearch_path_spec="/usr/lib"
10913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10916 *) need_version=no ;;
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10923 openbsd2.[89] | openbsd2.[89].*)
10924 shlibpath_overrides_runpath=no
10927 shlibpath_overrides_runpath=yes
10931 shlibpath_overrides_runpath=yes
10936 libname_spec='$name'
10939 library_names_spec='$libname${shared_ext} $libname.a'
10940 dynamic_linker='OS/2 ld.exe'
10941 shlibpath_var=LIBPATH
10944 osf3* | osf4* | osf5*)
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10960 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10968 # ldd complains unless libraries are executable
10969 postinstall_cmds='chmod +x $lib'
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 if test "$with_gnu_ld" = yes; then
10985 version_type=linux # correct to gnu/linux during the next big refactor
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 case $host_vendor in
10991 shlibpath_overrides_runpath=no
10993 runpath_var=LD_RUN_PATH
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11008 if test -d /usr/nec ;then
11009 version_type=linux # correct to gnu/linux during the next big refactor
11010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11011 soname_spec='$libname${shared_ext}.$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11017 version_type=freebsd-elf
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11025 if test "$with_gnu_ld" = yes; then
11026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11035 sys_lib_dlsearch_path_spec='/usr/lib'
11039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11040 version_type=linux # correct to gnu/linux during the next big refactor
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061 $as_echo "$dynamic_linker" >&6; }
11062 test "$dynamic_linker" = no && can_build_shared=no
11064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065 if test "$GCC" = yes; then
11066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11069 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11070 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11072 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11170 if test -n "$hardcode_libdir_flag_spec" ||
11171 test -n "$runpath_var" ||
11172 test "X$hardcode_automatic" = "Xyes" ; then
11174 # We can hardcode non-existent directories.
11175 if test "$hardcode_direct" != no &&
11176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11177 # have to relink, otherwise we might link with an installed library
11178 # when we should be linking with a yet-to-be-installed one
11179 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11180 test "$hardcode_minus_L" != no; then
11181 # Linking always hardcodes the temporary library directory.
11182 hardcode_action=relink
11184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11185 hardcode_action=immediate
11188 # We cannot hardcode anything, or else we can only hardcode existing
11190 hardcode_action=unsupported
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11193 $as_echo "$hardcode_action" >&6; }
11195 if test "$hardcode_action" = relink ||
11196 test "$inherit_rpath" = yes; then
11197 # Fast installation is not supported
11198 enable_fast_install=no
11199 elif test "$shlibpath_overrides_runpath" = yes ||
11200 test "$enable_shared" = no; then
11201 # Fast installation is not necessary
11202 enable_fast_install=needless
11210 if test "x$enable_dlopen" != xyes; then
11211 enable_dlopen=unknown
11212 enable_dlopen_self=unknown
11213 enable_dlopen_self_static=unknown
11220 lt_cv_dlopen="load_add_on"
11222 lt_cv_dlopen_self=yes
11225 mingw* | pw32* | cegcc*)
11226 lt_cv_dlopen="LoadLibrary"
11231 lt_cv_dlopen="dlopen"
11236 # if libdl is installed we need to link against it
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11239 if ${ac_cv_lib_dl_dlopen+:} false; then :
11240 $as_echo_n "(cached) " >&6
11242 ac_check_lib_save_LIBS=$LIBS
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_dl_dlopen=yes
11265 ac_cv_lib_dl_dlopen=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11277 lt_cv_dlopen="dyld"
11279 lt_cv_dlopen_self=yes
11286 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11287 if test "x$ac_cv_func_shl_load" = xyes; then :
11288 lt_cv_dlopen="shl_load"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11291 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11292 if ${ac_cv_lib_dld_shl_load+:} false; then :
11293 $as_echo_n "(cached) " >&6
11295 ac_check_lib_save_LIBS=$LIBS
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11310 return shl_load ();
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_lib_dld_shl_load=yes
11318 ac_cv_lib_dld_shl_load=no
11320 rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11325 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11326 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11327 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11329 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11330 if test "x$ac_cv_func_dlopen" = xyes; then :
11331 lt_cv_dlopen="dlopen"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11335 if ${ac_cv_lib_dl_dlopen+:} false; then :
11336 $as_echo_n "(cached) " >&6
11338 ac_check_lib_save_LIBS=$LIBS
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_dl_dlopen=yes
11361 ac_cv_lib_dl_dlopen=no
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11369 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11373 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11374 if ${ac_cv_lib_svld_dlopen+:} false; then :
11375 $as_echo_n "(cached) " >&6
11377 ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-lsvld $LIBS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_lib_svld_dlopen=yes
11400 ac_cv_lib_svld_dlopen=no
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11407 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11408 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11412 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11413 if ${ac_cv_lib_dld_dld_link+:} false; then :
11414 $as_echo_n "(cached) " >&6
11416 ac_check_lib_save_LIBS=$LIBS
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11431 return dld_link ();
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_lib_dld_dld_link=yes
11439 ac_cv_lib_dld_dld_link=no
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11446 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11447 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11448 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11469 if test "x$lt_cv_dlopen" != xno; then
11475 case $lt_cv_dlopen in
11477 save_CPPFLAGS="$CPPFLAGS"
11478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11480 save_LDFLAGS="$LDFLAGS"
11481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11484 LIBS="$lt_cv_dlopen_libs $LIBS"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11487 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11488 if ${lt_cv_dlopen_self+:} false; then :
11489 $as_echo_n "(cached) " >&6
11491 if test "$cross_compiling" = yes; then :
11492 lt_cv_dlopen_self=cross
11494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495 lt_status=$lt_dlunknown
11496 cat > conftest.$ac_ext <<_LT_EOF
11497 #line $LINENO "configure"
11498 #include "confdefs.h"
11507 # define LT_DLGLOBAL RTLD_GLOBAL
11510 # define LT_DLGLOBAL DL_GLOBAL
11512 # define LT_DLGLOBAL 0
11516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517 find out it does not work in some platform. */
11518 #ifndef LT_DLLAZY_OR_NOW
11520 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11523 # define LT_DLLAZY_OR_NOW DL_LAZY
11526 # define LT_DLLAZY_OR_NOW RTLD_NOW
11529 # define LT_DLLAZY_OR_NOW DL_NOW
11531 # define LT_DLLAZY_OR_NOW 0
11538 /* When -fvisbility=hidden is used, assume the code has been annotated
11539 correspondingly for the symbols needed. */
11540 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541 int fnord () __attribute__((visibility("default")));
11544 int fnord () { return 42; }
11547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548 int status = $lt_dlunknown;
11552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 else puts (dlerror ());
11558 /* dlclose (self); */
11566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567 (eval $ac_link) 2>&5
11569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571 (./conftest; exit; ) >&5 2>/dev/null
11573 case x$lt_status in
11574 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11579 # compilation failed
11580 lt_cv_dlopen_self=no
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11588 $as_echo "$lt_cv_dlopen_self" >&6; }
11590 if test "x$lt_cv_dlopen_self" = xyes; then
11591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11593 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self_static+:} false; then :
11595 $as_echo_n "(cached) " >&6
11597 if test "$cross_compiling" = yes; then :
11598 lt_cv_dlopen_self_static=cross
11600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601 lt_status=$lt_dlunknown
11602 cat > conftest.$ac_ext <<_LT_EOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11613 # define LT_DLGLOBAL RTLD_GLOBAL
11616 # define LT_DLGLOBAL DL_GLOBAL
11618 # define LT_DLGLOBAL 0
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623 find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11626 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11629 # define LT_DLLAZY_OR_NOW DL_LAZY
11632 # define LT_DLLAZY_OR_NOW RTLD_NOW
11635 # define LT_DLLAZY_OR_NOW DL_NOW
11637 # define LT_DLLAZY_OR_NOW 0
11644 /* When -fvisbility=hidden is used, assume the code has been annotated
11645 correspondingly for the symbols needed. */
11646 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647 int fnord () __attribute__((visibility("default")));
11650 int fnord () { return 42; }
11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654 int status = $lt_dlunknown;
11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11661 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11662 else puts (dlerror ());
11664 /* dlclose (self); */
11672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673 (eval $ac_link) 2>&5
11675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11677 (./conftest; exit; ) >&5 2>/dev/null
11679 case x$lt_status in
11680 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11681 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11682 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11685 # compilation failed
11686 lt_cv_dlopen_self_static=no
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11694 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11697 CPPFLAGS="$save_CPPFLAGS"
11698 LDFLAGS="$save_LDFLAGS"
11703 case $lt_cv_dlopen_self in
11704 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11705 *) enable_dlopen_self=unknown ;;
11708 case $lt_cv_dlopen_self_static in
11709 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11710 *) enable_dlopen_self_static=unknown ;;
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11733 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11734 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11735 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11736 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11738 $as_echo "yes" >&6; }
11740 # FIXME - insert some real tests, host_os isn't really good enough
11743 if test -n "$STRIP" ; then
11744 striplib="$STRIP -x"
11745 old_striplib="$STRIP -S"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11771 # Report which library types will actually be built
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11773 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11775 $as_echo "$can_build_shared" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11778 $as_echo_n "checking whether to build shared libraries... " >&6; }
11779 test "$can_build_shared" = "no" && enable_shared=no
11781 # On AIX, shared libraries and static libraries use the same namespace, and
11782 # are all built from PIC.
11785 test "$enable_shared" = yes && enable_static=no
11786 if test -n "$RANLIB"; then
11787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11788 postinstall_cmds='$RANLIB $lib'
11793 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11794 test "$enable_shared" = yes && enable_static=no
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11799 $as_echo "$enable_shared" >&6; }
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11802 $as_echo_n "checking whether to build static libraries... " >&6; }
11803 # Make sure either enable_shared or enable_static is yes.
11804 test "$enable_shared" = yes || enable_static=yes
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11806 $as_echo "$enable_static" >&6; }
11813 ac_cpp='$CPP $CPPFLAGS'
11814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834 ac_config_commands="$ac_config_commands libtool"
11839 # Only expand once:
11843 # Check whether --enable-optimization was given.
11844 if test "${enable_optimization+set}" = set; then :
11845 enableval=$enable_optimization;
11846 if (test "${enableval}" = "no"); then
11847 CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
11853 # Check whether --enable-debug was given.
11854 if test "${enable_debug+set}" = set; then :
11855 enableval=$enable_debug;
11856 if (test "${enableval}" = "yes" &&
11857 test "${ac_cv_prog_cc_g}" = "yes"); then
11858 CFLAGS="$CFLAGS -g"
11864 # Check whether --enable-pie was given.
11865 if test "${enable_pie+set}" = set; then :
11866 enableval=$enable_pie;
11867 if (test "${enableval}" = "yes" &&
11868 test "${ac_cv_prog_cc_pie}" = "yes"); then
11869 CFLAGS="$CFLAGS -fPIE"
11870 LDFLAGS="$LDFLAGS -pie"
11876 # Check whether --enable-hh2serial-gps was given.
11877 if test "${enable_hh2serial_gps+set}" = set; then :
11878 enableval=$enable_hh2serial_gps; enable_hh2serial_gps=${enableval}
11880 enable_hh2serial_gps="no"
11883 if test "${enable_hh2serial_gps}" != "no"; then
11884 HH2SERIAL_GPS_TRUE=
11885 HH2SERIAL_GPS_FALSE='#'
11887 HH2SERIAL_GPS_TRUE='#'
11888 HH2SERIAL_GPS_FALSE=
11891 if test "${enable_hh2serial_gps}" = "builtin"; then
11892 HH2SERIAL_GPS_BUILTIN_TRUE=
11893 HH2SERIAL_GPS_BUILTIN_FALSE='#'
11895 HH2SERIAL_GPS_BUILTIN_TRUE='#'
11896 HH2SERIAL_GPS_BUILTIN_FALSE=
11901 # Check whether --with-openconnect was given.
11902 if test "${with_openconnect+set}" = set; then :
11903 withval=$with_openconnect; path_openconnect=${withval}
11907 # Check whether --enable-openconnect was given.
11908 if test "${enable_openconnect+set}" = set; then :
11909 enableval=$enable_openconnect; enable_openconnect=${enableval}
11911 enable_openconnect="no"
11914 if (test "${enable_openconnect}" != "no"); then
11915 if (test -z "${path_openconnect}"); then
11916 # Extract the first word of "openconnect", so it can be a program name with args.
11917 set dummy openconnect; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_OPENCONNECT+:} false; then :
11921 $as_echo_n "(cached) " >&6
11923 case $OPENCONNECT in
11925 ac_cv_path_OPENCONNECT="$OPENCONNECT" # Let the user override the test with a path.
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 as_dummy="$PATH:/sbin:/usr/sbin"
11930 for as_dir in $as_dummy
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_path_OPENCONNECT="$as_dir/$ac_word$ac_exec_ext"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 OPENCONNECT=$ac_cv_path_OPENCONNECT
11948 if test -n "$OPENCONNECT"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCONNECT" >&5
11950 $as_echo "$OPENCONNECT" >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11957 if (test -z "${OPENCONNECT}"); then
11958 as_fn_error $? "openconnect binary not found" "$LINENO" 5
11961 OPENCONNECT="${path_openconnect}"
11965 if test "${enable_openconnect}" != "no"; then
11967 OPENCONNECT_FALSE='#'
11969 OPENCONNECT_TRUE='#'
11973 if test "${enable_openconnect}" = "builtin"; then
11974 OPENCONNECT_BUILTIN_TRUE=
11975 OPENCONNECT_BUILTIN_FALSE='#'
11977 OPENCONNECT_BUILTIN_TRUE='#'
11978 OPENCONNECT_BUILTIN_FALSE=
11983 # Check whether --with-openvpn was given.
11984 if test "${with_openvpn+set}" = set; then :
11985 withval=$with_openvpn; path_openvpn=${withval}
11989 # Check whether --enable-openvpn was given.
11990 if test "${enable_openvpn+set}" = set; then :
11991 enableval=$enable_openvpn; enable_openvpn=${enableval}
11993 enable_openvpn="no"
11996 if (test "${enable_openvpn}" != "no"); then
11997 if (test -z "${path_openvpn}"); then
11998 # Extract the first word of "openvpn", so it can be a program name with args.
11999 set dummy openvpn; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_path_OPENVPN+:} false; then :
12003 $as_echo_n "(cached) " >&6
12007 ac_cv_path_OPENVPN="$OPENVPN" # Let the user override the test with a path.
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 as_dummy="$PATH:/sbin:/usr/sbin"
12012 for as_dir in $as_dummy
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_OPENVPN="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 OPENVPN=$ac_cv_path_OPENVPN
12030 if test -n "$OPENVPN"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVPN" >&5
12032 $as_echo "$OPENVPN" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12039 if (test -z "${OPENVPN}"); then
12040 as_fn_error $? "openvpn binary not found" "$LINENO" 5
12043 OPENVPN="${path_openvpn}"
12047 if test "${enable_openvpn}" != "no"; then
12055 if test "${enable_openvpn}" = "builtin"; then
12056 OPENVPN_BUILTIN_TRUE=
12057 OPENVPN_BUILTIN_FALSE='#'
12059 OPENVPN_BUILTIN_TRUE='#'
12060 OPENVPN_BUILTIN_FALSE=
12065 # Check whether --with-vpnc was given.
12066 if test "${with_vpnc+set}" = set; then :
12067 withval=$with_vpnc; path_vpnc=${withval}
12071 # Check whether --enable-vpnc was given.
12072 if test "${enable_vpnc+set}" = set; then :
12073 enableval=$enable_vpnc; enable_vpnc=${enableval}
12078 if (test "${enable_vpnc}" != "no"); then
12079 if (test -z "${path_vpnc}"); then
12080 # Extract the first word of "vpnc", so it can be a program name with args.
12081 set dummy vpnc; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_path_VPNC+:} false; then :
12085 $as_echo_n "(cached) " >&6
12089 ac_cv_path_VPNC="$VPNC" # Let the user override the test with a path.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 as_dummy="$PATH:/sbin:/usr/sbin"
12094 for as_dir in $as_dummy
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_path_VPNC="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 VPNC=$ac_cv_path_VPNC
12112 if test -n "$VPNC"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VPNC" >&5
12114 $as_echo "$VPNC" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12121 if (test -z "${VPNC}"); then
12122 as_fn_error $? "vpnc binary not found" "$LINENO" 5
12125 VPNC="${path_vpnc}"
12129 if test "${enable_vpnc}" != "no"; then
12137 if test "${enable_vpnc}" = "builtin"; then
12139 VPNC_BUILTIN_FALSE='#'
12141 VPNC_BUILTIN_TRUE='#'
12142 VPNC_BUILTIN_FALSE=
12147 # Check whether --with-l2tp was given.
12148 if test "${with_l2tp+set}" = set; then :
12149 withval=$with_l2tp; path_l2tp=${withval}
12153 # Check whether --enable-l2tp was given.
12154 if test "${enable_l2tp+set}" = set; then :
12155 enableval=$enable_l2tp; enable_l2tp=${enableval}
12160 if (test "${enable_l2tp}" != "no"); then
12161 if (test -z "${path_pppd}"); then
12162 # Extract the first word of "pppd", so it can be a program name with args.
12163 set dummy pppd; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_path_PPPD+:} false; then :
12167 $as_echo_n "(cached) " >&6
12171 ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 as_dummy="$PATH:/sbin:/usr/sbin"
12176 for as_dir in $as_dummy
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12194 PPPD=$ac_cv_path_PPPD
12195 if test -n "$PPPD"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12197 $as_echo "$PPPD" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12205 PPPD="${path_pppd}"
12208 for ac_header in pppd/pppd.h
12210 ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12211 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_PPPD_PPPD_H 1
12217 as_fn_error $? "ppp header files are required" "$LINENO" 5
12222 if (test -z "${path_l2tp}"); then
12223 # Extract the first word of "xl2tpd", so it can be a program name with args.
12224 set dummy xl2tpd; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_path_L2TP+:} false; then :
12228 $as_echo_n "(cached) " >&6
12232 ac_cv_path_L2TP="$L2TP" # Let the user override the test with a path.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 as_dummy="$PATH:/sbin:/usr/sbin"
12237 for as_dir in $as_dummy
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_path_L2TP="$as_dir/$ac_word$ac_exec_ext"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 test -z "$ac_cv_path_L2TP" && ac_cv_path_L2TP="/usr/sbin/xl2tpd"
12255 L2TP=$ac_cv_path_L2TP
12256 if test -n "$L2TP"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $L2TP" >&5
12258 $as_echo "$L2TP" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 L2TP="${path_l2tp}"
12270 if test "${enable_l2tp}" != "no"; then
12278 if test "${enable_l2tp}" = "builtin"; then
12280 L2TP_BUILTIN_FALSE='#'
12282 L2TP_BUILTIN_TRUE='#'
12283 L2TP_BUILTIN_FALSE=
12288 # Check whether --with-pptp was given.
12289 if test "${with_pptp+set}" = set; then :
12290 withval=$with_pptp; path_pptp=${withval}
12294 # Check whether --enable-pptp was given.
12295 if test "${enable_pptp+set}" = set; then :
12296 enableval=$enable_pptp; enable_pptp=${enableval}
12301 if (test "${enable_pptp}" != "no"); then
12302 if (test -z "${path_pppd}"); then
12303 # Extract the first word of "pppd", so it can be a program name with args.
12304 set dummy pppd; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_PPPD+:} false; then :
12308 $as_echo_n "(cached) " >&6
12312 ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 as_dummy="$PATH:/sbin:/usr/sbin"
12317 for as_dir in $as_dummy
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12335 PPPD=$ac_cv_path_PPPD
12336 if test -n "$PPPD"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12338 $as_echo "$PPPD" >&6; }
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12346 PPPD="${path_pppd}"
12349 for ac_header in pppd/pppd.h
12351 ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12352 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_PPPD_PPPD_H 1
12358 as_fn_error $? "ppp header files are required" "$LINENO" 5
12363 if (test -z "${path_pptp}"); then
12364 # Extract the first word of "pptp", so it can be a program name with args.
12365 set dummy pptp; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_PPTP+:} false; then :
12369 $as_echo_n "(cached) " >&6
12373 ac_cv_path_PPTP="$PPTP" # Let the user override the test with a path.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 as_dummy="$PATH:/sbin:/usr/sbin"
12378 for as_dir in $as_dummy
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384 ac_cv_path_PPTP="$as_dir/$ac_word$ac_exec_ext"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 test -z "$ac_cv_path_PPTP" && ac_cv_path_PPTP="/usr/sbin/pptp"
12396 PPTP=$ac_cv_path_PPTP
12397 if test -n "$PPTP"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPTP" >&5
12399 $as_echo "$PPTP" >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12407 PPTP="${path_pptp}"
12411 if test "${enable_pptp}" != "no"; then
12419 if test "${enable_pptp}" = "builtin"; then
12421 PPTP_BUILTIN_FALSE='#'
12423 PPTP_BUILTIN_TRUE='#'
12424 PPTP_BUILTIN_FALSE=
12428 for ac_header in resolv.h
12430 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
12431 if test "x$ac_cv_header_resolv_h" = xyes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_RESOLV_H 1
12437 as_fn_error $? "resolver header files are required" "$LINENO" 5
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
12443 $as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
12444 if ${ac_cv_lib_resolv_ns_initparse+:} false; then :
12445 $as_echo_n "(cached) " >&6
12447 ac_check_lib_save_LIBS=$LIBS
12448 LIBS="-lresolv $LIBS"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12452 /* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12458 char ns_initparse ();
12462 return ns_initparse ();
12467 if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_lib_resolv_ns_initparse=yes
12470 ac_cv_lib_resolv_ns_initparse=no
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
12477 $as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
12478 if test "x$ac_cv_lib_resolv_ns_initparse" = xyes; then :
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ns_initparse in -lresolv" >&5
12483 $as_echo_n "checking for __ns_initparse in -lresolv... " >&6; }
12484 if ${ac_cv_lib_resolv___ns_initparse+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lresolv $LIBS"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12498 char __ns_initparse ();
12502 return __ns_initparse ();
12507 if ac_fn_c_try_link "$LINENO"; then :
12508 ac_cv_lib_resolv___ns_initparse=yes
12510 ac_cv_lib_resolv___ns_initparse=no
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___ns_initparse" >&5
12517 $as_echo "$ac_cv_lib_resolv___ns_initparse" >&6; }
12518 if test "x$ac_cv_lib_resolv___ns_initparse" = xyes; then :
12521 as_fn_error $? "resolver library support is required" "$LINENO" 5
12528 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12529 if test "x$ac_cv_func_signalfd" = xyes; then :
12532 as_fn_error $? "signalfd support is required" "$LINENO" 5
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12538 if ${ac_cv_lib_dl_dlopen+:} false; then :
12539 $as_echo_n "(cached) " >&6
12541 ac_check_lib_save_LIBS=$LIBS
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12561 if ac_fn_c_try_link "$LINENO"; then :
12562 ac_cv_lib_dl_dlopen=yes
12564 ac_cv_lib_dl_dlopen=no
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12572 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12575 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12579 # Check whether --enable-iospm was given.
12580 if test "${enable_iospm+set}" = set; then :
12581 enableval=$enable_iospm; enable_iospm=${enableval}
12584 if test "${enable_iospm}" = "yes"; then
12593 # Check whether --enable-tist was given.
12594 if test "${enable_tist+set}" = set; then :
12595 enableval=$enable_tist; enable_tist=${enableval}
12600 if test "${enable_tist}" != "no"; then
12608 if test "${enable_tist}" = "builtin"; then
12610 TIST_BUILTIN_FALSE='#'
12612 TIST_BUILTIN_TRUE='#'
12613 TIST_BUILTIN_FALSE=
12617 # Check whether --enable-session-policy-local was given.
12618 if test "${enable_session_policy_local+set}" = set; then :
12619 enableval=$enable_session_policy_local; enable_session_policy_local=${enableval}
12621 enable_session_policy_local="no"
12624 if test "${enable_session_policy_local}" != "no"; then
12625 SESSION_POLICY_LOCAL_TRUE=
12626 SESSION_POLICY_LOCAL_FALSE='#'
12628 SESSION_POLICY_LOCAL_TRUE='#'
12629 SESSION_POLICY_LOCAL_FALSE=
12632 if test "${enable_session_policy_local}" = "builtin"; then
12633 SESSION_POLICY_LOCAL_BUILTIN_TRUE=
12634 SESSION_POLICY_LOCAL_BUILTIN_FALSE='#'
12636 SESSION_POLICY_LOCAL_BUILTIN_TRUE='#'
12637 SESSION_POLICY_LOCAL_BUILTIN_FALSE=
12642 # Check whether --with-stats-max-file-size was given.
12643 if test "${with_stats_max_file_size+set}" = set; then :
12644 withval=$with_stats_max_file_size; stats_max_file_size=${withval}
12648 if (test -z "${stats_max_file_size}"); then
12649 # default size is 16 kByte
12650 stats_max_file_size="16 * 8 * 128"
12654 cat >>confdefs.h <<_ACEOF
12655 #define STATS_MAX_FILE_SIZE (${stats_max_file_size})
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12662 $as_echo_n "checking for GLIB... " >&6; }
12664 if test -n "$GLIB_CFLAGS"; then
12665 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12666 elif test -n "$PKG_CONFIG"; then
12667 if test -n "$PKG_CONFIG" && \
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12669 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12674 test "x$?" != "x0" && pkg_failed=yes
12681 if test -n "$GLIB_LIBS"; then
12682 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12683 elif test -n "$PKG_CONFIG"; then
12684 if test -n "$PKG_CONFIG" && \
12685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12686 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12691 test "x$?" != "x0" && pkg_failed=yes
12701 if test $pkg_failed = yes; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12706 _pkg_short_errors_supported=yes
12708 _pkg_short_errors_supported=no
12710 if test $_pkg_short_errors_supported = yes; then
12711 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12713 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12715 # Put the nasty error message in config.log where it belongs
12716 echo "$GLIB_PKG_ERRORS" >&5
12718 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12719 elif test $pkg_failed = untried; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12724 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12725 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727 $as_echo "yes" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12736 $as_echo_n "checking for DBUS... " >&6; }
12738 if test -n "$DBUS_CFLAGS"; then
12739 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12740 elif test -n "$PKG_CONFIG"; then
12741 if test -n "$PKG_CONFIG" && \
12742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12743 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12746 test $ac_status = 0; }; then
12747 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12748 test "x$?" != "x0" && pkg_failed=yes
12755 if test -n "$DBUS_LIBS"; then
12756 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12757 elif test -n "$PKG_CONFIG"; then
12758 if test -n "$PKG_CONFIG" && \
12759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12760 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; }; then
12764 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12765 test "x$?" != "x0" && pkg_failed=yes
12775 if test $pkg_failed = yes; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12780 _pkg_short_errors_supported=yes
12782 _pkg_short_errors_supported=no
12784 if test $_pkg_short_errors_supported = yes; then
12785 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12787 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12789 # Put the nasty error message in config.log where it belongs
12790 echo "$DBUS_PKG_ERRORS" >&5
12792 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12793 elif test $pkg_failed = untried; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12798 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12799 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12801 $as_echo "yes" >&6; }
12808 # Check whether --with-dbusconfdir was given.
12809 if test "${with_dbusconfdir+set}" = set; then :
12810 withval=$with_dbusconfdir; path_dbusconf=${withval}
12812 path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12815 if (test -z "${path_dbusconf}"); then
12816 DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12818 DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12823 # Check whether --with-dbusdatadir was given.
12824 if test "${with_dbusdatadir+set}" = set; then :
12825 withval=$with_dbusdatadir; path_dbusdata=${withval}
12827 path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12830 if (test -z "${path_dbusdata}"); then
12831 DBUS_DATADIR="${datadir}/dbus-1/system-services"
12833 DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12838 # Check whether --with-systemdunitdir was given.
12839 if test "${with_systemdunitdir+set}" = set; then :
12840 withval=$with_systemdunitdir; path_systemdunit=${withval}
12842 path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12845 if (test -n "${path_systemdunit}"); then
12846 SYSTEMD_UNITDIR="${path_systemdunit}"
12849 if test -n "${path_systemdunit}"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTABLES" >&5
12861 $as_echo_n "checking for XTABLES... " >&6; }
12863 if test -n "$XTABLES_CFLAGS"; then
12864 pkg_cv_XTABLES_CFLAGS="$XTABLES_CFLAGS"
12865 elif test -n "$PKG_CONFIG"; then
12866 if test -n "$PKG_CONFIG" && \
12867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12868 ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871 test $ac_status = 0; }; then
12872 pkg_cv_XTABLES_CFLAGS=`$PKG_CONFIG --cflags "xtables >= 1.4.11" 2>/dev/null`
12873 test "x$?" != "x0" && pkg_failed=yes
12880 if test -n "$XTABLES_LIBS"; then
12881 pkg_cv_XTABLES_LIBS="$XTABLES_LIBS"
12882 elif test -n "$PKG_CONFIG"; then
12883 if test -n "$PKG_CONFIG" && \
12884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12885 ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888 test $ac_status = 0; }; then
12889 pkg_cv_XTABLES_LIBS=`$PKG_CONFIG --libs "xtables >= 1.4.11" 2>/dev/null`
12890 test "x$?" != "x0" && pkg_failed=yes
12900 if test $pkg_failed = yes; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12905 _pkg_short_errors_supported=yes
12907 _pkg_short_errors_supported=no
12909 if test $_pkg_short_errors_supported = yes; then
12910 XTABLES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12912 XTABLES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12914 # Put the nasty error message in config.log where it belongs
12915 echo "$XTABLES_PKG_ERRORS" >&5
12917 as_fn_error $? "Xtables library is required" "$LINENO" 5
12918 elif test $pkg_failed = untried; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 as_fn_error $? "Xtables library is required" "$LINENO" 5
12923 XTABLES_CFLAGS=$pkg_cv_XTABLES_CFLAGS
12924 XTABLES_LIBS=$pkg_cv_XTABLES_LIBS
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12926 $as_echo "yes" >&6; }
12932 # Check whether --enable-test was given.
12933 if test "${enable_test+set}" = set; then :
12934 enableval=$enable_test; enable_test=${enableval}
12937 if test "${enable_test}" = "yes"; then
12946 # Check whether --enable-nmcompat was given.
12947 if test "${enable_nmcompat+set}" = set; then :
12948 enableval=$enable_nmcompat; enable_nmcompat=${enableval}
12950 enable_nmcompat="no"
12953 if test "${enable_nmcompat}" != "no"; then
12962 # Check whether --enable-polkit was given.
12963 if test "${enable_polkit+set}" = set; then :
12964 enableval=$enable_polkit; enable_polkit=${enableval}
12969 if (test "${enable_polkit}" != "no"); then
12970 POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
12972 if (test -z "${POLKIT_DATADIR}"); then
12973 POLKIT_DATADIR="${datadir}/polkit-1/actions"
12977 if test "${enable_polkit}" != "no"; then
12986 # Check whether --enable-selinux was given.
12987 if test "${enable_selinux+set}" = set; then :
12988 enableval=$enable_selinux; enable_selinux=${enableval}
12990 enable_selinux="no"
12993 if test "${enable_selinux}" != "no"; then
13002 # Check whether --enable-loopback was given.
13003 if test "${enable_loopback+set}" = set; then :
13004 enableval=$enable_loopback; enable_loopback=${enableval}
13007 if test "${enable_loopback}" != "no"; then
13016 # Check whether --enable-ethernet was given.
13017 if test "${enable_ethernet+set}" = set; then :
13018 enableval=$enable_ethernet; enable_ethernet=${enableval}
13021 if test "${enable_ethernet}" != "no"; then
13030 # Check whether --enable-gadget was given.
13031 if test "${enable_gadget+set}" = set; then :
13032 enableval=$enable_gadget; enable_gadget=${enableval}
13035 if test "${enable_gadget}" != "no"; then
13044 # Check whether --enable-wifi was given.
13045 if test "${enable_wifi+set}" = set; then :
13046 enableval=$enable_wifi; enable_wifi=${enableval}
13049 if test "${enable_wifi}" != "no"; then
13058 # Check whether --enable-bluetooth was given.
13059 if test "${enable_bluetooth+set}" = set; then :
13060 enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13063 if test "${enable_bluetooth}" != "no"; then
13065 BLUETOOTH_FALSE='#'
13072 # Check whether --enable-ofono was given.
13073 if test "${enable_ofono+set}" = set; then :
13074 enableval=$enable_ofono; enable_ofono=${enableval}
13077 if test "${enable_ofono}" != "no"; then
13086 # Check whether --enable-dundee was given.
13087 if test "${enable_dundee+set}" = set; then :
13088 enableval=$enable_dundee; enable_dundee=${enableval}
13091 if test "${enable_dundee}" != "no"; then
13100 # Check whether --enable-pacrunner was given.
13101 if test "${enable_pacrunner+set}" = set; then :
13102 enableval=$enable_pacrunner; enable_pacrunner=${enableval}
13105 if test "${enable_pacrunner}" != "no"; then
13107 PACRUNNER_FALSE='#'
13114 # Check whether --enable-neard was given.
13115 if test "${enable_neard+set}" = set; then :
13116 enableval=$enable_neard; enable_neard=${enableval}
13119 if test "${enable_neard}" != "no"; then
13128 # Check whether --enable-wispr was given.
13129 if test "${enable_wispr+set}" = set; then :
13130 enableval=$enable_wispr; enable_wispr=${enableval}
13133 if test "${enable_wispr}" != "no"; then
13142 # Check whether --enable-tools was given.
13143 if test "${enable_tools+set}" = set; then :
13144 enableval=$enable_tools; enable_tools=${enableval}
13147 if test "${enable_tools}" != "no"; then
13156 if (test "${enable_tools}" != "no"); then
13157 for ac_prog in iptables-save
13159 # Extract the first word of "$ac_prog", so it can be a program name with args.
13160 set dummy $ac_prog; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if ${ac_cv_path_IPTABLES_SAVE+:} false; then :
13164 $as_echo_n "(cached) " >&6
13166 case $IPTABLES_SAVE in
13168 ac_cv_path_IPTABLES_SAVE="$IPTABLES_SAVE" # Let the user override the test with a path.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 as_dummy="$PATH:/sbin:/usr/sbin"
13173 for as_dir in $as_dummy
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_path_IPTABLES_SAVE="$as_dir/$ac_word$ac_exec_ext"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13191 if test -n "$IPTABLES_SAVE"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPTABLES_SAVE" >&5
13193 $as_echo "$IPTABLES_SAVE" >&6; }
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13200 test -n "$IPTABLES_SAVE" && break
13203 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13209 # Check whether --enable-client was given.
13210 if test "${enable_client+set}" = set; then :
13211 enableval=$enable_client; enable_client=${enableval}
13214 if test "${enable_client}" != "no"; then
13223 if (test "${enable_wispr}" != "no"); then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13227 $as_echo_n "checking for GNUTLS... " >&6; }
13229 if test -n "$GNUTLS_CFLAGS"; then
13230 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
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 \"gnutls\""; } >&5
13234 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237 test $ac_status = 0; }; then
13238 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13239 test "x$?" != "x0" && pkg_failed=yes
13246 if test -n "$GNUTLS_LIBS"; then
13247 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13248 elif test -n "$PKG_CONFIG"; then
13249 if test -n "$PKG_CONFIG" && \
13250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13251 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; }; then
13255 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13256 test "x$?" != "x0" && pkg_failed=yes
13266 if test $pkg_failed = yes; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13271 _pkg_short_errors_supported=yes
13273 _pkg_short_errors_supported=no
13275 if test $_pkg_short_errors_supported = yes; then
13276 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
13278 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
13280 # Put the nasty error message in config.log where it belongs
13281 echo "$GNUTLS_PKG_ERRORS" >&5
13283 as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13284 elif test $pkg_failed = untried; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13289 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13290 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13302 if (test "${enable_loopback}" != "no"); then
13303 for ac_header in sys/inotify.h
13305 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
13306 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
13307 cat >>confdefs.h <<_ACEOF
13308 #define HAVE_SYS_INOTIFY_H 1
13312 as_fn_error $? "inotify header files are required" "$LINENO" 5
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5
13319 $as_echo_n "checking for inotify_init in -lc... " >&6; }
13320 if ${ac_cv_lib_c_inotify_init+:} false; then :
13321 $as_echo_n "(cached) " >&6
13323 ac_check_lib_save_LIBS=$LIBS
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13328 /* Override any GCC internal prototype to avoid an error.
13329 Use char because int might match the return type of a GCC
13330 builtin and then its argument prototype would still apply. */
13334 char inotify_init ();
13338 return inotify_init ();
13343 if ac_fn_c_try_link "$LINENO"; then :
13344 ac_cv_lib_c_inotify_init=yes
13346 ac_cv_lib_c_inotify_init=no
13348 rm -f core conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5
13353 $as_echo "$ac_cv_lib_c_inotify_init" >&6; }
13354 if test "x$ac_cv_lib_c_inotify_init" = xyes; then :
13357 as_fn_error $? "inotify library support is required" "$LINENO" 5
13362 if (test "${enable_wifi}" != "no"); then
13363 # Extract the first word of "wpa_supplicant", so it can be a program name with args.
13364 set dummy wpa_supplicant; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_path_WPASUPPLICANT+:} false; then :
13368 $as_echo_n "(cached) " >&6
13370 case $WPASUPPLICANT in
13372 ac_cv_path_WPASUPPLICANT="$WPASUPPLICANT" # Let the user override the test with a path.
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 as_dummy="$PATH:/sbin:/usr/sbin"
13377 for as_dir in $as_dummy
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13383 ac_cv_path_WPASUPPLICANT="$as_dir/$ac_word$ac_exec_ext"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 WPASUPPLICANT=$ac_cv_path_WPASUPPLICANT
13395 if test -n "$WPASUPPLICANT"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WPASUPPLICANT" >&5
13397 $as_echo "$WPASUPPLICANT" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13406 # Check whether --enable-datafiles was given.
13407 if test "${enable_datafiles+set}" = set; then :
13408 enableval=$enable_datafiles; enable_datafiles=${enableval}
13411 if test "${enable_datafiles}" != "no"; then
13413 DATAFILES_FALSE='#'
13420 if (test "${enable_client}" != "no"); then
13421 for ac_header in readline/readline.h
13423 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13424 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_READLINE_READLINE_H 1
13430 as_fn_error $? "readline header files are required" "$LINENO" 5
13437 if test "${enable_openconnect}" != "no" -o \
13438 "${enable_openvpn}" != "no" -o \
13439 "${enable_vpnc}" != "no" -o \
13440 "${enable_l2tp}" != "no" -o \
13441 "${enable_pptp}" != "no"; then
13450 ac_config_files="$ac_config_files Makefile include/version.h connman.pc"
13452 cat >confcache <<\_ACEOF
13453 # This file is a shell script that caches the results of configure
13454 # tests run on this system so they can be shared between configure
13455 # scripts and configure runs, see configure's option --config-cache.
13456 # It is not useful on other systems. If it contains results you don't
13457 # want to keep, you may remove or edit it.
13459 # config.status only pays attention to the cache file if you give it
13460 # the --recheck option to rerun configure.
13462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13464 # following values.
13468 # The following way of writing the cache mishandles newlines in values,
13469 # but we know of no workaround that is simple, portable, and efficient.
13470 # So, we kill variables containing newlines.
13471 # Ultrix sh set writes to stderr and can't be redirected directly,
13472 # and sets the high bit in the cache file unless we assign to the vars.
13474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13475 eval ac_val=\$$ac_var
13479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13483 _ | IFS | as_nl) ;; #(
13484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13485 *) { eval $ac_var=; unset $ac_var;} ;;
13491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13492 *${as_nl}ac_space=\ *)
13493 # `set' does not quote correctly, so add quotes: double-quote
13494 # substitution turns \\\\ into \\, and sed turns \\ into \.
13497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13500 # `set' quotes correctly as required by POSIX, so do not add quotes.
13501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13515 if test -w "$cache_file"; then
13516 if test "x$cache_file" != "x/dev/null"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13518 $as_echo "$as_me: updating cache $cache_file" >&6;}
13519 if test ! -f "$cache_file" || test -h "$cache_file"; then
13520 cat confcache >"$cache_file"
13522 case $cache_file in #(
13524 mv -f confcache "$cache_file"$$ &&
13525 mv -f "$cache_file"$$ "$cache_file" ;; #(
13527 mv -f confcache "$cache_file" ;;
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13539 # Let make expand exec_prefix.
13540 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13542 DEFS=-DHAVE_CONFIG_H
13547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13548 # 1. Remove the extension, and $U if already installed.
13549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13552 # will be set to the directory where LIBOBJS objects are built.
13553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13556 LIBOBJS=$ac_libobjs
13558 LTLIBOBJS=$ac_ltlibobjs
13561 if test -n "$EXEEXT"; then
13563 am__EXEEXT_FALSE='#'
13565 am__EXEEXT_TRUE='#'
13569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13570 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13574 as_fn_error $? "conditional \"AMDEP\" was never defined.
13575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13577 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13578 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13581 if test -z "${HH2SERIAL_GPS_TRUE}" && test -z "${HH2SERIAL_GPS_FALSE}"; then
13582 as_fn_error $? "conditional \"HH2SERIAL_GPS\" was never defined.
13583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13585 if test -z "${HH2SERIAL_GPS_BUILTIN_TRUE}" && test -z "${HH2SERIAL_GPS_BUILTIN_FALSE}"; then
13586 as_fn_error $? "conditional \"HH2SERIAL_GPS_BUILTIN\" was never defined.
13587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13589 if test -z "${OPENCONNECT_TRUE}" && test -z "${OPENCONNECT_FALSE}"; then
13590 as_fn_error $? "conditional \"OPENCONNECT\" was never defined.
13591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13593 if test -z "${OPENCONNECT_BUILTIN_TRUE}" && test -z "${OPENCONNECT_BUILTIN_FALSE}"; then
13594 as_fn_error $? "conditional \"OPENCONNECT_BUILTIN\" was never defined.
13595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13597 if test -z "${OPENVPN_TRUE}" && test -z "${OPENVPN_FALSE}"; then
13598 as_fn_error $? "conditional \"OPENVPN\" was never defined.
13599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13601 if test -z "${OPENVPN_BUILTIN_TRUE}" && test -z "${OPENVPN_BUILTIN_FALSE}"; then
13602 as_fn_error $? "conditional \"OPENVPN_BUILTIN\" was never defined.
13603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13605 if test -z "${VPNC_TRUE}" && test -z "${VPNC_FALSE}"; then
13606 as_fn_error $? "conditional \"VPNC\" was never defined.
13607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13609 if test -z "${VPNC_BUILTIN_TRUE}" && test -z "${VPNC_BUILTIN_FALSE}"; then
13610 as_fn_error $? "conditional \"VPNC_BUILTIN\" was never defined.
13611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13613 if test -z "${L2TP_TRUE}" && test -z "${L2TP_FALSE}"; then
13614 as_fn_error $? "conditional \"L2TP\" was never defined.
13615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13617 if test -z "${L2TP_BUILTIN_TRUE}" && test -z "${L2TP_BUILTIN_FALSE}"; then
13618 as_fn_error $? "conditional \"L2TP_BUILTIN\" was never defined.
13619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13621 if test -z "${PPTP_TRUE}" && test -z "${PPTP_FALSE}"; then
13622 as_fn_error $? "conditional \"PPTP\" was never defined.
13623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13625 if test -z "${PPTP_BUILTIN_TRUE}" && test -z "${PPTP_BUILTIN_FALSE}"; then
13626 as_fn_error $? "conditional \"PPTP_BUILTIN\" was never defined.
13627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13629 if test -z "${IOSPM_TRUE}" && test -z "${IOSPM_FALSE}"; then
13630 as_fn_error $? "conditional \"IOSPM\" was never defined.
13631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13633 if test -z "${TIST_TRUE}" && test -z "${TIST_FALSE}"; then
13634 as_fn_error $? "conditional \"TIST\" was never defined.
13635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13637 if test -z "${TIST_BUILTIN_TRUE}" && test -z "${TIST_BUILTIN_FALSE}"; then
13638 as_fn_error $? "conditional \"TIST_BUILTIN\" was never defined.
13639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13641 if test -z "${SESSION_POLICY_LOCAL_TRUE}" && test -z "${SESSION_POLICY_LOCAL_FALSE}"; then
13642 as_fn_error $? "conditional \"SESSION_POLICY_LOCAL\" was never defined.
13643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13645 if test -z "${SESSION_POLICY_LOCAL_BUILTIN_TRUE}" && test -z "${SESSION_POLICY_LOCAL_BUILTIN_FALSE}"; then
13646 as_fn_error $? "conditional \"SESSION_POLICY_LOCAL_BUILTIN\" was never defined.
13647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13649 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13650 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13653 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13654 as_fn_error $? "conditional \"TEST\" was never defined.
13655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13657 if test -z "${NMCOMPAT_TRUE}" && test -z "${NMCOMPAT_FALSE}"; then
13658 as_fn_error $? "conditional \"NMCOMPAT\" was never defined.
13659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13661 if test -z "${POLKIT_TRUE}" && test -z "${POLKIT_FALSE}"; then
13662 as_fn_error $? "conditional \"POLKIT\" was never defined.
13663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13665 if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
13666 as_fn_error $? "conditional \"SELINUX\" was never defined.
13667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13669 if test -z "${LOOPBACK_TRUE}" && test -z "${LOOPBACK_FALSE}"; then
13670 as_fn_error $? "conditional \"LOOPBACK\" was never defined.
13671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673 if test -z "${ETHERNET_TRUE}" && test -z "${ETHERNET_FALSE}"; then
13674 as_fn_error $? "conditional \"ETHERNET\" was never defined.
13675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 if test -z "${GADGET_TRUE}" && test -z "${GADGET_FALSE}"; then
13678 as_fn_error $? "conditional \"GADGET\" was never defined.
13679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 if test -z "${WIFI_TRUE}" && test -z "${WIFI_FALSE}"; then
13682 as_fn_error $? "conditional \"WIFI\" was never defined.
13683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13686 as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689 if test -z "${OFONO_TRUE}" && test -z "${OFONO_FALSE}"; then
13690 as_fn_error $? "conditional \"OFONO\" was never defined.
13691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13694 as_fn_error $? "conditional \"DUNDEE\" was never defined.
13695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13697 if test -z "${PACRUNNER_TRUE}" && test -z "${PACRUNNER_FALSE}"; then
13698 as_fn_error $? "conditional \"PACRUNNER\" was never defined.
13699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13701 if test -z "${NEARD_TRUE}" && test -z "${NEARD_FALSE}"; then
13702 as_fn_error $? "conditional \"NEARD\" was never defined.
13703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13705 if test -z "${WISPR_TRUE}" && test -z "${WISPR_FALSE}"; then
13706 as_fn_error $? "conditional \"WISPR\" was never defined.
13707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13709 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13710 as_fn_error $? "conditional \"TOOLS\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13714 as_fn_error $? "conditional \"CLIENT\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13718 as_fn_error $? "conditional \"DATAFILES\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 if test -z "${VPN_TRUE}" && test -z "${VPN_FALSE}"; then
13722 as_fn_error $? "conditional \"VPN\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13726 : "${CONFIG_STATUS=./config.status}"
13728 ac_clean_files_save=$ac_clean_files
13729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13735 # Generated by $as_me.
13736 # Run this file to recreate the current configuration.
13737 # Compiler output produced by configure, useful for debugging
13738 # configure, is in config.log if it exists.
13741 ac_cs_recheck=false
13744 SHELL=\${CONFIG_SHELL-$SHELL}
13747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13748 ## -------------------- ##
13749 ## M4sh Initialization. ##
13750 ## -------------------- ##
13752 # Be more Bourne compatible
13753 DUALCASE=1; export DUALCASE # for MKS sh
13754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758 # is contrary to our usage. Disable this feature.
13759 alias -g '${1+"$@"}'='"$@"'
13760 setopt NO_GLOB_SUBST
13762 case `(set -o) 2>/dev/null` in #(
13774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13778 # Prefer a ksh shell builtin over an external printf program on Solaris,
13779 # but without wasting forks for bash or zsh.
13780 if test -z "$BASH_VERSION$ZSH_VERSION" \
13781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13782 as_echo='print -r --'
13783 as_echo_n='print -rn --'
13784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13785 as_echo='printf %s\n'
13786 as_echo_n='printf %s'
13788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13790 as_echo_n='/usr/ucb/echo -n'
13792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13793 as_echo_n_body='eval
13797 expr "X$arg" : "X\\(.*\\)$as_nl";
13798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13802 export as_echo_n_body
13803 as_echo_n='sh -c $as_echo_n_body as_echo'
13805 export as_echo_body
13806 as_echo='sh -c $as_echo_body as_echo'
13809 # The user is always right.
13810 if test "${PATH_SEPARATOR+set}" != set; then
13812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13820 # We need space, tab and new line, in precisely that order. Quoting is
13821 # there to prevent editors from complaining about space-tab.
13822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13823 # splitting by setting IFS to empty value.)
13826 # Find who we are. Look in the path if we contain no directory separator.
13829 *[\\/]* ) as_myself=$0 ;;
13830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13841 # We did not find ourselves, most probably we were run as `sh COMMAND'
13842 # in which case we are not to be found in the path.
13843 if test "x$as_myself" = x; then
13846 if test ! -f "$as_myself"; then
13847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13851 # Unset variables that we do not need and which cause bugs (e.g. in
13852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13853 # suppresses any "Segmentation fault" message there. '((' could
13854 # trigger a bug in pdksh 5.2.14.
13855 for as_var in BASH_ENV ENV MAIL MAILPATH
13856 do eval test x\${$as_var+set} = xset \
13857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13874 # ----------------------------------------
13875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13877 # script with STATUS, using 1 if that was 0.
13880 as_status=$1; test $as_status -eq 0 && as_status=1
13882 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13885 $as_echo "$as_me: error: $2" >&2
13886 as_fn_exit $as_status
13890 # as_fn_set_status STATUS
13891 # -----------------------
13892 # Set $? to STATUS, without forking.
13893 as_fn_set_status ()
13896 } # as_fn_set_status
13898 # as_fn_exit STATUS
13899 # -----------------
13900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13904 as_fn_set_status $1
13910 # Portably unset VAR.
13913 { eval $1=; unset $1;}
13915 as_unset=as_fn_unset
13916 # as_fn_append VAR VALUE
13917 # ----------------------
13918 # Append the text in VALUE to the end of the definition contained in VAR. Take
13919 # advantage of any shell optimizations that allow amortized linear growth over
13920 # repeated appends, instead of the typical quadratic growth present in naive
13922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13923 eval 'as_fn_append ()
13934 # as_fn_arith ARG...
13935 # ------------------
13936 # Perform arithmetic evaluation on the ARGs, and store the result in the
13937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13938 # must be portable across $(()) and expr.
13939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13940 eval 'as_fn_arith ()
13947 as_val=`expr "$@" || test $? -eq 1`
13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
13953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13960 as_basename=basename
13965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973 X"$0" : 'X\(//\)$' \| \
13974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976 sed '/^.*\/\([^/][^/]*\)\/*$/{
13990 # Avoid depending upon Character Ranges.
13991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13994 as_cr_digits='0123456789'
13995 as_cr_alnum=$as_cr_Letters$as_cr_digits
13997 ECHO_C= ECHO_N= ECHO_T=
13998 case `echo -n x` in #(((((
14000 case `echo 'xy\c'` in
14001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14010 rm -f conf$$ conf$$.exe conf$$.file
14011 if test -d conf$$.dir; then
14012 rm -f conf$$.dir/conf$$.file
14015 mkdir conf$$.dir 2>/dev/null
14017 if (echo >conf$$.file) 2>/dev/null; then
14018 if ln -s conf$$.file conf$$ 2>/dev/null; then
14020 # ... but there are two gotchas:
14021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14023 # In both cases, we have to default to `cp -pR'.
14024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14026 elif ln conf$$.file conf$$ 2>/dev/null; then
14034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14035 rmdir conf$$.dir 2>/dev/null
14040 # Create "$as_dir" as a directory, including parents if necessary.
14045 -*) as_dir=./$as_dir;;
14047 test -d "$as_dir" || eval $as_mkdir_p || {
14051 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14052 *) as_qdir=$as_dir;;
14054 as_dirs="'$as_qdir' $as_dirs"
14055 as_dir=`$as_dirname -- "$as_dir" ||
14056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057 X"$as_dir" : 'X\(//\)[^/]' \| \
14058 X"$as_dir" : 'X\(//\)$' \| \
14059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X"$as_dir" |
14061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14065 /^X\(\/\/\)[^/].*/{
14078 test -d "$as_dir" && break
14080 test -z "$as_dirs" || eval "mkdir $as_dirs"
14081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14085 if mkdir -p . 2>/dev/null; then
14086 as_mkdir_p='mkdir -p "$as_dir"'
14088 test -d ./-p && rmdir ./-p
14093 # as_fn_executable_p FILE
14094 # -----------------------
14095 # Test if FILE is an executable regular file.
14096 as_fn_executable_p ()
14098 test -f "$1" && test -x "$1"
14099 } # as_fn_executable_p
14100 as_test_x='test -x'
14101 as_executable_p=as_fn_executable_p
14103 # Sed expression to map a string onto a valid CPP name.
14104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14106 # Sed expression to map a string onto a valid variable name.
14107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14111 ## ----------------------------------- ##
14112 ## Main body of $CONFIG_STATUS script. ##
14113 ## ----------------------------------- ##
14115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 # Save the log message, to keep $0 and so on meaningful, and to
14119 # report actual input values of CONFIG_FILES etc. instead of their
14120 # values after options handling.
14122 This file was extended by connman $as_me 1.29, which was
14123 generated by GNU Autoconf 2.69. Invocation command line was
14125 CONFIG_FILES = $CONFIG_FILES
14126 CONFIG_HEADERS = $CONFIG_HEADERS
14127 CONFIG_LINKS = $CONFIG_LINKS
14128 CONFIG_COMMANDS = $CONFIG_COMMANDS
14131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14136 case $ac_config_files in *"
14137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14140 case $ac_config_headers in *"
14141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 # Files that config.status was made for.
14147 config_files="$ac_config_files"
14148 config_headers="$ac_config_headers"
14149 config_commands="$ac_config_commands"
14153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155 \`$as_me' instantiates files and other configuration actions
14156 from templates according to the current configuration. Unless the files
14157 and actions are specified as TAGs, all are instantiated by default.
14159 Usage: $0 [OPTION]... [TAG]...
14161 -h, --help print this help, then exit
14162 -V, --version print version number and configuration settings, then exit
14163 --config print configuration, then exit
14164 -q, --quiet, --silent
14165 do not print progress messages
14166 -d, --debug don't remove temporary files
14167 --recheck update $as_me by reconfiguring in the same conditions
14168 --file=FILE[:TEMPLATE]
14169 instantiate the configuration file FILE
14170 --header=FILE[:TEMPLATE]
14171 instantiate the configuration header FILE
14173 Configuration files:
14176 Configuration headers:
14179 Configuration commands:
14182 Report bugs to the package provider."
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14188 connman config.status 1.29
14189 configured by $0, generated by GNU Autoconf 2.69,
14190 with options \\"\$ac_cs_config\\"
14192 Copyright (C) 2012 Free Software Foundation, Inc.
14193 This config.status script is free software; the Free Software Foundation
14194 gives unlimited permission to copy, distribute and modify it."
14201 test -n "\$AWK" || AWK=awk
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 # The default lists apply if the user does not specify any file.
14211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14228 # Handling of the options.
14229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14232 $as_echo "$ac_cs_version"; exit ;;
14233 --config | --confi | --conf | --con | --co | --c )
14234 $as_echo "$ac_cs_config"; exit ;;
14235 --debug | --debu | --deb | --de | --d | -d )
14237 --file | --fil | --fi | --f )
14240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14241 '') as_fn_error $? "missing file argument" ;;
14243 as_fn_append CONFIG_FILES " '$ac_optarg'"
14244 ac_need_defaults=false;;
14245 --header | --heade | --head | --hea )
14248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14251 ac_need_defaults=false;;
14253 # Conflict between --help and --header
14254 as_fn_error $? "ambiguous option: \`$1'
14255 Try \`$0 --help' for more information.";;
14256 --help | --hel | -h )
14257 $as_echo "$ac_cs_usage"; exit ;;
14258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14262 # This is an error.
14263 -*) as_fn_error $? "unrecognized option: \`$1'
14264 Try \`$0 --help' for more information." ;;
14266 *) as_fn_append ac_config_targets " $1"
14267 ac_need_defaults=false ;;
14273 ac_configure_extra_args=
14275 if $ac_cs_silent; then
14277 ac_configure_extra_args="$ac_configure_extra_args --silent"
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 if \$ac_cs_recheck; then
14283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14286 CONFIG_SHELL='$SHELL'
14287 export CONFIG_SHELL
14292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14297 ## Running $as_me. ##
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14310 # The HP-UX ksh and POSIX shell print the target directory to stdout
14311 # if CDPATH is set.
14312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14314 sed_quote_subst='$sed_quote_subst'
14315 double_quote_subst='$double_quote_subst'
14316 delay_variable_subst='$delay_variable_subst'
14317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14323 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14324 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14325 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14346 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14347 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14350 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14351 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14352 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14353 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14354 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14355 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14356 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14357 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14358 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14359 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14360 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14361 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14362 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14363 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14364 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14365 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14366 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14367 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14368 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14369 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14370 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14371 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14373 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"`'
14374 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14375 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14384 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14421 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14440 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14449 LTCFLAGS='$LTCFLAGS'
14450 compiler='$compiler_DEFAULT'
14452 # A function that is used when there is no print builtin or printf.
14453 func_fallback_echo ()
14455 eval 'cat <<_LTECHO_EOF
14460 # Quote evaled strings.
14475 deplibs_check_method \
14480 sharedlib_from_linklib_cmd \
14483 archiver_list_spec \
14489 lt_cv_sys_global_symbol_pipe \
14490 lt_cv_sys_global_symbol_to_cdecl \
14491 lt_cv_sys_global_symbol_to_c_name_address \
14492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14493 nm_file_list_spec \
14494 lt_prog_compiler_no_builtin_flag \
14495 lt_prog_compiler_pic \
14496 lt_prog_compiler_wl \
14497 lt_prog_compiler_static \
14498 lt_cv_prog_compiler_c_o \
14507 export_dynamic_flag_spec \
14508 whole_archive_flag_spec \
14509 compiler_needs_object \
14511 allow_undefined_flag \
14512 no_undefined_flag \
14513 hardcode_libdir_flag_spec \
14514 hardcode_libdir_separator \
14518 variables_saved_for_relink \
14520 library_names_spec \
14522 install_override_mode \
14526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14527 *[\\\\\\\`\\"\\\$]*)
14528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14536 # Double-quote double-evaled strings.
14537 for var in reload_cmds \
14538 old_postinstall_cmds \
14539 old_postuninstall_cmds \
14541 extract_expsyms_cmds \
14542 old_archive_from_new_cmds \
14543 old_archive_from_expsyms_cmds \
14545 archive_expsym_cmds \
14547 module_expsym_cmds \
14548 export_symbols_cmds \
14552 postuninstall_cmds \
14554 sys_lib_search_path_spec \
14555 sys_lib_dlsearch_path_spec; do
14556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14557 *[\\\\\\\`\\"\\\$]*)
14558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14566 ac_aux_dir='$ac_aux_dir'
14567 xsi_shell='$xsi_shell'
14568 lt_shell_append='$lt_shell_append'
14570 # See if we are running on zsh, and set the options which allow our
14571 # commands through without removal of \ escapes INIT.
14572 if test -n "\${ZSH_VERSION+set}" ; then
14573 setopt NO_GLOB_SUBST
14579 TIMESTAMP='$TIMESTAMP'
14588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14590 # Handling of arguments.
14591 for ac_config_target in $ac_config_targets
14593 case $ac_config_target in
14594 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14598 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14599 "connman.pc") CONFIG_FILES="$CONFIG_FILES connman.pc" ;;
14601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14606 # If the user did not use the arguments to specify the items to instantiate,
14607 # then the envvar interface is used. Set only those that are not.
14608 # We use the long form for the default assignment because of an extremely
14609 # bizarre bug on SunOS 4.1.3.
14610 if $ac_need_defaults; then
14611 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14612 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14616 # Have a temporary directory for convenience. Make it in the build tree
14617 # simply because there is no reason against having it here, and in addition,
14618 # creating and moving files from /tmp can sometimes cause problems.
14619 # Hook for its removal unless debugging.
14620 # Note that there is a small window in which the directory will not be cleaned:
14621 # after its creation but before its name has been assigned to `$tmp'.
14625 trap 'exit_status=$?
14626 : "${ac_tmp:=$tmp}"
14627 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14629 trap 'as_fn_exit 1' 1 2 13 15
14631 # Create a (secure) tmp directory for tmp files.
14634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14638 tmp=./conf$$-$RANDOM
14639 (umask 077 && mkdir "$tmp")
14640 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14643 # Set up the scripts for CONFIG_FILES section.
14644 # No need to generate them if there are no CONFIG_FILES.
14645 # This happens for instance with `./config.status config.h'.
14646 if test -n "$CONFIG_FILES"; then
14649 ac_cr=`echo X | tr X '\015'`
14650 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14651 # But we know of no other shell where ac_cr would be empty at this
14652 # point, so we can use a bashism as a fallback.
14653 if test "x$ac_cr" = x; then
14654 eval ac_cr=\$\'\\r\'
14656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14660 ac_cs_awk_cr=$ac_cr
14663 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14668 echo "cat >conf$$subs.awk <<_ACEOF" &&
14669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14671 } >conf$$subs.sh ||
14672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14675 for ac_last_try in false false false false false :; do
14676 . ./conf$$subs.sh ||
14677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14680 if test $ac_delim_n = $ac_delim_num; then
14682 elif $ac_last_try; then
14683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14688 rm -f conf$$subs.sh
14690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14695 s/^/S["/; s/!.*/"]=/
14705 s/\(.\{148\}\)..*/\1/
14707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14719 s/\(.\{148\}\)..*/\1/
14721 s/["\\]/\\&/g; s/^/"/; s/$/"/
14725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14730 ' <conf$$subs.awk | sed '
14735 ' >>$CONFIG_STATUS || ac_write_fail=1
14736 rm -f conf$$subs.awk
14737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14740 for (key in S) S_is_set[key] = 1
14746 nfields = split(line, field, "@")
14748 len = length(field[1])
14749 for (i = 2; i < nfields; i++) {
14751 keylen = length(key)
14752 if (S_is_set[key]) {
14754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14755 len += length(value) + length(field[++i])
14766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14771 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14772 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14775 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14776 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14777 # trailing colons and then remove the whole line if VPATH becomes empty
14778 # (actually we leave an empty line to preserve line numbers).
14779 if test "x$srcdir" = x.; then
14780 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14799 fi # test -n "$CONFIG_FILES"
14801 # Set up the scripts for CONFIG_HEADERS section.
14802 # No need to generate them if there are no CONFIG_HEADERS.
14803 # This happens for instance with `./config.status Makefile'.
14804 if test -n "$CONFIG_HEADERS"; then
14805 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14809 # Transform confdefs.h into an awk script `defines.awk', embedded as
14810 # here-document in config.status, that substitutes the proper values into
14811 # config.h.in to produce config.h.
14813 # Create a delimiter string that does not exist in confdefs.h, to ease
14814 # handling of long lines.
14816 for ac_last_try in false false :; do
14817 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14818 if test -z "$ac_tt"; then
14820 elif $ac_last_try; then
14821 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14827 # For the awk script, D is an array of macro values keyed by name,
14828 # likewise P contains macro parameters if any. Preserve backslash
14829 # newline sequences.
14831 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14833 s/.\{148\}/&'"$ac_delim"'/g
14836 s/^[ ]*#[ ]*define[ ][ ]*/ /
14843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14845 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14850 D["\1"]=" \3\\\\\\n"\\/p
14852 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14857 s/.\{148\}/&'"$ac_delim"'/g
14862 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14865 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14867 ' <confdefs.h | sed '
14868 s/'"$ac_delim"'/"\\\
14869 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14872 for (key in D) D_is_set[key] = 1
14875 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14877 split(line, arg, " ")
14878 if (arg[1] == "#") {
14882 defundef = substr(arg[1], 2)
14885 split(mac1, mac2, "(") #)
14887 prefix = substr(line, 1, index(line, defundef) - 1)
14888 if (D_is_set[macro]) {
14889 # Preserve the white space surrounding the "#".
14890 print prefix "define", macro P[macro] D[macro]
14893 # Replace #undef with comments. This is necessary, for example,
14894 # in the case of _POSIX_SOURCE, which is predefined and required
14895 # on some systems where configure will not decide to define it.
14896 if (defundef == "undef") {
14897 print "/*", prefix defundef, macro, "*/"
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14906 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14907 fi # test -n "$CONFIG_HEADERS"
14910 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14915 :[FHLC]) ac_mode=$ac_tag; continue;;
14917 case $ac_mode$ac_tag in
14919 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14920 :[FH]-) ac_tag=-:-;;
14921 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14938 -) ac_f="$ac_tmp/stdin";;
14939 *) # Look for the file first in the build tree, then in the source tree
14940 # (if the path is not absolute). The absolute path cannot be DOS-style,
14941 # because $ac_f cannot contain `:'.
14945 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14947 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14949 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14950 as_fn_append ac_file_inputs " '$ac_f'"
14953 # Let's still pretend it is `configure' which instantiates (i.e., don't
14954 # use $as_me), people would be surprised to read:
14955 # /* config.h. Generated by config.status. */
14956 configure_input='Generated from '`
14957 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14959 if test x"$ac_file" != x-; then
14960 configure_input="$ac_file. $configure_input"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14962 $as_echo "$as_me: creating $ac_file" >&6;}
14964 # Neutralize special characters interpreted by sed in replacement strings.
14965 case $configure_input in #(
14966 *\&* | *\|* | *\\* )
14967 ac_sed_conf_input=`$as_echo "$configure_input" |
14968 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14969 *) ac_sed_conf_input=$configure_input;;
14973 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14979 ac_dir=`$as_dirname -- "$ac_file" ||
14980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981 X"$ac_file" : 'X\(//\)[^/]' \| \
14982 X"$ac_file" : 'X\(//\)$' \| \
14983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14984 $as_echo X"$ac_file" |
14985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14989 /^X\(\/\/\)[^/].*/{
15002 as_dir="$ac_dir"; as_fn_mkdir_p
15006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15008 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15009 # A ".." for each directory in $ac_dir_suffix.
15010 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15011 case $ac_top_builddir_sub in
15012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15016 ac_abs_top_builddir=$ac_pwd
15017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15018 # for backward compatibility:
15019 ac_top_builddir=$ac_top_build_prefix
15022 .) # We are building in place.
15024 ac_top_srcdir=$ac_top_builddir_sub
15025 ac_abs_top_srcdir=$ac_pwd ;;
15026 [\\/]* | ?:[\\/]* ) # Absolute name.
15027 ac_srcdir=$srcdir$ac_dir_suffix;
15028 ac_top_srcdir=$srcdir
15029 ac_abs_top_srcdir=$srcdir ;;
15030 *) # Relative name.
15031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15032 ac_top_srcdir=$ac_top_build_prefix$srcdir
15033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15048 ac_MKDIR_P=$MKDIR_P
15050 [\\/$]* | ?:[\\/]* ) ;;
15051 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15056 # If the template does not know about datarootdir, expand it.
15057 # FIXME: This hack should be removed a few years after 2.60.
15058 ac_datarootdir_hack=; ac_datarootdir_seen=
15069 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15070 *datarootdir*) ac_datarootdir_seen=yes;;
15071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15073 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076 ac_datarootdir_hack='
15077 s&@datadir@&$datadir&g
15078 s&@docdir@&$docdir&g
15079 s&@infodir@&$infodir&g
15080 s&@localedir@&$localedir&g
15081 s&@mandir@&$mandir&g
15082 s&\\\${datarootdir}&$datarootdir&g' ;;
15086 # Neutralize VPATH when `$srcdir' = `.'.
15087 # Shell code in configure.ac might set extrasub.
15088 # FIXME: do we really want to maintain this feature?
15089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15090 ac_sed_extra="$ac_vpsub
15093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15096 s|@configure_input@|$ac_sed_conf_input|;t t
15097 s&@top_builddir@&$ac_top_builddir_sub&;t t
15098 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15099 s&@srcdir@&$ac_srcdir&;t t
15100 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15101 s&@top_srcdir@&$ac_top_srcdir&;t t
15102 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15103 s&@builddir@&$ac_builddir&;t t
15104 s&@abs_builddir@&$ac_abs_builddir&;t t
15105 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15106 s&@INSTALL@&$ac_INSTALL&;t t
15107 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15108 $ac_datarootdir_hack
15110 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15111 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15114 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15116 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15118 which seems to be undefined. Please make sure it is defined" >&5
15119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15120 which seems to be undefined. Please make sure it is defined" >&2;}
15122 rm -f "$ac_tmp/stdin"
15124 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15125 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15133 if test x"$ac_file" != x-; then
15135 $as_echo "/* $configure_input */" \
15136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15137 } >"$ac_tmp/config.h" \
15138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15139 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15144 mv "$ac_tmp/config.h" "$ac_file" \
15145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15148 $as_echo "/* $configure_input */" \
15149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15150 || as_fn_error $? "could not create -" "$LINENO" 5
15152 # Compute "$ac_file"'s index in $config_headers.
15155 for _am_header in $config_headers :; do
15156 case $_am_header in
15157 $_am_arg | $_am_arg:* )
15160 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15165 X"$_am_arg" : 'X\(//\)[^/]' \| \
15166 X"$_am_arg" : 'X\(//\)$' \| \
15167 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15168 $as_echo X"$_am_arg" |
15169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15173 /^X\(\/\/\)[^/].*/{
15185 s/.*/./; q'`/stamp-h$_am_stamp_count
15188 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15189 $as_echo "$as_me: executing $ac_file commands" >&6;}
15194 case $ac_file$ac_mode in
15195 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15196 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15197 # are listed without --file. Let's play safe and only enable the eval
15198 # if we detect the quoting.
15199 case $CONFIG_FILES in
15200 *\'*) eval set x "$CONFIG_FILES" ;;
15201 *) set x $CONFIG_FILES ;;
15206 # Strip MF so we end up with the name of the file.
15207 mf=`echo "$mf" | sed -e 's/:.*$//'`
15208 # Check whether this is an Automake generated Makefile or not.
15209 # We used to match only the files named `Makefile.in', but
15210 # some people rename them; so instead we look at the file content.
15211 # Grep'ing the first line is not enough: some people post-process
15212 # each Makefile.in and add a new line on top of each file to say so.
15213 # Grep'ing the whole file is not good either: AIX grep has a line
15214 # limit of 2048, but all sed's we know have understand at least 4000.
15215 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15216 dirpart=`$as_dirname -- "$mf" ||
15217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15218 X"$mf" : 'X\(//\)[^/]' \| \
15219 X"$mf" : 'X\(//\)$' \| \
15220 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15226 /^X\(\/\/\)[^/].*/{
15242 # Extract the definition of DEPDIR, am__include, and am__quote
15243 # from the Makefile without running `make'.
15244 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15245 test -z "$DEPDIR" && continue
15246 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15247 test -z "am__include" && continue
15248 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15249 # When using ansi2knr, U may be empty or an underscore; expand it
15250 U=`sed -n 's/^U = //p' < "$mf"`
15251 # Find all dependency output files, they are included files with
15252 # $(DEPDIR) in their names. We invoke sed twice because it is the
15253 # simplest approach to changing $(DEPDIR) to its actual value in the
15255 for file in `sed -n "
15256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15258 # Make sure the directory exists.
15259 test -f "$dirpart/$file" && continue
15260 fdir=`$as_dirname -- "$file" ||
15261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15262 X"$file" : 'X\(//\)[^/]' \| \
15263 X"$file" : 'X\(//\)$' \| \
15264 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15265 $as_echo X"$file" |
15266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15270 /^X\(\/\/\)[^/].*/{
15283 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15284 # echo "creating $dirpart/$file"
15285 echo '# dummy' > "$dirpart/$file"
15292 # See if we are running on zsh, and set the options which allow our
15293 # commands through without removal of \ escapes.
15294 if test -n "${ZSH_VERSION+set}" ; then
15295 setopt NO_GLOB_SUBST
15298 cfgfile="${ofile}T"
15299 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15302 cat <<_LT_EOF >> "$cfgfile"
15305 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15306 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15308 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15310 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15311 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15313 # Written by Gordon Matzigkeit, 1996
15315 # This file is part of GNU Libtool.
15317 # GNU Libtool is free software; you can redistribute it and/or
15318 # modify it under the terms of the GNU General Public License as
15319 # published by the Free Software Foundation; either version 2 of
15320 # the License, or (at your option) any later version.
15322 # As a special exception to the GNU General Public License,
15323 # if you distribute this file as part of a program or library that
15324 # is built using GNU Libtool, you may include this file under the
15325 # same distribution terms that you use for the rest of that program.
15327 # GNU Libtool is distributed in the hope that it will be useful,
15328 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15329 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15330 # GNU General Public License for more details.
15332 # You should have received a copy of the GNU General Public License
15333 # along with GNU Libtool; see the file COPYING. If not, a copy
15334 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15335 # obtained by writing to the Free Software Foundation, Inc.,
15336 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15339 # The names of the tagged configurations supported by this script.
15342 # ### BEGIN LIBTOOL CONFIG
15344 # Whether or not to build static libraries.
15345 build_old_libs=$enable_static
15347 # Which release of libtool.m4 was used?
15348 macro_version=$macro_version
15349 macro_revision=$macro_revision
15351 # Whether or not to build shared libraries.
15352 build_libtool_libs=$enable_shared
15354 # What type of objects to build.
15357 # Whether or not to optimize for fast installation.
15358 fast_install=$enable_fast_install
15360 # Shell to use when invoking shell scripts.
15363 # An echo program that protects backslashes.
15366 # The PATH separator for the build system.
15367 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15370 host_alias=$host_alias
15374 # The build system.
15375 build_alias=$build_alias
15379 # A sed program that does not truncate output.
15382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15383 Xsed="\$SED -e 1s/^X//"
15385 # A grep program that handles long lines.
15391 # A literal string matcher.
15394 # A BSD- or MS-compatible name lister.
15397 # Whether we need soft or hard links.
15400 # What is the maximum length of a command?
15401 max_cmd_len=$max_cmd_len
15403 # Object file suffix (normally "o").
15406 # Executable file suffix (normally "").
15409 # whether the shell understands "unset".
15412 # turn spaces into newlines.
15415 # turn newlines into spaces.
15418 # convert \$build file names to \$host format.
15419 to_host_file_cmd=$lt_cv_to_host_file_cmd
15421 # convert \$build files to toolchain format.
15422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15424 # An object symbol dumper.
15425 OBJDUMP=$lt_OBJDUMP
15427 # Method to check whether dependent libraries are shared objects.
15428 deplibs_check_method=$lt_deplibs_check_method
15430 # Command to use when deplibs_check_method = "file_magic".
15431 file_magic_cmd=$lt_file_magic_cmd
15433 # How to find potential files when deplibs_check_method = "file_magic".
15434 file_magic_glob=$lt_file_magic_glob
15436 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15437 want_nocaseglob=$lt_want_nocaseglob
15439 # DLL creation program.
15440 DLLTOOL=$lt_DLLTOOL
15442 # Command to associate shared and link libraries.
15443 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15448 # Flags to create an archive.
15449 AR_FLAGS=$lt_AR_FLAGS
15451 # How to feed a file listing to the archiver.
15452 archiver_list_spec=$lt_archiver_list_spec
15454 # A symbol stripping program.
15457 # Commands used to install an old-style archive.
15459 old_postinstall_cmds=$lt_old_postinstall_cmds
15460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15462 # Whether to use a lock for old archive extraction.
15463 lock_old_archive_extraction=$lock_old_archive_extraction
15468 # LTCC compiler flags.
15469 LTCFLAGS=$lt_CFLAGS
15471 # Take the output of nm and produce a listing of raw symbols and C names.
15472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15474 # Transform the output of nm in a proper C declaration.
15475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15477 # Transform the output of nm in a C name address pair.
15478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15480 # Transform the output of nm in a C name address pair when lib prefix is needed.
15481 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15483 # Specify filename containing input files for \$NM.
15484 nm_file_list_spec=$lt_nm_file_list_spec
15486 # The root where to search for dependent libraries,and in which our libraries should be installed.
15487 lt_sysroot=$lt_sysroot
15489 # The name of the directory that contains temporary libtool files.
15492 # Used to examine libraries when file_magic_cmd begins with "file".
15493 MAGIC_CMD=$MAGIC_CMD
15495 # Must we lock files when doing compilation?
15496 need_locks=$lt_need_locks
15499 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15501 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15502 DSYMUTIL=$lt_DSYMUTIL
15504 # Tool to change global to local symbols on Mac OS X.
15507 # Tool to manipulate fat objects and archives on Mac OS X.
15510 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15513 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15514 OTOOL64=$lt_OTOOL64
15516 # Old archive suffix (normally "a").
15519 # Shared library suffix (normally ".so").
15520 shrext_cmds=$lt_shrext_cmds
15522 # The commands to extract the exported symbol list from a shared archive.
15523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15525 # Variables whose values should be saved in libtool wrapper scripts and
15526 # restored at link time.
15527 variables_saved_for_relink=$lt_variables_saved_for_relink
15529 # Do we need the "lib" prefix for modules?
15530 need_lib_prefix=$need_lib_prefix
15532 # Do we need a version for libraries?
15533 need_version=$need_version
15535 # Library versioning type.
15536 version_type=$version_type
15538 # Shared library runtime path variable.
15539 runpath_var=$runpath_var
15541 # Shared library path variable.
15542 shlibpath_var=$shlibpath_var
15544 # Is shlibpath searched before the hard-coded library search path?
15545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15547 # Format of library name prefix.
15548 libname_spec=$lt_libname_spec
15550 # List of archive names. First name is the real one, the rest are links.
15551 # The last name is the one that the linker finds with -lNAME
15552 library_names_spec=$lt_library_names_spec
15554 # The coded name of the library, if different from the real name.
15555 soname_spec=$lt_soname_spec
15557 # Permission mode override for installation of shared libraries.
15558 install_override_mode=$lt_install_override_mode
15560 # Command to use after installation of a shared archive.
15561 postinstall_cmds=$lt_postinstall_cmds
15563 # Command to use after uninstallation of a shared archive.
15564 postuninstall_cmds=$lt_postuninstall_cmds
15566 # Commands used to finish a libtool library installation in a directory.
15567 finish_cmds=$lt_finish_cmds
15569 # As "finish_cmds", except a single script fragment to be evaled but
15571 finish_eval=$lt_finish_eval
15573 # Whether we should hardcode library paths into libraries.
15574 hardcode_into_libs=$hardcode_into_libs
15576 # Compile-time system search path for libraries.
15577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15579 # Run-time system search path for libraries.
15580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15582 # Whether dlopen is supported.
15583 dlopen_support=$enable_dlopen
15585 # Whether dlopen of programs is supported.
15586 dlopen_self=$enable_dlopen_self
15588 # Whether dlopen of statically linked programs is supported.
15589 dlopen_self_static=$enable_dlopen_self_static
15591 # Commands to strip libraries.
15592 old_striplib=$lt_old_striplib
15593 striplib=$lt_striplib
15596 # The linker used to build libraries.
15599 # How to create reloadable object files.
15600 reload_flag=$lt_reload_flag
15601 reload_cmds=$lt_reload_cmds
15603 # Commands used to build an old-style archive.
15604 old_archive_cmds=$lt_old_archive_cmds
15606 # A language specific compiler.
15609 # Is the compiler the GNU compiler?
15612 # Compiler flag to turn off builtin functions.
15613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15615 # Additional compiler flags for building library objects.
15616 pic_flag=$lt_lt_prog_compiler_pic
15618 # How to pass a linker flag through the compiler.
15619 wl=$lt_lt_prog_compiler_wl
15621 # Compiler flag to prevent dynamic linking.
15622 link_static_flag=$lt_lt_prog_compiler_static
15624 # Does compiler simultaneously support -c and -o options?
15625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15627 # Whether or not to add -lc for building shared libraries.
15628 build_libtool_need_lc=$archive_cmds_need_lc
15630 # Whether or not to disallow shared libs when runtime libs are static.
15631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15633 # Compiler flag to allow reflexive dlopens.
15634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15636 # Compiler flag to generate shared objects directly from archives.
15637 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15639 # Whether the compiler copes with passing no objects directly.
15640 compiler_needs_object=$lt_compiler_needs_object
15642 # Create an old-style archive from a shared archive.
15643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15645 # Create a temporary old-style archive to link instead of a shared archive.
15646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15648 # Commands used to build a shared archive.
15649 archive_cmds=$lt_archive_cmds
15650 archive_expsym_cmds=$lt_archive_expsym_cmds
15652 # Commands used to build a loadable module if different from building
15653 # a shared archive.
15654 module_cmds=$lt_module_cmds
15655 module_expsym_cmds=$lt_module_expsym_cmds
15657 # Whether we are building with GNU ld or not.
15658 with_gnu_ld=$lt_with_gnu_ld
15660 # Flag that allows shared libraries with undefined symbols to be built.
15661 allow_undefined_flag=$lt_allow_undefined_flag
15663 # Flag that enforces no undefined symbols.
15664 no_undefined_flag=$lt_no_undefined_flag
15666 # Flag to hardcode \$libdir into a binary during linking.
15667 # This must work even if \$libdir does not exist
15668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15670 # Whether we need a single "-rpath" flag with a separated argument.
15671 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15674 # DIR into the resulting binary.
15675 hardcode_direct=$hardcode_direct
15677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15678 # DIR into the resulting binary and the resulting library dependency is
15679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15680 # library is relocated.
15681 hardcode_direct_absolute=$hardcode_direct_absolute
15683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15684 # into the resulting binary.
15685 hardcode_minus_L=$hardcode_minus_L
15687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15688 # into the resulting binary.
15689 hardcode_shlibpath_var=$hardcode_shlibpath_var
15691 # Set to "yes" if building a shared library automatically hardcodes DIR
15692 # into the library and all subsequent libraries and executables linked
15694 hardcode_automatic=$hardcode_automatic
15696 # Set to yes if linker adds runtime paths of dependent libraries
15697 # to runtime path list.
15698 inherit_rpath=$inherit_rpath
15700 # Whether libtool must link a program against all its dependency libraries.
15701 link_all_deplibs=$link_all_deplibs
15703 # Set to "yes" if exported symbols are required.
15704 always_export_symbols=$always_export_symbols
15706 # The commands to list exported symbols.
15707 export_symbols_cmds=$lt_export_symbols_cmds
15709 # Symbols that should not be listed in the preloaded symbols.
15710 exclude_expsyms=$lt_exclude_expsyms
15712 # Symbols that must always be exported.
15713 include_expsyms=$lt_include_expsyms
15715 # Commands necessary for linking programs (against libraries) with templates.
15716 prelink_cmds=$lt_prelink_cmds
15718 # Commands necessary for finishing linking programs.
15719 postlink_cmds=$lt_postlink_cmds
15721 # Specify filename containing input files.
15722 file_list_spec=$lt_file_list_spec
15724 # How to hardcode a shared library path into an executable.
15725 hardcode_action=$hardcode_action
15727 # ### END LIBTOOL CONFIG
15733 cat <<\_LT_EOF >> "$cfgfile"
15734 # AIX sometimes has problems with the GCC collect2 program. For some
15735 # reason, if we set the COLLECT_NAMES environment variable, the problems
15736 # vanish in a puff of smoke.
15737 if test "X${COLLECT_NAMES+set}" != Xset; then
15739 export COLLECT_NAMES
15746 ltmain="$ac_aux_dir/ltmain.sh"
15749 # We use sed instead of cat because bash on DJGPP gets confused if
15750 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15751 # text mode, it properly converts lines to CR/LF. This bash problem
15752 # is reportedly fixed, but why not run on old versions too?
15753 sed '$q' "$ltmain" >> "$cfgfile" \
15754 || (rm -f "$cfgfile"; exit 1)
15756 if test x"$xsi_shell" = xyes; then
15757 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15761 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15762 \ * ) func_dirname_result="${3}" ;;\
15764 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15765 && mv -f "$cfgfile.tmp" "$cfgfile" \
15766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767 test 0 -eq $? || _lt_function_replace_fail=:
15770 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15773 \ func_basename_result="${1##*/}"\
15774 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15775 && mv -f "$cfgfile.tmp" "$cfgfile" \
15776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15777 test 0 -eq $? || _lt_function_replace_fail=:
15780 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15781 func_dirname_and_basename ()\
15784 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15785 \ * ) func_dirname_result="${3}" ;;\
15787 \ func_basename_result="${1##*/}"\
15788 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15789 && mv -f "$cfgfile.tmp" "$cfgfile" \
15790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15791 test 0 -eq $? || _lt_function_replace_fail=:
15794 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15797 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15798 \ # positional parameters, so assign one to ordinary parameter first.\
15799 \ func_stripname_result=${3}\
15800 \ func_stripname_result=${func_stripname_result#"${1}"}\
15801 \ func_stripname_result=${func_stripname_result%"${2}"}\
15802 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15803 && mv -f "$cfgfile.tmp" "$cfgfile" \
15804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15805 test 0 -eq $? || _lt_function_replace_fail=:
15808 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15809 func_split_long_opt ()\
15811 \ func_split_long_opt_name=${1%%=*}\
15812 \ func_split_long_opt_arg=${1#*=}\
15813 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15814 && mv -f "$cfgfile.tmp" "$cfgfile" \
15815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15816 test 0 -eq $? || _lt_function_replace_fail=:
15819 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15820 func_split_short_opt ()\
15822 \ func_split_short_opt_arg=${1#??}\
15823 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15824 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15825 && mv -f "$cfgfile.tmp" "$cfgfile" \
15826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15827 test 0 -eq $? || _lt_function_replace_fail=:
15830 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15834 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15835 \ *) func_lo2o_result=${1} ;;\
15837 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15838 && mv -f "$cfgfile.tmp" "$cfgfile" \
15839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15840 test 0 -eq $? || _lt_function_replace_fail=:
15843 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15846 func_xform_result=${1%.*}.lo\
15847 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15848 && mv -f "$cfgfile.tmp" "$cfgfile" \
15849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15850 test 0 -eq $? || _lt_function_replace_fail=:
15853 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15856 func_arith_result=$(( $* ))\
15857 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15858 && mv -f "$cfgfile.tmp" "$cfgfile" \
15859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15860 test 0 -eq $? || _lt_function_replace_fail=:
15863 sed -e '/^func_len ()$/,/^} # func_len /c\
15866 func_len_result=${#1}\
15867 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15868 && mv -f "$cfgfile.tmp" "$cfgfile" \
15869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15870 test 0 -eq $? || _lt_function_replace_fail=:
15874 if test x"$lt_shell_append" = xyes; then
15875 sed -e '/^func_append ()$/,/^} # func_append /c\
15878 eval "${1}+=\\${2}"\
15879 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15880 && mv -f "$cfgfile.tmp" "$cfgfile" \
15881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15882 test 0 -eq $? || _lt_function_replace_fail=:
15885 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15886 func_append_quoted ()\
15888 \ func_quote_for_eval "${2}"\
15889 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15890 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15891 && mv -f "$cfgfile.tmp" "$cfgfile" \
15892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15893 test 0 -eq $? || _lt_function_replace_fail=:
15896 # Save a `func_append' function call where possible by direct use of '+='
15897 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15898 && mv -f "$cfgfile.tmp" "$cfgfile" \
15899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15900 test 0 -eq $? || _lt_function_replace_fail=:
15902 # Save a `func_append' function call even when '+=' is not available
15903 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15904 && mv -f "$cfgfile.tmp" "$cfgfile" \
15905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15906 test 0 -eq $? || _lt_function_replace_fail=:
15909 if test x"$_lt_function_replace_fail" = x":"; then
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15911 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15915 mv -f "$cfgfile" "$ofile" ||
15916 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15927 ac_clean_files=$ac_clean_files_save
15929 test $ac_write_fail = 0 ||
15930 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15933 # configure is writing to config.log, and then calls config.status.
15934 # config.status does its own redirection, appending to config.log.
15935 # Unfortunately, on DOS this fails, as config.log is still kept open
15936 # by configure, so config.status won't be able to write to it; its
15937 # output is simply discarded. So we exec the FD to /dev/null,
15938 # effectively closing config.log, so it can be properly (re)opened and
15939 # appended to by config.status. When coming back to configure, we
15940 # need to make the FD available again.
15941 if test "$no_create" != yes; then
15943 ac_config_status_args=
15944 test "$silent" = yes &&
15945 ac_config_status_args="$ac_config_status_args --quiet"
15947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15950 # would make configure fail if this is the last instruction.
15951 $ac_cs_success || as_fn_exit 1
15953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}