2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for connman 1.26.
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.26'
591 PACKAGE_STRING='connman 1.26'
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
875 enable_session_policy_local
876 with_stats_max_file_size
898 ac_precious_vars='build_alias
920 # Initialize some variables set by options.
922 ac_init_version=false
923 ac_unrecognized_opts=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name=s,x,x,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1227 -site=* | --site=* | --sit=*)
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures connman 1.26 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/connman]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of connman 1.26:";;
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-silent-rules less verbose build output (undo: `make V=1')
1537 --disable-silent-rules verbose build output (undo: `make V=0')
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing) to the casual installer
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --enable-static[=PKGS] build static libraries [default=no]
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --disable-optimization disable code optimization through compiler
1548 --enable-debug enable compiling with debugging information
1549 --enable-pie enable position independent executables flag
1550 --enable-hh2serial-gps enable hh2serial GPS support
1551 --enable-openconnect enable openconnect support
1552 --enable-openvpn enable openvpn support
1553 --enable-vpnc enable vpnc support
1554 --enable-l2tp enable l2tp support
1555 --enable-pptp enable pptp support
1556 --enable-iospm enable Intel OSPM support
1557 --enable-tist enable TI Shared Transport support
1558 --enable-session-policy-local
1559 enable local file Session policy configuration
1561 --enable-test enable test/example scripts
1562 --enable-nmcompat enable Network Manager support
1563 --enable-polkit enable PolicyKit support
1564 --enable-selinux enable selinux support
1565 --disable-loopback disable loopback support
1566 --disable-ethernet disable Ethernet support
1567 --disable-gadget disable USB Gadget support
1568 --disable-wifi disable WiFi support
1569 --disable-bluetooth disable Bluetooth support
1570 --disable-ofono disable oFono support
1571 --disable-dundee disable dundee support (Bluetooth DUN)
1572 --disable-pacrunner disable PACrunner support
1573 --disable-neard disable Neard support
1574 --disable-wispr disable WISPr support
1575 --disable-tools disable testing tools
1576 --disable-client disable command line client
1577 --disable-datafiles don't install configuration and data files
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-sysroot=DIR Search for dependent libraries within DIR
1586 (or the compiler's sysroot if not specified).
1587 --with-openconnect=PROGRAM
1588 specify location of openconnect binary
1589 --with-openvpn=PROGRAM specify location of openvpn binary
1590 --with-vpnc=PROGRAM specify location of vpnc binary
1591 --with-stats-max-file-size=SIZE
1592 Maximal size of a statistics round robin file
1593 --with-dbusconfdir=PATH path to D-Bus config directory
1594 --with-dbusdatadir=PATH path to D-Bus data directory
1595 --with-systemdunitdir=DIR
1596 path to systemd service directory
1598 Some influential environment variables:
1599 PKG_CONFIG path to pkg-config utility
1601 directories to add to pkg-config's search path
1603 path overriding pkg-config's built-in search path
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 LIBS libraries to pass to the linker, e.g. -l<library>
1609 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1612 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1613 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1614 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1615 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1617 C compiler flags for XTABLES, overriding pkg-config
1619 linker flags for XTABLES, overriding pkg-config
1621 C compiler flags for GNUTLS, overriding pkg-config
1622 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1624 Use these variables to override the choices made by `configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1627 Report bugs to the package provider.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 connman configure 1.26
1691 generated by GNU Autoconf 2.69
1693 Copyright (C) 2012 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.$ac_objext; then :
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1740 } # ac_fn_c_try_compile
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext conftest$ac_exeext
1749 if { { ac_try="$ac_link"
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest$ac_exeext && {
1768 test "$cross_compiling" = yes ||
1769 test -x conftest$ac_exeext
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_c_try_link
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_header_compile
1819 # ac_fn_c_try_cpp LINENO
1820 # ----------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } > conftest.i && {
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1898 # ac_fn_c_check_func LINENO FUNC VAR
1899 # ----------------------------------
1900 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1901 ac_fn_c_check_func ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1913 #define $2 innocuous_$2
1915 /* System header to define __stub macros and hopefully few prototypes,
1916 which can conflict with char $2 (); below.
1917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918 <limits.h> exists even on freestanding compilers. */
1921 # include <limits.h>
1923 # include <assert.h>
1928 /* Override any GCC internal prototype to avoid an error.
1929 Use char because int might match the return type of a GCC
1930 builtin and then its argument prototype would still apply. */
1935 /* The GNU C library defines this for functions which it implements
1936 to always fail with ENOSYS. Some functions are actually named
1937 something starting with __ and the normal name is an alias. */
1938 #if defined __stub_$2 || defined __stub___$2
1950 if ac_fn_c_try_link "$LINENO"; then :
1955 rm -f core conftest.err conftest.$ac_objext \
1956 conftest$ac_exeext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 } # ac_fn_c_check_func
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 eval "$3=\$ac_header_compiler"
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_mongrel
2051 cat >config.log <<_ACEOF
2052 This file contains any messages produced by compilers while
2053 running configure, to aid debugging if configure makes a mistake.
2055 It was created by connman $as_me 1.26, which was
2056 generated by GNU Autoconf 2.69. Invocation command line was
2068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 $as_echo "PATH: $as_dir"
2108 # Keep a trace of the command line.
2109 # Strip out --no-create and --no-recursion so they do not pile up.
2110 # Strip out --silent because we don't want to record it for future runs.
2111 # Also quote any args containing shell meta-characters.
2112 # Make two passes to allow for proper duplicate-argument suppression.
2116 ac_must_keep_next=false
2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124 | -silent | --silent | --silen | --sile | --sil)
2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132 as_fn_append ac_configure_args1 " '$ac_arg'"
2133 if test $ac_must_keep_next = true; then
2134 ac_must_keep_next=false # Got value, back to normal.
2137 *=* | --config-cache | -C | -disable-* | --disable-* \
2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140 | -with-* | --with-* | -without-* | --without-* | --x)
2141 case "$ac_configure_args0 " in
2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145 -* ) ac_must_keep_next=true ;;
2148 as_fn_append ac_configure_args " '$ac_arg'"
2153 { ac_configure_args0=; unset ac_configure_args0;}
2154 { ac_configure_args1=; unset ac_configure_args1;}
2156 # When interrupted or exit'd, cleanup temporary files, and complete
2157 # config.log. We remove comments because anyway the quotes in there
2158 # would cause problems or look ugly.
2159 # WARNING: Use '\'' to represent an apostrophe within the trap.
2160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161 trap 'exit_status=$?
2162 # Save into config.log some information that might help in debugging.
2166 $as_echo "## ---------------- ##
2167 ## Cache variables. ##
2168 ## ---------------- ##"
2170 # The following way of writing the cache mishandles newlines in values,
2172 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173 eval ac_val=\$$ac_var
2177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 _ | IFS | as_nl) ;; #(
2182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183 *) { eval $ac_var=; unset $ac_var;} ;;
2188 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189 *${as_nl}ac_space=\ *)
2191 "s/'\''/'\''\\\\'\'''\''/g;
2192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2202 $as_echo "## ----------------- ##
2203 ## Output variables. ##
2204 ## ----------------- ##"
2206 for ac_var in $ac_subst_vars
2208 eval ac_val=\$$ac_var
2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 $as_echo "$ac_var='\''$ac_val'\''"
2216 if test -n "$ac_subst_files"; then
2217 $as_echo "## ------------------- ##
2218 ## File substitutions. ##
2219 ## ------------------- ##"
2221 for ac_var in $ac_subst_files
2223 eval ac_val=\$$ac_var
2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 $as_echo "$ac_var='\''$ac_val'\''"
2232 if test -s confdefs.h; then
2233 $as_echo "## ----------- ##
2240 test "$ac_signal" != 0 &&
2241 $as_echo "$as_me: caught signal $ac_signal"
2242 $as_echo "$as_me: exit $exit_status"
2244 rm -f core *.core core.conftest.* &&
2245 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248 for ac_signal in 1 2 13 15; do
2249 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2253 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2254 rm -f -r conftest* confdefs.h
2256 $as_echo "/* confdefs.h */" > confdefs.h
2258 # Predefined preprocessor variables.
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_NAME "$PACKAGE_NAME"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_STRING "$PACKAGE_STRING"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_URL "$PACKAGE_URL"
2285 # Let the site file select an alternate cache file if it wants to.
2286 # Prefer an explicitly selected file to automatically selected ones.
2289 if test -n "$CONFIG_SITE"; then
2290 # We do not want a PATH search for config.site.
2291 case $CONFIG_SITE in #((
2292 -*) ac_site_file1=./$CONFIG_SITE;;
2293 */*) ac_site_file1=$CONFIG_SITE;;
2294 *) ac_site_file1=./$CONFIG_SITE;;
2296 elif test "x$prefix" != xNONE; then
2297 ac_site_file1=$prefix/share/config.site
2298 ac_site_file2=$prefix/etc/config.site
2300 ac_site_file1=$ac_default_prefix/share/config.site
2301 ac_site_file2=$ac_default_prefix/etc/config.site
2303 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305 test "x$ac_site_file" = xNONE && continue
2306 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2308 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2309 sed 's/^/| /' "$ac_site_file" >&5
2311 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 as_fn_error $? "failed to load site script $ac_site_file
2314 See \`config.log' for more details" "$LINENO" 5; }
2318 if test -r "$cache_file"; then
2319 # Some versions of bash will fail to source /dev/null (special files
2320 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2321 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2323 $as_echo "$as_me: loading cache $cache_file" >&6;}
2325 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2326 *) . "./$cache_file";;
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2331 $as_echo "$as_me: creating cache $cache_file" >&6;}
2335 # Check that the precious variables saved in the cache have kept the same
2337 ac_cache_corrupted=false
2338 for ac_var in $ac_precious_vars; do
2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340 eval ac_new_set=\$ac_env_${ac_var}_set
2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342 eval ac_new_val=\$ac_env_${ac_var}_value
2343 case $ac_old_set,$ac_new_set in
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347 ac_cache_corrupted=: ;;
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351 ac_cache_corrupted=: ;;
2354 if test "x$ac_old_val" != "x$ac_new_val"; then
2355 # differences in whitespace do not lead to failure.
2356 ac_old_val_w=`echo x $ac_old_val`
2357 ac_new_val_w=`echo x $ac_new_val`
2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361 ac_cache_corrupted=:
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365 eval $ac_var=\$ac_old_val
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2368 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2370 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2373 # Pass precious variables to config.status.
2374 if test "$ac_new_set" = set; then
2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 *) ac_arg=$ac_var=$ac_new_val ;;
2379 case " $ac_configure_args " in
2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2385 if $ac_cache_corrupted; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 ## -------------------- ##
2393 ## Main body of script. ##
2394 ## -------------------- ##
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 am__api_version='1.11'
2407 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408 if test -f "$ac_dir/install-sh"; then
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2412 elif test -f "$ac_dir/install.sh"; then
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2416 elif test -f "$ac_dir/shtool"; then
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if ${ac_cv_path_install+:} false; then :
2453 $as_echo_n "(cached) " >&6
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504 rm -rf conftest.one conftest.two conftest.dir
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2529 $as_echo_n "checking whether build environment is sane... " >&6; }
2532 echo timestamp > conftest.file
2533 # Reject unsafe characters in $srcdir or the absolute working directory
2534 # name. Accept space and tab only in the latter.
2538 *[\\\"\#\$\&\'\`$am_lf]*)
2539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2543 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2546 # Do `set' in a subshell so we don't clobber the current shell's
2547 # arguments. Must try -L first in case configure is actually a
2548 # symlink; some systems play weird games with the mod time of symlinks
2549 # (eg FreeBSD returns the mod time of the symlink's containing
2552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2553 if test "$*" = "X"; then
2555 set X `ls -t "$srcdir/configure" conftest.file`
2558 if test "$*" != "X $srcdir/configure conftest.file" \
2559 && test "$*" != "X conftest.file $srcdir/configure"; then
2561 # If neither matched, then we have a broken ls. This can happen
2562 # if, for instance, CONFIG_SHELL is bash and it inherits a
2563 # broken ls alias from the environment. This has actually
2564 # happened. Such a system could not be considered "sane".
2565 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2566 alias in your environment" "$LINENO" 5
2569 test "$2" = conftest.file
2575 as_fn_error $? "newly created file is older than distributed files!
2576 Check your system clock" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579 $as_echo "yes" >&6; }
2580 test "$program_prefix" != NONE &&
2581 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2582 # Use a double $ so make ignores it.
2583 test "$program_suffix" != NONE &&
2584 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2585 # Double any \ or $.
2586 # By default was `s,x,x', remove it if useless.
2587 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2588 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2590 # expand $ac_aux_dir to an absolute path
2591 am_aux_dir=`cd $ac_aux_dir && pwd`
2593 if test x"${MISSING+set}" != xset; then
2596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2598 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2601 # Use eval to expand $SHELL
2602 if eval "$MISSING --run true"; then
2603 am_missing_run="$MISSING --run "
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2607 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2610 if test x"${install_sh}" != xset; then
2613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2615 install_sh="\${SHELL} $am_aux_dir/install-sh"
2619 # Installed binaries are usually stripped using `strip' when the user
2620 # run `make install-strip'. However `strip' might not be the right
2621 # tool to use in cross-compilation environments, therefore Automake
2622 # will honor the `STRIP' environment variable to overrule this program.
2623 if test "$cross_compiling" != no; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_STRIP+:} false; then :
2630 $as_echo_n "(cached) " >&6
2632 if test -n "$STRIP"; then
2633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 STRIP=$ac_cv_prog_STRIP
2653 if test -n "$STRIP"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2655 $as_echo "$STRIP" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2663 if test -z "$ac_cv_prog_STRIP"; then
2665 # Extract the first word of "strip", so it can be a program name with args.
2666 set dummy strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 if test -n "$ac_ct_STRIP"; then
2673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_ac_ct_STRIP="strip"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2693 if test -n "$ac_ct_STRIP"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2695 $as_echo "$ac_ct_STRIP" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2701 if test "x$ac_ct_STRIP" = x; then
2704 case $cross_compiling:$ac_tool_warned in
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2713 STRIP="$ac_cv_prog_STRIP"
2717 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2720 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2721 if test -z "$MKDIR_P"; then
2722 if ${ac_cv_path_mkdir+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2729 test -z "$as_dir" && as_dir=.
2730 for ac_prog in mkdir gmkdir; do
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2734 'mkdir (GNU coreutils) '* | \
2735 'mkdir (coreutils) '* | \
2736 'mkdir (fileutils) '4.1*)
2737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 test -d ./--version && rmdir ./--version
2748 if test "${ac_cv_path_mkdir+set}" = set; then
2749 MKDIR_P="$ac_cv_path_mkdir -p"
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for MKDIR_P within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 MKDIR_P="$ac_install_sh -d"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2759 $as_echo "$MKDIR_P" >&6; }
2763 [\\/$]* | ?:[\\/]*) ;;
2764 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2767 for ac_prog in gawk mawk nawk awk
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_AWK+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$AWK"; then
2777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_AWK="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$AWK"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2799 $as_echo "$AWK" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$AWK" && break
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2810 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2813 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 cat >conftest.make <<\_ACEOF
2819 @echo '@@@%%%=$(MAKE)=@@@%%%'
2821 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2822 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824 eval ac_cv_prog_make_${ac_make}_set=yes;;
2826 eval ac_cv_prog_make_${ac_make}_set=no;;
2830 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832 $as_echo "yes" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 SET_MAKE="MAKE=${MAKE-make}"
2840 rm -rf .tst 2>/dev/null
2841 mkdir .tst 2>/dev/null
2842 if test -d .tst; then
2847 rmdir .tst 2>/dev/null
2849 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2850 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2851 # is not polluted with repeated "-I."
2852 am__isrc=' -I$(srcdir)'
2853 # test to see if srcdir already configured
2854 if test -f $srcdir/config.status; then
2855 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2859 # test whether we have cygpath
2860 if test -z "$CYGPATH_W"; then
2861 if (cygpath --version) >/dev/null 2>/dev/null; then
2862 CYGPATH_W='cygpath -w'
2869 # Define the identity of the package.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE "$PACKAGE"
2879 cat >>confdefs.h <<_ACEOF
2880 #define VERSION "$VERSION"
2883 # Some tools Automake needs.
2885 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2899 # We need awk for the "check" target. The system "awk" is bad on
2901 # Always define AMTAR for backward compatibility. Yes, it's still used
2902 # in the wild :-( We should find a proper way to deprecate it ...
2905 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2911 ac_config_headers="$ac_config_headers config.h"
2914 # Check whether --enable-silent-rules was given.
2915 if test "${enable_silent_rules+set}" = set; then :
2916 enableval=$enable_silent_rules;
2919 case $enable_silent_rules in
2920 yes) AM_DEFAULT_VERBOSITY=0;;
2921 no) AM_DEFAULT_VERBOSITY=1;;
2922 *) AM_DEFAULT_VERBOSITY=0;;
2924 am_make=${MAKE-make}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2926 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2927 if ${am_cv_make_support_nested_variables+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if $as_echo 'TRUE=$(BAR$(V))
2936 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2937 am_cv_make_support_nested_variables=yes
2939 am_cv_make_support_nested_variables=no
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2943 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2944 if test $am_cv_make_support_nested_variables = yes; then
2946 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2948 AM_V=$AM_DEFAULT_VERBOSITY
2949 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2957 # Check whether --enable-maintainer-mode was given.
2958 if test "${enable_maintainer_mode+set}" = set; then :
2959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2961 USE_MAINTAINER_MODE=no
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2965 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2966 if test $USE_MAINTAINER_MODE = yes; then
2967 MAINTAINER_MODE_TRUE=
2968 MAINTAINER_MODE_FALSE='#'
2970 MAINTAINER_MODE_TRUE='#'
2971 MAINTAINER_MODE_FALSE=
2974 MAINT=$MAINTAINER_MODE_TRUE
2987 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2994 $as_echo_n "(cached) " >&6
2998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3020 if test -n "$PKG_CONFIG"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3022 $as_echo "$PKG_CONFIG" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3030 if test -z "$ac_cv_path_PKG_CONFIG"; then
3031 ac_pt_PKG_CONFIG=$PKG_CONFIG
3032 # Extract the first word of "pkg-config", so it can be a program name with args.
3033 set dummy pkg-config; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 case $ac_pt_PKG_CONFIG in
3041 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3063 if test -n "$ac_pt_PKG_CONFIG"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3065 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3071 if test "x$ac_pt_PKG_CONFIG" = x; then
3074 case $cross_compiling:$ac_tool_warned in
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3080 PKG_CONFIG=$ac_pt_PKG_CONFIG
3083 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3087 if test -n "$PKG_CONFIG"; then
3088 _pkg_min_version=0.9.0
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3090 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3091 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if (test "${CFLAGS}" = ""); then
3103 CFLAGS="-Wall -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3105 if (test "$USE_MAINTAINER_MODE" = "yes"); then
3106 CFLAGS+=" -Werror -Wextra"
3107 CFLAGS+=" -Wno-unused-parameter"
3108 CFLAGS+=" -Wno-missing-field-initializers"
3109 CFLAGS+=" -Wdeclaration-after-statement"
3110 CFLAGS+=" -Wmissing-declarations"
3111 CFLAGS+=" -Wredundant-decls"
3112 CFLAGS+=" -Wcast-align"
3113 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$ac_cv_prog_CC"; then
3173 # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="gcc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3209 if test "x$ac_ct_CC" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}cc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285 ac_prog_rejected=yes
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test $ac_prog_rejected = yes; then
3297 # We found a bogon in the path, so make sure we never use it.
3298 set dummy $ac_cv_prog_CC
3300 if test $# != 0; then
3301 # We chose a different compiler from the bogus one.
3302 # However, it has the same basename, so the bogon will be chosen
3303 # first if we set CC to just the basename; use the full file name.
3305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 for ac_prog in cl.exe
3325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$CC" && break
3365 if test -z "$CC"; then
3367 for ac_prog in cl.exe
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_CC="$ac_prog"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3406 test -n "$ac_ct_CC" && break
3409 if test "x$ac_ct_CC" = x; then
3412 case $cross_compiling:$ac_tool_warned in
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details" "$LINENO" 5; }
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434 for ac_option in --version -v -V -qversion; do
3435 { { ac_try="$ac_compiler $ac_option >&5"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3444 if test -s conftest.err; then
3446 ... rest of stderr output deleted ...
3447 10q' conftest.err >conftest.er1
3448 cat conftest.er1 >&5
3450 rm -f conftest.er1 conftest.err
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3468 # Try to create an executable without -o first, disregard a.out.
3469 # It will help us diagnose broken compilers, and finding out an intuition
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3472 $as_echo_n "checking whether the C compiler works... " >&6; }
3473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3475 # The possible output files:
3476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3479 for ac_file in $ac_files
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3483 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488 if { { ac_try="$ac_link_default"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link_default") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3502 # so that the user can short-circuit this test for compilers unknown to
3504 for ac_file in $ac_files ''
3506 test -f "$ac_file" || continue
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3511 # We found the default executable, but exeext='' is most
3515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519 # We set ac_cv_exeext here because the later test for it is not
3520 # safe: cross compilers may not add the suffix if given an `-o'
3521 # argument, so we may need to know it at that point already.
3522 # Even if this section looks crufty: it has the advantage of
3529 test "$ac_cv_exeext" = no && ac_cv_exeext=
3534 if test -z "$ac_file"; then :
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error 77 "C compiler cannot create executables
3543 See \`config.log' for more details" "$LINENO" 5; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551 $as_echo "$ac_file" >&6; }
3552 ac_exeext=$ac_cv_exeext
3554 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 for ac_file in conftest.exe conftest conftest.*; do
3574 test -f "$ac_file" || continue
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details" "$LINENO" 5; }
3588 rm -f conftest conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3601 FILE *f = fopen ("conftest.out", "w");
3602 return ferror (f) || fclose (f) != 0;
3608 ac_clean_files="$ac_clean_files conftest.out"
3609 # Check that the compiler produces executables we can run. If not, either
3610 # the compiler is broken, or we cross compile.
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3612 $as_echo_n "checking whether we are cross compiling... " >&6; }
3613 if test "$cross_compiling" != yes; then
3614 { { ac_try="$ac_link"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_link") 2>&5
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }
3625 if { ac_try='./conftest$ac_cv_exeext'
3626 { { case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_try") 2>&5
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; }; then
3638 if test "$cross_compiling" = maybe; then
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot run C compiled programs.
3644 If you meant to cross compile, use \`--host'.
3645 See \`config.log' for more details" "$LINENO" 5; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3650 $as_echo "$cross_compiling" >&6; }
3652 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3653 ac_clean_files=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655 $as_echo_n "checking for suffix of object files... " >&6; }
3656 if ${ac_cv_objext+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compile") 2>&5
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; then :
3682 for ac_file in conftest.o conftest.obj conftest.*; do
3683 test -f "$ac_file" || continue;
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691 $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details" "$LINENO" 5; }
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if ${ac_cv_c_compiler_gnu+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3724 if ac_fn_c_try_compile "$LINENO"; then :
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735 if test $ac_compiler_gnu = yes; then
3740 ac_test_CFLAGS=${CFLAGS+set}
3741 ac_save_CFLAGS=$CFLAGS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3744 if ${ac_cv_prog_cc_g+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 ac_save_c_werror_flag=$ac_c_werror_flag
3748 ac_c_werror_flag=yes
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_c_try_compile "$LINENO"; then :
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 if ac_fn_c_try_compile "$LINENO"; then :
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804 $as_echo "$ac_cv_prog_cc_g" >&6; }
3805 if test "$ac_test_CFLAGS" = set; then
3806 CFLAGS=$ac_save_CFLAGS
3807 elif test $ac_cv_prog_cc_g = yes; then
3808 if test "$GCC" = yes; then
3814 if test "$GCC" = yes; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822 if ${ac_cv_prog_cc_c89+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 ac_cv_prog_cc_c89=no
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3833 struct buf { int x; };
3834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3835 static char *e (p, i)
3841 static char *f (char * (*g) (char **, int), char **p, ...)
3846 s = g (p, va_arg (v,int));
3851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3852 function prototypes and stuff, but not '\xHH' hex character constants.
3853 These don't provoke an error unfortunately, instead are silently treated
3854 as 'x'. The following induces an error, until -std is added to get
3855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3856 array size at least. It's necessary to write '\x00'==0 to get something
3857 that's true only with -std. */
3858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3861 inside strings and character constants. */
3863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3865 int test (int i, double x);
3866 struct s1 {int (*f) (int a);};
3867 struct s2 {int (*f) (double a);};
3868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3882 CC="$ac_save_CC $ac_arg"
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_prog_cc_c89=$ac_arg
3886 rm -f core conftest.err conftest.$ac_objext
3887 test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 rm -f conftest.$ac_ext
3894 case "x$ac_cv_prog_cc_c89" in
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3897 $as_echo "none needed" >&6; } ;;
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3900 $as_echo "unsupported" >&6; } ;;
3902 CC="$CC $ac_cv_prog_cc_c89"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 DEPDIR="${am__leading_dot}deps"
3917 ac_config_commands="$ac_config_commands depfiles"
3920 am_make=${MAKE-make}
3921 cat > confinc << 'END'
3923 @echo this is the am__doit target
3926 # If we don't find an include directive, just comment out the code.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3928 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3932 # First try GNU make style include.
3933 echo "include confinc" > confmf
3934 # Ignore all kinds of additional output from `make'.
3935 case `$am_make -s -f confmf 2> /dev/null` in #(
3936 *the\ am__doit\ target*)
3942 # Now try BSD make style include.
3943 if test "$am__include" = "#"; then
3944 echo '.include "confinc"' > confmf
3945 case `$am_make -s -f confmf 2> /dev/null` in #(
3946 *the\ am__doit\ target*)
3947 am__include=.include
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3956 $as_echo "$_am_result" >&6; }
3957 rm -f confinc confmf
3959 # Check whether --enable-dependency-tracking was given.
3960 if test "${enable_dependency_tracking+set}" = set; then :
3961 enableval=$enable_dependency_tracking;
3964 if test "x$enable_dependency_tracking" != xno; then
3965 am_depcomp="$ac_aux_dir/depcomp"
3969 if test "x$enable_dependency_tracking" != xno; then
3979 depcc="$CC" am_compiler_list=
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3982 $as_echo_n "checking dependency style of $depcc... " >&6; }
3983 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3987 # We make a subdir and do the tests there. Otherwise we can end up
3988 # making bogus files that we don't know about and never remove. For
3989 # instance it was reported that on HP-UX the gcc test will end up
3990 # making a dummy file named `D' -- because `-MD' means `put the output
3994 # Copy depcomp to subdir because otherwise we won't find it if we're
3995 # using a relative directory.
3996 cp "$am_depcomp" conftest.dir
3998 # We will build objects and dependencies in a subdirectory because
3999 # it helps to detect inapplicable dependency modes. For instance
4000 # both Tru64's cc and ICC support -MD to output dependencies as a
4001 # side effect of compilation, but ICC will put the dependencies in
4002 # the current directory while Tru64 will put them in the object
4006 am_cv_CC_dependencies_compiler_type=none
4007 if test "$am_compiler_list" = ""; then
4008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4011 case " $depcc " in #(
4012 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4015 for depmode in $am_compiler_list; do
4016 # Setup a source with many dependencies, because some compilers
4017 # like to wrap large dependency lists on column 80 (with \), and
4018 # we should not choose a depcomp mode which is confused by this.
4020 # We need to recreate these files for each test, as the compiler may
4021 # overwrite some of them when testing with obscure command lines.
4022 # This happens at least with the AIX C compiler.
4024 for i in 1 2 3 4 5 6; do
4025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4026 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4027 # Solaris 8's {/usr,}/bin/sh.
4028 touch sub/conftst$i.h
4030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4033 # mode. It turns out that the SunPro C++ compiler does not properly
4034 # handle `-M -o', and we need to detect this. Also, some Intel
4035 # versions had trouble with output in subdirs
4036 am__obj=sub/conftest.${OBJEXT-o}
4037 am__minus_obj="-o $am__obj"
4040 # This depmode causes a compiler race in universal mode.
4041 test "$am__universal" = false || continue
4044 # after this tag, mechanisms are not by side-effect, so they'll
4045 # only be used when explicitly requested
4046 if test "x$enable_dependency_tracking" = xyes; then
4052 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4053 # This compiler won't grok `-c -o', but also, the minuso test has
4054 # not run yet. These depmodes are late enough in the game, and
4055 # so weak that their functioning should not be impacted.
4056 am__obj=conftest.${OBJEXT-o}
4061 if depmode=$depmode \
4062 source=sub/conftest.c object=$am__obj \
4063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4065 >/dev/null 2>conftest.err &&
4066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4070 # icc doesn't choke on unknown options, it will just issue warnings
4071 # or remarks (even with -Werror). So we grep stderr for any message
4072 # that says an option was ignored or not supported.
4073 # When given -MP, icc 7.0 and 7.1 complain thusly:
4074 # icc: Command line warning: ignoring option '-M'; no argument required
4075 # The diagnosis changed in icc 8.0:
4076 # icc: Command line remark: option '-MP' not supported
4077 if (grep 'ignoring option' conftest.err ||
4078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4079 am_cv_CC_dependencies_compiler_type=$depmode
4088 am_cv_CC_dependencies_compiler_type=none
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4093 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4094 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4097 test "x$enable_dependency_tracking" != xno \
4098 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4100 am__fastdepCC_FALSE='#'
4102 am__fastdepCC_TRUE='#'
4103 am__fastdepCC_FALSE=
4107 if test "x$CC" != xcc; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4109 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4112 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4114 set dummy $CC; ac_cc=`$as_echo "$2" |
4115 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4116 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 # Make sure it works both with $CC and with simple cc.
4131 # We do the test twice because some compilers refuse to overwrite an
4132 # existing .o file with -o, though they will create one.
4133 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4135 if { { case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_try") 2>&5
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; } &&
4145 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_try") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; };
4156 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4157 if test "x$CC" != xcc; then
4158 # Test first that cc exists at all.
4159 if { ac_try='cc -c conftest.$ac_ext >&5'
4160 { { case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166 (eval "$ac_try") 2>&5
4168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169 test $ac_status = 0; }; }; then
4170 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4172 if { { case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_try") 2>&5
4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; } &&
4182 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_try") 2>&5
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; };
4196 # cc exists but doesn't like -o.
4197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4202 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4204 rm -f core conftest*
4207 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 $as_echo "yes" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4214 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4218 # FIXME: we rely on the cache variable name because
4219 # there is no other way.
4221 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4223 if test "$am_t" != yes; then
4224 # Losing compiler, so override with the script.
4225 # FIXME: It is wrong to rewrite CC.
4226 # But if we don't then we get into trouble of one sort or another.
4227 # A longer-term fix would be to have automake use am__CC in this case,
4228 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229 CC="$am_aux_dir/compile $CC"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4235 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4236 if ${ac_cv_prog_cc_pie+:} false; then :
4237 $as_echo_n "(cached) " >&6
4240 echo 'void f(){}' > conftest.c
4241 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4242 ac_cv_prog_cc_pie=yes
4244 ac_cv_prog_cc_pie=no
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4250 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4258 # Check whether --enable-static was given.
4259 if test "${enable_static+set}" = set; then :
4260 enableval=$enable_static; p=${PACKAGE-default}
4262 yes) enable_static=yes ;;
4263 no) enable_static=no ;;
4266 # Look at the argument we got. We use all the common list separators.
4267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268 for pkg in $enableval; do
4270 if test "X$pkg" = "X$p"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4292 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4297 macro_version='2.4.2'
4298 macro_revision='1.3337'
4312 ltmain="$ac_aux_dir/ltmain.sh"
4314 # Make sure we can run config.sub.
4315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4319 $as_echo_n "checking build system type... " >&6; }
4320 if ${ac_cv_build+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 ac_build_alias=$build_alias
4324 test "x$ac_build_alias" = x &&
4325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4326 test "x$ac_build_alias" = x &&
4327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4333 $as_echo "$ac_cv_build" >&6; }
4334 case $ac_cv_build in
4336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4339 ac_save_IFS=$IFS; IFS='-'
4345 # Remember, the first character of IFS is used to create $*,
4346 # except with old shells:
4349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4353 $as_echo_n "checking host system type... " >&6; }
4354 if ${ac_cv_host+:} false; then :
4355 $as_echo_n "(cached) " >&6
4357 if test "x$host_alias" = x; then
4358 ac_cv_host=$ac_cv_build
4360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4366 $as_echo "$ac_cv_host" >&6; }
4369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4372 ac_save_IFS=$IFS; IFS='-'
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4385 # Backslashify metacharacters that are still active within
4386 # double-quoted strings.
4387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4389 # Same as above, but do not quote variable references.
4390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4392 # Sed substitution to delay expansion of an escaped shell variable in a
4393 # double_quote_subst'ed string.
4394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4396 # Sed substitution to delay expansion of an escaped single quote.
4397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4399 # Sed substitution to avoid accidental globbing in evaled expressions
4400 no_glob_subst='s/\*/\\\*/g'
4402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4407 $as_echo_n "checking how to print strings... " >&6; }
4408 # Test print first, because it will be a builtin if present.
4409 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4415 # Use this function as a fallback that always works.
4416 func_fallback_echo ()
4418 eval 'cat <<_LTECHO_EOF
4422 ECHO='func_fallback_echo'
4425 # func_echo_all arg...
4426 # Invoke $ECHO with all args, space-separated.
4433 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4434 $as_echo "printf" >&6; } ;;
4435 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4436 $as_echo "print -r" >&6; } ;;
4437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4438 $as_echo "cat" >&6; } ;;
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4456 if ${ac_cv_path_SED+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4460 for ac_i in 1 2 3 4 5 6 7; do
4461 ac_script="$ac_script$as_nl$ac_script"
4463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4464 { ac_script=; unset ac_script;}
4465 if test -z "$SED"; then
4466 ac_path_SED_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_prog in sed gsed; do
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4476 as_fn_executable_p "$ac_path_SED" || continue
4477 # Check for GNU ac_path_SED and select it if it is found.
4478 # Check for GNU $ac_path_SED
4479 case `"$ac_path_SED" --version 2>&1` in
4481 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4484 $as_echo_n 0123456789 >"conftest.in"
4487 cat "conftest.in" "conftest.in" >"conftest.tmp"
4488 mv "conftest.tmp" "conftest.in"
4489 cp "conftest.in" "conftest.nl"
4490 $as_echo '' >> "conftest.nl"
4491 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493 as_fn_arith $ac_count + 1 && ac_count=$as_val
4494 if test $ac_count -gt ${ac_path_SED_max-0}; then
4495 # Best one so far, save it but keep looking for a better one
4496 ac_cv_path_SED="$ac_path_SED"
4497 ac_path_SED_max=$ac_count
4499 # 10*(2^10) chars as input seems more than enough
4500 test $ac_count -gt 10 && break
4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 $ac_path_SED_found && break 3
4510 if test -z "$ac_cv_path_SED"; then
4511 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4519 $as_echo "$ac_cv_path_SED" >&6; }
4520 SED="$ac_cv_path_SED"
4523 test -z "$SED" && SED=sed
4524 Xsed="$SED -e 1s/^X//"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4560 $as_echo_n 0123456789 >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 $ac_path_GREP_found && break 3
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4626 $as_echo_n 0123456789 >"conftest.in"
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 $ac_path_EGREP_found && break 3
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4667 $as_echo_n "checking for fgrep... " >&6; }
4668 if ${ac_cv_path_FGREP+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4672 then ac_cv_path_FGREP="$GREP -F"
4674 if test -z "$FGREP"; then
4675 ac_path_FGREP_found=false
4676 # Loop through the user's path and test for each of PROGNAME-LIST
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4681 test -z "$as_dir" && as_dir=.
4682 for ac_prog in fgrep; do
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4685 as_fn_executable_p "$ac_path_FGREP" || continue
4686 # Check for GNU ac_path_FGREP and select it if it is found.
4687 # Check for GNU $ac_path_FGREP
4688 case `"$ac_path_FGREP" --version 2>&1` in
4690 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4693 $as_echo_n 0123456789 >"conftest.in"
4696 cat "conftest.in" "conftest.in" >"conftest.tmp"
4697 mv "conftest.tmp" "conftest.in"
4698 cp "conftest.in" "conftest.nl"
4699 $as_echo 'FGREP' >> "conftest.nl"
4700 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702 as_fn_arith $ac_count + 1 && ac_count=$as_val
4703 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4704 # Best one so far, save it but keep looking for a better one
4705 ac_cv_path_FGREP="$ac_path_FGREP"
4706 ac_path_FGREP_max=$ac_count
4708 # 10*(2^10) chars as input seems more than enough
4709 test $ac_count -gt 10 && break
4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714 $ac_path_FGREP_found && break 3
4719 if test -z "$ac_cv_path_FGREP"; then
4720 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4723 ac_cv_path_FGREP=$FGREP
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4729 $as_echo "$ac_cv_path_FGREP" >&6; }
4730 FGREP="$ac_cv_path_FGREP"
4733 test -z "$GREP" && GREP=grep
4753 # Check whether --with-gnu-ld was given.
4754 if test "${with_gnu_ld+set}" = set; then :
4755 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4761 if test "$GCC" = yes; then
4762 # Check if gcc -print-prog-name=ld gives a path.
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4764 $as_echo_n "checking for ld used by $CC... " >&6; }
4767 # gcc leaves a trailing carriage return which upsets mingw
4768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4773 # Accept absolute paths.
4775 re_direlt='/[^/][^/]*/\.\./'
4776 # Canonicalize the pathname of ld
4777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4781 test -z "$LD" && LD="$ac_prog"
4784 # If it fails, then pretend we aren't using GCC.
4788 # If it is relative, then search for the first ld in PATH.
4792 elif test "$with_gnu_ld" = yes; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4794 $as_echo_n "checking for GNU ld... " >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4797 $as_echo_n "checking for non-GNU ld... " >&6; }
4799 if ${lt_cv_path_LD+:} false; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -z "$LD"; then
4803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4804 for ac_dir in $PATH; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4808 lt_cv_path_LD="$ac_dir/$ac_prog"
4809 # Check to see if the program is GNU ld. I'd rather use --version,
4810 # but apparently some variants of GNU ld only accept -v.
4811 # Break only if it was the GNU/non-GNU ld that we prefer.
4812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4813 *GNU* | *'with BFD'*)
4814 test "$with_gnu_ld" != no && break
4817 test "$with_gnu_ld" != yes && break
4824 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4829 if test -n "$LD"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4831 $as_echo "$LD" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4839 if ${lt_cv_prog_gnu_ld+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4843 case `$LD -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845 lt_cv_prog_gnu_ld=yes
4848 lt_cv_prog_gnu_ld=no
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4854 with_gnu_ld=$lt_cv_prog_gnu_ld
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4865 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4866 if ${lt_cv_path_NM+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$NM"; then
4870 # Let the user override the test.
4873 lt_nm_to_check="${ac_tool_prefix}nm"
4874 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4875 lt_nm_to_check="$lt_nm_to_check nm"
4877 for lt_tmp_nm in $lt_nm_to_check; do
4878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4879 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4881 test -z "$ac_dir" && ac_dir=.
4882 tmp_nm="$ac_dir/$lt_tmp_nm"
4883 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4884 # Check to see if the nm accepts a BSD-compat flag.
4885 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4886 # nm: unknown option "B" ignored
4887 # Tru64's nm complains that /dev/null is an invalid object file
4888 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4889 */dev/null* | *'Invalid file or object type'*)
4890 lt_cv_path_NM="$tmp_nm -B"
4894 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4896 lt_cv_path_NM="$tmp_nm -p"
4900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4901 continue # so that we can try to find one that supports BSD flags
4910 : ${lt_cv_path_NM=no}
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4914 $as_echo "$lt_cv_path_NM" >&6; }
4915 if test "$lt_cv_path_NM" != "no"; then
4918 # Didn't find any BSD compatible name lister, look for dumpbin.
4919 if test -n "$DUMPBIN"; then :
4920 # Let the user override the test.
4922 if test -n "$ac_tool_prefix"; then
4923 for ac_prog in dumpbin "link -dump"
4925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_DUMPBIN+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$DUMPBIN"; then
4933 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 DUMPBIN=$ac_cv_prog_DUMPBIN
4953 if test -n "$DUMPBIN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4955 $as_echo "$DUMPBIN" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 test -n "$DUMPBIN" && break
4965 if test -z "$DUMPBIN"; then
4966 ac_ct_DUMPBIN=$DUMPBIN
4967 for ac_prog in dumpbin "link -dump"
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$ac_ct_DUMPBIN"; then
4977 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4997 if test -n "$ac_ct_DUMPBIN"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4999 $as_echo "$ac_ct_DUMPBIN" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 test -n "$ac_ct_DUMPBIN" && break
5009 if test "x$ac_ct_DUMPBIN" = x; then
5012 case $cross_compiling:$ac_tool_warned in
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016 ac_tool_warned=yes ;;
5018 DUMPBIN=$ac_ct_DUMPBIN
5022 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5024 DUMPBIN="$DUMPBIN -symbols"
5032 if test "$DUMPBIN" != ":"; then
5036 test -z "$NM" && NM=nm
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5044 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5045 if ${lt_cv_nm_interface+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 lt_cv_nm_interface="BSD nm"
5049 echo "int some_variable = 0;" > conftest.$ac_ext
5050 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5051 (eval "$ac_compile" 2>conftest.err)
5052 cat conftest.err >&5
5053 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5054 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5055 cat conftest.err >&5
5056 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5057 cat conftest.out >&5
5058 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5059 lt_cv_nm_interface="MS dumpbin"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5064 $as_echo "$lt_cv_nm_interface" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5067 $as_echo_n "checking whether ln -s works... " >&6; }
5069 if test "$LN_S" = "ln -s"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5074 $as_echo "no, using $LN_S" >&6; }
5077 # find the maximum length of command line arguments
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5079 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5080 if ${lt_cv_sys_max_cmd_len+:} false; then :
5081 $as_echo_n "(cached) " >&6
5088 # On DJGPP, this test can blow up pretty badly due to problems in libc
5089 # (any single argument exceeding 2000 bytes causes a buffer overrun
5090 # during glob expansion). Even if it were fixed, the result of this
5091 # check would be larger than it should be.
5092 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5096 # Under GNU Hurd, this test is not required because there is
5097 # no limit to the length of command line arguments.
5098 # Libtool will interpret -1 as no limit whatsoever
5099 lt_cv_sys_max_cmd_len=-1;
5102 cygwin* | mingw* | cegcc*)
5103 # On Win9x/ME, this test blows up -- it succeeds, but takes
5104 # about 5 minutes as the teststring grows exponentially.
5105 # Worse, since 9x/ME are not pre-emptively multitasking,
5106 # you end up with a "frozen" computer, even though with patience
5107 # the test eventually succeeds (with a max line length of 256k).
5108 # Instead, let's just punt: use the minimum linelength reported by
5109 # all of the supported platforms: 8192 (on NT/2K/XP).
5110 lt_cv_sys_max_cmd_len=8192;
5114 # On MiNT this can take a long time and run out of memory.
5115 lt_cv_sys_max_cmd_len=8192;
5119 # On AmigaOS with pdksh, this test takes hours, literally.
5120 # So we just punt and use a minimum line length of 8192.
5121 lt_cv_sys_max_cmd_len=8192;
5124 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5125 # This has been around since 386BSD, at least. Likely further.
5126 if test -x /sbin/sysctl; then
5127 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5128 elif test -x /usr/sbin/sysctl; then
5129 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5131 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5133 # And add a safety zone
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5139 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5140 lt_cv_sys_max_cmd_len=196608
5144 # The test takes a long time on OS/2.
5145 lt_cv_sys_max_cmd_len=8192
5149 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5150 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5151 # nice to cause kernel panics so lets avoid the loop below.
5152 # First set a reasonable default.
5153 lt_cv_sys_max_cmd_len=16384
5155 if test -x /sbin/sysconfig; then
5156 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5157 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5162 lt_cv_sys_max_cmd_len=102400
5164 sysv5* | sco5v6* | sysv4.2uw2*)
5165 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5166 if test -n "$kargmax"; then
5167 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5169 lt_cv_sys_max_cmd_len=32768
5173 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5174 if test -n "$lt_cv_sys_max_cmd_len"; then
5175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5178 # Make teststring a little bigger before we do anything with it.
5179 # a 1K string should be a reasonable start.
5180 for i in 1 2 3 4 5 6 7 8 ; do
5181 teststring=$teststring$teststring
5183 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5184 # If test is not a shell built-in, we'll probably end up computing a
5185 # maximum length that is only half of the actual maximum length, but
5187 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5188 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5189 test $i != 17 # 1/2 MB should be enough
5192 teststring=$teststring$teststring
5194 # Only check the string length outside the loop.
5195 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5197 # Add a significant safety factor because C++ compilers can tack on
5198 # massive amounts of additional arguments before passing them to the
5199 # linker. It appears as though 1/2 is a usable value.
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5207 if test -n $lt_cv_sys_max_cmd_len ; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5209 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5212 $as_echo "none" >&6; }
5214 max_cmd_len=$lt_cv_sys_max_cmd_len
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5226 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5227 # Try some XSI features
5230 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5232 && eval 'test $(( 1 + 1 )) -eq 2 \
5233 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5236 $as_echo "$xsi_shell" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5240 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5242 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5244 && lt_shell_append=yes
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5246 $as_echo "$lt_shell_append" >&6; }
5249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5259 # test EBCDIC or ASCII
5260 case `echo X|tr X '\101'` in
5261 A) # ASCII based system
5262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5263 lt_SP2NL='tr \040 \012'
5264 lt_NL2SP='tr \015\012 \040\040'
5266 *) # EBCDIC based system
5267 lt_SP2NL='tr \100 \n'
5268 lt_NL2SP='tr \r\n \100\100'
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5281 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5282 if ${lt_cv_to_host_file_cmd+:} false; then :
5283 $as_echo_n "(cached) " >&6
5288 *-*-mingw* ) # actually msys
5289 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5292 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5294 * ) # otherwise, assume *nix
5295 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5305 lt_cv_to_host_file_cmd=func_convert_file_noop
5307 * ) # otherwise, assume *nix
5308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5312 * ) # unhandled hosts (and "normal" native builds)
5313 lt_cv_to_host_file_cmd=func_convert_file_noop
5319 to_host_file_cmd=$lt_cv_to_host_file_cmd
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5321 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5328 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5329 if ${lt_cv_to_tool_file_cmd+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 #assume ordinary cross tools, or native build.
5333 lt_cv_to_tool_file_cmd=func_convert_file_noop
5337 *-*-mingw* ) # actually msys
5338 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5346 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5348 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5356 if ${lt_cv_ld_reload_flag+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 lt_cv_ld_reload_flag='-r'
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5363 reload_flag=$lt_cv_ld_reload_flag
5364 case $reload_flag in
5366 *) reload_flag=" $reload_flag" ;;
5368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370 cygwin* | mingw* | pw32* | cegcc*)
5371 if test "$GCC" != yes; then
5376 if test "$GCC" = yes; then
5377 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392 if test -n "$ac_tool_prefix"; then
5393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_OBJDUMP+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 if test -n "$OBJDUMP"; then
5401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 OBJDUMP=$ac_cv_prog_OBJDUMP
5421 if test -n "$OBJDUMP"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5423 $as_echo "$OBJDUMP" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5431 if test -z "$ac_cv_prog_OBJDUMP"; then
5432 ac_ct_OBJDUMP=$OBJDUMP
5433 # Extract the first word of "objdump", so it can be a program name with args.
5434 set dummy objdump; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -n "$ac_ct_OBJDUMP"; then
5441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5461 if test -n "$ac_ct_OBJDUMP"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5463 $as_echo "$ac_ct_OBJDUMP" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5469 if test "x$ac_ct_OBJDUMP" = x; then
5472 case $cross_compiling:$ac_tool_warned in
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5478 OBJDUMP=$ac_ct_OBJDUMP
5481 OBJDUMP="$ac_cv_prog_OBJDUMP"
5484 test -z "$OBJDUMP" && OBJDUMP=objdump
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5495 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5496 if ${lt_cv_deplibs_check_method+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 lt_cv_file_magic_cmd='$MAGIC_CMD'
5500 lt_cv_file_magic_test_file=
5501 lt_cv_deplibs_check_method='unknown'
5502 # Need to set the preceding variable on all platforms that support
5503 # interlibrary dependencies.
5504 # 'none' -- dependencies not supported.
5505 # `unknown' -- same as none, but documents that we really don't know.
5506 # 'pass_all' -- all dependencies passed with no checks.
5507 # 'test_compile' -- check by making test program.
5508 # 'file_magic [[regex]]' -- check by looking for files in library path
5509 # which responds to the $file_magic_cmd with a given extended regex.
5510 # If you have `file' or equivalent on your system and you're not sure
5511 # whether `pass_all' will *always* work, you probably want this one.
5515 lt_cv_deplibs_check_method=pass_all
5519 lt_cv_deplibs_check_method=pass_all
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5524 lt_cv_file_magic_cmd='/usr/bin/file -L'
5525 lt_cv_file_magic_test_file=/shlib/libc.so
5529 # func_win32_libid is a shell function defined in ltmain.sh
5530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5531 lt_cv_file_magic_cmd='func_win32_libid'
5535 # Base MSYS/MinGW do not provide the 'file' command needed by
5536 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5537 # unless we find 'file', for example because we are cross-compiling.
5538 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5539 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5541 lt_cv_file_magic_cmd='func_win32_libid'
5543 # Keep this pattern in sync with the one in func_win32_libid.
5544 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5545 lt_cv_file_magic_cmd='$OBJDUMP -f'
5550 # use the weaker test based on 'objdump'. See mingw*.
5551 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5552 lt_cv_file_magic_cmd='$OBJDUMP -f'
5555 darwin* | rhapsody*)
5556 lt_cv_deplibs_check_method=pass_all
5559 freebsd* | dragonfly*)
5560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5563 # Not sure whether the presence of OpenBSD here was a mistake.
5564 # Let's accept both of them until this is cleared up.
5565 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5566 lt_cv_file_magic_cmd=/usr/bin/file
5567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5571 lt_cv_deplibs_check_method=pass_all
5576 lt_cv_deplibs_check_method=pass_all
5579 hpux10.20* | hpux11*)
5580 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5584 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5587 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]'
5588 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5592 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5602 irix5* | irix6* | nonstopux*)
5604 *-32|*"-32 ") libmagic=32-bit;;
5605 *-n32|*"-n32 ") libmagic=N32;;
5606 *-64|*"-64 ") libmagic=64-bit;;
5607 *) libmagic=never-match;;
5609 lt_cv_deplibs_check_method=pass_all
5612 # This must be glibc/ELF.
5613 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5614 lt_cv_deplibs_check_method=pass_all
5617 netbsd* | netbsdelf*-gnu)
5618 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627 lt_cv_file_magic_cmd=/usr/bin/file
5628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632 lt_cv_deplibs_check_method=pass_all
5636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643 osf3* | osf4* | osf5*)
5644 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5656 lt_cv_deplibs_check_method=pass_all
5660 case $host_vendor in
5662 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]'
5663 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5666 lt_cv_deplibs_check_method=pass_all
5669 lt_cv_file_magic_cmd='/bin/file'
5670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5673 lt_cv_file_magic_cmd='/bin/file'
5674 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5675 lt_cv_file_magic_test_file=/lib/libc.so
5678 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_deplibs_check_method=pass_all
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5693 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5697 if test "$build" = "$host"; then
5700 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5703 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5709 file_magic_cmd=$lt_cv_file_magic_cmd
5710 deplibs_check_method=$lt_cv_deplibs_check_method
5711 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5734 if test -n "$ac_tool_prefix"; then
5735 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5736 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_DLLTOOL+:} false; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$DLLTOOL"; then
5743 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 DLLTOOL=$ac_cv_prog_DLLTOOL
5763 if test -n "$DLLTOOL"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5765 $as_echo "$DLLTOOL" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5773 if test -z "$ac_cv_prog_DLLTOOL"; then
5774 ac_ct_DLLTOOL=$DLLTOOL
5775 # Extract the first word of "dlltool", so it can be a program name with args.
5776 set dummy dlltool; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 if test -n "$ac_ct_DLLTOOL"; then
5783 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5803 if test -n "$ac_ct_DLLTOOL"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5805 $as_echo "$ac_ct_DLLTOOL" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5811 if test "x$ac_ct_DLLTOOL" = x; then
5814 case $cross_compiling:$ac_tool_warned in
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818 ac_tool_warned=yes ;;
5820 DLLTOOL=$ac_ct_DLLTOOL
5823 DLLTOOL="$ac_cv_prog_DLLTOOL"
5826 test -z "$DLLTOOL" && DLLTOOL=dlltool
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5838 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5839 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 lt_cv_sharedlib_from_linklib_cmd='unknown'
5845 cygwin* | mingw* | pw32* | cegcc*)
5846 # two different shell functions defined in ltmain.sh
5847 # decide which to use based on capabilities of $DLLTOOL
5848 case `$DLLTOOL --help 2>&1` in
5849 *--identify-strict*)
5850 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5853 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5858 # fallback: assume linklib IS sharedlib
5859 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5865 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5866 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5867 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5876 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_AR+:} false; then :
5884 $as_echo_n "(cached) " >&6
5886 if test -n "$AR"; then
5887 ac_cv_prog_AR="$AR" # Let the user override the test.
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 if test -n "$AR"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5909 $as_echo "$AR" >&6; }
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5916 test -n "$AR" && break
5919 if test -z "$AR"; then
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -n "$ac_ct_AR"; then
5931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_AR="$ac_prog"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5951 if test -n "$ac_ct_AR"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5953 $as_echo "$ac_ct_AR" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5960 test -n "$ac_ct_AR" && break
5963 if test "x$ac_ct_AR" = x; then
5966 case $cross_compiling:$ac_tool_warned in
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5990 $as_echo_n "checking for archiver @FILE support... " >&6; }
5991 if ${lt_cv_ar_at_file+:} false; then :
5992 $as_echo_n "(cached) " >&6
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6006 if ac_fn_c_try_compile "$LINENO"; then :
6007 echo conftest.$ac_objext > conftest.lst
6008 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6010 (eval $lt_ar_try) 2>&5
6012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013 test $ac_status = 0; }
6014 if test "$ac_status" -eq 0; then
6015 # Ensure the archiver fails upon bogus file names.
6016 rm -f conftest.$ac_objext libconftest.a
6017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6018 (eval $lt_ar_try) 2>&5
6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; }
6022 if test "$ac_status" -ne 0; then
6026 rm -f conftest.* libconftest.a
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6033 $as_echo "$lt_cv_ar_at_file" >&6; }
6035 if test "x$lt_cv_ar_at_file" = xno; then
6038 archiver_list_spec=$lt_cv_ar_at_file
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_STRIP+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$STRIP"; then
6056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6086 if test -z "$ac_cv_prog_STRIP"; then
6088 # Extract the first word of "strip", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 if test -n "$ac_ct_STRIP"; then
6096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_STRIP="strip"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6124 if test "x$ac_ct_STRIP" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6136 STRIP="$ac_cv_prog_STRIP"
6139 test -z "$STRIP" && STRIP=:
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_RANLIB+:} false; then :
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6177 $as_echo "$RANLIB" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6217 $as_echo "$ac_ct_RANLIB" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6232 RANLIB=$ac_ct_RANLIB
6235 RANLIB="$ac_cv_prog_RANLIB"
6238 test -z "$RANLIB" && RANLIB=:
6245 # Determine commands to create old-style static archives.
6246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6247 old_postinstall_cmds='chmod 644 $oldlib'
6248 old_postuninstall_cmds=
6250 if test -n "$RANLIB"; then
6253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6264 lock_old_archive_extraction=yes ;;
6266 lock_old_archive_extraction=no ;;
6307 # If no C compiler was specified, use CC.
6310 # If no C compiler flags were specified, use CFLAGS.
6311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6313 # Allow CC to be a program name with arguments.
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6319 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6320 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6321 $as_echo_n "(cached) " >&6
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333 # Define system-specific variables.
6338 cygwin* | mingw* | pw32* | cegcc*)
6339 symcode='[ABCDGISTW]'
6342 if test "$host_cpu" = ia64; then
6343 symcode='[ABCDEGRST]'
6347 symcode='[BCDEGRST]'
6350 symcode='[BCDEGQRST]'
6361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 # If we're using GNU nm, then use its standard symbol codes.
6370 case `$NM -V 2>&1` in
6371 *GNU* | *'with BFD'*)
6372 symcode='[ABCDGIRSTW]' ;;
6375 # Transform an extracted symbol line into a proper C declaration.
6376 # Some systems (esp. on ia64) link data and code symbols differently,
6377 # so use this general approach.
6378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380 # Transform an extracted symbol line into symbol name and symbol address
6381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6382 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'"
6384 # Handle CRLF in mingw tool chain
6388 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6392 # Try without a prefix underscore, then with it.
6393 for ac_symprfx in "" "_"; do
6395 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6396 symxfrm="\\1 $ac_symprfx\\2 \\2"
6398 # Write the raw and C identifiers.
6399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6400 # Fake it for dumpbin and say T for any non-static function
6401 # and D for any global variable.
6402 # Also find C++ and __fastcall symbols from MSVC++,
6403 # which start with @ or ?.
6404 lt_cv_sys_global_symbol_pipe="$AWK '"\
6405 " {last_section=section; section=\$ 3};"\
6406 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6408 " \$ 0!~/External *\|/{next};"\
6409 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6410 " {if(hide[section]) next};"\
6411 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6412 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6413 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6414 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6415 " ' prfx=^$ac_symprfx"
6417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6419 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6421 # Check to see that the pipe works correctly.
6425 cat > conftest.$ac_ext <<_LT_EOF
6430 void nm_test_func(void);
6431 void nm_test_func(void){}
6435 int main(){nm_test_var='a';nm_test_func();return(0);}
6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439 (eval $ac_compile) 2>&5
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; then
6443 # Now try to grab the symbols.
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6446 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; } && test -s "$nlist"; then
6450 # Try sorting and uniquifying the output.
6451 if sort "$nlist" | uniq > "$nlist"T; then
6452 mv -f "$nlist"T "$nlist"
6457 # Make sure that we snagged all the symbols we need.
6458 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6459 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6460 cat <<_LT_EOF > conftest.$ac_ext
6461 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6462 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6463 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6464 relocations are performed -- see ld's documentation on pseudo-relocs. */
6465 # define LT_DLSYM_CONST
6466 #elif defined(__osf__)
6467 /* This system does not cope well with relocations in const data. */
6468 # define LT_DLSYM_CONST
6470 # define LT_DLSYM_CONST const
6478 # Now generate the symbol file.
6479 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6481 cat <<_LT_EOF >> conftest.$ac_ext
6483 /* The mapping between symbol names and symbols. */
6484 LT_DLSYM_CONST struct {
6488 lt__PROGRAM__LTX_preloaded_symbols[] =
6490 { "@PROGRAM@", (void *) 0 },
6492 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6493 cat <<\_LT_EOF >> conftest.$ac_ext
6497 /* This works around a problem in FreeBSD linker */
6498 #ifdef FREEBSD_WORKAROUND
6499 static const void *lt_preloaded_setup() {
6500 return lt__PROGRAM__LTX_preloaded_symbols;
6508 # Now try linking the two files.
6509 mv conftest.$ac_objext conftstm.$ac_objext
6510 lt_globsym_save_LIBS=$LIBS
6511 lt_globsym_save_CFLAGS=$CFLAGS
6512 LIBS="conftstm.$ac_objext"
6513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6515 (eval $ac_link) 2>&5
6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6521 LIBS=$lt_globsym_save_LIBS
6522 CFLAGS=$lt_globsym_save_CFLAGS
6524 echo "cannot find nm_test_func in $nlist" >&5
6527 echo "cannot find nm_test_var in $nlist" >&5
6530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6533 echo "$progname: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 rm -rf conftest* conftst*
6538 # Do not use the global_symbol_pipe unless it works.
6539 if test "$pipe_works" = yes; then
6542 lt_cv_sys_global_symbol_pipe=
6548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6549 lt_cv_sys_global_symbol_to_cdecl=
6551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6553 $as_echo "failed" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6556 $as_echo "ok" >&6; }
6559 # Response file support.
6560 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6561 nm_file_list_spec='@'
6562 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6563 nm_file_list_spec='@'
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6593 $as_echo_n "checking for sysroot... " >&6; }
6595 # Check whether --with-sysroot was given.
6596 if test "${with_sysroot+set}" = set; then :
6597 withval=$with_sysroot;
6604 case ${with_sysroot} in #(
6606 if test "$GCC" = yes; then
6607 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6611 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6617 $as_echo "${with_sysroot}" >&6; }
6618 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6623 $as_echo "${lt_sysroot:-no}" >&6; }
6629 # Check whether --enable-libtool-lock was given.
6630 if test "${enable_libtool_lock+set}" = set; then :
6631 enableval=$enable_libtool_lock;
6634 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6636 # Some flags need to be propagated to the compiler or linker for good
6640 # Find out which ABI we are using.
6641 echo 'int i;' > conftest.$ac_ext
6642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643 (eval $ac_compile) 2>&5
6645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646 test $ac_status = 0; }; then
6647 case `/usr/bin/file conftest.$ac_objext` in
6659 # Find out which ABI we are using.
6660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 if test "$lt_cv_prog_gnu_ld" = yes; then
6667 case `/usr/bin/file conftest.$ac_objext` in
6669 LD="${LD-ld} -melf32bsmip"
6672 LD="${LD-ld} -melf32bmipn32"
6675 LD="${LD-ld} -melf64bmip"
6679 case `/usr/bin/file conftest.$ac_objext` in
6695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6697 # Find out which ABI we are using.
6698 echo 'int i;' > conftest.$ac_ext
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700 (eval $ac_compile) 2>&5
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; }; then
6704 case `/usr/bin/file conftest.o` in
6707 x86_64-*kfreebsd*-gnu)
6708 LD="${LD-ld} -m elf_i386_fbsd"
6711 LD="${LD-ld} -m elf_i386"
6713 ppc64-*linux*|powerpc64-*linux*)
6714 LD="${LD-ld} -m elf32ppclinux"
6717 LD="${LD-ld} -m elf_s390"
6720 LD="${LD-ld} -m elf32_sparc"
6726 x86_64-*kfreebsd*-gnu)
6727 LD="${LD-ld} -m elf_x86_64_fbsd"
6730 LD="${LD-ld} -m elf_x86_64"
6732 ppc*-*linux*|powerpc*-*linux*)
6733 LD="${LD-ld} -m elf64ppc"
6735 s390*-*linux*|s390*-*tpf*)
6736 LD="${LD-ld} -m elf64_s390"
6739 LD="${LD-ld} -m elf64_sparc"
6749 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6750 SAVE_CFLAGS="$CFLAGS"
6751 CFLAGS="$CFLAGS -belf"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6753 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6754 if ${lt_cv_cc_needs_belf+:} false; then :
6755 $as_echo_n "(cached) " >&6
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 lt_cv_cc_needs_belf=yes
6777 lt_cv_cc_needs_belf=no
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6789 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6790 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6791 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6792 CFLAGS="$SAVE_CFLAGS"
6796 # Find out which ABI we are using.
6797 echo 'int i;' > conftest.$ac_ext
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799 (eval $ac_compile) 2>&5
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; }; then
6803 case `/usr/bin/file conftest.o` in
6805 case $lt_cv_prog_gnu_ld in
6809 LD="${LD-ld} -m elf_x86_64"
6812 LD="${LD-ld} -m elf64_sparc"
6815 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6816 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6821 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6833 need_locks="$enable_libtool_lock"
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}mt; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$MANIFEST_TOOL"; then
6844 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6864 if test -n "$MANIFEST_TOOL"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6866 $as_echo "$MANIFEST_TOOL" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6875 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6876 # Extract the first word of "mt", so it can be a program name with args.
6877 set dummy mt; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$ac_ct_MANIFEST_TOOL"; then
6884 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6904 if test -n "$ac_ct_MANIFEST_TOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6906 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6915 case $cross_compiling:$ac_tool_warned in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6921 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6924 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6927 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6929 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6930 if ${lt_cv_path_mainfest_tool+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 lt_cv_path_mainfest_tool=no
6934 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6935 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6936 cat conftest.err >&5
6937 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6938 lt_cv_path_mainfest_tool=yes
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6943 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6944 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6954 rhapsody* | darwin*)
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 if test -n "$DSYMUTIL"; then
6964 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6984 if test -n "$DSYMUTIL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6986 $as_echo "$DSYMUTIL" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6994 if test -z "$ac_cv_prog_DSYMUTIL"; then
6995 ac_ct_DSYMUTIL=$DSYMUTIL
6996 # Extract the first word of "dsymutil", so it can be a program name with args.
6997 set dummy dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 if test -n "$ac_ct_DSYMUTIL"; then
7004 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7024 if test -n "$ac_ct_DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7026 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 if test "x$ac_ct_DSYMUTIL" = x; then
7035 case $cross_compiling:$ac_tool_warned in
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7041 DSYMUTIL=$ac_ct_DSYMUTIL
7044 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_NMEDIT+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 if test -n "$NMEDIT"; then
7056 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 NMEDIT=$ac_cv_prog_NMEDIT
7076 if test -n "$NMEDIT"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7078 $as_echo "$NMEDIT" >&6; }
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7086 if test -z "$ac_cv_prog_NMEDIT"; then
7087 ac_ct_NMEDIT=$NMEDIT
7088 # Extract the first word of "nmedit", so it can be a program name with args.
7089 set dummy nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7093 $as_echo_n "(cached) " >&6
7095 if test -n "$ac_ct_NMEDIT"; then
7096 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7116 if test -n "$ac_ct_NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7118 $as_echo "$ac_ct_NMEDIT" >&6; }
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7124 if test "x$ac_ct_NMEDIT" = x; then
7127 case $cross_compiling:$ac_tool_warned in
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7133 NMEDIT=$ac_ct_NMEDIT
7136 NMEDIT="$ac_cv_prog_NMEDIT"
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_LIPO+:} false; then :
7145 $as_echo_n "(cached) " >&6
7147 if test -n "$LIPO"; then
7148 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 LIPO=$ac_cv_prog_LIPO
7168 if test -n "$LIPO"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7170 $as_echo "$LIPO" >&6; }
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 if test -z "$ac_cv_prog_LIPO"; then
7180 # Extract the first word of "lipo", so it can be a program name with args.
7181 set dummy lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$ac_ct_LIPO"; then
7188 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_LIPO="lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7208 if test -n "$ac_ct_LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7210 $as_echo "$ac_ct_LIPO" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7216 if test "x$ac_ct_LIPO" = x; then
7219 case $cross_compiling:$ac_tool_warned in
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7228 LIPO="$ac_cv_prog_LIPO"
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}otool; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_OTOOL+:} false; then :
7237 $as_echo_n "(cached) " >&6
7239 if test -n "$OTOOL"; then
7240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 OTOOL=$ac_cv_prog_OTOOL
7260 if test -n "$OTOOL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7262 $as_echo "$OTOOL" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7270 if test -z "$ac_cv_prog_OTOOL"; then
7272 # Extract the first word of "otool", so it can be a program name with args.
7273 set dummy otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$ac_ct_OTOOL"; then
7280 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_OTOOL="otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7300 if test -n "$ac_ct_OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7302 $as_echo "$ac_ct_OTOOL" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7308 if test "x$ac_ct_OTOOL" = x; then
7311 case $cross_compiling:$ac_tool_warned in
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7320 OTOOL="$ac_cv_prog_OTOOL"
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_OTOOL64+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$OTOOL64"; then
7332 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 OTOOL64=$ac_cv_prog_OTOOL64
7352 if test -n "$OTOOL64"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7354 $as_echo "$OTOOL64" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_OTOOL64"; then
7363 ac_ct_OTOOL64=$OTOOL64
7364 # Extract the first word of "otool64", so it can be a program name with args.
7365 set dummy otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$ac_ct_OTOOL64"; then
7372 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_OTOOL64="otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7392 if test -n "$ac_ct_OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7394 $as_echo "$ac_ct_OTOOL64" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_OTOOL64" = x; then
7403 case $cross_compiling:$ac_tool_warned in
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7409 OTOOL64=$ac_ct_OTOOL64
7412 OTOOL64="$ac_cv_prog_OTOOL64"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 lt_cv_apple_cc_single_mod=no
7447 if test -z "${LT_MULTI_MODULE}"; then
7448 # By default we will add the -single_module flag. You can override
7449 # by either setting the environment variable LT_MULTI_MODULE
7450 # non-empty at configure time, or by adding -multi_module to the
7452 rm -rf libconftest.dylib*
7453 echo "int foo(void){return 1;}" > conftest.c
7454 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455 -dynamiclib -Wl,-single_module conftest.c" >&5
7456 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7457 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7459 # If there is a non-empty error log, and "single_module"
7460 # appears in it, assume the flag caused a linker warning
7461 if test -s conftest.err && $GREP single_module conftest.err; then
7462 cat conftest.err >&5
7463 # Otherwise, if the output was created with a 0 exit code from
7464 # the compiler, it worked.
7465 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7466 lt_cv_apple_cc_single_mod=yes
7468 cat conftest.err >&5
7470 rm -rf libconftest.dylib*
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7475 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7478 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7479 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 lt_cv_ld_exported_symbols_list=no
7483 save_LDFLAGS=$LDFLAGS
7484 echo "_main" > conftest.sym
7485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 lt_cv_ld_exported_symbols_list=yes
7500 lt_cv_ld_exported_symbols_list=no
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LDFLAGS="$save_LDFLAGS"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7511 $as_echo_n "checking for -force_load linker flag... " >&6; }
7512 if ${lt_cv_ld_force_load+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 lt_cv_ld_force_load=no
7516 cat > conftest.c << _LT_EOF
7517 int forced_loaded() { return 2;}
7519 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7520 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7521 echo "$AR cru libconftest.a conftest.o" >&5
7522 $AR cru libconftest.a conftest.o 2>&5
7523 echo "$RANLIB libconftest.a" >&5
7524 $RANLIB libconftest.a 2>&5
7525 cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7531 if test -s conftest.err && $GREP force_load conftest.err; then
7532 cat conftest.err >&5
7533 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7534 lt_cv_ld_force_load=yes
7536 cat conftest.err >&5
7538 rm -f conftest.err libconftest.a conftest conftest.c
7539 rm -rf conftest.dSYM
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7543 $as_echo "$lt_cv_ld_force_load" >&6; }
7545 rhapsody* | darwin1.[012])
7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549 darwin*) # darwin 5.x on
7550 # if running on 10.5 or later, the deployment target defaults
7551 # to the OS version, if on x86, and 10.4, the deployment
7552 # target defaults to 10.4. Don't you love it?
7553 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7554 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7563 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7564 _lt_dar_single_mod='$single_module'
7566 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7567 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7569 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7571 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7572 _lt_dsymutil='~$DSYMUTIL $lib || :'
7580 ac_cpp='$CPP $CPPFLAGS'
7581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7586 # On Suns, sometimes $CPP names a directory.
7587 if test -n "$CPP" && test -d "$CPP"; then
7590 if test -z "$CPP"; then
7591 if ${ac_cv_prog_CPP+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 # Double quotes because CPP needs to be expanded
7595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7598 for ac_c_preproc_warn_flag in '' yes
7600 # Use a header file that comes with gcc, so configuring glibc
7601 # with a fresh cross-compiler works.
7602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7603 # <limits.h> exists even on freestanding compilers.
7604 # On the NeXT, cc -E runs the code through the compiler's parser,
7605 # not just through cpp. "Syntax error" is here to catch this case.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7609 # include <limits.h>
7611 # include <assert.h>
7615 if ac_fn_c_try_cpp "$LINENO"; then :
7618 # Broken: fails on valid input.
7621 rm -f conftest.err conftest.i conftest.$ac_ext
7623 # OK, works on sane cases. Now check whether nonexistent headers
7624 # can be detected and how.
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 #include <ac_nonexistent.h>
7629 if ac_fn_c_try_cpp "$LINENO"; then :
7630 # Broken: success on invalid input.
7633 # Passes both tests.
7637 rm -f conftest.err conftest.i conftest.$ac_ext
7640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7641 rm -f conftest.i conftest.err conftest.$ac_ext
7642 if $ac_preproc_ok; then :
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7655 $as_echo "$CPP" >&6; }
7657 for ac_c_preproc_warn_flag in '' yes
7659 # Use a header file that comes with gcc, so configuring glibc
7660 # with a fresh cross-compiler works.
7661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7662 # <limits.h> exists even on freestanding compilers.
7663 # On the NeXT, cc -E runs the code through the compiler's parser,
7664 # not just through cpp. "Syntax error" is here to catch this case.
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7668 # include <limits.h>
7670 # include <assert.h>
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7677 # Broken: fails on valid input.
7680 rm -f conftest.err conftest.i conftest.$ac_ext
7682 # OK, works on sane cases. Now check whether nonexistent headers
7683 # can be detected and how.
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 #include <ac_nonexistent.h>
7688 if ac_fn_c_try_cpp "$LINENO"; then :
7689 # Broken: success on invalid input.
7692 # Passes both tests.
7696 rm -f conftest.err conftest.i conftest.$ac_ext
7699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7700 rm -f conftest.i conftest.err conftest.$ac_ext
7701 if $ac_preproc_ok; then :
7704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7707 See \`config.log' for more details" "$LINENO" 5; }
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7718 $as_echo_n "checking for ANSI C header files... " >&6; }
7719 if ${ac_cv_header_stdc+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 ac_cv_header_stdc=yes
7740 ac_cv_header_stdc=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 if test $ac_cv_header_stdc = yes; then
7745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev/null 2>&1; then :
7755 ac_cv_header_stdc=no
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769 $EGREP "free" >/dev/null 2>&1; then :
7772 ac_cv_header_stdc=no
7778 if test $ac_cv_header_stdc = yes; then
7779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7780 if test "$cross_compiling" = yes; then :
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7787 #if ((' ' & 0x0FF) == 0x020)
7788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7791 # define ISLOWER(c) \
7792 (('a' <= (c) && (c) <= 'i') \
7793 || ('j' <= (c) && (c) <= 'r') \
7794 || ('s' <= (c) && (c) <= 'z'))
7795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7803 for (i = 0; i < 256; i++)
7804 if (XOR (islower (i), ISLOWER (i))
7805 || toupper (i) != TOUPPER (i))
7810 if ac_fn_c_try_run "$LINENO"; then :
7813 ac_cv_header_stdc=no
7815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816 conftest.$ac_objext conftest.beam conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7822 $as_echo "$ac_cv_header_stdc" >&6; }
7823 if test $ac_cv_header_stdc = yes; then
7825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7831 inttypes.h stdint.h unistd.h
7833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7837 cat >>confdefs.h <<_ACEOF
7838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846 for ac_header in dlfcn.h
7848 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7850 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7851 cat >>confdefs.h <<_ACEOF
7852 #define HAVE_DLFCN_H 1
7873 # Check whether --enable-shared was given.
7874 if test "${enable_shared+set}" = set; then :
7875 enableval=$enable_shared; p=${PACKAGE-default}
7877 yes) enable_shared=yes ;;
7878 no) enable_shared=no ;;
7881 # Look at the argument we got. We use all the common list separators.
7882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7883 for pkg in $enableval; do
7885 if test "X$pkg" = "X$p"; then
7906 # Check whether --with-pic was given.
7907 if test "${with_pic+set}" = set; then :
7908 withval=$with_pic; lt_p=${PACKAGE-default}
7910 yes|no) pic_mode=$withval ;;
7913 # Look at the argument we got. We use all the common list separators.
7914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7915 for lt_pkg in $withval; do
7917 if test "X$lt_pkg" = "X$lt_p"; then
7929 test -z "$pic_mode" && pic_mode=default
7937 # Check whether --enable-fast-install was given.
7938 if test "${enable_fast_install+set}" = set; then :
7939 enableval=$enable_fast_install; p=${PACKAGE-default}
7941 yes) enable_fast_install=yes ;;
7942 no) enable_fast_install=no ;;
7944 enable_fast_install=no
7945 # Look at the argument we got. We use all the common list separators.
7946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947 for pkg in $enableval; do
7949 if test "X$pkg" = "X$p"; then
7950 enable_fast_install=yes
7957 enable_fast_install=yes
7970 # This can be used to rebuild libtool when needed
7971 LIBTOOL_DEPS="$ltmain"
7973 # Always use our own libtool.
7974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8005 test -z "$LN_S" && LN_S="ln -s"
8020 if test -n "${ZSH_VERSION+set}" ; then
8021 setopt NO_GLOB_SUBST
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8025 $as_echo_n "checking for objdir... " >&6; }
8026 if ${lt_cv_objdir+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 rm -f .libs 2>/dev/null
8030 mkdir .libs 2>/dev/null
8031 if test -d .libs; then
8034 # MS-DOS does not allow filenames that begin with a dot.
8037 rmdir .libs 2>/dev/null
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8040 $as_echo "$lt_cv_objdir" >&6; }
8041 objdir=$lt_cv_objdir
8047 cat >>confdefs.h <<_ACEOF
8048 #define LT_OBJDIR "$lt_cv_objdir/"
8056 # AIX sometimes has problems with the GCC collect2 program. For some
8057 # reason, if we set the COLLECT_NAMES environment variable, the problems
8058 # vanish in a puff of smoke.
8059 if test "X${COLLECT_NAMES+set}" != Xset; then
8061 export COLLECT_NAMES
8068 can_build_shared=yes
8070 # All known linkers require a `.a' archive for static linking (except MSVC,
8071 # which needs '.lib').
8074 with_gnu_ld="$lt_cv_prog_gnu_ld"
8077 old_CFLAGS="$CFLAGS"
8079 # Set sane defaults for various variables
8080 test -z "$CC" && CC=cc
8081 test -z "$LTCC" && LTCC=$CC
8082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8083 test -z "$LD" && LD=ld
8084 test -z "$ac_objext" && ac_objext=o
8086 for cc_temp in $compiler""; do
8088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8094 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8097 # Only perform the check for file, if the check method requires it
8098 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8099 case $deplibs_check_method in
8101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8103 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8104 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105 $as_echo_n "(cached) " >&6
8109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8112 lt_save_MAGIC_CMD="$MAGIC_CMD"
8113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115 for ac_dir in $ac_dummy; do
8117 test -z "$ac_dir" && ac_dir=.
8118 if test -f $ac_dir/${ac_tool_prefix}file; then
8119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8120 if test -n "$file_magic_test_file"; then
8121 case $deplibs_check_method in
8123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126 $EGREP "$file_magic_regex" > /dev/null; then
8131 *** Warning: the command libtool uses to detect shared libraries,
8132 *** $file_magic_cmd, produces output that libtool cannot recognize.
8133 *** The result is that libtool may fail to recognize shared libraries
8134 *** as such. This will affect the creation of libtool libraries that
8135 *** depend on shared libraries, but programs linked with such libtool
8136 *** libraries will work regardless of this problem. Nevertheless, you
8137 *** may want to report the problem to your system manager and/or to
8138 *** bug-libtool@gnu.org
8148 MAGIC_CMD="$lt_save_MAGIC_CMD"
8153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154 if test -n "$MAGIC_CMD"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156 $as_echo "$MAGIC_CMD" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8166 if test -z "$lt_cv_path_MAGIC_CMD"; then
8167 if test -n "$ac_tool_prefix"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8169 $as_echo_n "checking for file... " >&6; }
8170 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8171 $as_echo_n "(cached) " >&6
8175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8178 lt_save_MAGIC_CMD="$MAGIC_CMD"
8179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181 for ac_dir in $ac_dummy; do
8183 test -z "$ac_dir" && ac_dir=.
8184 if test -f $ac_dir/file; then
8185 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8186 if test -n "$file_magic_test_file"; then
8187 case $deplibs_check_method in
8189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192 $EGREP "$file_magic_regex" > /dev/null; then
8197 *** Warning: the command libtool uses to detect shared libraries,
8198 *** $file_magic_cmd, produces output that libtool cannot recognize.
8199 *** The result is that libtool may fail to recognize shared libraries
8200 *** as such. This will affect the creation of libtool libraries that
8201 *** depend on shared libraries, but programs linked with such libtool
8202 *** libraries will work regardless of this problem. Nevertheless, you
8203 *** may want to report the problem to your system manager and/or to
8204 *** bug-libtool@gnu.org
8214 MAGIC_CMD="$lt_save_MAGIC_CMD"
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if test -n "$MAGIC_CMD"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8222 $as_echo "$MAGIC_CMD" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8238 # Use C for the default configuration in the libtool script
8242 ac_cpp='$CPP $CPPFLAGS'
8243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248 # Source file extension for C test sources.
8251 # Object file extension for compiled C test sources.
8255 # Code to be used in simple compile tests
8256 lt_simple_compile_test_code="int some_variable = 0;"
8258 # Code to be used in simple link tests
8259 lt_simple_link_test_code='int main(){return(0);}'
8267 # If no C compiler was specified, use CC.
8270 # If no C compiler flags were specified, use CFLAGS.
8271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8273 # Allow CC to be a program name with arguments.
8276 # Save the default compiler, since it gets overwritten when the other
8277 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8278 compiler_DEFAULT=$CC
8280 # save warnings/boilerplate of simple test code
8281 ac_outfile=conftest.$ac_objext
8282 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8283 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284 _lt_compiler_boilerplate=`cat conftest.err`
8287 ac_outfile=conftest.$ac_objext
8288 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8289 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290 _lt_linker_boilerplate=`cat conftest.err`
8294 if test -n "$compiler"; then
8296 lt_prog_compiler_no_builtin_flag=
8298 if test "$GCC" = yes; then
8299 case $cc_basename in
8301 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8303 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8307 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8308 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8309 $as_echo_n "(cached) " >&6
8311 lt_cv_prog_compiler_rtti_exceptions=no
8312 ac_outfile=conftest.$ac_objext
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314 lt_compiler_flag="-fno-rtti -fno-exceptions"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 # The option is referenced via a variable to avoid confusing sed.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>conftest.err)
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s "$ac_outfile"; then
8330 # The compiler can only warn and ignore the option if not recognized
8331 # So say no if there are warnings other than the usual output.
8332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_rtti_exceptions=yes
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8342 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8345 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8357 lt_prog_compiler_wl=
8358 lt_prog_compiler_pic=
8359 lt_prog_compiler_static=
8362 if test "$GCC" = yes; then
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_static='-static'
8368 # All AIX code is PIC.
8369 if test "$host_cpu" = ia64; then
8370 # AIX 5 now supports IA64 processor
8371 lt_prog_compiler_static='-Bstatic'
8378 # see comment about AmigaOS4 .so support
8379 lt_prog_compiler_pic='-fPIC'
8382 # FIXME: we need at least 68020 code to build shared libraries, but
8383 # adding the `-m68020' flag to GCC prevents building anything better,
8385 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8391 # PIC is the default for these OSes.
8394 mingw* | cygwin* | pw32* | os2* | cegcc*)
8395 # This hack is so that the source file can tell whether it is being
8396 # built for inclusion in a dll (and should export symbols for example).
8397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8398 # (--disable-auto-import) libraries
8399 lt_prog_compiler_pic='-DDLL_EXPORT'
8402 darwin* | rhapsody*)
8403 # PIC is the default on this platform
8404 # Common symbols not allowed in MH_DYLIB files
8405 lt_prog_compiler_pic='-fno-common'
8409 # PIC is the default for Haiku.
8410 # The "-static" flag exists, but is broken.
8411 lt_prog_compiler_static=
8415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8417 # sets the default TLS model and affects inlining.
8423 lt_prog_compiler_pic='-fPIC'
8429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8430 # Instead, we relocate shared libraries at runtime.
8434 # Just because we use GCC doesn't mean we suddenly get shared libraries
8435 # on systems that don't support them.
8436 lt_prog_compiler_can_build_shared=no
8441 # QNX uses GNU C++, but need to define -shared option too, otherwise
8443 lt_prog_compiler_pic='-fPIC -shared'
8447 if test -d /usr/nec; then
8448 lt_prog_compiler_pic=-Kconform_pic
8453 lt_prog_compiler_pic='-fPIC'
8457 case $cc_basename in
8458 nvcc*) # Cuda Compiler Driver 2.2
8459 lt_prog_compiler_wl='-Xlinker '
8460 if test -n "$lt_prog_compiler_pic"; then
8461 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8466 # PORTME Check for flag to pass linker flags through the system compiler.
8469 lt_prog_compiler_wl='-Wl,'
8470 if test "$host_cpu" = ia64; then
8471 # AIX 5 now supports IA64 processor
8472 lt_prog_compiler_static='-Bstatic'
8474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8478 mingw* | cygwin* | pw32* | os2* | cegcc*)
8479 # This hack is so that the source file can tell whether it is being
8480 # built for inclusion in a dll (and should export symbols for example).
8481 lt_prog_compiler_pic='-DDLL_EXPORT'
8484 hpux9* | hpux10* | hpux11*)
8485 lt_prog_compiler_wl='-Wl,'
8486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8493 lt_prog_compiler_pic='+Z'
8496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8497 lt_prog_compiler_static='${wl}-a ${wl}archive'
8500 irix5* | irix6* | nonstopux*)
8501 lt_prog_compiler_wl='-Wl,'
8502 # PIC (with -KPIC) is the default.
8503 lt_prog_compiler_static='-non_shared'
8506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8507 case $cc_basename in
8508 # old Intel for x86_64 which still supported -KPIC.
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-static'
8514 # icc used to be incompatible with GCC.
8515 # ICC 10 doesn't accept -KPIC any more.
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-fPIC'
8519 lt_prog_compiler_static='-static'
8521 # Lahey Fortran 8.1.
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='--shared'
8525 lt_prog_compiler_static='--static'
8528 # NAG Fortran compiler
8529 lt_prog_compiler_wl='-Wl,-Wl,,'
8530 lt_prog_compiler_pic='-PIC'
8531 lt_prog_compiler_static='-Bstatic'
8533 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8534 # Portland Group compilers (*not* the Pentium gcc compiler,
8535 # which looks to be a dead project)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-fpic'
8538 lt_prog_compiler_static='-Bstatic'
8541 lt_prog_compiler_wl='-Wl,'
8542 # All Alpha code is PIC.
8543 lt_prog_compiler_static='-non_shared'
8545 xl* | bgxl* | bgf* | mpixl*)
8546 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-qpic'
8549 lt_prog_compiler_static='-qstaticlink'
8552 case `$CC -V 2>&1 | sed 5q` in
8553 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8554 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8555 lt_prog_compiler_pic='-KPIC'
8556 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl=''
8559 *Sun\ F* | *Sun*Fortran*)
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 lt_prog_compiler_wl='-Qoption ld '
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-Bstatic'
8568 lt_prog_compiler_wl='-Wl,'
8570 *Intel*\ [CF]*Compiler*)
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_pic='-fPIC'
8573 lt_prog_compiler_static='-static'
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-fpic'
8578 lt_prog_compiler_static='-Bstatic'
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-Bstatic'
8591 # QNX uses GNU C++, but need to define -shared option too, otherwise
8593 lt_prog_compiler_pic='-fPIC -shared'
8596 osf3* | osf4* | osf5*)
8597 lt_prog_compiler_wl='-Wl,'
8598 # All OSF/1 code is PIC.
8599 lt_prog_compiler_static='-non_shared'
8603 lt_prog_compiler_static='-non_shared'
8607 lt_prog_compiler_pic='-KPIC'
8608 lt_prog_compiler_static='-Bstatic'
8609 case $cc_basename in
8610 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8611 lt_prog_compiler_wl='-Qoption ld ';;
8613 lt_prog_compiler_wl='-Wl,';;
8618 lt_prog_compiler_wl='-Qoption ld '
8619 lt_prog_compiler_pic='-PIC'
8620 lt_prog_compiler_static='-Bstatic'
8623 sysv4 | sysv4.2uw2* | sysv4.3*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8630 if test -d /usr/nec ;then
8631 lt_prog_compiler_pic='-Kconform_pic'
8632 lt_prog_compiler_static='-Bstatic'
8636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8644 lt_prog_compiler_can_build_shared=no
8648 lt_prog_compiler_pic='-pic'
8649 lt_prog_compiler_static='-Bstatic'
8653 lt_prog_compiler_can_build_shared=no
8659 # For platforms which do not support PIC, -DPIC is meaningless:
8661 lt_prog_compiler_pic=
8664 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8669 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8670 if ${lt_cv_prog_compiler_pic+:} false; then :
8671 $as_echo_n "(cached) " >&6
8673 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8676 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8677 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8680 # Check to make sure the PIC flag actually works.
8682 if test -n "$lt_prog_compiler_pic"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8685 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 lt_cv_prog_compiler_pic_works=no
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 # The option is referenced via a variable to avoid confusing sed.
8697 lt_compile=`echo "$ac_compile" | $SED \
8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700 -e 's:$: $lt_compiler_flag:'`
8701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8702 (eval "$lt_compile" 2>conftest.err)
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 if (exit $ac_status) && test -s "$ac_outfile"; then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings other than the usual output.
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_pic_works=yes
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8719 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8721 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8722 case $lt_prog_compiler_pic in
8724 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8727 lt_prog_compiler_pic=
8728 lt_prog_compiler_can_build_shared=no
8744 # Check to make sure the static flag actually works.
8746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8748 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8749 if ${lt_cv_prog_compiler_static_works+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 lt_cv_prog_compiler_static_works=no
8753 save_LDFLAGS="$LDFLAGS"
8754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8757 # The linker can only warn and ignore the option if not recognized
8758 # So say no if there are warnings
8759 if test -s conftest.err; then
8760 # Append any errors to the config.log.
8761 cat conftest.err 1>&5
8762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_static_works=yes
8768 lt_cv_prog_compiler_static_works=yes
8772 LDFLAGS="$save_LDFLAGS"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8776 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8778 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8781 lt_prog_compiler_static=
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8791 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8792 if ${lt_cv_prog_compiler_c_o+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 lt_cv_prog_compiler_c_o=no
8796 $RM -r conftest 2>/dev/null
8800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8802 lt_compiler_flag="-o out/conftest2.$ac_objext"
8803 # Insert the option either (1) after the last *FLAGS variable, or
8804 # (2) before a word containing "conftest.", or (3) at the end.
8805 # Note that $ac_compile itself does not contain backslashes and begins
8806 # with a dollar sign (not a hyphen), so the echo should work correctly.
8807 lt_compile=`echo "$ac_compile" | $SED \
8808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810 -e 's:$: $lt_compiler_flag:'`
8811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8812 (eval "$lt_compile" 2>out/conftest.err)
8814 cat out/conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8818 # The compiler can only warn and ignore the option if not recognized
8819 # So say no if there are warnings
8820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8823 lt_cv_prog_compiler_c_o=yes
8828 # SGI C++ compiler will create directory out/ii_files/ for
8829 # template instantiation
8830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8831 $RM out/* && rmdir out
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8838 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8847 if ${lt_cv_prog_compiler_c_o+:} false; then :
8848 $as_echo_n "(cached) " >&6
8850 lt_cv_prog_compiler_c_o=no
8851 $RM -r conftest 2>/dev/null
8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8857 lt_compiler_flag="-o out/conftest2.$ac_objext"
8858 # Insert the option either (1) after the last *FLAGS variable, or
8859 # (2) before a word containing "conftest.", or (3) at the end.
8860 # Note that $ac_compile itself does not contain backslashes and begins
8861 # with a dollar sign (not a hyphen), so the echo should work correctly.
8862 lt_compile=`echo "$ac_compile" | $SED \
8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865 -e 's:$: $lt_compiler_flag:'`
8866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8867 (eval "$lt_compile" 2>out/conftest.err)
8869 cat out/conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8873 # The compiler can only warn and ignore the option if not recognized
8874 # So say no if there are warnings
8875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8878 lt_cv_prog_compiler_c_o=yes
8883 # SGI C++ compiler will create directory out/ii_files/ for
8884 # template instantiation
8885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8886 $RM out/* && rmdir out
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898 hard_links="nottested"
8899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8900 # do not overwrite the value of need_locks provided by the user
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8902 $as_echo_n "checking if we can lock with hard links... " >&6; }
8905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8907 ln conftest.a conftest.b 2>&5 || hard_links=no
8908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8910 $as_echo "$hard_links" >&6; }
8911 if test "$hard_links" = no; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8913 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8929 allow_undefined_flag=
8930 always_export_symbols=no
8932 archive_expsym_cmds=
8933 compiler_needs_object=no
8934 enable_shared_with_static_runtimes=no
8935 export_dynamic_flag_spec=
8936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937 hardcode_automatic=no
8939 hardcode_direct_absolute=no
8940 hardcode_libdir_flag_spec=
8941 hardcode_libdir_separator=
8943 hardcode_shlibpath_var=unsupported
8945 link_all_deplibs=unknown
8948 old_archive_from_new_cmds=
8949 old_archive_from_expsyms_cmds=
8950 thread_safe_flag_spec=
8951 whole_archive_flag_spec=
8952 # include_expsyms should be a list of space-separated symbols to be *always*
8953 # included in the symbol list
8955 # exclude_expsyms can be an extended regexp of symbols to exclude
8956 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8957 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8958 # as well as any symbol that contains `d'.
8959 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8960 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8961 # platforms (ab)use it in PIC code, but their linkers get confused if
8962 # the symbol is explicitly referenced. Since portable code cannot
8963 # rely on this symbol name, it's probably fine to never include it in
8964 # preloaded symbol tables.
8965 # Exclude shared library initialization/finalization symbols.
8966 extract_expsyms_cmds=
8969 cygwin* | mingw* | pw32* | cegcc*)
8970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8971 # When not using gcc, we currently assume that we are using
8972 # Microsoft Visual C++.
8973 if test "$GCC" != yes; then
8978 # we just hope/assume this is gcc and not c89 (= MSVC++)
8984 linux* | k*bsd*-gnu | gnu*)
8991 # On some targets, GNU ld is compatible enough with the native linker
8992 # that we're better off using the native interface for both.
8993 lt_use_gnu_ld_interface=no
8994 if test "$with_gnu_ld" = yes; then
8997 # The AIX port of GNU ld has always aspired to compatibility
8998 # with the native linker. However, as the warning in the GNU ld
8999 # block says, versions before 2.19.5* couldn't really create working
9000 # shared libraries, regardless of the interface used.
9001 case `$LD -v 2>&1` in
9002 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9003 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9004 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9006 lt_use_gnu_ld_interface=yes
9011 lt_use_gnu_ld_interface=yes
9016 if test "$lt_use_gnu_ld_interface" = yes; then
9017 # If archive_cmds runs LD, not CC, wlarc should be empty
9020 # Set some defaults for GNU ld with shared library support. These
9021 # are reset later if shared libraries are not supported. Putting them
9022 # here allows them to be overridden if necessary.
9023 runpath_var=LD_RUN_PATH
9024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025 export_dynamic_flag_spec='${wl}--export-dynamic'
9026 # ancient GNU ld didn't support --whole-archive et. al.
9027 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9028 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9030 whole_archive_flag_spec=
9032 supports_anon_versioning=no
9033 case `$LD -v 2>&1` in
9034 *GNU\ gold*) supports_anon_versioning=yes ;;
9035 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9036 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9037 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9038 *\ 2.11.*) ;; # other 2.11 versions
9039 *) supports_anon_versioning=yes ;;
9042 # See if GNU ld supports shared libraries.
9045 # On AIX/PPC, the GNU linker is very broken
9046 if test "$host_cpu" != ia64; then
9050 *** Warning: the GNU linker, at least up to release 2.19, is reported
9051 *** to be unable to reliably create shared libraries on AIX.
9052 *** Therefore, libtool is disabling shared libraries support. If you
9053 *** really care for shared libraries, you may want to install binutils
9054 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9055 *** You will then need to restart the configuration process.
9064 # see comment about AmigaOS4 .so support
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds=''
9069 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)'
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 hardcode_minus_L=yes
9077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9078 allow_undefined_flag=unsupported
9079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9080 # support --undefined. This deserves some investigation. FIXME
9081 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 cygwin* | mingw* | pw32* | cegcc*)
9088 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9089 # as there is no search path for DLLs.
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 export_dynamic_flag_spec='${wl}--export-all-symbols'
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=no
9094 enable_shared_with_static_runtimes=yes
9095 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'
9096 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9098 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9100 # If the export-symbols file already is a .def file (1st line
9101 # is EXPORTS), use it as is; otherwise, prepend...
9102 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9103 cp $export_symbols $output_objdir/$soname.def;
9105 echo EXPORTS > $output_objdir/$soname.def;
9106 cat $export_symbols >> $output_objdir/$soname.def;
9108 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 link_all_deplibs=yes
9121 hardcode_shlibpath_var=no
9122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9123 export_dynamic_flag_spec='${wl}-E'
9124 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9125 # Instead, shared libraries are loaded at an image base (0x10000000 by
9126 # default) and relocated if they conflict, which is a slow very memory
9127 # consuming and fragmenting process. To avoid this, we pick a random,
9128 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9129 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9131 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'
9134 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9136 if test "$host_os" = linux-dietlibc; then
9137 case $cc_basename in
9138 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9141 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9142 && test "$tmp_diet" = no
9144 tmp_addflag=' $pic_flag'
9145 tmp_sharedflag='-shared'
9146 case $cc_basename,$host_cpu in
9147 pgcc*) # Portland Group C compiler
9148 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'
9149 tmp_addflag=' $pic_flag'
9151 pgf77* | pgf90* | pgf95* | pgfortran*)
9152 # Portland Group f77 and f90 compilers
9153 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'
9154 tmp_addflag=' $pic_flag -Mnomain' ;;
9155 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9156 tmp_addflag=' -i_dynamic' ;;
9157 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9158 tmp_addflag=' -i_dynamic -nofor_main' ;;
9159 ifc* | ifort*) # Intel Fortran compiler
9160 tmp_addflag=' -nofor_main' ;;
9161 lf95*) # Lahey Fortran 8.1
9162 whole_archive_flag_spec=
9163 tmp_sharedflag='--shared' ;;
9164 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9165 tmp_sharedflag='-qmkshrobj'
9167 nvcc*) # Cuda Compiler Driver 2.2
9168 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'
9169 compiler_needs_object=yes
9172 case `$CC -V 2>&1 | sed 5q` in
9173 *Sun\ C*) # Sun C 5.9
9174 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'
9175 compiler_needs_object=yes
9176 tmp_sharedflag='-G' ;;
9177 *Sun\ F*) # Sun Fortran 8.3
9178 tmp_sharedflag='-G' ;;
9180 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 if test "x$supports_anon_versioning" = xyes; then
9183 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9185 echo "local: *; };" >> $output_objdir/$libname.ver~
9186 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9189 case $cc_basename in
9190 xlf* | bgf* | bgxlf* | mpixlf*)
9191 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9192 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9195 if test "x$supports_anon_versioning" = xyes; then
9196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9208 netbsd* | netbsdelf*-gnu)
9209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9210 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9224 *** create shared libraries on Solaris systems. Therefore, libtool
9225 *** is disabling shared libraries support. We urge you to upgrade GNU
9226 *** binutils to release 2.9.1 or newer. Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9231 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9240 case `$LD -v 2>&1` in
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9246 *** reliably create shared libraries on SCO systems. Therefore, libtool
9247 *** is disabling shared libraries support. We urge you to upgrade GNU
9248 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9249 *** your PATH or compiler configuration so that the native linker is
9250 *** used, and then restart.
9255 # For security reasons, it is highly recommended that you always
9256 # use absolute paths for naming shared libraries, and exclude the
9257 # DT_RUNPATH tag from executables and libraries. But doing so
9258 # requires that you compile everything twice, which is a pain.
9259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9271 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_shlibpath_var=no
9278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9287 if test "$ld_shlibs" = no; then
9289 hardcode_libdir_flag_spec=
9290 export_dynamic_flag_spec=
9291 whole_archive_flag_spec=
9294 # PORTME fill in a description of your system's linker (not GNU ld)
9297 allow_undefined_flag=unsupported
9298 always_export_symbols=yes
9299 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'
9300 # Note: this linker hardcodes the directories in LIBPATH if there
9301 # are no directories specified by -L.
9302 hardcode_minus_L=yes
9303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9304 # Neither direct hardcoding nor static linking is supported with a
9306 hardcode_direct=unsupported
9311 if test "$host_cpu" = ia64; then
9312 # On IA64, the linker does run time linking by default, so we don't
9313 # have to do anything special.
9314 aix_use_runtimelinking=no
9315 exp_sym_flag='-Bexport'
9318 # If we're using GNU nm, then we don't want the "-C" option.
9319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9320 # Also, AIX nm treats weak defined symbols like other global
9321 # defined symbols, whereas GNU nm marks them as "W".
9322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323 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'
9325 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'
9327 aix_use_runtimelinking=no
9329 # Test if we are trying to use run time linking or normal
9330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331 # need to do runtime linking.
9332 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333 for ld_flag in $LDFLAGS; do
9334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9335 aix_use_runtimelinking=yes
9342 exp_sym_flag='-bexport'
9343 no_entry_flag='-bnoentry'
9346 # When large executables or shared objects are built, AIX ld can
9347 # have problems creating the table of contents. If linking a library
9348 # or program results in "error TOC overflow" add -mminimal-toc to
9349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9354 hardcode_direct_absolute=yes
9355 hardcode_libdir_separator=':'
9356 link_all_deplibs=yes
9357 file_list_spec='${wl}-f,'
9359 if test "$GCC" = yes; then
9360 case $host_os in aix4.[012]|aix4.[012].*)
9361 # We only want to do this on AIX 4.2 and lower, the check
9362 # below for broken collect2 doesn't work under 4.3+
9363 collect2name=`${CC} -print-prog-name=collect2`
9364 if test -f "$collect2name" &&
9365 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9367 # We have reworked collect2
9370 # We have old collect2
9371 hardcode_direct=unsupported
9372 # It fails to find uninstalled libraries when the uninstalled
9373 # path is not listed in the libpath. Setting hardcode_minus_L
9374 # to unsupported forces relinking
9375 hardcode_minus_L=yes
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_libdir_separator=
9381 shared_flag='-shared'
9382 if test "$aix_use_runtimelinking" = yes; then
9383 shared_flag="$shared_flag "'${wl}-G'
9388 if test "$host_cpu" = ia64; then
9389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9390 # chokes on -Wl,-G. The following line is correct:
9393 if test "$aix_use_runtimelinking" = yes; then
9394 shared_flag='${wl}-G'
9396 shared_flag='${wl}-bM:SRE'
9401 export_dynamic_flag_spec='${wl}-bexpall'
9402 # It seems that -bexpall does not export symbols beginning with
9403 # underscore (_), so it is better to generate a list of symbols to export.
9404 always_export_symbols=yes
9405 if test "$aix_use_runtimelinking" = yes; then
9406 # Warning - without using the other runtime loading flags (-brtl),
9407 # -berok will link without error, but may produce a broken library.
9408 allow_undefined_flag='-berok'
9409 # Determine the default libpath from the value encoded in an
9411 if test "${lt_cv_aix_libpath+set}" = set; then
9412 aix_libpath=$lt_cv_aix_libpath
9414 if ${lt_cv_aix_libpath_+:} false; then :
9415 $as_echo_n "(cached) " >&6
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9428 if ac_fn_c_try_link "$LINENO"; then :
9430 lt_aix_libpath_sed='
9431 /Import File Strings/,/^$/ {
9433 s/^0 *\([^ ]*\) *$/\1/
9437 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9438 # Check for a 64-bit object if we didn't find anything.
9439 if test -z "$lt_cv_aix_libpath_"; then
9440 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test -z "$lt_cv_aix_libpath_"; then
9446 lt_cv_aix_libpath_="/usr/lib:/lib"
9451 aix_libpath=$lt_cv_aix_libpath_
9454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9455 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"
9457 if test "$host_cpu" = ia64; then
9458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9459 allow_undefined_flag="-z nodefs"
9460 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"
9462 # Determine the default libpath from the value encoded in an
9464 if test "${lt_cv_aix_libpath+set}" = set; then
9465 aix_libpath=$lt_cv_aix_libpath
9467 if ${lt_cv_aix_libpath_+:} false; then :
9468 $as_echo_n "(cached) " >&6
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9481 if ac_fn_c_try_link "$LINENO"; then :
9483 lt_aix_libpath_sed='
9484 /Import File Strings/,/^$/ {
9486 s/^0 *\([^ ]*\) *$/\1/
9490 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491 # Check for a 64-bit object if we didn't find anything.
9492 if test -z "$lt_cv_aix_libpath_"; then
9493 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 if test -z "$lt_cv_aix_libpath_"; then
9499 lt_cv_aix_libpath_="/usr/lib:/lib"
9504 aix_libpath=$lt_cv_aix_libpath_
9507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9508 # Warning - without using the other run time loading flags,
9509 # -berok will link without error, but may produce a broken library.
9510 no_undefined_flag=' ${wl}-bernotok'
9511 allow_undefined_flag=' ${wl}-berok'
9512 if test "$with_gnu_ld" = yes; then
9513 # We only use this code for GNU lds that support --whole-archive.
9514 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9516 # Exported symbols can be pulled into shared objects from archives
9517 whole_archive_flag_spec='$convenience'
9519 archive_cmds_need_lc=yes
9520 # This is similar to how AIX traditionally builds its shared libraries.
9521 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'
9529 # see comment about AmigaOS4 .so support
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds=''
9534 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)'
9535 hardcode_libdir_flag_spec='-L$libdir'
9536 hardcode_minus_L=yes
9542 export_dynamic_flag_spec=-rdynamic
9545 cygwin* | mingw* | pw32* | cegcc*)
9546 # When not using gcc, we currently assume that we are using
9547 # Microsoft Visual C++.
9548 # hardcode_libdir_flag_spec is actually meaningless, as there is
9549 # no search path for DLLs.
9550 case $cc_basename in
9553 hardcode_libdir_flag_spec=' '
9554 allow_undefined_flag=unsupported
9555 always_export_symbols=yes
9557 # Tell ltmain to make .lib files, not .a files.
9559 # Tell ltmain to make .dll files, not .so files.
9561 # FIXME: Setting linknames here is a bad hack.
9562 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9563 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9564 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9566 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9568 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9570 # The linker will not automatically build a static lib if we build a DLL.
9571 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9572 enable_shared_with_static_runtimes=yes
9573 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9576 old_postinstall_cmds='chmod 644 $oldlib'
9577 postlink_cmds='lt_outputfile="@OUTPUT@"~
9578 lt_tool_outputfile="@TOOL_OUTPUT@"~
9579 case $lt_outputfile in
9582 lt_outputfile="$lt_outputfile.exe"
9583 lt_tool_outputfile="$lt_tool_outputfile.exe"
9586 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9587 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9588 $RM "$lt_outputfile.manifest";
9592 # Assume MSVC wrapper
9593 hardcode_libdir_flag_spec=' '
9594 allow_undefined_flag=unsupported
9595 # Tell ltmain to make .lib files, not .a files.
9597 # Tell ltmain to make .dll files, not .so files.
9599 # FIXME: Setting linknames here is a bad hack.
9600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9601 # The linker will automatically build a .lib file if we build a DLL.
9602 old_archive_from_new_cmds='true'
9603 # FIXME: Should let the user specify the lib program.
9604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9605 enable_shared_with_static_runtimes=yes
9610 darwin* | rhapsody*)
9613 archive_cmds_need_lc=no
9615 hardcode_automatic=yes
9616 hardcode_shlibpath_var=unsupported
9617 if test "$lt_cv_ld_force_load" = "yes"; then
9618 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\"`'
9621 whole_archive_flag_spec=''
9623 link_all_deplibs=yes
9624 allow_undefined_flag="$_lt_dar_allow_undefined"
9625 case $cc_basename in
9626 ifort*) _lt_dar_can_shared=yes ;;
9627 *) _lt_dar_can_shared=$GCC ;;
9629 if test "$_lt_dar_can_shared" = "yes"; then
9630 output_verbose_link_cmd=func_echo_all
9631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9633 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}"
9634 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}"
9643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_shlibpath_var=no
9648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9649 # support. Future versions do this automatically, but an explicit c++rt0.o
9650 # does not break anything, and helps significantly (at the cost of a little
9653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9654 hardcode_libdir_flag_spec='-R$libdir'
9656 hardcode_shlibpath_var=no
9659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9668 freebsd* | dragonfly*)
9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 hardcode_libdir_flag_spec='-R$libdir'
9672 hardcode_shlibpath_var=no
9676 if test "$GCC" = yes; then
9677 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'
9679 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'
9681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9682 hardcode_libdir_separator=:
9685 # hardcode_minus_L: Not really in the search PATH,
9686 # but as the default location of the library.
9687 hardcode_minus_L=yes
9688 export_dynamic_flag_spec='${wl}-E'
9692 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9693 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9697 if test "$with_gnu_ld" = no; then
9698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9699 hardcode_libdir_separator=:
9701 hardcode_direct_absolute=yes
9702 export_dynamic_flag_spec='${wl}-E'
9703 # hardcode_minus_L: Not really in the search PATH,
9704 # but as the default location of the library.
9705 hardcode_minus_L=yes
9710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9732 # Older versions of the 11.00 compiler do not understand -b yet
9733 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9735 $as_echo_n "checking if $CC understands -b... " >&6; }
9736 if ${lt_cv_prog_compiler__b+:} false; then :
9737 $as_echo_n "(cached) " >&6
9739 lt_cv_prog_compiler__b=no
9740 save_LDFLAGS="$LDFLAGS"
9741 LDFLAGS="$LDFLAGS -b"
9742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9744 # The linker can only warn and ignore the option if not recognized
9745 # So say no if there are warnings
9746 if test -s conftest.err; then
9747 # Append any errors to the config.log.
9748 cat conftest.err 1>&5
9749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751 if diff conftest.exp conftest.er2 >/dev/null; then
9752 lt_cv_prog_compiler__b=yes
9755 lt_cv_prog_compiler__b=yes
9759 LDFLAGS="$save_LDFLAGS"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9763 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9765 if test x"$lt_cv_prog_compiler__b" = xyes; then
9766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 if test "$with_gnu_ld" = no; then
9775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9776 hardcode_libdir_separator=:
9781 hardcode_shlibpath_var=no
9785 hardcode_direct_absolute=yes
9786 export_dynamic_flag_spec='${wl}-E'
9788 # hardcode_minus_L: Not really in the search PATH,
9789 # but as the default location of the library.
9790 hardcode_minus_L=yes
9796 irix5* | irix6* | nonstopux*)
9797 if test "$GCC" = yes; then
9798 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'
9799 # Try to use the -exported_symbol ld option, if it does not
9800 # work, assume that -exports_file does not work either and
9801 # implicitly export all symbols.
9802 # This should be the same for all languages, so no per-tag cache variable.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9804 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9805 if ${lt_cv_irix_exported_symbol+:} false; then :
9806 $as_echo_n "(cached) " >&6
9808 save_LDFLAGS="$LDFLAGS"
9809 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int foo (void) { return 0; }
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 lt_cv_irix_exported_symbol=yes
9817 lt_cv_irix_exported_symbol=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LDFLAGS="$save_LDFLAGS"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9824 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9825 if test "$lt_cv_irix_exported_symbol" = yes; then
9826 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'
9829 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'
9830 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'
9832 archive_cmds_need_lc='no'
9833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9834 hardcode_libdir_separator=:
9836 link_all_deplibs=yes
9839 netbsd* | netbsdelf*-gnu)
9840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9845 hardcode_libdir_flag_spec='-R$libdir'
9847 hardcode_shlibpath_var=no
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9854 hardcode_libdir_separator=:
9855 hardcode_shlibpath_var=no
9862 if test -f /usr/libexec/ld.so; then
9864 hardcode_shlibpath_var=no
9865 hardcode_direct_absolute=yes
9866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9870 export_dynamic_flag_spec='${wl}-E'
9873 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_libdir_flag_spec='-R$libdir'
9878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9889 hardcode_libdir_flag_spec='-L$libdir'
9890 hardcode_minus_L=yes
9891 allow_undefined_flag=unsupported
9892 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'
9893 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9897 if test "$GCC" = yes; then
9898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9899 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'
9901 allow_undefined_flag=' -expect_unresolved \*'
9902 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'
9904 archive_cmds_need_lc='no'
9905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator=:
9909 osf4* | osf5*) # as osf3* with the addition of -msym flag
9910 if test "$GCC" = yes; then
9911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9912 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'
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 allow_undefined_flag=' -expect_unresolved \*'
9916 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'
9917 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~
9918 $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'
9920 # Both c and cxx compiler support -rpath directly
9921 hardcode_libdir_flag_spec='-rpath $libdir'
9923 archive_cmds_need_lc='no'
9924 hardcode_libdir_separator=:
9928 no_undefined_flag=' -z defs'
9929 if test "$GCC" = yes; then
9931 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933 $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'
9935 case `$CC -V 2>&1` in
9938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9944 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950 hardcode_libdir_flag_spec='-R$libdir'
9951 hardcode_shlibpath_var=no
9953 solaris2.[0-5] | solaris2.[0-5].*) ;;
9955 # The compiler driver will combine and reorder linker options,
9956 # but understands `-z linker_flag'. GCC discards it without `$wl',
9957 # but is careful enough not to reorder.
9958 # Supported since Solaris 2.6 (maybe 2.5.1?)
9959 if test "$GCC" = yes; then
9960 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9966 link_all_deplibs=yes
9970 if test "x$host_vendor" = xsequent; then
9971 # Use $CC to link under sequent, because it throws in some extra .o
9972 # files that make .init and .fini sections work.
9973 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_libdir_flag_spec='-L$libdir'
9979 hardcode_minus_L=yes
9980 hardcode_shlibpath_var=no
9984 case $host_vendor in
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_direct=yes # is this really true???
9990 ## LD is ld it makes a PLAMLIB
9991 ## CC just makes a GrossModule.
9992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9993 reload_cmds='$CC -r -o $output$reload_objs'
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10001 runpath_var='LD_RUN_PATH'
10002 hardcode_shlibpath_var=no
10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_shlibpath_var=no
10008 export_dynamic_flag_spec='-Bexport'
10012 if test -d /usr/nec; then
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_shlibpath_var=no
10015 runpath_var=LD_RUN_PATH
10016 hardcode_runpath_var=yes
10021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10022 no_undefined_flag='${wl}-z,text'
10023 archive_cmds_need_lc=no
10024 hardcode_shlibpath_var=no
10025 runpath_var='LD_RUN_PATH'
10027 if test "$GCC" = yes; then
10028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 sysv5* | sco3.2v5* | sco5v6*)
10037 # Note: We can NOT use -z defs as we might desire, because we do not
10038 # link with -lc, and that would cause any symbols used from libc to
10039 # always be unresolved, which means just about no library would
10040 # ever link correctly. If we're not using GNU ld we use -z text
10041 # though, which does catch some bad symbols but isn't as heavy-handed
10043 no_undefined_flag='${wl}-z,text'
10044 allow_undefined_flag='${wl}-z,nodefs'
10045 archive_cmds_need_lc=no
10046 hardcode_shlibpath_var=no
10047 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10048 hardcode_libdir_separator=':'
10049 link_all_deplibs=yes
10050 export_dynamic_flag_spec='${wl}-Bexport'
10051 runpath_var='LD_RUN_PATH'
10053 if test "$GCC" = yes; then
10054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_shlibpath_var=no
10073 if test x$host_vendor = xsni; then
10075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10076 export_dynamic_flag_spec='${wl}-Blargedynsym'
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10083 $as_echo "$ld_shlibs" >&6; }
10084 test "$ld_shlibs" = no && can_build_shared=no
10086 with_gnu_ld=$with_gnu_ld
10103 # Do we need to explicitly link libc?
10105 case "x$archive_cmds_need_lc" in
10107 # Assume -lc should be added
10108 archive_cmds_need_lc=yes
10110 if test "$enable_shared" = yes && test "$GCC" = yes; then
10111 case $archive_cmds in
10113 # FIXME: we may have to deal with multi-command sequences.
10116 # Test whether the compiler implicitly links with -lc since on some
10117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10118 # to ld, don't add -lc before -lgcc.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10120 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10121 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10122 $as_echo_n "(cached) " >&6
10125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10128 (eval $ac_compile) 2>&5
10130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131 test $ac_status = 0; } 2>conftest.err; then
10134 libobjs=conftest.$ac_objext
10136 wl=$lt_prog_compiler_wl
10137 pic_flag=$lt_prog_compiler_pic
10143 lt_save_allow_undefined_flag=$allow_undefined_flag
10144 allow_undefined_flag=
10145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10146 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10149 test $ac_status = 0; }
10151 lt_cv_archive_cmds_need_lc=no
10153 lt_cv_archive_cmds_need_lc=yes
10155 allow_undefined_flag=$lt_save_allow_undefined_flag
10157 cat conftest.err 1>&5
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10163 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10164 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10325 if test "$GCC" = yes; then
10327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10328 *) lt_awk_arg="/^libraries:/" ;;
10331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10332 *) lt_sed_strip_eq="s,=/,/,g" ;;
10334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335 case $lt_search_path_spec in
10337 # if the path contains ";" then we assume it to be the separator
10338 # otherwise default to the standard path separator (i.e. ":") - it is
10339 # assumed that no part of a normal pathname contains ";" but that should
10340 # okay in the real world where ";" in dirpaths is itself problematic.
10341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10347 # Ok, now we have the path, separated by spaces, we can step through it
10348 # and add multilib dir if necessary.
10349 lt_tmp_lt_search_path_spec=
10350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351 for lt_sys_path in $lt_search_path_spec; do
10352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10355 test -d "$lt_sys_path" && \
10356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10360 BEGIN {RS=" "; FS="/|\n";} {
10363 for (lt_i = NF; lt_i > 0; lt_i--) {
10364 if ($lt_i != "" && $lt_i != ".") {
10365 if ($lt_i == "..") {
10368 if (lt_count == 0) {
10369 lt_foo="/" $lt_i lt_foo;
10376 if (lt_foo != "") { lt_freq[lt_foo]++; }
10377 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10379 # AWK program above erroneously prepends '/' to C:/dos/paths
10382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10383 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10389 library_names_spec=
10390 libname_spec='lib$name'
10394 postuninstall_cmds=
10398 shlibpath_overrides_runpath=unknown
10400 dynamic_linker="$host_os ld.so"
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10402 need_lib_prefix=unknown
10403 hardcode_into_libs=no
10405 # when you set need_version to no, make sure it does not cause -set_version
10406 # flags to be left without arguments
10407 need_version=unknown
10411 version_type=linux # correct to gnu/linux during the next big refactor
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10413 shlibpath_var=LIBPATH
10415 # AIX 3 has no versioning support, so we append a major version to the name.
10416 soname_spec='${libname}${release}${shared_ext}$major'
10420 version_type=linux # correct to gnu/linux during the next big refactor
10423 hardcode_into_libs=yes
10424 if test "$host_cpu" = ia64; then
10425 # AIX 5 supports IA64
10426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10429 # With GCC up to 2.95.x, collect2 would create an import file
10430 # for dependence libraries. The import file would start with
10431 # the line `#! .'. This would cause the generated library to
10432 # depend on `.', always an invalid library. This was fixed in
10433 # development snapshots of GCC prior to 3.0.
10435 aix4 | aix4.[01] | aix4.[01].*)
10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10441 can_build_shared=no
10445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10446 # soname into executable. Probably we can add versioning support to
10447 # collect2, so additional links can be useful in future.
10448 if test "$aix_use_runtimelinking" = yes; then
10449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10450 # instead of lib<name>.a to let people know that these are not
10451 # typical AIX shared libraries.
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 # We preserve .a as extension for shared libraries through AIX4.2
10455 # and later when we are not doing run time linking.
10456 library_names_spec='${libname}${release}.a $libname.a'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LIBPATH
10466 # Since July 2007 AmigaOS4 officially supports .so libraries.
10467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 library_names_spec='$libname.ixlibrary $libname.a'
10472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10473 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'
10479 library_names_spec='${libname}${shared_ext}'
10480 dynamic_linker="$host_os ld.so"
10481 shlibpath_var=LIBRARY_PATH
10485 version_type=linux # correct to gnu/linux during the next big refactor
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10493 # the default ld.so.conf also contains /usr/contrib/lib and
10494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10495 # libtool to hard-code these into programs
10498 cygwin* | mingw* | pw32* | cegcc*)
10499 version_type=windows
10504 case $GCC,$cc_basename in
10507 library_names_spec='$libname.dll.a'
10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509 postinstall_cmds='base_file=`basename \${file}`~
10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511 dldir=$destdir/`dirname \$dlpath`~
10512 test -d \$dldir || mkdir -p \$dldir~
10513 $install_prog $dir/$dlname \$dldir/$dlname~
10514 chmod a+x \$dldir/$dlname~
10515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519 dlpath=$dir/\$dldll~
10521 shlibpath_overrides_runpath=yes
10525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10531 # MinGW DLLs use traditional 'lib' prefix
10532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 # pw32 DLLs use 'pw' prefix rather than 'lib'
10536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539 dynamic_linker='Win32 ld.exe'
10544 libname_spec='$name'
10545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546 library_names_spec='${libname}.dll.lib'
10550 sys_lib_search_path_spec=
10553 for lt_path in $LIB
10556 # Let DOS variable expansion print the short 8.3 style file name.
10557 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10558 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10561 # Convert to MSYS style.
10562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10565 # Convert to unix form, then to dos form, then back to unix form
10566 # but this time dos style (no spaces!) so that the unix form looks
10567 # like /cygdrive/c/PROGRA~1:/cygdr...
10568 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10569 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10570 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10573 sys_lib_search_path_spec="$LIB"
10574 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10575 # It is most probably a Windows format PATH.
10576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10580 # FIXME: find the short name or the path components, as spaces are
10581 # common. (e.g. "Program Files" -> "PROGRA~1")
10585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10586 postinstall_cmds='base_file=`basename \${file}`~
10587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10588 dldir=$destdir/`dirname \$dlpath`~
10589 test -d \$dldir || mkdir -p \$dldir~
10590 $install_prog $dir/$dlname \$dldir/$dlname'
10591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10592 dlpath=$dir/\$dldll~
10594 shlibpath_overrides_runpath=yes
10595 dynamic_linker='Win32 link.exe'
10599 # Assume MSVC wrapper
10600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10601 dynamic_linker='Win32 ld.exe'
10604 # FIXME: first we should search . and the directory the executable is in
10608 darwin* | rhapsody*)
10609 dynamic_linker="$host_os dyld"
10610 version_type=darwin
10613 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10614 soname_spec='${libname}${release}${major}$shared_ext'
10615 shlibpath_overrides_runpath=yes
10616 shlibpath_var=DYLD_LIBRARY_PATH
10617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10624 version_type=linux # correct to gnu/linux during the next big refactor
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10632 freebsd* | dragonfly*)
10633 # DragonFly does not have aout. When/if they implement a new
10634 # versioning mechanism, adjust this.
10635 if test -x /usr/bin/objformat; then
10636 objformat=`/usr/bin/objformat`
10639 freebsd[23].*) objformat=aout ;;
10640 *) objformat=elf ;;
10643 version_type=freebsd-$objformat
10644 case $version_type in
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10655 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10660 freebsd3.[01]* | freebsdelf3.[01]*)
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10666 shlibpath_overrides_runpath=no
10667 hardcode_into_libs=yes
10669 *) # from 4.6 on, and DragonFly
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10677 version_type=linux # correct to gnu/linux during the next big refactor
10680 dynamic_linker="$host_os runtime_loader"
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LIBRARY_PATH
10684 shlibpath_overrides_runpath=yes
10685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10686 hardcode_into_libs=yes
10689 hpux9* | hpux10* | hpux11*)
10690 # Give a soname corresponding to the major version so that dld.sl refuses to
10691 # link against other versions.
10698 hardcode_into_libs=yes
10699 dynamic_linker="$host_os dld.so"
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 if test "X$HPUX_IA64_MODE" = X32; then
10705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10713 hardcode_into_libs=yes
10714 dynamic_linker="$host_os dld.sl"
10715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724 dynamic_linker="$host_os dld.sl"
10725 shlibpath_var=SHLIB_PATH
10726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10731 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10732 postinstall_cmds='chmod 555 $lib'
10733 # or fails outright, so override atomically:
10734 install_override_mode=555
10738 version_type=linux # correct to gnu/linux during the next big refactor
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=no
10746 hardcode_into_libs=yes
10749 irix5* | irix6* | nonstopux*)
10751 nonstopux*) version_type=nonstopux ;;
10753 if test "$lt_cv_prog_gnu_ld" = yes; then
10754 version_type=linux # correct to gnu/linux during the next big refactor
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10764 irix5* | nonstopux*)
10765 libsuff= shlibsuff=
10768 case $LD in # libtool.m4 will add one of these switches to LD
10769 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10770 libsuff= shlibsuff= libmagic=32-bit;;
10771 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10772 libsuff=32 shlibsuff=N32 libmagic=N32;;
10773 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10774 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10775 *) libsuff= shlibsuff= libmagic=never-match;;
10779 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10780 shlibpath_overrides_runpath=no
10781 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10782 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10783 hardcode_into_libs=yes
10786 # No shared lib support for Linux oldld, aout, or coff.
10787 linux*oldld* | linux*aout* | linux*coff*)
10791 # This must be glibc/ELF.
10792 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10793 version_type=linux # correct to gnu/linux during the next big refactor
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=no
10802 # Some binutils ld are patched to set DT_RUNPATH
10803 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 lt_cv_shlibpath_overrides_runpath=no
10807 save_LDFLAGS=$LDFLAGS
10808 save_libdir=$libdir
10809 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10810 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10824 lt_cv_shlibpath_overrides_runpath=yes
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LDFLAGS=$save_LDFLAGS
10830 libdir=$save_libdir
10834 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10836 # This implies no fast_install, which is unacceptable.
10837 # Some rework will be needed to allow for fast_install
10838 # before this can be enabled.
10839 hardcode_into_libs=yes
10841 # Append ld.so.conf contents to the search path
10842 if test -f /etc/ld.so.conf; then
10843 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' ' '`
10844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10847 # We used to test for /lib/ld.so.1 and disable shared libraries on
10848 # powerpc, because MkLinux only supported shared libraries with the
10849 # GNU dynamic linker. Since this was broken with cross compilers,
10850 # most powerpc-linux boxes support dynamic linking these days and
10851 # people can always --disable-shared, the test was removed, and we
10852 # assume the GNU/Linux dynamic linker is in use.
10853 dynamic_linker='GNU/Linux ld.so'
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10865 dynamic_linker='NetBSD ld.elf_so'
10872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10875 dynamic_linker='NetBSD (a.out) ld.so'
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 dynamic_linker='NetBSD ld.elf_so'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 hardcode_into_libs=yes
10887 version_type=linux # correct to gnu/linux during the next big refactor
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 dynamic_linker='ldqnx.so'
10907 sys_lib_dlsearch_path_spec="/usr/lib"
10909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10912 *) need_version=no ;;
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10919 openbsd2.[89] | openbsd2.[89].*)
10920 shlibpath_overrides_runpath=no
10923 shlibpath_overrides_runpath=yes
10927 shlibpath_overrides_runpath=yes
10932 libname_spec='$name'
10935 library_names_spec='$libname${shared_ext} $libname.a'
10936 dynamic_linker='OS/2 ld.exe'
10937 shlibpath_var=LIBPATH
10940 osf3* | osf4* | osf5*)
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10956 version_type=linux # correct to gnu/linux during the next big refactor
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10964 # ldd complains unless libraries are executable
10965 postinstall_cmds='chmod +x $lib'
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes
10974 if test "$with_gnu_ld" = yes; then
10981 version_type=linux # correct to gnu/linux during the next big refactor
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 case $host_vendor in
10987 shlibpath_overrides_runpath=no
10989 runpath_var=LD_RUN_PATH
10997 shlibpath_overrides_runpath=no
10998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11004 if test -d /usr/nec ;then
11005 version_type=linux # correct to gnu/linux during the next big refactor
11006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11007 soname_spec='$libname${shared_ext}.$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11013 version_type=freebsd-elf
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 hardcode_into_libs=yes
11021 if test "$with_gnu_ld" = yes; then
11022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11031 sys_lib_dlsearch_path_spec='/usr/lib'
11035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11036 version_type=linux # correct to gnu/linux during the next big refactor
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=no
11042 hardcode_into_libs=yes
11046 version_type=linux # correct to gnu/linux during the next big refactor
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11057 $as_echo "$dynamic_linker" >&6; }
11058 test "$dynamic_linker" = no && can_build_shared=no
11060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11061 if test "$GCC" = yes; then
11062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11065 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11166 if test -n "$hardcode_libdir_flag_spec" ||
11167 test -n "$runpath_var" ||
11168 test "X$hardcode_automatic" = "Xyes" ; then
11170 # We can hardcode non-existent directories.
11171 if test "$hardcode_direct" != no &&
11172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11173 # have to relink, otherwise we might link with an installed library
11174 # when we should be linking with a yet-to-be-installed one
11175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11176 test "$hardcode_minus_L" != no; then
11177 # Linking always hardcodes the temporary library directory.
11178 hardcode_action=relink
11180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11181 hardcode_action=immediate
11184 # We cannot hardcode anything, or else we can only hardcode existing
11186 hardcode_action=unsupported
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11189 $as_echo "$hardcode_action" >&6; }
11191 if test "$hardcode_action" = relink ||
11192 test "$inherit_rpath" = yes; then
11193 # Fast installation is not supported
11194 enable_fast_install=no
11195 elif test "$shlibpath_overrides_runpath" = yes ||
11196 test "$enable_shared" = no; then
11197 # Fast installation is not necessary
11198 enable_fast_install=needless
11206 if test "x$enable_dlopen" != xyes; then
11207 enable_dlopen=unknown
11208 enable_dlopen_self=unknown
11209 enable_dlopen_self_static=unknown
11216 lt_cv_dlopen="load_add_on"
11218 lt_cv_dlopen_self=yes
11221 mingw* | pw32* | cegcc*)
11222 lt_cv_dlopen="LoadLibrary"
11227 lt_cv_dlopen="dlopen"
11232 # if libdl is installed we need to link against it
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false; then :
11236 $as_echo_n "(cached) " >&6
11238 ac_check_lib_save_LIBS=$LIBS
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_dl_dlopen=yes
11261 ac_cv_lib_dl_dlopen=no
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11273 lt_cv_dlopen="dyld"
11275 lt_cv_dlopen_self=yes
11282 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11283 if test "x$ac_cv_func_shl_load" = xyes; then :
11284 lt_cv_dlopen="shl_load"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11287 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11288 if ${ac_cv_lib_dld_shl_load+:} false; then :
11289 $as_echo_n "(cached) " >&6
11291 ac_check_lib_save_LIBS=$LIBS
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11306 return shl_load ();
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_dld_shl_load=yes
11314 ac_cv_lib_dld_shl_load=no
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11321 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11322 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11323 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11325 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11326 if test "x$ac_cv_func_dlopen" = xyes; then :
11327 lt_cv_dlopen="dlopen"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11331 if ${ac_cv_lib_dl_dlopen+:} false; then :
11332 $as_echo_n "(cached) " >&6
11334 ac_check_lib_save_LIBS=$LIBS
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_dl_dlopen=yes
11357 ac_cv_lib_dl_dlopen=no
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11365 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11370 if ${ac_cv_lib_svld_dlopen+:} false; then :
11371 $as_echo_n "(cached) " >&6
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-lsvld $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_svld_dlopen=yes
11396 ac_cv_lib_svld_dlopen=no
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11403 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11404 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11408 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11409 if ${ac_cv_lib_dld_dld_link+:} false; then :
11410 $as_echo_n "(cached) " >&6
11412 ac_check_lib_save_LIBS=$LIBS
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11427 return dld_link ();
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_dld_dld_link=yes
11435 ac_cv_lib_dld_dld_link=no
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11442 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11443 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11465 if test "x$lt_cv_dlopen" != xno; then
11471 case $lt_cv_dlopen in
11473 save_CPPFLAGS="$CPPFLAGS"
11474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11476 save_LDFLAGS="$LDFLAGS"
11477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11480 LIBS="$lt_cv_dlopen_libs $LIBS"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11483 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11484 if ${lt_cv_dlopen_self+:} false; then :
11485 $as_echo_n "(cached) " >&6
11487 if test "$cross_compiling" = yes; then :
11488 lt_cv_dlopen_self=cross
11490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491 lt_status=$lt_dlunknown
11492 cat > conftest.$ac_ext <<_LT_EOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11503 # define LT_DLGLOBAL RTLD_GLOBAL
11506 # define LT_DLGLOBAL DL_GLOBAL
11508 # define LT_DLGLOBAL 0
11512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513 find out it does not work in some platform. */
11514 #ifndef LT_DLLAZY_OR_NOW
11516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11519 # define LT_DLLAZY_OR_NOW DL_LAZY
11522 # define LT_DLLAZY_OR_NOW RTLD_NOW
11525 # define LT_DLLAZY_OR_NOW DL_NOW
11527 # define LT_DLLAZY_OR_NOW 0
11534 /* When -fvisbility=hidden is used, assume the code has been annotated
11535 correspondingly for the symbols needed. */
11536 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11537 int fnord () __attribute__((visibility("default")));
11540 int fnord () { return 42; }
11543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11544 int status = $lt_dlunknown;
11548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11551 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11552 else puts (dlerror ());
11554 /* dlclose (self); */
11562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563 (eval $ac_link) 2>&5
11565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567 (./conftest; exit; ) >&5 2>/dev/null
11569 case x$lt_status in
11570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11575 # compilation failed
11576 lt_cv_dlopen_self=no
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11584 $as_echo "$lt_cv_dlopen_self" >&6; }
11586 if test "x$lt_cv_dlopen_self" = xyes; then
11587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11589 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11590 if ${lt_cv_dlopen_self_static+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 if test "$cross_compiling" = yes; then :
11594 lt_cv_dlopen_self_static=cross
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<_LT_EOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11609 # define LT_DLGLOBAL RTLD_GLOBAL
11612 # define LT_DLGLOBAL DL_GLOBAL
11614 # define LT_DLGLOBAL 0
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11625 # define LT_DLLAZY_OR_NOW DL_LAZY
11628 # define LT_DLLAZY_OR_NOW RTLD_NOW
11631 # define LT_DLLAZY_OR_NOW DL_NOW
11633 # define LT_DLLAZY_OR_NOW 0
11640 /* When -fvisbility=hidden is used, assume the code has been annotated
11641 correspondingly for the symbols needed. */
11642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11643 int fnord () __attribute__((visibility("default")));
11646 int fnord () { return 42; }
11649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11650 int status = $lt_dlunknown;
11654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658 else puts (dlerror ());
11660 /* dlclose (self); */
11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11669 (eval $ac_link) 2>&5
11671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11673 (./conftest; exit; ) >&5 2>/dev/null
11675 case x$lt_status in
11676 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11677 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11678 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11681 # compilation failed
11682 lt_cv_dlopen_self_static=no
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11690 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11693 CPPFLAGS="$save_CPPFLAGS"
11694 LDFLAGS="$save_LDFLAGS"
11699 case $lt_cv_dlopen_self in
11700 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11701 *) enable_dlopen_self=unknown ;;
11704 case $lt_cv_dlopen_self_static in
11705 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11706 *) enable_dlopen_self_static=unknown ;;
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11729 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11730 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11731 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11732 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11736 # FIXME - insert some real tests, host_os isn't really good enough
11739 if test -n "$STRIP" ; then
11740 striplib="$STRIP -x"
11741 old_striplib="$STRIP -S"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11767 # Report which library types will actually be built
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11769 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11771 $as_echo "$can_build_shared" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11774 $as_echo_n "checking whether to build shared libraries... " >&6; }
11775 test "$can_build_shared" = "no" && enable_shared=no
11777 # On AIX, shared libraries and static libraries use the same namespace, and
11778 # are all built from PIC.
11781 test "$enable_shared" = yes && enable_static=no
11782 if test -n "$RANLIB"; then
11783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11784 postinstall_cmds='$RANLIB $lib'
11789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11790 test "$enable_shared" = yes && enable_static=no
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11795 $as_echo "$enable_shared" >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11798 $as_echo_n "checking whether to build static libraries... " >&6; }
11799 # Make sure either enable_shared or enable_static is yes.
11800 test "$enable_shared" = yes || enable_static=yes
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11802 $as_echo "$enable_static" >&6; }
11809 ac_cpp='$CPP $CPPFLAGS'
11810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11830 ac_config_commands="$ac_config_commands libtool"
11835 # Only expand once:
11839 # Check whether --enable-optimization was given.
11840 if test "${enable_optimization+set}" = set; then :
11841 enableval=$enable_optimization;
11842 if (test "${enableval}" = "no"); then
11843 CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
11849 # Check whether --enable-debug was given.
11850 if test "${enable_debug+set}" = set; then :
11851 enableval=$enable_debug;
11852 if (test "${enableval}" = "yes" &&
11853 test "${ac_cv_prog_cc_g}" = "yes"); then
11854 CFLAGS="$CFLAGS -g"
11860 # Check whether --enable-pie was given.
11861 if test "${enable_pie+set}" = set; then :
11862 enableval=$enable_pie;
11863 if (test "${enableval}" = "yes" &&
11864 test "${ac_cv_prog_cc_pie}" = "yes"); then
11865 CFLAGS="$CFLAGS -fPIE"
11866 LDFLAGS="$LDFLAGS -pie"
11872 # Check whether --enable-hh2serial-gps was given.
11873 if test "${enable_hh2serial_gps+set}" = set; then :
11874 enableval=$enable_hh2serial_gps; enable_hh2serial_gps=${enableval}
11876 enable_hh2serial_gps="no"
11879 if test "${enable_hh2serial_gps}" != "no"; then
11880 HH2SERIAL_GPS_TRUE=
11881 HH2SERIAL_GPS_FALSE='#'
11883 HH2SERIAL_GPS_TRUE='#'
11884 HH2SERIAL_GPS_FALSE=
11887 if test "${enable_hh2serial_gps}" = "builtin"; then
11888 HH2SERIAL_GPS_BUILTIN_TRUE=
11889 HH2SERIAL_GPS_BUILTIN_FALSE='#'
11891 HH2SERIAL_GPS_BUILTIN_TRUE='#'
11892 HH2SERIAL_GPS_BUILTIN_FALSE=
11897 # Check whether --with-openconnect was given.
11898 if test "${with_openconnect+set}" = set; then :
11899 withval=$with_openconnect; path_openconnect=${withval}
11903 # Check whether --enable-openconnect was given.
11904 if test "${enable_openconnect+set}" = set; then :
11905 enableval=$enable_openconnect; enable_openconnect=${enableval}
11907 enable_openconnect="no"
11910 if (test "${enable_openconnect}" != "no"); then
11911 if (test -z "${path_openconnect}"); then
11912 # Extract the first word of "openconnect", so it can be a program name with args.
11913 set dummy openconnect; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_OPENCONNECT+:} false; then :
11917 $as_echo_n "(cached) " >&6
11919 case $OPENCONNECT in
11921 ac_cv_path_OPENCONNECT="$OPENCONNECT" # Let the user override the test with a path.
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 as_dummy="$PATH:/sbin:/usr/sbin"
11926 for as_dir in $as_dummy
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_path_OPENCONNECT="$as_dir/$ac_word$ac_exec_ext"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 OPENCONNECT=$ac_cv_path_OPENCONNECT
11944 if test -n "$OPENCONNECT"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENCONNECT" >&5
11946 $as_echo "$OPENCONNECT" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11953 if (test -z "${OPENCONNECT}"); then
11954 as_fn_error $? "openconnect binary not found" "$LINENO" 5
11957 OPENCONNECT="${path_openconnect}"
11961 if test "${enable_openconnect}" != "no"; then
11963 OPENCONNECT_FALSE='#'
11965 OPENCONNECT_TRUE='#'
11969 if test "${enable_openconnect}" = "builtin"; then
11970 OPENCONNECT_BUILTIN_TRUE=
11971 OPENCONNECT_BUILTIN_FALSE='#'
11973 OPENCONNECT_BUILTIN_TRUE='#'
11974 OPENCONNECT_BUILTIN_FALSE=
11979 # Check whether --with-openvpn was given.
11980 if test "${with_openvpn+set}" = set; then :
11981 withval=$with_openvpn; path_openvpn=${withval}
11985 # Check whether --enable-openvpn was given.
11986 if test "${enable_openvpn+set}" = set; then :
11987 enableval=$enable_openvpn; enable_openvpn=${enableval}
11989 enable_openvpn="no"
11992 if (test "${enable_openvpn}" != "no"); then
11993 if (test -z "${path_openvpn}"); then
11994 # Extract the first word of "openvpn", so it can be a program name with args.
11995 set dummy openvpn; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_OPENVPN+:} false; then :
11999 $as_echo_n "(cached) " >&6
12003 ac_cv_path_OPENVPN="$OPENVPN" # Let the user override the test with a path.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 as_dummy="$PATH:/sbin:/usr/sbin"
12008 for as_dir in $as_dummy
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_path_OPENVPN="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 OPENVPN=$ac_cv_path_OPENVPN
12026 if test -n "$OPENVPN"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENVPN" >&5
12028 $as_echo "$OPENVPN" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12035 if (test -z "${OPENVPN}"); then
12036 as_fn_error $? "openvpn binary not found" "$LINENO" 5
12039 OPENVPN="${path_openvpn}"
12043 if test "${enable_openvpn}" != "no"; then
12051 if test "${enable_openvpn}" = "builtin"; then
12052 OPENVPN_BUILTIN_TRUE=
12053 OPENVPN_BUILTIN_FALSE='#'
12055 OPENVPN_BUILTIN_TRUE='#'
12056 OPENVPN_BUILTIN_FALSE=
12061 # Check whether --with-vpnc was given.
12062 if test "${with_vpnc+set}" = set; then :
12063 withval=$with_vpnc; path_vpnc=${withval}
12067 # Check whether --enable-vpnc was given.
12068 if test "${enable_vpnc+set}" = set; then :
12069 enableval=$enable_vpnc; enable_vpnc=${enableval}
12074 if (test "${enable_vpnc}" != "no"); then
12075 if (test -z "${path_vpnc}"); then
12076 # Extract the first word of "vpnc", so it can be a program name with args.
12077 set dummy vpnc; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if ${ac_cv_path_VPNC+:} false; then :
12081 $as_echo_n "(cached) " >&6
12085 ac_cv_path_VPNC="$VPNC" # Let the user override the test with a path.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 as_dummy="$PATH:/sbin:/usr/sbin"
12090 for as_dir in $as_dummy
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_path_VPNC="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 VPNC=$ac_cv_path_VPNC
12108 if test -n "$VPNC"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VPNC" >&5
12110 $as_echo "$VPNC" >&6; }
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12117 if (test -z "${VPNC}"); then
12118 as_fn_error $? "vpnc binary not found" "$LINENO" 5
12121 VPNC="${path_vpnc}"
12125 if test "${enable_vpnc}" != "no"; then
12133 if test "${enable_vpnc}" = "builtin"; then
12135 VPNC_BUILTIN_FALSE='#'
12137 VPNC_BUILTIN_TRUE='#'
12138 VPNC_BUILTIN_FALSE=
12142 # Check whether --enable-l2tp was given.
12143 if test "${enable_l2tp+set}" = set; then :
12144 enableval=$enable_l2tp; enable_l2tp=${enableval}
12149 if (test "${enable_l2tp}" != "no"); then
12150 if (test -z "${path_pppd}"); then
12151 # Extract the first word of "pppd", so it can be a program name with args.
12152 set dummy pppd; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_path_PPPD+:} false; then :
12156 $as_echo_n "(cached) " >&6
12160 ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 as_dummy="$PATH:/sbin:/usr/sbin"
12165 for as_dir in $as_dummy
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12183 PPPD=$ac_cv_path_PPPD
12184 if test -n "$PPPD"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12186 $as_echo "$PPPD" >&6; }
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12194 PPPD="${path_pppd}"
12197 for ac_header in pppd/pppd.h
12199 ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12201 cat >>confdefs.h <<_ACEOF
12202 #define HAVE_PPPD_PPPD_H 1
12206 as_fn_error $? "ppp header files are required" "$LINENO" 5
12211 if (test -z "${path_l2tp}"); then
12212 # Extract the first word of "xl2tpd", so it can be a program name with args.
12213 set dummy xl2tpd; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_path_L2TP+:} false; then :
12217 $as_echo_n "(cached) " >&6
12221 ac_cv_path_L2TP="$L2TP" # Let the user override the test with a path.
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 as_dummy="$PATH:/sbin:/usr/sbin"
12226 for as_dir in $as_dummy
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_path_L2TP="$as_dir/$ac_word$ac_exec_ext"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 test -z "$ac_cv_path_L2TP" && ac_cv_path_L2TP="/usr/sbin/xl2tpd"
12244 L2TP=$ac_cv_path_L2TP
12245 if test -n "$L2TP"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $L2TP" >&5
12247 $as_echo "$L2TP" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12255 L2TP="${path_l2tp}"
12259 if test "${enable_l2tp}" != "no"; then
12267 if test "${enable_l2tp}" = "builtin"; then
12269 L2TP_BUILTIN_FALSE='#'
12271 L2TP_BUILTIN_TRUE='#'
12272 L2TP_BUILTIN_FALSE=
12276 # Check whether --enable-pptp was given.
12277 if test "${enable_pptp+set}" = set; then :
12278 enableval=$enable_pptp; enable_pptp=${enableval}
12283 if (test "${enable_pptp}" != "no"); then
12284 if (test -z "${path_pppd}"); then
12285 # Extract the first word of "pppd", so it can be a program name with args.
12286 set dummy pppd; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_path_PPPD+:} false; then :
12290 $as_echo_n "(cached) " >&6
12294 ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 as_dummy="$PATH:/sbin:/usr/sbin"
12299 for as_dir in $as_dummy
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_path_PPPD="$as_dir/$ac_word$ac_exec_ext"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="/usr/sbin/pppd"
12317 PPPD=$ac_cv_path_PPPD
12318 if test -n "$PPPD"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPPD" >&5
12320 $as_echo "$PPPD" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12328 PPPD="${path_pppd}"
12331 for ac_header in pppd/pppd.h
12333 ac_fn_c_check_header_mongrel "$LINENO" "pppd/pppd.h" "ac_cv_header_pppd_pppd_h" "$ac_includes_default"
12334 if test "x$ac_cv_header_pppd_pppd_h" = xyes; then :
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_PPPD_PPPD_H 1
12340 as_fn_error $? "ppp header files are required" "$LINENO" 5
12345 if (test -z "${path_pptp}"); then
12346 # Extract the first word of "pptp", so it can be a program name with args.
12347 set dummy pptp; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_PPTP+:} false; then :
12351 $as_echo_n "(cached) " >&6
12355 ac_cv_path_PPTP="$PPTP" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 as_dummy="$PATH:/sbin:/usr/sbin"
12360 for as_dir in $as_dummy
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_path_PPTP="$as_dir/$ac_word$ac_exec_ext"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 test -z "$ac_cv_path_PPTP" && ac_cv_path_PPTP="/usr/sbin/pptp"
12378 PPTP=$ac_cv_path_PPTP
12379 if test -n "$PPTP"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPTP" >&5
12381 $as_echo "$PPTP" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12389 PPTP="${path_pptp}"
12393 if test "${enable_pptp}" != "no"; then
12401 if test "${enable_pptp}" = "builtin"; then
12403 PPTP_BUILTIN_FALSE='#'
12405 PPTP_BUILTIN_TRUE='#'
12406 PPTP_BUILTIN_FALSE=
12410 for ac_header in resolv.h
12412 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
12413 if test "x$ac_cv_header_resolv_h" = xyes; then :
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_RESOLV_H 1
12419 as_fn_error $? "resolver header files are required" "$LINENO" 5
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
12425 $as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
12426 if ${ac_cv_lib_resolv_ns_initparse+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lresolv $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12440 char ns_initparse ();
12444 return ns_initparse ();
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_lib_resolv_ns_initparse=yes
12452 ac_cv_lib_resolv_ns_initparse=no
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
12459 $as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
12460 if test "x$ac_cv_lib_resolv_ns_initparse" = xyes; then :
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ns_initparse in -lresolv" >&5
12465 $as_echo_n "checking for __ns_initparse in -lresolv... " >&6; }
12466 if ${ac_cv_lib_resolv___ns_initparse+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lresolv $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12480 char __ns_initparse ();
12484 return __ns_initparse ();
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_resolv___ns_initparse=yes
12492 ac_cv_lib_resolv___ns_initparse=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___ns_initparse" >&5
12499 $as_echo "$ac_cv_lib_resolv___ns_initparse" >&6; }
12500 if test "x$ac_cv_lib_resolv___ns_initparse" = xyes; then :
12503 as_fn_error $? "resolver library support is required" "$LINENO" 5
12510 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12511 if test "x$ac_cv_func_signalfd" = xyes; then :
12514 as_fn_error $? "signalfd support is required" "$LINENO" 5
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12520 if ${ac_cv_lib_dl_dlopen+:} false; then :
12521 $as_echo_n "(cached) " >&6
12523 ac_check_lib_save_LIBS=$LIBS
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_dl_dlopen=yes
12546 ac_cv_lib_dl_dlopen=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12554 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12557 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12561 # Check whether --enable-iospm was given.
12562 if test "${enable_iospm+set}" = set; then :
12563 enableval=$enable_iospm; enable_iospm=${enableval}
12566 if test "${enable_iospm}" = "yes"; then
12575 # Check whether --enable-tist was given.
12576 if test "${enable_tist+set}" = set; then :
12577 enableval=$enable_tist; enable_tist=${enableval}
12582 if test "${enable_tist}" != "no"; then
12590 if test "${enable_tist}" = "builtin"; then
12592 TIST_BUILTIN_FALSE='#'
12594 TIST_BUILTIN_TRUE='#'
12595 TIST_BUILTIN_FALSE=
12599 # Check whether --enable-session-policy-local was given.
12600 if test "${enable_session_policy_local+set}" = set; then :
12601 enableval=$enable_session_policy_local; enable_session_policy_local=${enableval}
12603 enable_session_policy_local="no"
12606 if test "${enable_session_policy_local}" != "no"; then
12607 SESSION_POLICY_LOCAL_TRUE=
12608 SESSION_POLICY_LOCAL_FALSE='#'
12610 SESSION_POLICY_LOCAL_TRUE='#'
12611 SESSION_POLICY_LOCAL_FALSE=
12614 if test "${enable_session_policy_local}" = "builtin"; then
12615 SESSION_POLICY_LOCAL_BUILTIN_TRUE=
12616 SESSION_POLICY_LOCAL_BUILTIN_FALSE='#'
12618 SESSION_POLICY_LOCAL_BUILTIN_TRUE='#'
12619 SESSION_POLICY_LOCAL_BUILTIN_FALSE=
12624 # Check whether --with-stats-max-file-size was given.
12625 if test "${with_stats_max_file_size+set}" = set; then :
12626 withval=$with_stats_max_file_size; stats_max_file_size=${withval}
12630 if (test -z "${stats_max_file_size}"); then
12631 # default size is 16 kByte
12632 stats_max_file_size="16 * 8 * 128"
12636 cat >>confdefs.h <<_ACEOF
12637 #define STATS_MAX_FILE_SIZE (${stats_max_file_size})
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12644 $as_echo_n "checking for GLIB... " >&6; }
12646 if test -n "$GLIB_CFLAGS"; then
12647 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12648 elif test -n "$PKG_CONFIG"; then
12649 if test -n "$PKG_CONFIG" && \
12650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12651 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654 test $ac_status = 0; }; then
12655 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12656 test "x$?" != "x0" && pkg_failed=yes
12663 if test -n "$GLIB_LIBS"; then
12664 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12665 elif test -n "$PKG_CONFIG"; then
12666 if test -n "$PKG_CONFIG" && \
12667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12668 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671 test $ac_status = 0; }; then
12672 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12673 test "x$?" != "x0" && pkg_failed=yes
12683 if test $pkg_failed = yes; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12688 _pkg_short_errors_supported=yes
12690 _pkg_short_errors_supported=no
12692 if test $_pkg_short_errors_supported = yes; then
12693 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12695 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12697 # Put the nasty error message in config.log where it belongs
12698 echo "$GLIB_PKG_ERRORS" >&5
12700 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12701 elif test $pkg_failed = untried; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12706 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12707 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12718 $as_echo_n "checking for DBUS... " >&6; }
12720 if test -n "$DBUS_CFLAGS"; then
12721 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12722 elif test -n "$PKG_CONFIG"; then
12723 if test -n "$PKG_CONFIG" && \
12724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12725 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; }; then
12729 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12730 test "x$?" != "x0" && pkg_failed=yes
12737 if test -n "$DBUS_LIBS"; then
12738 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12739 elif test -n "$PKG_CONFIG"; then
12740 if test -n "$PKG_CONFIG" && \
12741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12742 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12745 test $ac_status = 0; }; then
12746 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12747 test "x$?" != "x0" && pkg_failed=yes
12757 if test $pkg_failed = yes; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12762 _pkg_short_errors_supported=yes
12764 _pkg_short_errors_supported=no
12766 if test $_pkg_short_errors_supported = yes; then
12767 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12769 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12771 # Put the nasty error message in config.log where it belongs
12772 echo "$DBUS_PKG_ERRORS" >&5
12774 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12775 elif test $pkg_failed = untried; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12780 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12781 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783 $as_echo "yes" >&6; }
12790 # Check whether --with-dbusconfdir was given.
12791 if test "${with_dbusconfdir+set}" = set; then :
12792 withval=$with_dbusconfdir; path_dbusconf=${withval}
12794 path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12797 if (test -z "${path_dbusconf}"); then
12798 DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12800 DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12805 # Check whether --with-dbusdatadir was given.
12806 if test "${with_dbusdatadir+set}" = set; then :
12807 withval=$with_dbusdatadir; path_dbusdata=${withval}
12809 path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12812 if (test -z "${path_dbusdata}"); then
12813 DBUS_DATADIR="${datadir}/dbus-1/system-services"
12815 DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12820 # Check whether --with-systemdunitdir was given.
12821 if test "${with_systemdunitdir+set}" = set; then :
12822 withval=$with_systemdunitdir; path_systemdunit=${withval}
12824 path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12827 if (test -n "${path_systemdunit}"); then
12828 SYSTEMD_UNITDIR="${path_systemdunit}"
12831 if test -n "${path_systemdunit}"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTABLES" >&5
12843 $as_echo_n "checking for XTABLES... " >&6; }
12845 if test -n "$XTABLES_CFLAGS"; then
12846 pkg_cv_XTABLES_CFLAGS="$XTABLES_CFLAGS"
12847 elif test -n "$PKG_CONFIG"; then
12848 if test -n "$PKG_CONFIG" && \
12849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12850 ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853 test $ac_status = 0; }; then
12854 pkg_cv_XTABLES_CFLAGS=`$PKG_CONFIG --cflags "xtables >= 1.4.11" 2>/dev/null`
12855 test "x$?" != "x0" && pkg_failed=yes
12862 if test -n "$XTABLES_LIBS"; then
12863 pkg_cv_XTABLES_LIBS="$XTABLES_LIBS"
12864 elif test -n "$PKG_CONFIG"; then
12865 if test -n "$PKG_CONFIG" && \
12866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtables >= 1.4.11\""; } >&5
12867 ($PKG_CONFIG --exists --print-errors "xtables >= 1.4.11") 2>&5
12869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12870 test $ac_status = 0; }; then
12871 pkg_cv_XTABLES_LIBS=`$PKG_CONFIG --libs "xtables >= 1.4.11" 2>/dev/null`
12872 test "x$?" != "x0" && pkg_failed=yes
12882 if test $pkg_failed = yes; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12887 _pkg_short_errors_supported=yes
12889 _pkg_short_errors_supported=no
12891 if test $_pkg_short_errors_supported = yes; then
12892 XTABLES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12894 XTABLES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtables >= 1.4.11" 2>&1`
12896 # Put the nasty error message in config.log where it belongs
12897 echo "$XTABLES_PKG_ERRORS" >&5
12899 as_fn_error $? "Xtables library is required" "$LINENO" 5
12900 elif test $pkg_failed = untried; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 as_fn_error $? "Xtables library is required" "$LINENO" 5
12905 XTABLES_CFLAGS=$pkg_cv_XTABLES_CFLAGS
12906 XTABLES_LIBS=$pkg_cv_XTABLES_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12914 # Check whether --enable-test was given.
12915 if test "${enable_test+set}" = set; then :
12916 enableval=$enable_test; enable_test=${enableval}
12919 if test "${enable_test}" = "yes"; then
12928 # Check whether --enable-nmcompat was given.
12929 if test "${enable_nmcompat+set}" = set; then :
12930 enableval=$enable_nmcompat; enable_nmcompat=${enableval}
12932 enable_nmcompat="no"
12935 if test "${enable_nmcompat}" != "no"; then
12944 # Check whether --enable-polkit was given.
12945 if test "${enable_polkit+set}" = set; then :
12946 enableval=$enable_polkit; enable_polkit=${enableval}
12951 if (test "${enable_polkit}" != "no"); then
12952 POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
12954 if (test -z "${POLKIT_DATADIR}"); then
12955 POLKIT_DATADIR="${datadir}/polkit-1/actions"
12959 if test "${enable_polkit}" != "no"; then
12968 # Check whether --enable-selinux was given.
12969 if test "${enable_selinux+set}" = set; then :
12970 enableval=$enable_selinux; enable_selinux=${enableval}
12972 enable_selinux="no"
12975 if test "${enable_selinux}" != "no"; then
12984 # Check whether --enable-loopback was given.
12985 if test "${enable_loopback+set}" = set; then :
12986 enableval=$enable_loopback; enable_loopback=${enableval}
12989 if test "${enable_loopback}" != "no"; then
12998 # Check whether --enable-ethernet was given.
12999 if test "${enable_ethernet+set}" = set; then :
13000 enableval=$enable_ethernet; enable_ethernet=${enableval}
13003 if test "${enable_ethernet}" != "no"; then
13012 # Check whether --enable-gadget was given.
13013 if test "${enable_gadget+set}" = set; then :
13014 enableval=$enable_gadget; enable_gadget=${enableval}
13017 if test "${enable_gadget}" != "no"; then
13026 # Check whether --enable-wifi was given.
13027 if test "${enable_wifi+set}" = set; then :
13028 enableval=$enable_wifi; enable_wifi=${enableval}
13031 if test "${enable_wifi}" != "no"; then
13040 # Check whether --enable-bluetooth was given.
13041 if test "${enable_bluetooth+set}" = set; then :
13042 enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13045 if test "${enable_bluetooth}" != "no"; then
13047 BLUETOOTH_FALSE='#'
13054 # Check whether --enable-ofono was given.
13055 if test "${enable_ofono+set}" = set; then :
13056 enableval=$enable_ofono; enable_ofono=${enableval}
13059 if test "${enable_ofono}" != "no"; then
13068 # Check whether --enable-dundee was given.
13069 if test "${enable_dundee+set}" = set; then :
13070 enableval=$enable_dundee; enable_dundee=${enableval}
13073 if test "${enable_dundee}" != "no"; then
13082 # Check whether --enable-pacrunner was given.
13083 if test "${enable_pacrunner+set}" = set; then :
13084 enableval=$enable_pacrunner; enable_pacrunner=${enableval}
13087 if test "${enable_pacrunner}" != "no"; then
13089 PACRUNNER_FALSE='#'
13096 # Check whether --enable-neard was given.
13097 if test "${enable_neard+set}" = set; then :
13098 enableval=$enable_neard; enable_neard=${enableval}
13101 if test "${enable_neard}" != "no"; then
13110 # Check whether --enable-wispr was given.
13111 if test "${enable_wispr+set}" = set; then :
13112 enableval=$enable_wispr; enable_wispr=${enableval}
13115 if test "${enable_wispr}" != "no"; then
13124 # Check whether --enable-tools was given.
13125 if test "${enable_tools+set}" = set; then :
13126 enableval=$enable_tools; enable_tools=${enableval}
13129 if test "${enable_tools}" != "no"; then
13138 if (test "${enable_tools}" != "no"); then
13139 for ac_prog in iptables-save
13141 # Extract the first word of "$ac_prog", so it can be a program name with args.
13142 set dummy $ac_prog; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_path_IPTABLES_SAVE+:} false; then :
13146 $as_echo_n "(cached) " >&6
13148 case $IPTABLES_SAVE in
13150 ac_cv_path_IPTABLES_SAVE="$IPTABLES_SAVE" # Let the user override the test with a path.
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 as_dummy="$PATH:/sbin:/usr/sbin"
13155 for as_dir in $as_dummy
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161 ac_cv_path_IPTABLES_SAVE="$as_dir/$ac_word$ac_exec_ext"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13173 if test -n "$IPTABLES_SAVE"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPTABLES_SAVE" >&5
13175 $as_echo "$IPTABLES_SAVE" >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13182 test -n "$IPTABLES_SAVE" && break
13185 IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
13191 # Check whether --enable-client was given.
13192 if test "${enable_client+set}" = set; then :
13193 enableval=$enable_client; enable_client=${enableval}
13196 if test "${enable_client}" != "no"; then
13205 if (test "${enable_wispr}" != "no"); then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13209 $as_echo_n "checking for GNUTLS... " >&6; }
13211 if test -n "$GNUTLS_CFLAGS"; then
13212 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13213 elif test -n "$PKG_CONFIG"; then
13214 if test -n "$PKG_CONFIG" && \
13215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13216 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13219 test $ac_status = 0; }; then
13220 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13221 test "x$?" != "x0" && pkg_failed=yes
13228 if test -n "$GNUTLS_LIBS"; then
13229 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13230 elif test -n "$PKG_CONFIG"; then
13231 if test -n "$PKG_CONFIG" && \
13232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13233 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236 test $ac_status = 0; }; then
13237 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13238 test "x$?" != "x0" && pkg_failed=yes
13248 if test $pkg_failed = yes; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13253 _pkg_short_errors_supported=yes
13255 _pkg_short_errors_supported=no
13257 if test $_pkg_short_errors_supported = yes; then
13258 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
13260 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
13262 # Put the nasty error message in config.log where it belongs
13263 echo "$GNUTLS_PKG_ERRORS" >&5
13265 as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13266 elif test $pkg_failed = untried; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269 as_fn_error $? "GnuTLS library is required" "$LINENO" 5
13271 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13272 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274 $as_echo "yes" >&6; }
13284 if (test "${enable_loopback}" != "no"); then
13285 for ac_header in sys/inotify.h
13287 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
13288 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_SYS_INOTIFY_H 1
13294 as_fn_error $? "inotify header files are required" "$LINENO" 5
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5
13301 $as_echo_n "checking for inotify_init in -lc... " >&6; }
13302 if ${ac_cv_lib_c_inotify_init+:} false; then :
13303 $as_echo_n "(cached) " >&6
13305 ac_check_lib_save_LIBS=$LIBS
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13316 char inotify_init ();
13320 return inotify_init ();
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 ac_cv_lib_c_inotify_init=yes
13328 ac_cv_lib_c_inotify_init=no
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5
13335 $as_echo "$ac_cv_lib_c_inotify_init" >&6; }
13336 if test "x$ac_cv_lib_c_inotify_init" = xyes; then :
13339 as_fn_error $? "inotify library support is required" "$LINENO" 5
13344 if (test "${enable_wifi}" != "no"); then
13345 # Extract the first word of "wpa_supplicant", so it can be a program name with args.
13346 set dummy wpa_supplicant; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if ${ac_cv_path_WPASUPPLICANT+:} false; then :
13350 $as_echo_n "(cached) " >&6
13352 case $WPASUPPLICANT in
13354 ac_cv_path_WPASUPPLICANT="$WPASUPPLICANT" # Let the user override the test with a path.
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 as_dummy="$PATH:/sbin:/usr/sbin"
13359 for as_dir in $as_dummy
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_path_WPASUPPLICANT="$as_dir/$ac_word$ac_exec_ext"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 WPASUPPLICANT=$ac_cv_path_WPASUPPLICANT
13377 if test -n "$WPASUPPLICANT"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WPASUPPLICANT" >&5
13379 $as_echo "$WPASUPPLICANT" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13388 # Check whether --enable-datafiles was given.
13389 if test "${enable_datafiles+set}" = set; then :
13390 enableval=$enable_datafiles; enable_datafiles=${enableval}
13393 if test "${enable_datafiles}" != "no"; then
13395 DATAFILES_FALSE='#'
13402 if (test "${enable_client}" != "no"); then
13403 for ac_header in readline/readline.h
13405 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13406 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13407 cat >>confdefs.h <<_ACEOF
13408 #define HAVE_READLINE_READLINE_H 1
13412 as_fn_error $? "readline header files are required" "$LINENO" 5
13419 if test "${enable_openconnect}" != "no" -o \
13420 "${enable_openvpn}" != "no" -o \
13421 "${enable_vpnc}" != "no" -o \
13422 "${enable_l2tp}" != "no" -o \
13423 "${enable_pptp}" != "no"; then
13432 ac_config_files="$ac_config_files Makefile include/version.h src/connman.service vpn/connman-vpn.service vpn/net.connman.vpn.service scripts/connman connman.pc src/net.connman.service"
13434 cat >confcache <<\_ACEOF
13435 # This file is a shell script that caches the results of configure
13436 # tests run on this system so they can be shared between configure
13437 # scripts and configure runs, see configure's option --config-cache.
13438 # It is not useful on other systems. If it contains results you don't
13439 # want to keep, you may remove or edit it.
13441 # config.status only pays attention to the cache file if you give it
13442 # the --recheck option to rerun configure.
13444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13446 # following values.
13450 # The following way of writing the cache mishandles newlines in values,
13451 # but we know of no workaround that is simple, portable, and efficient.
13452 # So, we kill variables containing newlines.
13453 # Ultrix sh set writes to stderr and can't be redirected directly,
13454 # and sets the high bit in the cache file unless we assign to the vars.
13456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13457 eval ac_val=\$$ac_var
13461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13465 _ | IFS | as_nl) ;; #(
13466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13467 *) { eval $ac_var=; unset $ac_var;} ;;
13473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13474 *${as_nl}ac_space=\ *)
13475 # `set' does not quote correctly, so add quotes: double-quote
13476 # substitution turns \\\\ into \\, and sed turns \\ into \.
13479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13482 # `set' quotes correctly as required by POSIX, so do not add quotes.
13483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13497 if test -w "$cache_file"; then
13498 if test "x$cache_file" != "x/dev/null"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13500 $as_echo "$as_me: updating cache $cache_file" >&6;}
13501 if test ! -f "$cache_file" || test -h "$cache_file"; then
13502 cat confcache >"$cache_file"
13504 case $cache_file in #(
13506 mv -f confcache "$cache_file"$$ &&
13507 mv -f "$cache_file"$$ "$cache_file" ;; #(
13509 mv -f confcache "$cache_file" ;;
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13521 # Let make expand exec_prefix.
13522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13524 DEFS=-DHAVE_CONFIG_H
13529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13530 # 1. Remove the extension, and $U if already installed.
13531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13534 # will be set to the directory where LIBOBJS objects are built.
13535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13538 LIBOBJS=$ac_libobjs
13540 LTLIBOBJS=$ac_ltlibobjs
13543 if test -n "$EXEEXT"; then
13545 am__EXEEXT_FALSE='#'
13547 am__EXEEXT_TRUE='#'
13551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13552 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13556 as_fn_error $? "conditional \"AMDEP\" was never defined.
13557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13560 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13563 if test -z "${HH2SERIAL_GPS_TRUE}" && test -z "${HH2SERIAL_GPS_FALSE}"; then
13564 as_fn_error $? "conditional \"HH2SERIAL_GPS\" was never defined.
13565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13567 if test -z "${HH2SERIAL_GPS_BUILTIN_TRUE}" && test -z "${HH2SERIAL_GPS_BUILTIN_FALSE}"; then
13568 as_fn_error $? "conditional \"HH2SERIAL_GPS_BUILTIN\" was never defined.
13569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13571 if test -z "${OPENCONNECT_TRUE}" && test -z "${OPENCONNECT_FALSE}"; then
13572 as_fn_error $? "conditional \"OPENCONNECT\" was never defined.
13573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13575 if test -z "${OPENCONNECT_BUILTIN_TRUE}" && test -z "${OPENCONNECT_BUILTIN_FALSE}"; then
13576 as_fn_error $? "conditional \"OPENCONNECT_BUILTIN\" was never defined.
13577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13579 if test -z "${OPENVPN_TRUE}" && test -z "${OPENVPN_FALSE}"; then
13580 as_fn_error $? "conditional \"OPENVPN\" was never defined.
13581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13583 if test -z "${OPENVPN_BUILTIN_TRUE}" && test -z "${OPENVPN_BUILTIN_FALSE}"; then
13584 as_fn_error $? "conditional \"OPENVPN_BUILTIN\" was never defined.
13585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13587 if test -z "${VPNC_TRUE}" && test -z "${VPNC_FALSE}"; then
13588 as_fn_error $? "conditional \"VPNC\" was never defined.
13589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13591 if test -z "${VPNC_BUILTIN_TRUE}" && test -z "${VPNC_BUILTIN_FALSE}"; then
13592 as_fn_error $? "conditional \"VPNC_BUILTIN\" was never defined.
13593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13595 if test -z "${L2TP_TRUE}" && test -z "${L2TP_FALSE}"; then
13596 as_fn_error $? "conditional \"L2TP\" was never defined.
13597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13599 if test -z "${L2TP_BUILTIN_TRUE}" && test -z "${L2TP_BUILTIN_FALSE}"; then
13600 as_fn_error $? "conditional \"L2TP_BUILTIN\" was never defined.
13601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13603 if test -z "${PPTP_TRUE}" && test -z "${PPTP_FALSE}"; then
13604 as_fn_error $? "conditional \"PPTP\" was never defined.
13605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13607 if test -z "${PPTP_BUILTIN_TRUE}" && test -z "${PPTP_BUILTIN_FALSE}"; then
13608 as_fn_error $? "conditional \"PPTP_BUILTIN\" was never defined.
13609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13611 if test -z "${IOSPM_TRUE}" && test -z "${IOSPM_FALSE}"; then
13612 as_fn_error $? "conditional \"IOSPM\" was never defined.
13613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13615 if test -z "${TIST_TRUE}" && test -z "${TIST_FALSE}"; then
13616 as_fn_error $? "conditional \"TIST\" was never defined.
13617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13619 if test -z "${TIST_BUILTIN_TRUE}" && test -z "${TIST_BUILTIN_FALSE}"; then
13620 as_fn_error $? "conditional \"TIST_BUILTIN\" was never defined.
13621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13623 if test -z "${SESSION_POLICY_LOCAL_TRUE}" && test -z "${SESSION_POLICY_LOCAL_FALSE}"; then
13624 as_fn_error $? "conditional \"SESSION_POLICY_LOCAL\" was never defined.
13625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13627 if test -z "${SESSION_POLICY_LOCAL_BUILTIN_TRUE}" && test -z "${SESSION_POLICY_LOCAL_BUILTIN_FALSE}"; then
13628 as_fn_error $? "conditional \"SESSION_POLICY_LOCAL_BUILTIN\" was never defined.
13629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13631 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13632 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13635 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13636 as_fn_error $? "conditional \"TEST\" was never defined.
13637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13639 if test -z "${NMCOMPAT_TRUE}" && test -z "${NMCOMPAT_FALSE}"; then
13640 as_fn_error $? "conditional \"NMCOMPAT\" was never defined.
13641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13643 if test -z "${POLKIT_TRUE}" && test -z "${POLKIT_FALSE}"; then
13644 as_fn_error $? "conditional \"POLKIT\" was never defined.
13645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13647 if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
13648 as_fn_error $? "conditional \"SELINUX\" was never defined.
13649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13651 if test -z "${LOOPBACK_TRUE}" && test -z "${LOOPBACK_FALSE}"; then
13652 as_fn_error $? "conditional \"LOOPBACK\" was never defined.
13653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13655 if test -z "${ETHERNET_TRUE}" && test -z "${ETHERNET_FALSE}"; then
13656 as_fn_error $? "conditional \"ETHERNET\" was never defined.
13657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 if test -z "${GADGET_TRUE}" && test -z "${GADGET_FALSE}"; then
13660 as_fn_error $? "conditional \"GADGET\" was never defined.
13661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13663 if test -z "${WIFI_TRUE}" && test -z "${WIFI_FALSE}"; then
13664 as_fn_error $? "conditional \"WIFI\" was never defined.
13665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13667 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13668 as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13671 if test -z "${OFONO_TRUE}" && test -z "${OFONO_FALSE}"; then
13672 as_fn_error $? "conditional \"OFONO\" was never defined.
13673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13675 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13676 as_fn_error $? "conditional \"DUNDEE\" was never defined.
13677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13679 if test -z "${PACRUNNER_TRUE}" && test -z "${PACRUNNER_FALSE}"; then
13680 as_fn_error $? "conditional \"PACRUNNER\" was never defined.
13681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13683 if test -z "${NEARD_TRUE}" && test -z "${NEARD_FALSE}"; then
13684 as_fn_error $? "conditional \"NEARD\" was never defined.
13685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13687 if test -z "${WISPR_TRUE}" && test -z "${WISPR_FALSE}"; then
13688 as_fn_error $? "conditional \"WISPR\" was never defined.
13689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13692 as_fn_error $? "conditional \"TOOLS\" was never defined.
13693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13696 as_fn_error $? "conditional \"CLIENT\" was never defined.
13697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13700 as_fn_error $? "conditional \"DATAFILES\" was never defined.
13701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703 if test -z "${VPN_TRUE}" && test -z "${VPN_FALSE}"; then
13704 as_fn_error $? "conditional \"VPN\" was never defined.
13705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13708 : "${CONFIG_STATUS=./config.status}"
13710 ac_clean_files_save=$ac_clean_files
13711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13715 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13717 # Generated by $as_me.
13718 # Run this file to recreate the current configuration.
13719 # Compiler output produced by configure, useful for debugging
13720 # configure, is in config.log if it exists.
13723 ac_cs_recheck=false
13726 SHELL=\${CONFIG_SHELL-$SHELL}
13729 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13730 ## -------------------- ##
13731 ## M4sh Initialization. ##
13732 ## -------------------- ##
13734 # Be more Bourne compatible
13735 DUALCASE=1; export DUALCASE # for MKS sh
13736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13739 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13740 # is contrary to our usage. Disable this feature.
13741 alias -g '${1+"$@"}'='"$@"'
13742 setopt NO_GLOB_SUBST
13744 case `(set -o) 2>/dev/null` in #(
13756 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13757 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13760 # Prefer a ksh shell builtin over an external printf program on Solaris,
13761 # but without wasting forks for bash or zsh.
13762 if test -z "$BASH_VERSION$ZSH_VERSION" \
13763 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13764 as_echo='print -r --'
13765 as_echo_n='print -rn --'
13766 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13767 as_echo='printf %s\n'
13768 as_echo_n='printf %s'
13770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13772 as_echo_n='/usr/ucb/echo -n'
13774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13775 as_echo_n_body='eval
13779 expr "X$arg" : "X\\(.*\\)$as_nl";
13780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13784 export as_echo_n_body
13785 as_echo_n='sh -c $as_echo_n_body as_echo'
13787 export as_echo_body
13788 as_echo='sh -c $as_echo_body as_echo'
13791 # The user is always right.
13792 if test "${PATH_SEPARATOR+set}" != set; then
13794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13802 # We need space, tab and new line, in precisely that order. Quoting is
13803 # there to prevent editors from complaining about space-tab.
13804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13805 # splitting by setting IFS to empty value.)
13808 # Find who we are. Look in the path if we contain no directory separator.
13811 *[\\/]* ) as_myself=$0 ;;
13812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13816 test -z "$as_dir" && as_dir=.
13817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13823 # We did not find ourselves, most probably we were run as `sh COMMAND'
13824 # in which case we are not to be found in the path.
13825 if test "x$as_myself" = x; then
13828 if test ! -f "$as_myself"; then
13829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13833 # Unset variables that we do not need and which cause bugs (e.g. in
13834 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13835 # suppresses any "Segmentation fault" message there. '((' could
13836 # trigger a bug in pdksh 5.2.14.
13837 for as_var in BASH_ENV ENV MAIL MAILPATH
13838 do eval test x\${$as_var+set} = xset \
13839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13855 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13856 # ----------------------------------------
13857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13859 # script with STATUS, using 1 if that was 0.
13862 as_status=$1; test $as_status -eq 0 && as_status=1
13864 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13867 $as_echo "$as_me: error: $2" >&2
13868 as_fn_exit $as_status
13872 # as_fn_set_status STATUS
13873 # -----------------------
13874 # Set $? to STATUS, without forking.
13875 as_fn_set_status ()
13878 } # as_fn_set_status
13880 # as_fn_exit STATUS
13881 # -----------------
13882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13886 as_fn_set_status $1
13892 # Portably unset VAR.
13895 { eval $1=; unset $1;}
13897 as_unset=as_fn_unset
13898 # as_fn_append VAR VALUE
13899 # ----------------------
13900 # Append the text in VALUE to the end of the definition contained in VAR. Take
13901 # advantage of any shell optimizations that allow amortized linear growth over
13902 # repeated appends, instead of the typical quadratic growth present in naive
13904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13905 eval 'as_fn_append ()
13916 # as_fn_arith ARG...
13917 # ------------------
13918 # Perform arithmetic evaluation on the ARGs, and store the result in the
13919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13920 # must be portable across $(()) and expr.
13921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13922 eval 'as_fn_arith ()
13929 as_val=`expr "$@" || test $? -eq 1`
13934 if expr a : '\(a\)' >/dev/null 2>&1 &&
13935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13942 as_basename=basename
13947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13953 as_me=`$as_basename -- "$0" ||
13954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13955 X"$0" : 'X\(//\)$' \| \
13956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13958 sed '/^.*\/\([^/][^/]*\)\/*$/{
13972 # Avoid depending upon Character Ranges.
13973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13976 as_cr_digits='0123456789'
13977 as_cr_alnum=$as_cr_Letters$as_cr_digits
13979 ECHO_C= ECHO_N= ECHO_T=
13980 case `echo -n x` in #(((((
13982 case `echo 'xy\c'` in
13983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13992 rm -f conf$$ conf$$.exe conf$$.file
13993 if test -d conf$$.dir; then
13994 rm -f conf$$.dir/conf$$.file
13997 mkdir conf$$.dir 2>/dev/null
13999 if (echo >conf$$.file) 2>/dev/null; then
14000 if ln -s conf$$.file conf$$ 2>/dev/null; then
14002 # ... but there are two gotchas:
14003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14005 # In both cases, we have to default to `cp -pR'.
14006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14008 elif ln conf$$.file conf$$ 2>/dev/null; then
14016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14017 rmdir conf$$.dir 2>/dev/null
14022 # Create "$as_dir" as a directory, including parents if necessary.
14027 -*) as_dir=./$as_dir;;
14029 test -d "$as_dir" || eval $as_mkdir_p || {
14033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14034 *) as_qdir=$as_dir;;
14036 as_dirs="'$as_qdir' $as_dirs"
14037 as_dir=`$as_dirname -- "$as_dir" ||
14038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14039 X"$as_dir" : 'X\(//\)[^/]' \| \
14040 X"$as_dir" : 'X\(//\)$' \| \
14041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14042 $as_echo X"$as_dir" |
14043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14047 /^X\(\/\/\)[^/].*/{
14060 test -d "$as_dir" && break
14062 test -z "$as_dirs" || eval "mkdir $as_dirs"
14063 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14067 if mkdir -p . 2>/dev/null; then
14068 as_mkdir_p='mkdir -p "$as_dir"'
14070 test -d ./-p && rmdir ./-p
14075 # as_fn_executable_p FILE
14076 # -----------------------
14077 # Test if FILE is an executable regular file.
14078 as_fn_executable_p ()
14080 test -f "$1" && test -x "$1"
14081 } # as_fn_executable_p
14082 as_test_x='test -x'
14083 as_executable_p=as_fn_executable_p
14085 # Sed expression to map a string onto a valid CPP name.
14086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14088 # Sed expression to map a string onto a valid variable name.
14089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14093 ## ----------------------------------- ##
14094 ## Main body of $CONFIG_STATUS script. ##
14095 ## ----------------------------------- ##
14097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # Save the log message, to keep $0 and so on meaningful, and to
14101 # report actual input values of CONFIG_FILES etc. instead of their
14102 # values after options handling.
14104 This file was extended by connman $as_me 1.26, which was
14105 generated by GNU Autoconf 2.69. Invocation command line was
14107 CONFIG_FILES = $CONFIG_FILES
14108 CONFIG_HEADERS = $CONFIG_HEADERS
14109 CONFIG_LINKS = $CONFIG_LINKS
14110 CONFIG_COMMANDS = $CONFIG_COMMANDS
14113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14118 case $ac_config_files in *"
14119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14122 case $ac_config_headers in *"
14123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 # Files that config.status was made for.
14129 config_files="$ac_config_files"
14130 config_headers="$ac_config_headers"
14131 config_commands="$ac_config_commands"
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 \`$as_me' instantiates files and other configuration actions
14138 from templates according to the current configuration. Unless the files
14139 and actions are specified as TAGs, all are instantiated by default.
14141 Usage: $0 [OPTION]... [TAG]...
14143 -h, --help print this help, then exit
14144 -V, --version print version number and configuration settings, then exit
14145 --config print configuration, then exit
14146 -q, --quiet, --silent
14147 do not print progress messages
14148 -d, --debug don't remove temporary files
14149 --recheck update $as_me by reconfiguring in the same conditions
14150 --file=FILE[:TEMPLATE]
14151 instantiate the configuration file FILE
14152 --header=FILE[:TEMPLATE]
14153 instantiate the configuration header FILE
14155 Configuration files:
14158 Configuration headers:
14161 Configuration commands:
14164 Report bugs to the package provider."
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14170 connman config.status 1.26
14171 configured by $0, generated by GNU Autoconf 2.69,
14172 with options \\"\$ac_cs_config\\"
14174 Copyright (C) 2012 Free Software Foundation, Inc.
14175 This config.status script is free software; the Free Software Foundation
14176 gives unlimited permission to copy, distribute and modify it."
14183 test -n "\$AWK" || AWK=awk
14186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14187 # The default lists apply if the user does not specify any file.
14193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14210 # Handling of the options.
14211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14214 $as_echo "$ac_cs_version"; exit ;;
14215 --config | --confi | --conf | --con | --co | --c )
14216 $as_echo "$ac_cs_config"; exit ;;
14217 --debug | --debu | --deb | --de | --d | -d )
14219 --file | --fil | --fi | --f )
14222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14223 '') as_fn_error $? "missing file argument" ;;
14225 as_fn_append CONFIG_FILES " '$ac_optarg'"
14226 ac_need_defaults=false;;
14227 --header | --heade | --head | --hea )
14230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14233 ac_need_defaults=false;;
14235 # Conflict between --help and --header
14236 as_fn_error $? "ambiguous option: \`$1'
14237 Try \`$0 --help' for more information.";;
14238 --help | --hel | -h )
14239 $as_echo "$ac_cs_usage"; exit ;;
14240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14244 # This is an error.
14245 -*) as_fn_error $? "unrecognized option: \`$1'
14246 Try \`$0 --help' for more information." ;;
14248 *) as_fn_append ac_config_targets " $1"
14249 ac_need_defaults=false ;;
14255 ac_configure_extra_args=
14257 if $ac_cs_silent; then
14259 ac_configure_extra_args="$ac_configure_extra_args --silent"
14263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264 if \$ac_cs_recheck; then
14265 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14268 CONFIG_SHELL='$SHELL'
14269 export CONFIG_SHELL
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14279 ## Running $as_me. ##
14285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14292 # The HP-UX ksh and POSIX shell print the target directory to stdout
14293 # if CDPATH is set.
14294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14296 sed_quote_subst='$sed_quote_subst'
14297 double_quote_subst='$double_quote_subst'
14298 delay_variable_subst='$delay_variable_subst'
14299 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14300 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14301 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14302 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14305 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14306 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14307 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14308 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14309 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14310 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14311 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14312 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14313 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14314 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14315 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14316 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14317 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14318 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14319 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14320 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14321 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14322 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14323 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14324 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14325 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14326 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14327 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14328 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14329 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14330 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14331 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14332 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14333 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14334 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14335 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14336 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14337 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14338 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14341 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14342 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14343 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14344 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14345 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14346 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14347 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14348 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14349 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14350 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14351 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14352 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14353 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14354 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14355 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"`'
14356 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14357 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14422 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14423 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14424 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14425 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14426 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14427 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14428 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14431 LTCFLAGS='$LTCFLAGS'
14432 compiler='$compiler_DEFAULT'
14434 # A function that is used when there is no print builtin or printf.
14435 func_fallback_echo ()
14437 eval 'cat <<_LTECHO_EOF
14442 # Quote evaled strings.
14457 deplibs_check_method \
14462 sharedlib_from_linklib_cmd \
14465 archiver_list_spec \
14471 lt_cv_sys_global_symbol_pipe \
14472 lt_cv_sys_global_symbol_to_cdecl \
14473 lt_cv_sys_global_symbol_to_c_name_address \
14474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14475 nm_file_list_spec \
14476 lt_prog_compiler_no_builtin_flag \
14477 lt_prog_compiler_pic \
14478 lt_prog_compiler_wl \
14479 lt_prog_compiler_static \
14480 lt_cv_prog_compiler_c_o \
14489 export_dynamic_flag_spec \
14490 whole_archive_flag_spec \
14491 compiler_needs_object \
14493 allow_undefined_flag \
14494 no_undefined_flag \
14495 hardcode_libdir_flag_spec \
14496 hardcode_libdir_separator \
14500 variables_saved_for_relink \
14502 library_names_spec \
14504 install_override_mode \
14508 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14509 *[\\\\\\\`\\"\\\$]*)
14510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14513 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14518 # Double-quote double-evaled strings.
14519 for var in reload_cmds \
14520 old_postinstall_cmds \
14521 old_postuninstall_cmds \
14523 extract_expsyms_cmds \
14524 old_archive_from_new_cmds \
14525 old_archive_from_expsyms_cmds \
14527 archive_expsym_cmds \
14529 module_expsym_cmds \
14530 export_symbols_cmds \
14534 postuninstall_cmds \
14536 sys_lib_search_path_spec \
14537 sys_lib_dlsearch_path_spec; do
14538 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14539 *[\\\\\\\`\\"\\\$]*)
14540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14548 ac_aux_dir='$ac_aux_dir'
14549 xsi_shell='$xsi_shell'
14550 lt_shell_append='$lt_shell_append'
14552 # See if we are running on zsh, and set the options which allow our
14553 # commands through without removal of \ escapes INIT.
14554 if test -n "\${ZSH_VERSION+set}" ; then
14555 setopt NO_GLOB_SUBST
14561 TIMESTAMP='$TIMESTAMP'
14570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572 # Handling of arguments.
14573 for ac_config_target in $ac_config_targets
14575 case $ac_config_target in
14576 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14577 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14578 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14579 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14580 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14581 "src/connman.service") CONFIG_FILES="$CONFIG_FILES src/connman.service" ;;
14582 "vpn/connman-vpn.service") CONFIG_FILES="$CONFIG_FILES vpn/connman-vpn.service" ;;
14583 "vpn/net.connman.vpn.service") CONFIG_FILES="$CONFIG_FILES vpn/net.connman.vpn.service" ;;
14584 "scripts/connman") CONFIG_FILES="$CONFIG_FILES scripts/connman" ;;
14585 "connman.pc") CONFIG_FILES="$CONFIG_FILES connman.pc" ;;
14586 "src/net.connman.service") CONFIG_FILES="$CONFIG_FILES src/net.connman.service" ;;
14588 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14593 # If the user did not use the arguments to specify the items to instantiate,
14594 # then the envvar interface is used. Set only those that are not.
14595 # We use the long form for the default assignment because of an extremely
14596 # bizarre bug on SunOS 4.1.3.
14597 if $ac_need_defaults; then
14598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14603 # Have a temporary directory for convenience. Make it in the build tree
14604 # simply because there is no reason against having it here, and in addition,
14605 # creating and moving files from /tmp can sometimes cause problems.
14606 # Hook for its removal unless debugging.
14607 # Note that there is a small window in which the directory will not be cleaned:
14608 # after its creation but before its name has been assigned to `$tmp'.
14612 trap 'exit_status=$?
14613 : "${ac_tmp:=$tmp}"
14614 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14616 trap 'as_fn_exit 1' 1 2 13 15
14618 # Create a (secure) tmp directory for tmp files.
14621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14625 tmp=./conf$$-$RANDOM
14626 (umask 077 && mkdir "$tmp")
14627 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14630 # Set up the scripts for CONFIG_FILES section.
14631 # No need to generate them if there are no CONFIG_FILES.
14632 # This happens for instance with `./config.status config.h'.
14633 if test -n "$CONFIG_FILES"; then
14636 ac_cr=`echo X | tr X '\015'`
14637 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14638 # But we know of no other shell where ac_cr would be empty at this
14639 # point, so we can use a bashism as a fallback.
14640 if test "x$ac_cr" = x; then
14641 eval ac_cr=\$\'\\r\'
14643 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14644 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14647 ac_cs_awk_cr=$ac_cr
14650 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14655 echo "cat >conf$$subs.awk <<_ACEOF" &&
14656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14658 } >conf$$subs.sh ||
14659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14662 for ac_last_try in false false false false false :; do
14663 . ./conf$$subs.sh ||
14664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14667 if test $ac_delim_n = $ac_delim_num; then
14669 elif $ac_last_try; then
14670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14675 rm -f conf$$subs.sh
14677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14678 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14682 s/^/S["/; s/!.*/"]=/
14692 s/\(.\{148\}\)..*/\1/
14694 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14706 s/\(.\{148\}\)..*/\1/
14708 s/["\\]/\\&/g; s/^/"/; s/$/"/
14712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14717 ' <conf$$subs.awk | sed '
14722 ' >>$CONFIG_STATUS || ac_write_fail=1
14723 rm -f conf$$subs.awk
14724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14726 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14727 for (key in S) S_is_set[key] = 1
14733 nfields = split(line, field, "@")
14735 len = length(field[1])
14736 for (i = 2; i < nfields; i++) {
14738 keylen = length(key)
14739 if (S_is_set[key]) {
14741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14742 len += length(value) + length(field[++i])
14753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14755 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14758 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14759 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14762 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14763 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14764 # trailing colons and then remove the whole line if VPATH becomes empty
14765 # (actually we leave an empty line to preserve line numbers).
14766 if test "x$srcdir" = x.; then
14767 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786 fi # test -n "$CONFIG_FILES"
14788 # Set up the scripts for CONFIG_HEADERS section.
14789 # No need to generate them if there are no CONFIG_HEADERS.
14790 # This happens for instance with `./config.status Makefile'.
14791 if test -n "$CONFIG_HEADERS"; then
14792 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14796 # Transform confdefs.h into an awk script `defines.awk', embedded as
14797 # here-document in config.status, that substitutes the proper values into
14798 # config.h.in to produce config.h.
14800 # Create a delimiter string that does not exist in confdefs.h, to ease
14801 # handling of long lines.
14803 for ac_last_try in false false :; do
14804 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14805 if test -z "$ac_tt"; then
14807 elif $ac_last_try; then
14808 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14814 # For the awk script, D is an array of macro values keyed by name,
14815 # likewise P contains macro parameters if any. Preserve backslash
14816 # newline sequences.
14818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14820 s/.\{148\}/&'"$ac_delim"'/g
14823 s/^[ ]*#[ ]*define[ ][ ]*/ /
14830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14836 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14837 D["\1"]=" \3\\\\\\n"\\/p
14839 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14844 s/.\{148\}/&'"$ac_delim"'/g
14849 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14852 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14854 ' <confdefs.h | sed '
14855 s/'"$ac_delim"'/"\\\
14856 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14859 for (key in D) D_is_set[key] = 1
14862 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14864 split(line, arg, " ")
14865 if (arg[1] == "#") {
14869 defundef = substr(arg[1], 2)
14872 split(mac1, mac2, "(") #)
14874 prefix = substr(line, 1, index(line, defundef) - 1)
14875 if (D_is_set[macro]) {
14876 # Preserve the white space surrounding the "#".
14877 print prefix "define", macro P[macro] D[macro]
14880 # Replace #undef with comments. This is necessary, for example,
14881 # in the case of _POSIX_SOURCE, which is predefined and required
14882 # on some systems where configure will not decide to define it.
14883 if (defundef == "undef") {
14884 print "/*", prefix defundef, macro, "*/"
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14894 fi # test -n "$CONFIG_HEADERS"
14897 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14902 :[FHLC]) ac_mode=$ac_tag; continue;;
14904 case $ac_mode$ac_tag in
14906 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14907 :[FH]-) ac_tag=-:-;;
14908 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14925 -) ac_f="$ac_tmp/stdin";;
14926 *) # Look for the file first in the build tree, then in the source tree
14927 # (if the path is not absolute). The absolute path cannot be DOS-style,
14928 # because $ac_f cannot contain `:'.
14932 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14934 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14936 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14937 as_fn_append ac_file_inputs " '$ac_f'"
14940 # Let's still pretend it is `configure' which instantiates (i.e., don't
14941 # use $as_me), people would be surprised to read:
14942 # /* config.h. Generated by config.status. */
14943 configure_input='Generated from '`
14944 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14946 if test x"$ac_file" != x-; then
14947 configure_input="$ac_file. $configure_input"
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14949 $as_echo "$as_me: creating $ac_file" >&6;}
14951 # Neutralize special characters interpreted by sed in replacement strings.
14952 case $configure_input in #(
14953 *\&* | *\|* | *\\* )
14954 ac_sed_conf_input=`$as_echo "$configure_input" |
14955 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14956 *) ac_sed_conf_input=$configure_input;;
14960 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14966 ac_dir=`$as_dirname -- "$ac_file" ||
14967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14968 X"$ac_file" : 'X\(//\)[^/]' \| \
14969 X"$ac_file" : 'X\(//\)$' \| \
14970 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14971 $as_echo X"$ac_file" |
14972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14976 /^X\(\/\/\)[^/].*/{
14989 as_dir="$ac_dir"; as_fn_mkdir_p
14993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14995 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14996 # A ".." for each directory in $ac_dir_suffix.
14997 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14998 case $ac_top_builddir_sub in
14999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15003 ac_abs_top_builddir=$ac_pwd
15004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15005 # for backward compatibility:
15006 ac_top_builddir=$ac_top_build_prefix
15009 .) # We are building in place.
15011 ac_top_srcdir=$ac_top_builddir_sub
15012 ac_abs_top_srcdir=$ac_pwd ;;
15013 [\\/]* | ?:[\\/]* ) # Absolute name.
15014 ac_srcdir=$srcdir$ac_dir_suffix;
15015 ac_top_srcdir=$srcdir
15016 ac_abs_top_srcdir=$srcdir ;;
15017 *) # Relative name.
15018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15019 ac_top_srcdir=$ac_top_build_prefix$srcdir
15020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15032 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15033 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15035 ac_MKDIR_P=$MKDIR_P
15037 [\\/$]* | ?:[\\/]* ) ;;
15038 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 # If the template does not know about datarootdir, expand it.
15044 # FIXME: This hack should be removed a few years after 2.60.
15045 ac_datarootdir_hack=; ac_datarootdir_seen=
15056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15057 *datarootdir*) ac_datarootdir_seen=yes;;
15058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063 ac_datarootdir_hack='
15064 s&@datadir@&$datadir&g
15065 s&@docdir@&$docdir&g
15066 s&@infodir@&$infodir&g
15067 s&@localedir@&$localedir&g
15068 s&@mandir@&$mandir&g
15069 s&\\\${datarootdir}&$datarootdir&g' ;;
15073 # Neutralize VPATH when `$srcdir' = `.'.
15074 # Shell code in configure.ac might set extrasub.
15075 # FIXME: do we really want to maintain this feature?
15076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15077 ac_sed_extra="$ac_vpsub
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15083 s|@configure_input@|$ac_sed_conf_input|;t t
15084 s&@top_builddir@&$ac_top_builddir_sub&;t t
15085 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15086 s&@srcdir@&$ac_srcdir&;t t
15087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15088 s&@top_srcdir@&$ac_top_srcdir&;t t
15089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15090 s&@builddir@&$ac_builddir&;t t
15091 s&@abs_builddir@&$ac_abs_builddir&;t t
15092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15093 s&@INSTALL@&$ac_INSTALL&;t t
15094 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15095 $ac_datarootdir_hack
15097 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15098 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15100 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15101 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15102 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15103 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15105 which seems to be undefined. Please make sure it is defined" >&5
15106 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15107 which seems to be undefined. Please make sure it is defined" >&2;}
15109 rm -f "$ac_tmp/stdin"
15111 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15112 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15120 if test x"$ac_file" != x-; then
15122 $as_echo "/* $configure_input */" \
15123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15124 } >"$ac_tmp/config.h" \
15125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15126 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15128 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15131 mv "$ac_tmp/config.h" "$ac_file" \
15132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15135 $as_echo "/* $configure_input */" \
15136 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15137 || as_fn_error $? "could not create -" "$LINENO" 5
15139 # Compute "$ac_file"'s index in $config_headers.
15142 for _am_header in $config_headers :; do
15143 case $_am_header in
15144 $_am_arg | $_am_arg:* )
15147 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15150 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15151 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152 X"$_am_arg" : 'X\(//\)[^/]' \| \
15153 X"$_am_arg" : 'X\(//\)$' \| \
15154 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$_am_arg" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15160 /^X\(\/\/\)[^/].*/{
15172 s/.*/./; q'`/stamp-h$_am_stamp_count
15175 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15176 $as_echo "$as_me: executing $ac_file commands" >&6;}
15181 case $ac_file$ac_mode in
15182 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15183 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15184 # are listed without --file. Let's play safe and only enable the eval
15185 # if we detect the quoting.
15186 case $CONFIG_FILES in
15187 *\'*) eval set x "$CONFIG_FILES" ;;
15188 *) set x $CONFIG_FILES ;;
15193 # Strip MF so we end up with the name of the file.
15194 mf=`echo "$mf" | sed -e 's/:.*$//'`
15195 # Check whether this is an Automake generated Makefile or not.
15196 # We used to match only the files named `Makefile.in', but
15197 # some people rename them; so instead we look at the file content.
15198 # Grep'ing the first line is not enough: some people post-process
15199 # each Makefile.in and add a new line on top of each file to say so.
15200 # Grep'ing the whole file is not good either: AIX grep has a line
15201 # limit of 2048, but all sed's we know have understand at least 4000.
15202 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15203 dirpart=`$as_dirname -- "$mf" ||
15204 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205 X"$mf" : 'X\(//\)[^/]' \| \
15206 X"$mf" : 'X\(//\)$' \| \
15207 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15213 /^X\(\/\/\)[^/].*/{
15229 # Extract the definition of DEPDIR, am__include, and am__quote
15230 # from the Makefile without running `make'.
15231 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15232 test -z "$DEPDIR" && continue
15233 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15234 test -z "am__include" && continue
15235 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15236 # When using ansi2knr, U may be empty or an underscore; expand it
15237 U=`sed -n 's/^U = //p' < "$mf"`
15238 # Find all dependency output files, they are included files with
15239 # $(DEPDIR) in their names. We invoke sed twice because it is the
15240 # simplest approach to changing $(DEPDIR) to its actual value in the
15242 for file in `sed -n "
15243 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15244 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15245 # Make sure the directory exists.
15246 test -f "$dirpart/$file" && continue
15247 fdir=`$as_dirname -- "$file" ||
15248 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249 X"$file" : 'X\(//\)[^/]' \| \
15250 X"$file" : 'X\(//\)$' \| \
15251 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15252 $as_echo X"$file" |
15253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15257 /^X\(\/\/\)[^/].*/{
15270 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15271 # echo "creating $dirpart/$file"
15272 echo '# dummy' > "$dirpart/$file"
15279 # See if we are running on zsh, and set the options which allow our
15280 # commands through without removal of \ escapes.
15281 if test -n "${ZSH_VERSION+set}" ; then
15282 setopt NO_GLOB_SUBST
15285 cfgfile="${ofile}T"
15286 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15289 cat <<_LT_EOF >> "$cfgfile"
15292 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15293 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15294 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15298 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15300 # Written by Gordon Matzigkeit, 1996
15302 # This file is part of GNU Libtool.
15304 # GNU Libtool is free software; you can redistribute it and/or
15305 # modify it under the terms of the GNU General Public License as
15306 # published by the Free Software Foundation; either version 2 of
15307 # the License, or (at your option) any later version.
15309 # As a special exception to the GNU General Public License,
15310 # if you distribute this file as part of a program or library that
15311 # is built using GNU Libtool, you may include this file under the
15312 # same distribution terms that you use for the rest of that program.
15314 # GNU Libtool is distributed in the hope that it will be useful,
15315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15317 # GNU General Public License for more details.
15319 # You should have received a copy of the GNU General Public License
15320 # along with GNU Libtool; see the file COPYING. If not, a copy
15321 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15322 # obtained by writing to the Free Software Foundation, Inc.,
15323 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15326 # The names of the tagged configurations supported by this script.
15329 # ### BEGIN LIBTOOL CONFIG
15331 # Whether or not to build static libraries.
15332 build_old_libs=$enable_static
15334 # Which release of libtool.m4 was used?
15335 macro_version=$macro_version
15336 macro_revision=$macro_revision
15338 # Whether or not to build shared libraries.
15339 build_libtool_libs=$enable_shared
15341 # What type of objects to build.
15344 # Whether or not to optimize for fast installation.
15345 fast_install=$enable_fast_install
15347 # Shell to use when invoking shell scripts.
15350 # An echo program that protects backslashes.
15353 # The PATH separator for the build system.
15354 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15357 host_alias=$host_alias
15361 # The build system.
15362 build_alias=$build_alias
15366 # A sed program that does not truncate output.
15369 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15370 Xsed="\$SED -e 1s/^X//"
15372 # A grep program that handles long lines.
15378 # A literal string matcher.
15381 # A BSD- or MS-compatible name lister.
15384 # Whether we need soft or hard links.
15387 # What is the maximum length of a command?
15388 max_cmd_len=$max_cmd_len
15390 # Object file suffix (normally "o").
15393 # Executable file suffix (normally "").
15396 # whether the shell understands "unset".
15399 # turn spaces into newlines.
15402 # turn newlines into spaces.
15405 # convert \$build file names to \$host format.
15406 to_host_file_cmd=$lt_cv_to_host_file_cmd
15408 # convert \$build files to toolchain format.
15409 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15411 # An object symbol dumper.
15412 OBJDUMP=$lt_OBJDUMP
15414 # Method to check whether dependent libraries are shared objects.
15415 deplibs_check_method=$lt_deplibs_check_method
15417 # Command to use when deplibs_check_method = "file_magic".
15418 file_magic_cmd=$lt_file_magic_cmd
15420 # How to find potential files when deplibs_check_method = "file_magic".
15421 file_magic_glob=$lt_file_magic_glob
15423 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15424 want_nocaseglob=$lt_want_nocaseglob
15426 # DLL creation program.
15427 DLLTOOL=$lt_DLLTOOL
15429 # Command to associate shared and link libraries.
15430 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15435 # Flags to create an archive.
15436 AR_FLAGS=$lt_AR_FLAGS
15438 # How to feed a file listing to the archiver.
15439 archiver_list_spec=$lt_archiver_list_spec
15441 # A symbol stripping program.
15444 # Commands used to install an old-style archive.
15446 old_postinstall_cmds=$lt_old_postinstall_cmds
15447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15449 # Whether to use a lock for old archive extraction.
15450 lock_old_archive_extraction=$lock_old_archive_extraction
15455 # LTCC compiler flags.
15456 LTCFLAGS=$lt_CFLAGS
15458 # Take the output of nm and produce a listing of raw symbols and C names.
15459 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15461 # Transform the output of nm in a proper C declaration.
15462 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15464 # Transform the output of nm in a C name address pair.
15465 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15467 # Transform the output of nm in a C name address pair when lib prefix is needed.
15468 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15470 # Specify filename containing input files for \$NM.
15471 nm_file_list_spec=$lt_nm_file_list_spec
15473 # The root where to search for dependent libraries,and in which our libraries should be installed.
15474 lt_sysroot=$lt_sysroot
15476 # The name of the directory that contains temporary libtool files.
15479 # Used to examine libraries when file_magic_cmd begins with "file".
15480 MAGIC_CMD=$MAGIC_CMD
15482 # Must we lock files when doing compilation?
15483 need_locks=$lt_need_locks
15486 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15488 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15489 DSYMUTIL=$lt_DSYMUTIL
15491 # Tool to change global to local symbols on Mac OS X.
15494 # Tool to manipulate fat objects and archives on Mac OS X.
15497 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15500 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15501 OTOOL64=$lt_OTOOL64
15503 # Old archive suffix (normally "a").
15506 # Shared library suffix (normally ".so").
15507 shrext_cmds=$lt_shrext_cmds
15509 # The commands to extract the exported symbol list from a shared archive.
15510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15512 # Variables whose values should be saved in libtool wrapper scripts and
15513 # restored at link time.
15514 variables_saved_for_relink=$lt_variables_saved_for_relink
15516 # Do we need the "lib" prefix for modules?
15517 need_lib_prefix=$need_lib_prefix
15519 # Do we need a version for libraries?
15520 need_version=$need_version
15522 # Library versioning type.
15523 version_type=$version_type
15525 # Shared library runtime path variable.
15526 runpath_var=$runpath_var
15528 # Shared library path variable.
15529 shlibpath_var=$shlibpath_var
15531 # Is shlibpath searched before the hard-coded library search path?
15532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15534 # Format of library name prefix.
15535 libname_spec=$lt_libname_spec
15537 # List of archive names. First name is the real one, the rest are links.
15538 # The last name is the one that the linker finds with -lNAME
15539 library_names_spec=$lt_library_names_spec
15541 # The coded name of the library, if different from the real name.
15542 soname_spec=$lt_soname_spec
15544 # Permission mode override for installation of shared libraries.
15545 install_override_mode=$lt_install_override_mode
15547 # Command to use after installation of a shared archive.
15548 postinstall_cmds=$lt_postinstall_cmds
15550 # Command to use after uninstallation of a shared archive.
15551 postuninstall_cmds=$lt_postuninstall_cmds
15553 # Commands used to finish a libtool library installation in a directory.
15554 finish_cmds=$lt_finish_cmds
15556 # As "finish_cmds", except a single script fragment to be evaled but
15558 finish_eval=$lt_finish_eval
15560 # Whether we should hardcode library paths into libraries.
15561 hardcode_into_libs=$hardcode_into_libs
15563 # Compile-time system search path for libraries.
15564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15566 # Run-time system search path for libraries.
15567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15569 # Whether dlopen is supported.
15570 dlopen_support=$enable_dlopen
15572 # Whether dlopen of programs is supported.
15573 dlopen_self=$enable_dlopen_self
15575 # Whether dlopen of statically linked programs is supported.
15576 dlopen_self_static=$enable_dlopen_self_static
15578 # Commands to strip libraries.
15579 old_striplib=$lt_old_striplib
15580 striplib=$lt_striplib
15583 # The linker used to build libraries.
15586 # How to create reloadable object files.
15587 reload_flag=$lt_reload_flag
15588 reload_cmds=$lt_reload_cmds
15590 # Commands used to build an old-style archive.
15591 old_archive_cmds=$lt_old_archive_cmds
15593 # A language specific compiler.
15596 # Is the compiler the GNU compiler?
15599 # Compiler flag to turn off builtin functions.
15600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15602 # Additional compiler flags for building library objects.
15603 pic_flag=$lt_lt_prog_compiler_pic
15605 # How to pass a linker flag through the compiler.
15606 wl=$lt_lt_prog_compiler_wl
15608 # Compiler flag to prevent dynamic linking.
15609 link_static_flag=$lt_lt_prog_compiler_static
15611 # Does compiler simultaneously support -c and -o options?
15612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15614 # Whether or not to add -lc for building shared libraries.
15615 build_libtool_need_lc=$archive_cmds_need_lc
15617 # Whether or not to disallow shared libs when runtime libs are static.
15618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15620 # Compiler flag to allow reflexive dlopens.
15621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15623 # Compiler flag to generate shared objects directly from archives.
15624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15626 # Whether the compiler copes with passing no objects directly.
15627 compiler_needs_object=$lt_compiler_needs_object
15629 # Create an old-style archive from a shared archive.
15630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15632 # Create a temporary old-style archive to link instead of a shared archive.
15633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15635 # Commands used to build a shared archive.
15636 archive_cmds=$lt_archive_cmds
15637 archive_expsym_cmds=$lt_archive_expsym_cmds
15639 # Commands used to build a loadable module if different from building
15640 # a shared archive.
15641 module_cmds=$lt_module_cmds
15642 module_expsym_cmds=$lt_module_expsym_cmds
15644 # Whether we are building with GNU ld or not.
15645 with_gnu_ld=$lt_with_gnu_ld
15647 # Flag that allows shared libraries with undefined symbols to be built.
15648 allow_undefined_flag=$lt_allow_undefined_flag
15650 # Flag that enforces no undefined symbols.
15651 no_undefined_flag=$lt_no_undefined_flag
15653 # Flag to hardcode \$libdir into a binary during linking.
15654 # This must work even if \$libdir does not exist
15655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15657 # Whether we need a single "-rpath" flag with a separated argument.
15658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15661 # DIR into the resulting binary.
15662 hardcode_direct=$hardcode_direct
15664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15665 # DIR into the resulting binary and the resulting library dependency is
15666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15667 # library is relocated.
15668 hardcode_direct_absolute=$hardcode_direct_absolute
15670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15671 # into the resulting binary.
15672 hardcode_minus_L=$hardcode_minus_L
15674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15675 # into the resulting binary.
15676 hardcode_shlibpath_var=$hardcode_shlibpath_var
15678 # Set to "yes" if building a shared library automatically hardcodes DIR
15679 # into the library and all subsequent libraries and executables linked
15681 hardcode_automatic=$hardcode_automatic
15683 # Set to yes if linker adds runtime paths of dependent libraries
15684 # to runtime path list.
15685 inherit_rpath=$inherit_rpath
15687 # Whether libtool must link a program against all its dependency libraries.
15688 link_all_deplibs=$link_all_deplibs
15690 # Set to "yes" if exported symbols are required.
15691 always_export_symbols=$always_export_symbols
15693 # The commands to list exported symbols.
15694 export_symbols_cmds=$lt_export_symbols_cmds
15696 # Symbols that should not be listed in the preloaded symbols.
15697 exclude_expsyms=$lt_exclude_expsyms
15699 # Symbols that must always be exported.
15700 include_expsyms=$lt_include_expsyms
15702 # Commands necessary for linking programs (against libraries) with templates.
15703 prelink_cmds=$lt_prelink_cmds
15705 # Commands necessary for finishing linking programs.
15706 postlink_cmds=$lt_postlink_cmds
15708 # Specify filename containing input files.
15709 file_list_spec=$lt_file_list_spec
15711 # How to hardcode a shared library path into an executable.
15712 hardcode_action=$hardcode_action
15714 # ### END LIBTOOL CONFIG
15720 cat <<\_LT_EOF >> "$cfgfile"
15721 # AIX sometimes has problems with the GCC collect2 program. For some
15722 # reason, if we set the COLLECT_NAMES environment variable, the problems
15723 # vanish in a puff of smoke.
15724 if test "X${COLLECT_NAMES+set}" != Xset; then
15726 export COLLECT_NAMES
15733 ltmain="$ac_aux_dir/ltmain.sh"
15736 # We use sed instead of cat because bash on DJGPP gets confused if
15737 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15738 # text mode, it properly converts lines to CR/LF. This bash problem
15739 # is reportedly fixed, but why not run on old versions too?
15740 sed '$q' "$ltmain" >> "$cfgfile" \
15741 || (rm -f "$cfgfile"; exit 1)
15743 if test x"$xsi_shell" = xyes; then
15744 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15748 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15749 \ * ) func_dirname_result="${3}" ;;\
15751 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15752 && mv -f "$cfgfile.tmp" "$cfgfile" \
15753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15754 test 0 -eq $? || _lt_function_replace_fail=:
15757 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15760 \ func_basename_result="${1##*/}"\
15761 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15762 && mv -f "$cfgfile.tmp" "$cfgfile" \
15763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15764 test 0 -eq $? || _lt_function_replace_fail=:
15767 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15768 func_dirname_and_basename ()\
15771 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15772 \ * ) func_dirname_result="${3}" ;;\
15774 \ func_basename_result="${1##*/}"\
15775 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15776 && mv -f "$cfgfile.tmp" "$cfgfile" \
15777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15778 test 0 -eq $? || _lt_function_replace_fail=:
15781 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15784 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15785 \ # positional parameters, so assign one to ordinary parameter first.\
15786 \ func_stripname_result=${3}\
15787 \ func_stripname_result=${func_stripname_result#"${1}"}\
15788 \ func_stripname_result=${func_stripname_result%"${2}"}\
15789 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15790 && mv -f "$cfgfile.tmp" "$cfgfile" \
15791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15792 test 0 -eq $? || _lt_function_replace_fail=:
15795 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15796 func_split_long_opt ()\
15798 \ func_split_long_opt_name=${1%%=*}\
15799 \ func_split_long_opt_arg=${1#*=}\
15800 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15801 && mv -f "$cfgfile.tmp" "$cfgfile" \
15802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803 test 0 -eq $? || _lt_function_replace_fail=:
15806 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15807 func_split_short_opt ()\
15809 \ func_split_short_opt_arg=${1#??}\
15810 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15811 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15812 && mv -f "$cfgfile.tmp" "$cfgfile" \
15813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15814 test 0 -eq $? || _lt_function_replace_fail=:
15817 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15821 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15822 \ *) func_lo2o_result=${1} ;;\
15824 } # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
15833 func_xform_result=${1%.*}.lo\
15834 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15835 && mv -f "$cfgfile.tmp" "$cfgfile" \
15836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15837 test 0 -eq $? || _lt_function_replace_fail=:
15840 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15843 func_arith_result=$(( $* ))\
15844 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15845 && mv -f "$cfgfile.tmp" "$cfgfile" \
15846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15847 test 0 -eq $? || _lt_function_replace_fail=:
15850 sed -e '/^func_len ()$/,/^} # func_len /c\
15853 func_len_result=${#1}\
15854 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15855 && mv -f "$cfgfile.tmp" "$cfgfile" \
15856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15857 test 0 -eq $? || _lt_function_replace_fail=:
15861 if test x"$lt_shell_append" = xyes; then
15862 sed -e '/^func_append ()$/,/^} # func_append /c\
15865 eval "${1}+=\\${2}"\
15866 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15867 && mv -f "$cfgfile.tmp" "$cfgfile" \
15868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869 test 0 -eq $? || _lt_function_replace_fail=:
15872 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15873 func_append_quoted ()\
15875 \ func_quote_for_eval "${2}"\
15876 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15877 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15878 && mv -f "$cfgfile.tmp" "$cfgfile" \
15879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15880 test 0 -eq $? || _lt_function_replace_fail=:
15883 # Save a `func_append' function call where possible by direct use of '+='
15884 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15885 && mv -f "$cfgfile.tmp" "$cfgfile" \
15886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15887 test 0 -eq $? || _lt_function_replace_fail=:
15889 # Save a `func_append' function call even when '+=' is not available
15890 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 if test x"$_lt_function_replace_fail" = x":"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15898 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15902 mv -f "$cfgfile" "$ofile" ||
15903 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15914 ac_clean_files=$ac_clean_files_save
15916 test $ac_write_fail = 0 ||
15917 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15920 # configure is writing to config.log, and then calls config.status.
15921 # config.status does its own redirection, appending to config.log.
15922 # Unfortunately, on DOS this fails, as config.log is still kept open
15923 # by configure, so config.status won't be able to write to it; its
15924 # output is simply discarded. So we exec the FD to /dev/null,
15925 # effectively closing config.log, so it can be properly (re)opened and
15926 # appended to by config.status. When coming back to configure, we
15927 # need to make the FD available again.
15928 if test "$no_create" != yes; then
15930 ac_config_status_args=
15931 test "$silent" = yes &&
15932 ac_config_status_args="$ac_config_status_args --quiet"
15934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15937 # would make configure fail if this is the last instruction.
15938 $ac_cs_success || as_fn_exit 1
15940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}