2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ofono 1.8.
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.
589 PACKAGE_TARNAME='ofono'
590 PACKAGE_VERSION='1.8'
591 PACKAGE_STRING='ofono 1.8'
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
729 MAINTAINER_MODE_FALSE
743 INSTALL_STRIP_PROGRAM
785 program_transform_name
798 enable_option_checking
800 enable_maintainer_mode
801 enable_dependency_tracking
830 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures ofono 1.8 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/ofono]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of ofono 1.8:";;
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: `make V=1')
1473 --disable-silent-rules verbose build output (undo: `make V=0')
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
1476 --disable-dependency-tracking speeds up one-time build
1477 --enable-dependency-tracking do not reject slow dependency extractors
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --disable-optimization disable code optimization through compiler
1484 --enable-debug enable compiling with debugging information
1485 --enable-test enable test/example scripts
1486 --enable-pie enable position independent executables flag
1487 --enable-threads enable threading support
1488 --disable-udev don't use udev support even if available
1489 --enable-tools enable testing tools
1490 --enable-dundee enable DUN deamon support
1491 --disable-atmodem disable ETSI AT modem support
1492 --disable-cdmamodem disable CDMA AT modem support
1493 --disable-phonesim disable Phone simulator support
1494 --disable-isimodem disable PhoNet/ISI modem support
1495 --disable-qmimodem disable Qualcomm QMI modem support
1496 --disable-bluetooth disable Bluetooth modem support
1497 --disable-provision disable provisioning suport
1498 --disable-datafiles do not install configuration and data files
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot=DIR Search for dependent libraries within DIR
1507 (or the compiler's sysroot if not specified).
1508 --with-dbusconfdir=PATH path to D-Bus config directory
1509 --with-dbusdatadir=PATH path to D-Bus data directory
1510 --with-systemdunitdir=DIR
1511 path to systemd service directory
1512 --with-provisiondb=FILE location of provision database
1514 Some influential environment variables:
1515 PKG_CONFIG path to pkg-config utility
1517 directories to add to pkg-config's search path
1519 path overriding pkg-config's built-in search path
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1528 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1529 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1531 C compiler flags for GTHREAD, overriding pkg-config
1533 linker flags for GTHREAD, overriding pkg-config
1534 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1535 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1536 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1537 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1538 USB_CFLAGS C compiler flags for USB, overriding pkg-config
1539 USB_LIBS linker flags for USB, overriding pkg-config
1541 C compiler flags for BLUEZ, overriding pkg-config
1542 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to the package provider.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1611 generated by GNU Autoconf 2.69
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 test -x conftest$ac_exeext
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_link
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1725 if ac_fn_c_try_compile "$LINENO"; then :
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 } # ac_fn_c_check_header_compile
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1841 # include <limits.h>
1843 # include <assert.h>
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1870 if ac_fn_c_try_link "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_func
1884 cat >config.log <<_ACEOF
1885 This file contains any messages produced by compilers while
1886 running configure, to aid debugging if configure makes a mistake.
1888 It was created by ofono $as_me 1.8, which was
1889 generated by GNU Autoconf 2.69. Invocation command line was
1901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1941 # Keep a trace of the command line.
1942 # Strip out --no-create and --no-recursion so they do not pile up.
1943 # Strip out --silent because we don't want to record it for future runs.
1944 # Also quote any args containing shell meta-characters.
1945 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_must_keep_next=false
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1965 as_fn_append ac_configure_args1 " '$ac_arg'"
1966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 -* ) ac_must_keep_next=true ;;
1981 as_fn_append ac_configure_args " '$ac_arg'"
1986 { ac_configure_args0=; unset ac_configure_args0;}
1987 { ac_configure_args1=; unset ac_configure_args1;}
1989 # When interrupted or exit'd, cleanup temporary files, and complete
1990 # config.log. We remove comments because anyway the quotes in there
1991 # would cause problems or look ugly.
1992 # WARNING: Use '\'' to represent an apostrophe within the trap.
1993 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994 trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1999 $as_echo "## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##"
2003 # The following way of writing the cache mishandles newlines in values,
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035 $as_echo "## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##"
2039 for ac_var in $ac_subst_vars
2041 eval ac_val=\$$ac_var
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 $as_echo "$ac_var='\''$ac_val'\''"
2049 if test -n "$ac_subst_files"; then
2050 $as_echo "## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##"
2054 for ac_var in $ac_subst_files
2056 eval ac_val=\$$ac_var
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 $as_echo "$ac_var='\''$ac_val'\''"
2065 if test -s confdefs.h; then
2066 $as_echo "## ----------- ##
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081 for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2089 $as_echo "/* confdefs.h */" > confdefs.h
2091 # Predefined preprocessor variables.
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2122 if test -n "$CONFIG_SITE"; then
2123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138 test "x$ac_site_file" = xNONE && continue
2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 as_fn_error $? "failed to load site script $ac_site_file
2147 See \`config.log' for more details" "$LINENO" 5; }
2151 if test -r "$cache_file"; then
2152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2168 # Check that the precious variables saved in the cache have kept the same
2170 ac_cache_corrupted=false
2171 for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2218 if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2225 ## -------------------- ##
2226 ## Main body of script. ##
2227 ## -------------------- ##
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 am__api_version='1.11'
2240 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241 if test -f "$ac_dir/install-sh"; then
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2245 elif test -f "$ac_dir/install.sh"; then
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2249 elif test -f "$ac_dir/shtool"; then
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2255 if test -z "$ac_aux_dir"; then
2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2259 # These three variables are undocumented and unsupported,
2260 # and are intended to be withdrawn in a future Autoconf release.
2261 # They can cause serious problems if a builder's source tree is in a directory
2262 # whose full name contains unusual characters.
2263 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2264 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2265 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2337 rm -rf conftest.one conftest.two conftest.dir
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2365 echo timestamp > conftest.file
2366 # Reject unsafe characters in $srcdir or the absolute working directory
2367 # name. Accept space and tab only in the latter.
2371 *[\\\"\#\$\&\'\`$am_lf]*)
2372 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2375 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2376 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2379 # Do `set' in a subshell so we don't clobber the current shell's
2380 # arguments. Must try -L first in case configure is actually a
2381 # symlink; some systems play weird games with the mod time of symlinks
2382 # (eg FreeBSD returns the mod time of the symlink's containing
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2388 set X `ls -t "$srcdir/configure" conftest.file`
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
2394 # If neither matched, then we have a broken ls. This can happen
2395 # if, for instance, CONFIG_SHELL is bash and it inherits a
2396 # broken ls alias from the environment. This has actually
2397 # happened. Such a system could not be considered "sane".
2398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2399 alias in your environment" "$LINENO" 5
2402 test "$2" = conftest.file
2408 as_fn_error $? "newly created file is older than distributed files!
2409 Check your system clock" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412 $as_echo "yes" >&6; }
2413 test "$program_prefix" != NONE &&
2414 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2415 # Use a double $ so make ignores it.
2416 test "$program_suffix" != NONE &&
2417 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2418 # Double any \ or $.
2419 # By default was `s,x,x', remove it if useless.
2420 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2423 # expand $ac_aux_dir to an absolute path
2424 am_aux_dir=`cd $ac_aux_dir && pwd`
2426 if test x"${MISSING+set}" != xset; then
2429 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2431 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2434 # Use eval to expand $SHELL
2435 if eval "$MISSING --run true"; then
2436 am_missing_run="$MISSING --run "
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2440 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2443 if test x"${install_sh}" != xset; then
2446 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2448 install_sh="\${SHELL} $am_aux_dir/install-sh"
2452 # Installed binaries are usually stripped using `strip' when the user
2453 # run `make install-strip'. However `strip' might not be the right
2454 # tool to use in cross-compilation environments, therefore Automake
2455 # will honor the `STRIP' environment variable to overrule this program.
2456 if test "$cross_compiling" != no; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_STRIP+:} false; then :
2463 $as_echo_n "(cached) " >&6
2465 if test -n "$STRIP"; then
2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 STRIP=$ac_cv_prog_STRIP
2486 if test -n "$STRIP"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2488 $as_echo "$STRIP" >&6; }
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2496 if test -z "$ac_cv_prog_STRIP"; then
2498 # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 if test -n "$ac_ct_STRIP"; then
2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_ac_ct_STRIP="strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526 if test -n "$ac_ct_STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2528 $as_echo "$ac_ct_STRIP" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2534 if test "x$ac_ct_STRIP" = x; then
2537 case $cross_compiling:$ac_tool_warned in
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541 ac_tool_warned=yes ;;
2546 STRIP="$ac_cv_prog_STRIP"
2550 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2553 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2554 if test -z "$MKDIR_P"; then
2555 if ${ac_cv_path_mkdir+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562 test -z "$as_dir" && as_dir=.
2563 for ac_prog in mkdir gmkdir; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2566 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567 'mkdir (GNU coreutils) '* | \
2568 'mkdir (coreutils) '* | \
2569 'mkdir (fileutils) '4.1*)
2570 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2580 test -d ./--version && rmdir ./--version
2581 if test "${ac_cv_path_mkdir+set}" = set; then
2582 MKDIR_P="$ac_cv_path_mkdir -p"
2584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for MKDIR_P within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
2588 MKDIR_P="$ac_install_sh -d"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2592 $as_echo "$MKDIR_P" >&6; }
2596 [\\/$]* | ?:[\\/]*) ;;
2597 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2600 for ac_prog in gawk mawk nawk awk
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_AWK+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$AWK"; then
2610 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_AWK="$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$AWK"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632 $as_echo "$AWK" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2639 test -n "$AWK" && break
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 cat >conftest.make <<\_ACEOF
2652 @echo '@@@%%%=$(MAKE)=@@@%%%'
2654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657 eval ac_cv_prog_make_${ac_make}_set=yes;;
2659 eval ac_cv_prog_make_${ac_make}_set=no;;
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 SET_MAKE="MAKE=${MAKE-make}"
2673 rm -rf .tst 2>/dev/null
2674 mkdir .tst 2>/dev/null
2675 if test -d .tst; then
2680 rmdir .tst 2>/dev/null
2682 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2683 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2684 # is not polluted with repeated "-I."
2685 am__isrc=' -I$(srcdir)'
2686 # test to see if srcdir already configured
2687 if test -f $srcdir/config.status; then
2688 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2692 # test whether we have cygpath
2693 if test -z "$CYGPATH_W"; then
2694 if (cygpath --version) >/dev/null 2>/dev/null; then
2695 CYGPATH_W='cygpath -w'
2702 # Define the identity of the package.
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE "$PACKAGE"
2712 cat >>confdefs.h <<_ACEOF
2713 #define VERSION "$VERSION"
2716 # Some tools Automake needs.
2718 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2721 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2724 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2727 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2730 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2732 # We need awk for the "check" target. The system "awk" is bad on
2734 # Always define AMTAR for backward compatibility. Yes, it's still used
2735 # in the wild :-( We should find a proper way to deprecate it ...
2738 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2744 ac_config_headers="$ac_config_headers config.h"
2747 # Check whether --enable-silent-rules was given.
2748 if test "${enable_silent_rules+set}" = set; then :
2749 enableval=$enable_silent_rules;
2752 case $enable_silent_rules in
2753 yes) AM_DEFAULT_VERBOSITY=0;;
2754 no) AM_DEFAULT_VERBOSITY=1;;
2755 *) AM_DEFAULT_VERBOSITY=0;;
2757 am_make=${MAKE-make}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2759 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2760 if ${am_cv_make_support_nested_variables+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if $as_echo 'TRUE=$(BAR$(V))
2769 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2770 am_cv_make_support_nested_variables=yes
2772 am_cv_make_support_nested_variables=no
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2776 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2777 if test $am_cv_make_support_nested_variables = yes; then
2779 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2781 AM_V=$AM_DEFAULT_VERBOSITY
2782 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2789 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2790 # Check whether --enable-maintainer-mode was given.
2791 if test "${enable_maintainer_mode+set}" = set; then :
2792 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2794 USE_MAINTAINER_MODE=no
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2798 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2799 if test $USE_MAINTAINER_MODE = yes; then
2800 MAINTAINER_MODE_TRUE=
2801 MAINTAINER_MODE_FALSE='#'
2803 MAINTAINER_MODE_TRUE='#'
2804 MAINTAINER_MODE_FALSE=
2807 MAINT=$MAINTAINER_MODE_TRUE
2820 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2827 $as_echo_n "(cached) " >&6
2831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2853 if test -n "$PKG_CONFIG"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2855 $as_echo "$PKG_CONFIG" >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2863 if test -z "$ac_cv_path_PKG_CONFIG"; then
2864 ac_pt_PKG_CONFIG=$PKG_CONFIG
2865 # Extract the first word of "pkg-config", so it can be a program name with args.
2866 set dummy pkg-config; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2870 $as_echo_n "(cached) " >&6
2872 case $ac_pt_PKG_CONFIG in
2874 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2896 if test -n "$ac_pt_PKG_CONFIG"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2898 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2904 if test "x$ac_pt_PKG_CONFIG" = x; then
2907 case $cross_compiling:$ac_tool_warned in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2913 PKG_CONFIG=$ac_pt_PKG_CONFIG
2916 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2920 if test -n "$PKG_CONFIG"; then
2921 _pkg_min_version=0.9.0
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2923 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2924 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2935 if (test "${CFLAGS}" = ""); then
2936 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2938 if (test "$USE_MAINTAINER_MODE" = "yes"); then
2939 CFLAGS="$CFLAGS -Werror -Wextra"
2940 CFLAGS="$CFLAGS -Wno-unused-parameter"
2941 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2942 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2943 CFLAGS="$CFLAGS -Wmissing-declarations"
2944 CFLAGS="$CFLAGS -Wredundant-decls"
2945 CFLAGS="$CFLAGS -Wcast-align"
2946 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 DEPDIR="${am__leading_dot}deps"
2959 ac_config_commands="$ac_config_commands depfiles"
2962 am_make=${MAKE-make}
2963 cat > confinc << 'END'
2965 @echo this is the am__doit target
2968 # If we don't find an include directive, just comment out the code.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2970 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2974 # First try GNU make style include.
2975 echo "include confinc" > confmf
2976 # Ignore all kinds of additional output from `make'.
2977 case `$am_make -s -f confmf 2> /dev/null` in #(
2978 *the\ am__doit\ target*)
2984 # Now try BSD make style include.
2985 if test "$am__include" = "#"; then
2986 echo '.include "confinc"' > confmf
2987 case `$am_make -s -f confmf 2> /dev/null` in #(
2988 *the\ am__doit\ target*)
2989 am__include=.include
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2998 $as_echo "$_am_result" >&6; }
2999 rm -f confinc confmf
3001 # Check whether --enable-dependency-tracking was given.
3002 if test "${enable_dependency_tracking+set}" = set; then :
3003 enableval=$enable_dependency_tracking;
3006 if test "x$enable_dependency_tracking" != xno; then
3007 am_depcomp="$ac_aux_dir/depcomp"
3011 if test "x$enable_dependency_tracking" != xno; then
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3064 if test -z "$ac_cv_prog_CC"; then
3066 # Extract the first word of "gcc", so it can be a program name with args.
3067 set dummy gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3102 if test "x$ac_ct_CC" = x; then
3105 case $cross_compiling:$ac_tool_warned in
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC
3193 if test $# != 0; then
3194 # We chose a different compiler from the bogus one.
3195 # However, it has the same basename, so the bogon will be chosen
3196 # first if we set CC to just the basename; use the full file name.
3198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$CC" && break
3258 if test -z "$CC"; then
3260 for ac_prog in cl.exe
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$ac_ct_CC"; then
3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$ac_ct_CC" && break
3302 if test "x$ac_ct_CC" = x; then
3305 case $cross_compiling:$ac_tool_warned in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details" "$LINENO" 5; }
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327 for ac_option in --version -v -V -qversion; do
3328 { { ac_try="$ac_compiler $ac_option >&5"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 if test -s conftest.err; then
3339 ... rest of stderr output deleted ...
3340 10q' conftest.err >conftest.er1
3341 cat conftest.er1 >&5
3343 rm -f conftest.er1 conftest.err
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372 for ac_file in $ac_files
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3381 if { { ac_try="$ac_link_default"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link_default") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3397 for ac_file in $ac_files ''
3399 test -f "$ac_file" || continue
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404 # We found the default executable, but exeext='' is most
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3427 if test -z "$ac_file"; then :
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error 77 "C compiler cannot create executables
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 $as_echo "yes" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442 $as_echo_n "checking for C compiler default output file name... " >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444 $as_echo "$ac_file" >&6; }
3445 ac_exeext=$ac_cv_exeext
3447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe'), while it won't with
3466 for ac_file in conftest.exe conftest conftest.*; do
3467 test -f "$ac_file" || continue
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details" "$LINENO" 5; }
3481 rm -f conftest conftest$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3485 rm -f conftest.$ac_ext
3486 EXEEXT=$ac_cv_exeext
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3494 FILE *f = fopen ("conftest.out", "w");
3495 return ferror (f) || fclose (f) != 0;
3501 ac_clean_files="$ac_clean_files conftest.out"
3502 # Check that the compiler produces executables we can run. If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 if test "$cross_compiling" != yes; then
3507 { { ac_try="$ac_link"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 if { ac_try='./conftest$ac_cv_exeext'
3519 { { case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_try") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; }; then
3531 if test "$cross_compiling" = maybe; then
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot run C compiled programs.
3537 If you meant to cross compile, use \`--host'.
3538 See \`config.log' for more details" "$LINENO" 5; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543 $as_echo "$cross_compiling" >&6; }
3545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if ${ac_cv_objext+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3563 rm -f conftest.o conftest.obj
3564 if { { ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compile") 2>&5
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 for ac_file in conftest.o conftest.obj conftest.*; do
3576 test -f "$ac_file" || continue;
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of object files: cannot compile
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 $as_echo "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600 if ${ac_cv_c_compiler_gnu+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628 if test $ac_compiler_gnu = yes; then
3633 ac_test_CFLAGS=${CFLAGS+set}
3634 ac_save_CFLAGS=$CFLAGS
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637 if ${ac_cv_prog_cc_g+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_save_c_werror_flag=$ac_c_werror_flag
3641 ac_c_werror_flag=yes
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3655 if ac_fn_c_try_compile "$LINENO"; then :
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 ac_c_werror_flag=$ac_save_c_werror_flag
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697 $as_echo "$ac_cv_prog_cc_g" >&6; }
3698 if test "$ac_test_CFLAGS" = set; then
3699 CFLAGS=$ac_save_CFLAGS
3700 elif test $ac_cv_prog_cc_g = yes; then
3701 if test "$GCC" = yes; then
3707 if test "$GCC" = yes; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3715 if ${ac_cv_prog_cc_c89+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 ac_cv_prog_cc_c89=no
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3739 s = g (p, va_arg (v,int));
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754 inside strings and character constants. */
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 CC="$ac_save_CC $ac_arg"
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_c89=$ac_arg
3779 rm -f core conftest.err conftest.$ac_objext
3780 test "x$ac_cv_prog_cc_c89" != "xno" && break
3782 rm -f conftest.$ac_ext
3787 case "x$ac_cv_prog_cc_c89" in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3795 CC="$CC $ac_cv_prog_cc_c89"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 depcc="$CC" am_compiler_list=
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3824 # Copy depcomp to subdir because otherwise we won't find it if we're
3825 # using a relative directory.
3826 cp "$am_depcomp" conftest.dir
3828 # We will build objects and dependencies in a subdirectory because
3829 # it helps to detect inapplicable dependency modes. For instance
3830 # both Tru64's cc and ICC support -MD to output dependencies as a
3831 # side effect of compilation, but ICC will put the dependencies in
3832 # the current directory while Tru64 will put them in the object
3836 am_cv_CC_dependencies_compiler_type=none
3837 if test "$am_compiler_list" = ""; then
3838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841 case " $depcc " in #(
3842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845 for depmode in $am_compiler_list; do
3846 # Setup a source with many dependencies, because some compilers
3847 # like to wrap large dependency lists on column 80 (with \), and
3848 # we should not choose a depcomp mode which is confused by this.
3850 # We need to recreate these files for each test, as the compiler may
3851 # overwrite some of them when testing with obscure command lines.
3852 # This happens at least with the AIX C compiler.
3854 for i in 1 2 3 4 5 6; do
3855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3857 # Solaris 8's {/usr,}/bin/sh.
3858 touch sub/conftst$i.h
3860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3863 # mode. It turns out that the SunPro C++ compiler does not properly
3864 # handle `-M -o', and we need to detect this. Also, some Intel
3865 # versions had trouble with output in subdirs
3866 am__obj=sub/conftest.${OBJEXT-o}
3867 am__minus_obj="-o $am__obj"
3870 # This depmode causes a compiler race in universal mode.
3871 test "$am__universal" = false || continue
3874 # after this tag, mechanisms are not by side-effect, so they'll
3875 # only be used when explicitly requested
3876 if test "x$enable_dependency_tracking" = xyes; then
3882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3883 # This compiler won't grok `-c -o', but also, the minuso test has
3884 # not run yet. These depmodes are late enough in the game, and
3885 # so weak that their functioning should not be impacted.
3886 am__obj=conftest.${OBJEXT-o}
3891 if depmode=$depmode \
3892 source=sub/conftest.c object=$am__obj \
3893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3895 >/dev/null 2>conftest.err &&
3896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3900 # icc doesn't choke on unknown options, it will just issue warnings
3901 # or remarks (even with -Werror). So we grep stderr for any message
3902 # that says an option was ignored or not supported.
3903 # When given -MP, icc 7.0 and 7.1 complain thusly:
3904 # icc: Command line warning: ignoring option '-M'; no argument required
3905 # The diagnosis changed in icc 8.0:
3906 # icc: Command line remark: option '-MP' not supported
3907 if (grep 'ignoring option' conftest.err ||
3908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3909 am_cv_CC_dependencies_compiler_type=$depmode
3918 am_cv_CC_dependencies_compiler_type=none
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927 test "x$enable_dependency_tracking" != xno \
3928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3930 am__fastdepCC_FALSE='#'
3932 am__fastdepCC_TRUE='#'
3933 am__fastdepCC_FALSE=
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3939 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3940 if ${ac_cv_c_restrict+:} false; then :
3941 $as_echo_n "(cached) " >&6
3944 # The order here caters to the fact that C++ does not require restrict.
3945 for ac_kw in __restrict __restrict__ _Restrict restrict; do
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948 typedef int * int_ptr;
3949 int foo (int_ptr $ac_kw ip) {
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_c_restrict=$ac_kw
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 test "$ac_cv_c_restrict" != no && break
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3972 $as_echo "$ac_cv_c_restrict" >&6; }
3974 case $ac_cv_c_restrict in
3976 no) $as_echo "#define restrict /**/" >>confdefs.h
3978 *) cat >>confdefs.h <<_ACEOF
3979 #define restrict $ac_cv_c_restrict
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_prog_CC+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 if test -n "$CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4021 $as_echo "$CC" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4029 if test -z "$ac_cv_prog_CC"; then
4031 # Extract the first word of "gcc", so it can be a program name with args.
4032 set dummy gcc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_ac_ct_CC="gcc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061 $as_echo "$ac_ct_CC" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4067 if test "x$ac_ct_CC" = x; then
4070 case $cross_compiling:$ac_tool_warned in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4082 if test -z "$CC"; then
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}cc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC="${ac_tool_prefix}cc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4123 if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_CC+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected=yes
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test $ac_prog_rejected = yes; then
4155 # We found a bogon in the path, so make sure we never use it.
4156 set dummy $ac_cv_prog_CC
4158 if test $# != 0; then
4159 # We chose a different compiler from the bogus one.
4160 # However, it has the same basename, so the bogon will be chosen
4161 # first if we set CC to just the basename; use the full file name.
4163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$CC"; then
4180 if test -n "$ac_tool_prefix"; then
4181 for ac_prog in cl.exe
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_CC+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$CC"; then
4191 ac_cv_prog_CC="$CC" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 if test -n "$CC"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213 $as_echo "$CC" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4220 test -n "$CC" && break
4223 if test -z "$CC"; then
4225 for ac_prog in cl.exe
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$ac_ct_CC"; then
4235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_ac_ct_CC="$ac_prog"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 $as_echo "$ac_ct_CC" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4264 test -n "$ac_ct_CC" && break
4267 if test "x$ac_ct_CC" = x; then
4270 case $cross_compiling:$ac_tool_warned in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274 ac_tool_warned=yes ;;
4283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "no acceptable C compiler found in \$PATH
4286 See \`config.log' for more details" "$LINENO" 5; }
4288 # Provide some information about the compiler.
4289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4292 for ac_option in --version -v -V -qversion; do
4293 { { ac_try="$ac_compiler $ac_option >&5"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4302 if test -s conftest.err; then
4304 ... rest of stderr output deleted ...
4305 10q' conftest.err >conftest.er1
4306 cat conftest.er1 >&5
4308 rm -f conftest.er1 conftest.err
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4315 if ${ac_cv_c_compiler_gnu+:} false; then :
4316 $as_echo_n "(cached) " >&6
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4332 if ac_fn_c_try_compile "$LINENO"; then :
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4348 ac_test_CFLAGS=${CFLAGS+set}
4349 ac_save_CFLAGS=$CFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4352 if ${ac_cv_prog_cc_g+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 ac_save_c_werror_flag=$ac_c_werror_flag
4356 ac_c_werror_flag=yes
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4370 if ac_fn_c_try_compile "$LINENO"; then :
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_c_werror_flag=$ac_save_c_werror_flag
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_c_try_compile "$LINENO"; then :
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4412 $as_echo "$ac_cv_prog_cc_g" >&6; }
4413 if test "$ac_test_CFLAGS" = set; then
4414 CFLAGS=$ac_save_CFLAGS
4415 elif test $ac_cv_prog_cc_g = yes; then
4416 if test "$GCC" = yes; then
4422 if test "$GCC" = yes; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4430 if ${ac_cv_prog_cc_c89+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 ac_cv_prog_cc_c89=no
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4441 struct buf { int x; };
4442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4443 static char *e (p, i)
4449 static char *f (char * (*g) (char **, int), char **p, ...)
4454 s = g (p, va_arg (v,int));
4459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4460 function prototypes and stuff, but not '\xHH' hex character constants.
4461 These don't provoke an error unfortunately, instead are silently treated
4462 as 'x'. The following induces an error, until -std is added to get
4463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4464 array size at least. It's necessary to write '\x00'==0 to get something
4465 that's true only with -std. */
4466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4469 inside strings and character constants. */
4471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4473 int test (int i, double x);
4474 struct s1 {int (*f) (int a);};
4475 struct s2 {int (*f) (double a);};
4476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4490 CC="$ac_save_CC $ac_arg"
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492 ac_cv_prog_cc_c89=$ac_arg
4494 rm -f core conftest.err conftest.$ac_objext
4495 test "x$ac_cv_prog_cc_c89" != "xno" && break
4497 rm -f conftest.$ac_ext
4502 case "x$ac_cv_prog_cc_c89" in
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 $as_echo "none needed" >&6; } ;;
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 $as_echo "unsupported" >&6; } ;;
4510 CC="$CC $ac_cv_prog_cc_c89"
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4514 if test "x$ac_cv_prog_cc_c89" != xno; then :
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 depcc="$CC" am_compiler_list=
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 $as_echo_n "checking dependency style of $depcc... " >&6; }
4528 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532 # We make a subdir and do the tests there. Otherwise we can end up
4533 # making bogus files that we don't know about and never remove. For
4534 # instance it was reported that on HP-UX the gcc test will end up
4535 # making a dummy file named `D' -- because `-MD' means `put the output
4539 # Copy depcomp to subdir because otherwise we won't find it if we're
4540 # using a relative directory.
4541 cp "$am_depcomp" conftest.dir
4543 # We will build objects and dependencies in a subdirectory because
4544 # it helps to detect inapplicable dependency modes. For instance
4545 # both Tru64's cc and ICC support -MD to output dependencies as a
4546 # side effect of compilation, but ICC will put the dependencies in
4547 # the current directory while Tru64 will put them in the object
4551 am_cv_CC_dependencies_compiler_type=none
4552 if test "$am_compiler_list" = ""; then
4553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4556 case " $depcc " in #(
4557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4560 for depmode in $am_compiler_list; do
4561 # Setup a source with many dependencies, because some compilers
4562 # like to wrap large dependency lists on column 80 (with \), and
4563 # we should not choose a depcomp mode which is confused by this.
4565 # We need to recreate these files for each test, as the compiler may
4566 # overwrite some of them when testing with obscure command lines.
4567 # This happens at least with the AIX C compiler.
4569 for i in 1 2 3 4 5 6; do
4570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4572 # Solaris 8's {/usr,}/bin/sh.
4573 touch sub/conftst$i.h
4575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4578 # mode. It turns out that the SunPro C++ compiler does not properly
4579 # handle `-M -o', and we need to detect this. Also, some Intel
4580 # versions had trouble with output in subdirs
4581 am__obj=sub/conftest.${OBJEXT-o}
4582 am__minus_obj="-o $am__obj"
4585 # This depmode causes a compiler race in universal mode.
4586 test "$am__universal" = false || continue
4589 # after this tag, mechanisms are not by side-effect, so they'll
4590 # only be used when explicitly requested
4591 if test "x$enable_dependency_tracking" = xyes; then
4597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4598 # This compiler won't grok `-c -o', but also, the minuso test has
4599 # not run yet. These depmodes are late enough in the game, and
4600 # so weak that their functioning should not be impacted.
4601 am__obj=conftest.${OBJEXT-o}
4606 if depmode=$depmode \
4607 source=sub/conftest.c object=$am__obj \
4608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4610 >/dev/null 2>conftest.err &&
4611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4615 # icc doesn't choke on unknown options, it will just issue warnings
4616 # or remarks (even with -Werror). So we grep stderr for any message
4617 # that says an option was ignored or not supported.
4618 # When given -MP, icc 7.0 and 7.1 complain thusly:
4619 # icc: Command line warning: ignoring option '-M'; no argument required
4620 # The diagnosis changed in icc 8.0:
4621 # icc: Command line remark: option '-MP' not supported
4622 if (grep 'ignoring option' conftest.err ||
4623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4624 am_cv_CC_dependencies_compiler_type=$depmode
4633 am_cv_CC_dependencies_compiler_type=none
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4638 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4642 test "x$enable_dependency_tracking" != xno \
4643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4645 am__fastdepCC_FALSE='#'
4647 am__fastdepCC_TRUE='#'
4648 am__fastdepCC_FALSE=
4652 if test "x$CC" != xcc; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4659 set dummy $CC; ac_cc=`$as_echo "$2" |
4660 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 # Make sure it works both with $CC and with simple cc.
4676 # We do the test twice because some compilers refuse to overwrite an
4677 # existing .o file with -o, though they will create one.
4678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4680 if { { case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_try") 2>&5
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; } &&
4690 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_try") 2>&5
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; };
4701 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4702 if test "x$CC" != xcc; then
4703 # Test first that cc exists at all.
4704 if { ac_try='cc -c conftest.$ac_ext >&5'
4705 { { case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_try") 2>&5
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }; }; then
4715 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4717 if { { case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723 (eval "$ac_try") 2>&5
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; } &&
4727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_try") 2>&5
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; };
4741 # cc exists but doesn't like -o.
4742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4749 rm -f core conftest*
4752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4763 # FIXME: we rely on the cache variable name because
4764 # there is no other way.
4766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4768 if test "$am_t" != yes; then
4769 # Losing compiler, so override with the script.
4770 # FIXME: It is wrong to rewrite CC.
4771 # But if we don't then we get into trouble of one sort or another.
4772 # A longer-term fix would be to have automake use am__CC in this case,
4773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4774 CC="$am_aux_dir/compile $CC"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4780 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4781 if ${ac_cv_prog_cc_pie+:} false; then :
4782 $as_echo_n "(cached) " >&6
4785 echo 'void f(){}' > conftest.c
4786 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4787 ac_cv_prog_cc_pie=yes
4789 ac_cv_prog_cc_pie=no
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4795 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4800 [\\/$]* | ?:[\\/]*) ;;
4801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4808 # Check whether --enable-static was given.
4809 if test "${enable_static+set}" = set; then :
4810 enableval=$enable_static; p=${PACKAGE-default}
4812 yes) enable_static=yes ;;
4813 no) enable_static=no ;;
4816 # Look at the argument we got. We use all the common list separators.
4817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4818 for pkg in $enableval; do
4820 if test "X$pkg" = "X$p"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4847 macro_version='2.4.2'
4848 macro_revision='1.3337'
4862 ltmain="$ac_aux_dir/ltmain.sh"
4864 # Make sure we can run config.sub.
4865 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4866 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4869 $as_echo_n "checking build system type... " >&6; }
4870 if ${ac_cv_build+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 ac_build_alias=$build_alias
4874 test "x$ac_build_alias" = x &&
4875 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4876 test "x$ac_build_alias" = x &&
4877 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883 $as_echo "$ac_cv_build" >&6; }
4884 case $ac_cv_build in
4886 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4889 ac_save_IFS=$IFS; IFS='-'
4895 # Remember, the first character of IFS is used to create $*,
4896 # except with old shells:
4899 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903 $as_echo_n "checking host system type... " >&6; }
4904 if ${ac_cv_host+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 if test "x$host_alias" = x; then
4908 ac_cv_host=$ac_cv_build
4910 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916 $as_echo "$ac_cv_host" >&6; }
4919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4922 ac_save_IFS=$IFS; IFS='-'
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4935 # Backslashify metacharacters that are still active within
4936 # double-quoted strings.
4937 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4939 # Same as above, but do not quote variable references.
4940 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4942 # Sed substitution to delay expansion of an escaped shell variable in a
4943 # double_quote_subst'ed string.
4944 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4946 # Sed substitution to delay expansion of an escaped single quote.
4947 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4949 # Sed substitution to avoid accidental globbing in evaled expressions
4950 no_glob_subst='s/\*/\\\*/g'
4952 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4957 $as_echo_n "checking how to print strings... " >&6; }
4958 # Test print first, because it will be a builtin if present.
4959 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4960 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4962 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4965 # Use this function as a fallback that always works.
4966 func_fallback_echo ()
4968 eval 'cat <<_LTECHO_EOF
4972 ECHO='func_fallback_echo'
4975 # func_echo_all arg...
4976 # Invoke $ECHO with all args, space-separated.
4983 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4984 $as_echo "printf" >&6; } ;;
4985 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4986 $as_echo "print -r" >&6; } ;;
4987 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4988 $as_echo "cat" >&6; } ;;
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5005 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5006 if ${ac_cv_path_SED+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5010 for ac_i in 1 2 3 4 5 6 7; do
5011 ac_script="$ac_script$as_nl$ac_script"
5013 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5014 { ac_script=; unset ac_script;}
5015 if test -z "$SED"; then
5016 ac_path_SED_found=false
5017 # Loop through the user's path and test for each of PROGNAME-LIST
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_prog in sed gsed; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5026 as_fn_executable_p "$ac_path_SED" || continue
5027 # Check for GNU ac_path_SED and select it if it is found.
5028 # Check for GNU $ac_path_SED
5029 case `"$ac_path_SED" --version 2>&1` in
5031 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5034 $as_echo_n 0123456789 >"conftest.in"
5037 cat "conftest.in" "conftest.in" >"conftest.tmp"
5038 mv "conftest.tmp" "conftest.in"
5039 cp "conftest.in" "conftest.nl"
5040 $as_echo '' >> "conftest.nl"
5041 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043 as_fn_arith $ac_count + 1 && ac_count=$as_val
5044 if test $ac_count -gt ${ac_path_SED_max-0}; then
5045 # Best one so far, save it but keep looking for a better one
5046 ac_cv_path_SED="$ac_path_SED"
5047 ac_path_SED_max=$ac_count
5049 # 10*(2^10) chars as input seems more than enough
5050 test $ac_count -gt 10 && break
5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 $ac_path_SED_found && break 3
5060 if test -z "$ac_cv_path_SED"; then
5061 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5069 $as_echo "$ac_cv_path_SED" >&6; }
5070 SED="$ac_cv_path_SED"
5073 test -z "$SED" && SED=sed
5074 Xsed="$SED -e 1s/^X//"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5087 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5088 if ${ac_cv_path_GREP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5091 if test -z "$GREP"; then
5092 ac_path_GREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in grep ggrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5102 as_fn_executable_p "$ac_path_GREP" || continue
5103 # Check for GNU ac_path_GREP and select it if it is found.
5104 # Check for GNU $ac_path_GREP
5105 case `"$ac_path_GREP" --version 2>&1` in
5107 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5110 $as_echo_n 0123456789 >"conftest.in"
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'GREP' >> "conftest.nl"
5117 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_GREP="$ac_path_GREP"
5123 ac_path_GREP_max=$ac_count
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 $ac_path_GREP_found && break 3
5136 if test -z "$ac_cv_path_GREP"; then
5137 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140 ac_cv_path_GREP=$GREP
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5145 $as_echo "$ac_cv_path_GREP" >&6; }
5146 GREP="$ac_cv_path_GREP"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5150 $as_echo_n "checking for egrep... " >&6; }
5151 if ${ac_cv_path_EGREP+:} false; then :
5152 $as_echo_n "(cached) " >&6
5154 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5155 then ac_cv_path_EGREP="$GREP -E"
5157 if test -z "$EGREP"; then
5158 ac_path_EGREP_found=false
5159 # Loop through the user's path and test for each of PROGNAME-LIST
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 test -z "$as_dir" && as_dir=.
5165 for ac_prog in egrep; do
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5168 as_fn_executable_p "$ac_path_EGREP" || continue
5169 # Check for GNU ac_path_EGREP and select it if it is found.
5170 # Check for GNU $ac_path_EGREP
5171 case `"$ac_path_EGREP" --version 2>&1` in
5173 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5176 $as_echo_n 0123456789 >"conftest.in"
5179 cat "conftest.in" "conftest.in" >"conftest.tmp"
5180 mv "conftest.tmp" "conftest.in"
5181 cp "conftest.in" "conftest.nl"
5182 $as_echo 'EGREP' >> "conftest.nl"
5183 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185 as_fn_arith $ac_count + 1 && ac_count=$as_val
5186 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5187 # Best one so far, save it but keep looking for a better one
5188 ac_cv_path_EGREP="$ac_path_EGREP"
5189 ac_path_EGREP_max=$ac_count
5191 # 10*(2^10) chars as input seems more than enough
5192 test $ac_count -gt 10 && break
5194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 $ac_path_EGREP_found && break 3
5202 if test -z "$ac_cv_path_EGREP"; then
5203 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206 ac_cv_path_EGREP=$EGREP
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5212 $as_echo "$ac_cv_path_EGREP" >&6; }
5213 EGREP="$ac_cv_path_EGREP"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5217 $as_echo_n "checking for fgrep... " >&6; }
5218 if ${ac_cv_path_FGREP+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5222 then ac_cv_path_FGREP="$GREP -F"
5224 if test -z "$FGREP"; then
5225 ac_path_FGREP_found=false
5226 # Loop through the user's path and test for each of PROGNAME-LIST
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 test -z "$as_dir" && as_dir=.
5232 for ac_prog in fgrep; do
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5235 as_fn_executable_p "$ac_path_FGREP" || continue
5236 # Check for GNU ac_path_FGREP and select it if it is found.
5237 # Check for GNU $ac_path_FGREP
5238 case `"$ac_path_FGREP" --version 2>&1` in
5240 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5243 $as_echo_n 0123456789 >"conftest.in"
5246 cat "conftest.in" "conftest.in" >"conftest.tmp"
5247 mv "conftest.tmp" "conftest.in"
5248 cp "conftest.in" "conftest.nl"
5249 $as_echo 'FGREP' >> "conftest.nl"
5250 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252 as_fn_arith $ac_count + 1 && ac_count=$as_val
5253 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5254 # Best one so far, save it but keep looking for a better one
5255 ac_cv_path_FGREP="$ac_path_FGREP"
5256 ac_path_FGREP_max=$ac_count
5258 # 10*(2^10) chars as input seems more than enough
5259 test $ac_count -gt 10 && break
5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 $ac_path_FGREP_found && break 3
5269 if test -z "$ac_cv_path_FGREP"; then
5270 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 ac_cv_path_FGREP=$FGREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5279 $as_echo "$ac_cv_path_FGREP" >&6; }
5280 FGREP="$ac_cv_path_FGREP"
5283 test -z "$GREP" && GREP=grep
5303 # Check whether --with-gnu-ld was given.
5304 if test "${with_gnu_ld+set}" = set; then :
5305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5311 if test "$GCC" = yes; then
5312 # Check if gcc -print-prog-name=ld gives a path.
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5314 $as_echo_n "checking for ld used by $CC... " >&6; }
5317 # gcc leaves a trailing carriage return which upsets mingw
5318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5323 # Accept absolute paths.
5325 re_direlt='/[^/][^/]*/\.\./'
5326 # Canonicalize the pathname of ld
5327 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5328 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5329 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5331 test -z "$LD" && LD="$ac_prog"
5334 # If it fails, then pretend we aren't using GCC.
5338 # If it is relative, then search for the first ld in PATH.
5342 elif test "$with_gnu_ld" = yes; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5344 $as_echo_n "checking for GNU ld... " >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5347 $as_echo_n "checking for non-GNU ld... " >&6; }
5349 if ${lt_cv_path_LD+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -z "$LD"; then
5353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5354 for ac_dir in $PATH; do
5356 test -z "$ac_dir" && ac_dir=.
5357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5358 lt_cv_path_LD="$ac_dir/$ac_prog"
5359 # Check to see if the program is GNU ld. I'd rather use --version,
5360 # but apparently some variants of GNU ld only accept -v.
5361 # Break only if it was the GNU/non-GNU ld that we prefer.
5362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5363 *GNU* | *'with BFD'*)
5364 test "$with_gnu_ld" != no && break
5367 test "$with_gnu_ld" != yes && break
5374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5379 if test -n "$LD"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5381 $as_echo "$LD" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5386 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5389 if ${lt_cv_prog_gnu_ld+:} false; then :
5390 $as_echo_n "(cached) " >&6
5392 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5393 case `$LD -v 2>&1 </dev/null` in
5394 *GNU* | *'with BFD'*)
5395 lt_cv_prog_gnu_ld=yes
5398 lt_cv_prog_gnu_ld=no
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5403 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5404 with_gnu_ld=$lt_cv_prog_gnu_ld
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5415 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5416 if ${lt_cv_path_NM+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 if test -n "$NM"; then
5420 # Let the user override the test.
5423 lt_nm_to_check="${ac_tool_prefix}nm"
5424 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5425 lt_nm_to_check="$lt_nm_to_check nm"
5427 for lt_tmp_nm in $lt_nm_to_check; do
5428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5431 test -z "$ac_dir" && ac_dir=.
5432 tmp_nm="$ac_dir/$lt_tmp_nm"
5433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5434 # Check to see if the nm accepts a BSD-compat flag.
5435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5436 # nm: unknown option "B" ignored
5437 # Tru64's nm complains that /dev/null is an invalid object file
5438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5439 */dev/null* | *'Invalid file or object type'*)
5440 lt_cv_path_NM="$tmp_nm -B"
5444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5446 lt_cv_path_NM="$tmp_nm -p"
5450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5451 continue # so that we can try to find one that supports BSD flags
5460 : ${lt_cv_path_NM=no}
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5464 $as_echo "$lt_cv_path_NM" >&6; }
5465 if test "$lt_cv_path_NM" != "no"; then
5468 # Didn't find any BSD compatible name lister, look for dumpbin.
5469 if test -n "$DUMPBIN"; then :
5470 # Let the user override the test.
5472 if test -n "$ac_tool_prefix"; then
5473 for ac_prog in dumpbin "link -dump"
5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_DUMPBIN+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$DUMPBIN"; then
5483 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 DUMPBIN=$ac_cv_prog_DUMPBIN
5503 if test -n "$DUMPBIN"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5505 $as_echo "$DUMPBIN" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 test -n "$DUMPBIN" && break
5515 if test -z "$DUMPBIN"; then
5516 ac_ct_DUMPBIN=$DUMPBIN
5517 for ac_prog in dumpbin "link -dump"
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$ac_ct_DUMPBIN"; then
5527 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5549 $as_echo "$ac_ct_DUMPBIN" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 test -n "$ac_ct_DUMPBIN" && break
5559 if test "x$ac_ct_DUMPBIN" = x; then
5562 case $cross_compiling:$ac_tool_warned in
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5568 DUMPBIN=$ac_ct_DUMPBIN
5572 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5574 DUMPBIN="$DUMPBIN -symbols"
5582 if test "$DUMPBIN" != ":"; then
5586 test -z "$NM" && NM=nm
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5594 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5595 if ${lt_cv_nm_interface+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 lt_cv_nm_interface="BSD nm"
5599 echo "int some_variable = 0;" > conftest.$ac_ext
5600 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5601 (eval "$ac_compile" 2>conftest.err)
5602 cat conftest.err >&5
5603 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5604 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5605 cat conftest.err >&5
5606 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5607 cat conftest.out >&5
5608 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5609 lt_cv_nm_interface="MS dumpbin"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5614 $as_echo "$lt_cv_nm_interface" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5617 $as_echo_n "checking whether ln -s works... " >&6; }
5619 if test "$LN_S" = "ln -s"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5624 $as_echo "no, using $LN_S" >&6; }
5627 # find the maximum length of command line arguments
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5629 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5630 if ${lt_cv_sys_max_cmd_len+:} false; then :
5631 $as_echo_n "(cached) " >&6
5638 # On DJGPP, this test can blow up pretty badly due to problems in libc
5639 # (any single argument exceeding 2000 bytes causes a buffer overrun
5640 # during glob expansion). Even if it were fixed, the result of this
5641 # check would be larger than it should be.
5642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5646 # Under GNU Hurd, this test is not required because there is
5647 # no limit to the length of command line arguments.
5648 # Libtool will interpret -1 as no limit whatsoever
5649 lt_cv_sys_max_cmd_len=-1;
5652 cygwin* | mingw* | cegcc*)
5653 # On Win9x/ME, this test blows up -- it succeeds, but takes
5654 # about 5 minutes as the teststring grows exponentially.
5655 # Worse, since 9x/ME are not pre-emptively multitasking,
5656 # you end up with a "frozen" computer, even though with patience
5657 # the test eventually succeeds (with a max line length of 256k).
5658 # Instead, let's just punt: use the minimum linelength reported by
5659 # all of the supported platforms: 8192 (on NT/2K/XP).
5660 lt_cv_sys_max_cmd_len=8192;
5664 # On MiNT this can take a long time and run out of memory.
5665 lt_cv_sys_max_cmd_len=8192;
5669 # On AmigaOS with pdksh, this test takes hours, literally.
5670 # So we just punt and use a minimum line length of 8192.
5671 lt_cv_sys_max_cmd_len=8192;
5674 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5675 # This has been around since 386BSD, at least. Likely further.
5676 if test -x /sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5678 elif test -x /usr/sbin/sysctl; then
5679 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5681 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5683 # And add a safety zone
5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5689 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5690 lt_cv_sys_max_cmd_len=196608
5694 # The test takes a long time on OS/2.
5695 lt_cv_sys_max_cmd_len=8192
5699 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5700 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5701 # nice to cause kernel panics so lets avoid the loop below.
5702 # First set a reasonable default.
5703 lt_cv_sys_max_cmd_len=16384
5705 if test -x /sbin/sysconfig; then
5706 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5707 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5712 lt_cv_sys_max_cmd_len=102400
5714 sysv5* | sco5v6* | sysv4.2uw2*)
5715 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5716 if test -n "$kargmax"; then
5717 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5719 lt_cv_sys_max_cmd_len=32768
5723 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5724 if test -n "$lt_cv_sys_max_cmd_len"; then
5725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5728 # Make teststring a little bigger before we do anything with it.
5729 # a 1K string should be a reasonable start.
5730 for i in 1 2 3 4 5 6 7 8 ; do
5731 teststring=$teststring$teststring
5733 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5734 # If test is not a shell built-in, we'll probably end up computing a
5735 # maximum length that is only half of the actual maximum length, but
5737 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5738 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5739 test $i != 17 # 1/2 MB should be enough
5742 teststring=$teststring$teststring
5744 # Only check the string length outside the loop.
5745 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5747 # Add a significant safety factor because C++ compilers can tack on
5748 # massive amounts of additional arguments before passing them to the
5749 # linker. It appears as though 1/2 is a usable value.
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5757 if test -n $lt_cv_sys_max_cmd_len ; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5762 $as_echo "none" >&6; }
5764 max_cmd_len=$lt_cv_sys_max_cmd_len
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5776 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5777 # Try some XSI features
5780 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5782 && eval 'test $(( 1 + 1 )) -eq 2 \
5783 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5786 $as_echo "$xsi_shell" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5790 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5792 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5794 && lt_shell_append=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5796 $as_echo "$lt_shell_append" >&6; }
5799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5809 # test EBCDIC or ASCII
5810 case `echo X|tr X '\101'` in
5811 A) # ASCII based system
5812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5813 lt_SP2NL='tr \040 \012'
5814 lt_NL2SP='tr \015\012 \040\040'
5816 *) # EBCDIC based system
5817 lt_SP2NL='tr \100 \n'
5818 lt_NL2SP='tr \r\n \100\100'
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5831 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5832 if ${lt_cv_to_host_file_cmd+:} false; then :
5833 $as_echo_n "(cached) " >&6
5838 *-*-mingw* ) # actually msys
5839 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5842 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5844 * ) # otherwise, assume *nix
5845 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5851 *-*-mingw* ) # actually msys
5852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5855 lt_cv_to_host_file_cmd=func_convert_file_noop
5857 * ) # otherwise, assume *nix
5858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5862 * ) # unhandled hosts (and "normal" native builds)
5863 lt_cv_to_host_file_cmd=func_convert_file_noop
5869 to_host_file_cmd=$lt_cv_to_host_file_cmd
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5871 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5878 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5879 if ${lt_cv_to_tool_file_cmd+:} false; then :
5880 $as_echo_n "(cached) " >&6
5882 #assume ordinary cross tools, or native build.
5883 lt_cv_to_tool_file_cmd=func_convert_file_noop
5887 *-*-mingw* ) # actually msys
5888 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5896 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5898 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5905 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5906 if ${lt_cv_ld_reload_flag+:} false; then :
5907 $as_echo_n "(cached) " >&6
5909 lt_cv_ld_reload_flag='-r'
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5912 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5913 reload_flag=$lt_cv_ld_reload_flag
5914 case $reload_flag in
5916 *) reload_flag=" $reload_flag" ;;
5918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5920 cygwin* | mingw* | pw32* | cegcc*)
5921 if test "$GCC" != yes; then
5926 if test "$GCC" = yes; then
5927 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_OBJDUMP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -n "$OBJDUMP"; then
5951 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 OBJDUMP=$ac_cv_prog_OBJDUMP
5971 if test -n "$OBJDUMP"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5973 $as_echo "$OBJDUMP" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_OBJDUMP"; then
5982 ac_ct_OBJDUMP=$OBJDUMP
5983 # Extract the first word of "objdump", so it can be a program name with args.
5984 set dummy objdump; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -n "$ac_ct_OBJDUMP"; then
5991 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6011 if test -n "$ac_ct_OBJDUMP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6013 $as_echo "$ac_ct_OBJDUMP" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_OBJDUMP" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6028 OBJDUMP=$ac_ct_OBJDUMP
6031 OBJDUMP="$ac_cv_prog_OBJDUMP"
6034 test -z "$OBJDUMP" && OBJDUMP=objdump
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6045 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6046 if ${lt_cv_deplibs_check_method+:} false; then :
6047 $as_echo_n "(cached) " >&6
6049 lt_cv_file_magic_cmd='$MAGIC_CMD'
6050 lt_cv_file_magic_test_file=
6051 lt_cv_deplibs_check_method='unknown'
6052 # Need to set the preceding variable on all platforms that support
6053 # interlibrary dependencies.
6054 # 'none' -- dependencies not supported.
6055 # `unknown' -- same as none, but documents that we really don't know.
6056 # 'pass_all' -- all dependencies passed with no checks.
6057 # 'test_compile' -- check by making test program.
6058 # 'file_magic [[regex]]' -- check by looking for files in library path
6059 # which responds to the $file_magic_cmd with a given extended regex.
6060 # If you have `file' or equivalent on your system and you're not sure
6061 # whether `pass_all' will *always* work, you probably want this one.
6065 lt_cv_deplibs_check_method=pass_all
6069 lt_cv_deplibs_check_method=pass_all
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6074 lt_cv_file_magic_cmd='/usr/bin/file -L'
6075 lt_cv_file_magic_test_file=/shlib/libc.so
6079 # func_win32_libid is a shell function defined in ltmain.sh
6080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081 lt_cv_file_magic_cmd='func_win32_libid'
6085 # Base MSYS/MinGW do not provide the 'file' command needed by
6086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087 # unless we find 'file', for example because we are cross-compiling.
6088 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6089 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091 lt_cv_file_magic_cmd='func_win32_libid'
6093 # Keep this pattern in sync with the one in func_win32_libid.
6094 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6095 lt_cv_file_magic_cmd='$OBJDUMP -f'
6100 # use the weaker test based on 'objdump'. See mingw*.
6101 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6102 lt_cv_file_magic_cmd='$OBJDUMP -f'
6105 darwin* | rhapsody*)
6106 lt_cv_deplibs_check_method=pass_all
6109 freebsd* | dragonfly*)
6110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6113 # Not sure whether the presence of OpenBSD here was a mistake.
6114 # Let's accept both of them until this is cleared up.
6115 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6116 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6121 lt_cv_deplibs_check_method=pass_all
6126 lt_cv_deplibs_check_method=pass_all
6130 lt_cv_deplibs_check_method=pass_all
6133 hpux10.20* | hpux11*)
6134 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6141 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]'
6142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6146 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6156 irix5* | irix6* | nonstopux*)
6158 *-32|*"-32 ") libmagic=32-bit;;
6159 *-n32|*"-n32 ") libmagic=N32;;
6160 *-64|*"-64 ") libmagic=64-bit;;
6161 *) libmagic=never-match;;
6163 lt_cv_deplibs_check_method=pass_all
6166 # This must be glibc/ELF.
6167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6168 lt_cv_deplibs_check_method=pass_all
6171 netbsd* | netbsdelf*-gnu)
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6181 lt_cv_file_magic_cmd=/usr/bin/file
6182 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6186 lt_cv_deplibs_check_method=pass_all
6190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197 osf3* | osf4* | osf5*)
6198 lt_cv_deplibs_check_method=pass_all
6202 lt_cv_deplibs_check_method=pass_all
6206 lt_cv_deplibs_check_method=pass_all
6209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6210 lt_cv_deplibs_check_method=pass_all
6214 case $host_vendor in
6216 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]'
6217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6220 lt_cv_deplibs_check_method=pass_all
6223 lt_cv_file_magic_cmd='/bin/file'
6224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6227 lt_cv_file_magic_cmd='/bin/file'
6228 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6229 lt_cv_file_magic_test_file=/lib/libc.so
6232 lt_cv_deplibs_check_method=pass_all
6235 lt_cv_deplibs_check_method=pass_all
6241 lt_cv_deplibs_check_method=pass_all
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6247 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6251 if test "$build" = "$host"; then
6254 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6257 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6263 file_magic_cmd=$lt_cv_file_magic_cmd
6264 deplibs_check_method=$lt_cv_deplibs_check_method
6265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_DLLTOOL+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$DLLTOOL"; then
6297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 DLLTOOL=$ac_cv_prog_DLLTOOL
6317 if test -n "$DLLTOOL"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6319 $as_echo "$DLLTOOL" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_prog_DLLTOOL"; then
6328 ac_ct_DLLTOOL=$DLLTOOL
6329 # Extract the first word of "dlltool", so it can be a program name with args.
6330 set dummy dlltool; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$ac_ct_DLLTOOL"; then
6337 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6357 if test -n "$ac_ct_DLLTOOL"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6359 $as_echo "$ac_ct_DLLTOOL" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 if test "x$ac_ct_DLLTOOL" = x; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6374 DLLTOOL=$ac_ct_DLLTOOL
6377 DLLTOOL="$ac_cv_prog_DLLTOOL"
6380 test -z "$DLLTOOL" && DLLTOOL=dlltool
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6392 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6393 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 lt_cv_sharedlib_from_linklib_cmd='unknown'
6399 cygwin* | mingw* | pw32* | cegcc*)
6400 # two different shell functions defined in ltmain.sh
6401 # decide which to use based on capabilities of $DLLTOOL
6402 case `$DLLTOOL --help 2>&1` in
6403 *--identify-strict*)
6404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6407 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6412 # fallback: assume linklib IS sharedlib
6413 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6419 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6420 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6421 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6429 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_AR+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$AR"; then
6440 ac_cv_prog_AR="$AR" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 if test -n "$AR"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6462 $as_echo "$AR" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6469 test -n "$AR" && break
6472 if test -z "$AR"; then
6476 # Extract the first word of "$ac_prog", so it can be a program name with args.
6477 set dummy $ac_prog; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$ac_ct_AR"; then
6484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_ac_ct_AR="$ac_prog"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504 if test -n "$ac_ct_AR"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6506 $as_echo "$ac_ct_AR" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6513 test -n "$ac_ct_AR" && break
6516 if test "x$ac_ct_AR" = x; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6543 $as_echo_n "checking for archiver @FILE support... " >&6; }
6544 if ${lt_cv_ar_at_file+:} false; then :
6545 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6559 if ac_fn_c_try_compile "$LINENO"; then :
6560 echo conftest.$ac_objext > conftest.lst
6561 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6563 (eval $lt_ar_try) 2>&5
6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566 test $ac_status = 0; }
6567 if test "$ac_status" -eq 0; then
6568 # Ensure the archiver fails upon bogus file names.
6569 rm -f conftest.$ac_objext libconftest.a
6570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6571 (eval $lt_ar_try) 2>&5
6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }
6575 if test "$ac_status" -ne 0; then
6579 rm -f conftest.* libconftest.a
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6586 $as_echo "$lt_cv_ar_at_file" >&6; }
6588 if test "x$lt_cv_ar_at_file" = xno; then
6591 archiver_list_spec=$lt_cv_ar_at_file
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}strip; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_STRIP+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$STRIP"; then
6609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 STRIP=$ac_cv_prog_STRIP
6629 if test -n "$STRIP"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6631 $as_echo "$STRIP" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6639 if test -z "$ac_cv_prog_STRIP"; then
6641 # Extract the first word of "strip", so it can be a program name with args.
6642 set dummy strip; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$ac_ct_STRIP"; then
6649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_ac_ct_STRIP="strip"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6669 if test -n "$ac_ct_STRIP"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6671 $as_echo "$ac_ct_STRIP" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6677 if test "x$ac_ct_STRIP" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6689 STRIP="$ac_cv_prog_STRIP"
6692 test -z "$STRIP" && STRIP=:
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_RANLIB+:} false; then :
6705 $as_echo_n "(cached) " >&6
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6730 $as_echo "$RANLIB" >&6; }
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6770 $as_echo "$ac_ct_RANLIB" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_RANLIB" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6785 RANLIB=$ac_ct_RANLIB
6788 RANLIB="$ac_cv_prog_RANLIB"
6791 test -z "$RANLIB" && RANLIB=:
6798 # Determine commands to create old-style static archives.
6799 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6800 old_postinstall_cmds='chmod 644 $oldlib'
6801 old_postuninstall_cmds=
6803 if test -n "$RANLIB"; then
6806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6812 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6817 lock_old_archive_extraction=yes ;;
6819 lock_old_archive_extraction=no ;;
6860 # If no C compiler was specified, use CC.
6863 # If no C compiler flags were specified, use CFLAGS.
6864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6866 # Allow CC to be a program name with arguments.
6870 # Check for command to grab the raw symbol name followed by C symbol from nm.
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6872 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6873 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6874 $as_echo_n "(cached) " >&6
6877 # These are sane defaults that work on at least a few old systems.
6878 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6880 # Character class describing NM global symbol codes.
6881 symcode='[BCDEGRST]'
6883 # Regexp to match symbols that can be accessed directly from C.
6884 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6886 # Define system-specific variables.
6891 cygwin* | mingw* | pw32* | cegcc*)
6892 symcode='[ABCDGISTW]'
6895 if test "$host_cpu" = ia64; then
6896 symcode='[ABCDEGRST]'
6900 symcode='[BCDEGRST]'
6903 symcode='[BCDEGQRST]'
6914 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6922 # If we're using GNU nm, then use its standard symbol codes.
6923 case `$NM -V 2>&1` in
6924 *GNU* | *'with BFD'*)
6925 symcode='[ABCDGIRSTW]' ;;
6928 # Transform an extracted symbol line into a proper C declaration.
6929 # Some systems (esp. on ia64) link data and code symbols differently,
6930 # so use this general approach.
6931 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6933 # Transform an extracted symbol line into symbol name and symbol address
6934 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6935 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'"
6937 # Handle CRLF in mingw tool chain
6941 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6945 # Try without a prefix underscore, then with it.
6946 for ac_symprfx in "" "_"; do
6948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6949 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951 # Write the raw and C identifiers.
6952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953 # Fake it for dumpbin and say T for any non-static function
6954 # and D for any global variable.
6955 # Also find C++ and __fastcall symbols from MSVC++,
6956 # which start with @ or ?.
6957 lt_cv_sys_global_symbol_pipe="$AWK '"\
6958 " {last_section=section; section=\$ 3};"\
6959 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6960 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6961 " \$ 0!~/External *\|/{next};"\
6962 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6963 " {if(hide[section]) next};"\
6964 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6965 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6966 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6967 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6968 " ' prfx=^$ac_symprfx"
6970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6972 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6974 # Check to see that the pipe works correctly.
6978 cat > conftest.$ac_ext <<_LT_EOF
6983 void nm_test_func(void);
6984 void nm_test_func(void){}
6988 int main(){nm_test_var='a';nm_test_func();return(0);}
6991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992 (eval $ac_compile) 2>&5
6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; }; then
6996 # Now try to grab the symbols.
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6999 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; } && test -s "$nlist"; then
7003 # Try sorting and uniquifying the output.
7004 if sort "$nlist" | uniq > "$nlist"T; then
7005 mv -f "$nlist"T "$nlist"
7010 # Make sure that we snagged all the symbols we need.
7011 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7012 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7013 cat <<_LT_EOF > conftest.$ac_ext
7014 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7015 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7016 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7017 relocations are performed -- see ld's documentation on pseudo-relocs. */
7018 # define LT_DLSYM_CONST
7019 #elif defined(__osf__)
7020 /* This system does not cope well with relocations in const data. */
7021 # define LT_DLSYM_CONST
7023 # define LT_DLSYM_CONST const
7031 # Now generate the symbol file.
7032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034 cat <<_LT_EOF >> conftest.$ac_ext
7036 /* The mapping between symbol names and symbols. */
7037 LT_DLSYM_CONST struct {
7041 lt__PROGRAM__LTX_preloaded_symbols[] =
7043 { "@PROGRAM@", (void *) 0 },
7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7046 cat <<\_LT_EOF >> conftest.$ac_ext
7050 /* This works around a problem in FreeBSD linker */
7051 #ifdef FREEBSD_WORKAROUND
7052 static const void *lt_preloaded_setup() {
7053 return lt__PROGRAM__LTX_preloaded_symbols;
7061 # Now try linking the two files.
7062 mv conftest.$ac_objext conftstm.$ac_objext
7063 lt_globsym_save_LIBS=$LIBS
7064 lt_globsym_save_CFLAGS=$CFLAGS
7065 LIBS="conftstm.$ac_objext"
7066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7068 (eval $ac_link) 2>&5
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7074 LIBS=$lt_globsym_save_LIBS
7075 CFLAGS=$lt_globsym_save_CFLAGS
7077 echo "cannot find nm_test_func in $nlist" >&5
7080 echo "cannot find nm_test_var in $nlist" >&5
7083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7086 echo "$progname: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7089 rm -rf conftest* conftst*
7091 # Do not use the global_symbol_pipe unless it works.
7092 if test "$pipe_works" = yes; then
7095 lt_cv_sys_global_symbol_pipe=
7101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7102 lt_cv_sys_global_symbol_to_cdecl=
7104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7106 $as_echo "failed" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7109 $as_echo "ok" >&6; }
7112 # Response file support.
7113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7114 nm_file_list_spec='@'
7115 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7116 nm_file_list_spec='@'
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7146 $as_echo_n "checking for sysroot... " >&6; }
7148 # Check whether --with-sysroot was given.
7149 if test "${with_sysroot+set}" = set; then :
7150 withval=$with_sysroot;
7157 case ${with_sysroot} in #(
7159 if test "$GCC" = yes; then
7160 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7164 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7170 $as_echo "${with_sysroot}" >&6; }
7171 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7176 $as_echo "${lt_sysroot:-no}" >&6; }
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then :
7184 enableval=$enable_libtool_lock;
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7189 # Some flags need to be propagated to the compiler or linker for good
7193 # Find out which ABI we are using.
7194 echo 'int i;' > conftest.$ac_ext
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 case `/usr/bin/file conftest.$ac_objext` in
7212 # Find out which ABI we are using.
7213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7215 (eval $ac_compile) 2>&5
7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218 test $ac_status = 0; }; then
7219 if test "$lt_cv_prog_gnu_ld" = yes; then
7220 case `/usr/bin/file conftest.$ac_objext` in
7222 LD="${LD-ld} -melf32bsmip"
7225 LD="${LD-ld} -melf32bmipn32"
7228 LD="${LD-ld} -melf64bmip"
7232 case `/usr/bin/file conftest.$ac_objext` in
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250 # Find out which ABI we are using.
7251 echo 'int i;' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 case `/usr/bin/file conftest.o` in
7260 x86_64-*kfreebsd*-gnu)
7261 LD="${LD-ld} -m elf_i386_fbsd"
7264 LD="${LD-ld} -m elf_i386"
7266 ppc64-*linux*|powerpc64-*linux*)
7267 LD="${LD-ld} -m elf32ppclinux"
7270 LD="${LD-ld} -m elf_s390"
7273 LD="${LD-ld} -m elf32_sparc"
7279 x86_64-*kfreebsd*-gnu)
7280 LD="${LD-ld} -m elf_x86_64_fbsd"
7283 LD="${LD-ld} -m elf_x86_64"
7285 ppc*-*linux*|powerpc*-*linux*)
7286 LD="${LD-ld} -m elf64ppc"
7288 s390*-*linux*|s390*-*tpf*)
7289 LD="${LD-ld} -m elf64_s390"
7292 LD="${LD-ld} -m elf64_sparc"
7302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303 SAVE_CFLAGS="$CFLAGS"
7304 CFLAGS="$CFLAGS -belf"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7306 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7307 if ${lt_cv_cc_needs_belf+:} false; then :
7308 $as_echo_n "(cached) " >&6
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7327 if ac_fn_c_try_link "$LINENO"; then :
7328 lt_cv_cc_needs_belf=yes
7330 lt_cv_cc_needs_belf=no
7332 rm -f core conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7342 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7345 CFLAGS="$SAVE_CFLAGS"
7349 # Find out which ABI we are using.
7350 echo 'int i;' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 case `/usr/bin/file conftest.o` in
7358 case $lt_cv_prog_gnu_ld in
7362 LD="${LD-ld} -m elf_x86_64"
7365 LD="${LD-ld} -m elf64_sparc"
7368 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7369 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7386 need_locks="$enable_libtool_lock"
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}mt; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$MANIFEST_TOOL"; then
7397 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7417 if test -n "$MANIFEST_TOOL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7419 $as_echo "$MANIFEST_TOOL" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7427 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7428 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7429 # Extract the first word of "mt", so it can be a program name with args.
7430 set dummy mt; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$ac_ct_MANIFEST_TOOL"; then
7437 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7457 if test -n "$ac_ct_MANIFEST_TOOL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7459 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7468 case $cross_compiling:$ac_tool_warned in
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7474 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7477 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7480 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7482 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7483 if ${lt_cv_path_mainfest_tool+:} false; then :
7484 $as_echo_n "(cached) " >&6
7486 lt_cv_path_mainfest_tool=no
7487 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7488 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7489 cat conftest.err >&5
7490 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7491 lt_cv_path_mainfest_tool=yes
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7496 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7497 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7507 rhapsody* | darwin*)
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -n "$DSYMUTIL"; then
7517 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7537 if test -n "$DSYMUTIL"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7539 $as_echo "$DSYMUTIL" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7547 if test -z "$ac_cv_prog_DSYMUTIL"; then
7548 ac_ct_DSYMUTIL=$DSYMUTIL
7549 # Extract the first word of "dsymutil", so it can be a program name with args.
7550 set dummy dsymutil; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$ac_ct_DSYMUTIL"; then
7557 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7577 if test -n "$ac_ct_DSYMUTIL"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7579 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7585 if test "x$ac_ct_DSYMUTIL" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7594 DSYMUTIL=$ac_ct_DSYMUTIL
7597 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7600 if test -n "$ac_tool_prefix"; then
7601 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_NMEDIT+:} false; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$NMEDIT"; then
7609 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 NMEDIT=$ac_cv_prog_NMEDIT
7629 if test -n "$NMEDIT"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7631 $as_echo "$NMEDIT" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7639 if test -z "$ac_cv_prog_NMEDIT"; then
7640 ac_ct_NMEDIT=$NMEDIT
7641 # Extract the first word of "nmedit", so it can be a program name with args.
7642 set dummy nmedit; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -n "$ac_ct_NMEDIT"; then
7649 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7669 if test -n "$ac_ct_NMEDIT"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7671 $as_echo "$ac_ct_NMEDIT" >&6; }
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7677 if test "x$ac_ct_NMEDIT" = x; then
7680 case $cross_compiling:$ac_tool_warned in
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684 ac_tool_warned=yes ;;
7686 NMEDIT=$ac_ct_NMEDIT
7689 NMEDIT="$ac_cv_prog_NMEDIT"
7692 if test -n "$ac_tool_prefix"; then
7693 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_LIPO+:} false; then :
7698 $as_echo_n "(cached) " >&6
7700 if test -n "$LIPO"; then
7701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 LIPO=$ac_cv_prog_LIPO
7721 if test -n "$LIPO"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7723 $as_echo "$LIPO" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7731 if test -z "$ac_cv_prog_LIPO"; then
7733 # Extract the first word of "lipo", so it can be a program name with args.
7734 set dummy lipo; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7738 $as_echo_n "(cached) " >&6
7740 if test -n "$ac_ct_LIPO"; then
7741 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_ac_ct_LIPO="lipo"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7761 if test -n "$ac_ct_LIPO"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7763 $as_echo "$ac_ct_LIPO" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7769 if test "x$ac_ct_LIPO" = x; then
7772 case $cross_compiling:$ac_tool_warned in
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776 ac_tool_warned=yes ;;
7781 LIPO="$ac_cv_prog_LIPO"
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}otool; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_OTOOL+:} false; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$OTOOL"; then
7793 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 OTOOL=$ac_cv_prog_OTOOL
7813 if test -n "$OTOOL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7815 $as_echo "$OTOOL" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7823 if test -z "$ac_cv_prog_OTOOL"; then
7825 # Extract the first word of "otool", so it can be a program name with args.
7826 set dummy otool; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 if test -n "$ac_ct_OTOOL"; then
7833 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_ac_ct_OTOOL="otool"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7853 if test -n "$ac_ct_OTOOL"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7855 $as_echo "$ac_ct_OTOOL" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7861 if test "x$ac_ct_OTOOL" = x; then
7864 case $cross_compiling:$ac_tool_warned in
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7873 OTOOL="$ac_cv_prog_OTOOL"
7876 if test -n "$ac_tool_prefix"; then
7877 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7878 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_OTOOL64+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 if test -n "$OTOOL64"; then
7885 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 OTOOL64=$ac_cv_prog_OTOOL64
7905 if test -n "$OTOOL64"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7907 $as_echo "$OTOOL64" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7915 if test -z "$ac_cv_prog_OTOOL64"; then
7916 ac_ct_OTOOL64=$OTOOL64
7917 # Extract the first word of "otool64", so it can be a program name with args.
7918 set dummy otool64; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 if test -n "$ac_ct_OTOOL64"; then
7925 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_OTOOL64="otool64"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7945 if test -n "$ac_ct_OTOOL64"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7947 $as_echo "$ac_ct_OTOOL64" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7953 if test "x$ac_ct_OTOOL64" = x; then
7956 case $cross_compiling:$ac_tool_warned in
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7962 OTOOL64=$ac_ct_OTOOL64
7965 OTOOL64="$ac_cv_prog_OTOOL64"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7995 $as_echo_n "checking for -single_module linker flag... " >&6; }
7996 if ${lt_cv_apple_cc_single_mod+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 lt_cv_apple_cc_single_mod=no
8000 if test -z "${LT_MULTI_MODULE}"; then
8001 # By default we will add the -single_module flag. You can override
8002 # by either setting the environment variable LT_MULTI_MODULE
8003 # non-empty at configure time, or by adding -multi_module to the
8005 rm -rf libconftest.dylib*
8006 echo "int foo(void){return 1;}" > conftest.c
8007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008 -dynamiclib -Wl,-single_module conftest.c" >&5
8009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8012 # If there is a non-empty error log, and "single_module"
8013 # appears in it, assume the flag caused a linker warning
8014 if test -s conftest.err && $GREP single_module conftest.err; then
8015 cat conftest.err >&5
8016 # Otherwise, if the output was created with a 0 exit code from
8017 # the compiler, it worked.
8018 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8019 lt_cv_apple_cc_single_mod=yes
8021 cat conftest.err >&5
8023 rm -rf libconftest.dylib*
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8028 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8031 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8032 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_ld_exported_symbols_list=no
8036 save_LDFLAGS=$LDFLAGS
8037 echo "_main" > conftest.sym
8038 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8050 if ac_fn_c_try_link "$LINENO"; then :
8051 lt_cv_ld_exported_symbols_list=yes
8053 lt_cv_ld_exported_symbols_list=no
8055 rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LDFLAGS="$save_LDFLAGS"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8061 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8064 $as_echo_n "checking for -force_load linker flag... " >&6; }
8065 if ${lt_cv_ld_force_load+:} false; then :
8066 $as_echo_n "(cached) " >&6
8068 lt_cv_ld_force_load=no
8069 cat > conftest.c << _LT_EOF
8070 int forced_loaded() { return 2;}
8072 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8073 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8074 echo "$AR cru libconftest.a conftest.o" >&5
8075 $AR cru libconftest.a conftest.o 2>&5
8076 echo "$RANLIB libconftest.a" >&5
8077 $RANLIB libconftest.a 2>&5
8078 cat > conftest.c << _LT_EOF
8079 int main() { return 0;}
8081 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8082 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8084 if test -s conftest.err && $GREP force_load conftest.err; then
8085 cat conftest.err >&5
8086 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8087 lt_cv_ld_force_load=yes
8089 cat conftest.err >&5
8091 rm -f conftest.err libconftest.a conftest conftest.c
8092 rm -rf conftest.dSYM
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8096 $as_echo "$lt_cv_ld_force_load" >&6; }
8098 rhapsody* | darwin1.[012])
8099 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8101 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8102 darwin*) # darwin 5.x on
8103 # if running on 10.5 or later, the deployment target defaults
8104 # to the OS version, if on x86, and 10.4, the deployment
8105 # target defaults to 10.4. Don't you love it?
8106 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8107 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8116 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8117 _lt_dar_single_mod='$single_module'
8119 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8120 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8122 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8125 _lt_dsymutil='~$DSYMUTIL $lib || :'
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8138 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8139 # On Suns, sometimes $CPP names a directory.
8140 if test -n "$CPP" && test -d "$CPP"; then
8143 if test -z "$CPP"; then
8144 if ${ac_cv_prog_CPP+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 # Double quotes because CPP needs to be expanded
8148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8151 for ac_c_preproc_warn_flag in '' yes
8153 # Use a header file that comes with gcc, so configuring glibc
8154 # with a fresh cross-compiler works.
8155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156 # <limits.h> exists even on freestanding compilers.
8157 # On the NeXT, cc -E runs the code through the compiler's parser,
8158 # not just through cpp. "Syntax error" is here to catch this case.
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8162 # include <limits.h>
8164 # include <assert.h>
8168 if ac_fn_c_try_cpp "$LINENO"; then :
8171 # Broken: fails on valid input.
8174 rm -f conftest.err conftest.i conftest.$ac_ext
8176 # OK, works on sane cases. Now check whether nonexistent headers
8177 # can be detected and how.
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <ac_nonexistent.h>
8182 if ac_fn_c_try_cpp "$LINENO"; then :
8183 # Broken: success on invalid input.
8186 # Passes both tests.
8190 rm -f conftest.err conftest.i conftest.$ac_ext
8193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8194 rm -f conftest.i conftest.err conftest.$ac_ext
8195 if $ac_preproc_ok; then :
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8208 $as_echo "$CPP" >&6; }
8210 for ac_c_preproc_warn_flag in '' yes
8212 # Use a header file that comes with gcc, so configuring glibc
8213 # with a fresh cross-compiler works.
8214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215 # <limits.h> exists even on freestanding compilers.
8216 # On the NeXT, cc -E runs the code through the compiler's parser,
8217 # not just through cpp. "Syntax error" is here to catch this case.
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 # include <limits.h>
8223 # include <assert.h>
8227 if ac_fn_c_try_cpp "$LINENO"; then :
8230 # Broken: fails on valid input.
8233 rm -f conftest.err conftest.i conftest.$ac_ext
8235 # OK, works on sane cases. Now check whether nonexistent headers
8236 # can be detected and how.
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 #include <ac_nonexistent.h>
8241 if ac_fn_c_try_cpp "$LINENO"; then :
8242 # Broken: success on invalid input.
8245 # Passes both tests.
8249 rm -f conftest.err conftest.i conftest.$ac_ext
8252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8253 rm -f conftest.i conftest.err conftest.$ac_ext
8254 if $ac_preproc_ok; then :
8257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8259 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8260 See \`config.log' for more details" "$LINENO" 5; }
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8271 $as_echo_n "checking for ANSI C header files... " >&6; }
8272 if ${ac_cv_header_stdc+:} false; then :
8273 $as_echo_n "(cached) " >&6
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8290 if ac_fn_c_try_compile "$LINENO"; then :
8291 ac_cv_header_stdc=yes
8293 ac_cv_header_stdc=no
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 if test $ac_cv_header_stdc = yes; then
8298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8305 $EGREP "memchr" >/dev/null 2>&1; then :
8308 ac_cv_header_stdc=no
8314 if test $ac_cv_header_stdc = yes; then
8315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322 $EGREP "free" >/dev/null 2>&1; then :
8325 ac_cv_header_stdc=no
8331 if test $ac_cv_header_stdc = yes; then
8332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8333 if test "$cross_compiling" = yes; then :
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8340 #if ((' ' & 0x0FF) == 0x020)
8341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8344 # define ISLOWER(c) \
8345 (('a' <= (c) && (c) <= 'i') \
8346 || ('j' <= (c) && (c) <= 'r') \
8347 || ('s' <= (c) && (c) <= 'z'))
8348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8356 for (i = 0; i < 256; i++)
8357 if (XOR (islower (i), ISLOWER (i))
8358 || toupper (i) != TOUPPER (i))
8363 if ac_fn_c_try_run "$LINENO"; then :
8366 ac_cv_header_stdc=no
8368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8369 conftest.$ac_objext conftest.beam conftest.$ac_ext
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8375 $as_echo "$ac_cv_header_stdc" >&6; }
8376 if test $ac_cv_header_stdc = yes; then
8378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8384 inttypes.h stdint.h unistd.h
8386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8390 cat >>confdefs.h <<_ACEOF
8391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 for ac_header in dlfcn.h
8401 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8403 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8404 cat >>confdefs.h <<_ACEOF
8405 #define HAVE_DLFCN_H 1
8426 # Check whether --enable-shared was given.
8427 if test "${enable_shared+set}" = set; then :
8428 enableval=$enable_shared; p=${PACKAGE-default}
8430 yes) enable_shared=yes ;;
8431 no) enable_shared=no ;;
8434 # Look at the argument we got. We use all the common list separators.
8435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436 for pkg in $enableval; do
8438 if test "X$pkg" = "X$p"; then
8459 # Check whether --with-pic was given.
8460 if test "${with_pic+set}" = set; then :
8461 withval=$with_pic; lt_p=${PACKAGE-default}
8463 yes|no) pic_mode=$withval ;;
8466 # Look at the argument we got. We use all the common list separators.
8467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8468 for lt_pkg in $withval; do
8470 if test "X$lt_pkg" = "X$lt_p"; then
8482 test -z "$pic_mode" && pic_mode=default
8490 # Check whether --enable-fast-install was given.
8491 if test "${enable_fast_install+set}" = set; then :
8492 enableval=$enable_fast_install; p=${PACKAGE-default}
8494 yes) enable_fast_install=yes ;;
8495 no) enable_fast_install=no ;;
8497 enable_fast_install=no
8498 # Look at the argument we got. We use all the common list separators.
8499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8500 for pkg in $enableval; do
8502 if test "X$pkg" = "X$p"; then
8503 enable_fast_install=yes
8510 enable_fast_install=yes
8523 # This can be used to rebuild libtool when needed
8524 LIBTOOL_DEPS="$ltmain"
8526 # Always use our own libtool.
8527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8558 test -z "$LN_S" && LN_S="ln -s"
8573 if test -n "${ZSH_VERSION+set}" ; then
8574 setopt NO_GLOB_SUBST
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8578 $as_echo_n "checking for objdir... " >&6; }
8579 if ${lt_cv_objdir+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 rm -f .libs 2>/dev/null
8583 mkdir .libs 2>/dev/null
8584 if test -d .libs; then
8587 # MS-DOS does not allow filenames that begin with a dot.
8590 rmdir .libs 2>/dev/null
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8593 $as_echo "$lt_cv_objdir" >&6; }
8594 objdir=$lt_cv_objdir
8600 cat >>confdefs.h <<_ACEOF
8601 #define LT_OBJDIR "$lt_cv_objdir/"
8609 # AIX sometimes has problems with the GCC collect2 program. For some
8610 # reason, if we set the COLLECT_NAMES environment variable, the problems
8611 # vanish in a puff of smoke.
8612 if test "X${COLLECT_NAMES+set}" != Xset; then
8614 export COLLECT_NAMES
8621 can_build_shared=yes
8623 # All known linkers require a `.a' archive for static linking (except MSVC,
8624 # which needs '.lib').
8627 with_gnu_ld="$lt_cv_prog_gnu_ld"
8630 old_CFLAGS="$CFLAGS"
8632 # Set sane defaults for various variables
8633 test -z "$CC" && CC=cc
8634 test -z "$LTCC" && LTCC=$CC
8635 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8636 test -z "$LD" && LD=ld
8637 test -z "$ac_objext" && ac_objext=o
8639 for cc_temp in $compiler""; do
8641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8647 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8650 # Only perform the check for file, if the check method requires it
8651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8652 case $deplibs_check_method in
8654 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8657 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8658 $as_echo_n "(cached) " >&6
8662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8665 lt_save_MAGIC_CMD="$MAGIC_CMD"
8666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8668 for ac_dir in $ac_dummy; do
8670 test -z "$ac_dir" && ac_dir=.
8671 if test -f $ac_dir/${ac_tool_prefix}file; then
8672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8673 if test -n "$file_magic_test_file"; then
8674 case $deplibs_check_method in
8676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8679 $EGREP "$file_magic_regex" > /dev/null; then
8684 *** Warning: the command libtool uses to detect shared libraries,
8685 *** $file_magic_cmd, produces output that libtool cannot recognize.
8686 *** The result is that libtool may fail to recognize shared libraries
8687 *** as such. This will affect the creation of libtool libraries that
8688 *** depend on shared libraries, but programs linked with such libtool
8689 *** libraries will work regardless of this problem. Nevertheless, you
8690 *** may want to report the problem to your system manager and/or to
8691 *** bug-libtool@gnu.org
8701 MAGIC_CMD="$lt_save_MAGIC_CMD"
8706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8707 if test -n "$MAGIC_CMD"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8709 $as_echo "$MAGIC_CMD" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8719 if test -z "$lt_cv_path_MAGIC_CMD"; then
8720 if test -n "$ac_tool_prefix"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8722 $as_echo_n "checking for file... " >&6; }
8723 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8724 $as_echo_n "(cached) " >&6
8728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8731 lt_save_MAGIC_CMD="$MAGIC_CMD"
8732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8734 for ac_dir in $ac_dummy; do
8736 test -z "$ac_dir" && ac_dir=.
8737 if test -f $ac_dir/file; then
8738 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8739 if test -n "$file_magic_test_file"; then
8740 case $deplibs_check_method in
8742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8745 $EGREP "$file_magic_regex" > /dev/null; then
8750 *** Warning: the command libtool uses to detect shared libraries,
8751 *** $file_magic_cmd, produces output that libtool cannot recognize.
8752 *** The result is that libtool may fail to recognize shared libraries
8753 *** as such. This will affect the creation of libtool libraries that
8754 *** depend on shared libraries, but programs linked with such libtool
8755 *** libraries will work regardless of this problem. Nevertheless, you
8756 *** may want to report the problem to your system manager and/or to
8757 *** bug-libtool@gnu.org
8767 MAGIC_CMD="$lt_save_MAGIC_CMD"
8772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8773 if test -n "$MAGIC_CMD"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8775 $as_echo "$MAGIC_CMD" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8791 # Use C for the default configuration in the libtool script
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801 # Source file extension for C test sources.
8804 # Object file extension for compiled C test sources.
8808 # Code to be used in simple compile tests
8809 lt_simple_compile_test_code="int some_variable = 0;"
8811 # Code to be used in simple link tests
8812 lt_simple_link_test_code='int main(){return(0);}'
8820 # If no C compiler was specified, use CC.
8823 # If no C compiler flags were specified, use CFLAGS.
8824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8826 # Allow CC to be a program name with arguments.
8829 # Save the default compiler, since it gets overwritten when the other
8830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8831 compiler_DEFAULT=$CC
8833 # save warnings/boilerplate of simple test code
8834 ac_outfile=conftest.$ac_objext
8835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837 _lt_compiler_boilerplate=`cat conftest.err`
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8843 _lt_linker_boilerplate=`cat conftest.err`
8847 if test -n "$compiler"; then
8849 lt_prog_compiler_no_builtin_flag=
8851 if test "$GCC" = yes; then
8852 case $cc_basename in
8854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8861 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8862 $as_echo_n "(cached) " >&6
8864 lt_cv_prog_compiler_rtti_exceptions=no
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="-fno-rtti -fno-exceptions"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 # The option is referenced via a variable to avoid confusing sed.
8873 lt_compile=`echo "$ac_compile" | $SED \
8874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876 -e 's:$: $lt_compiler_flag:'`
8877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8878 (eval "$lt_compile" 2>conftest.err)
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 if (exit $ac_status) && test -s "$ac_outfile"; then
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings other than the usual output.
8885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_rtti_exceptions=yes
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8910 lt_prog_compiler_wl=
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_static=
8915 if test "$GCC" = yes; then
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_static='-static'
8921 # All AIX code is PIC.
8922 if test "$host_cpu" = ia64; then
8923 # AIX 5 now supports IA64 processor
8924 lt_prog_compiler_static='-Bstatic'
8931 # see comment about AmigaOS4 .so support
8932 lt_prog_compiler_pic='-fPIC'
8935 # FIXME: we need at least 68020 code to build shared libraries, but
8936 # adding the `-m68020' flag to GCC prevents building anything better,
8938 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8944 # PIC is the default for these OSes.
8947 mingw* | cygwin* | pw32* | os2* | cegcc*)
8948 # This hack is so that the source file can tell whether it is being
8949 # built for inclusion in a dll (and should export symbols for example).
8950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8951 # (--disable-auto-import) libraries
8952 lt_prog_compiler_pic='-DDLL_EXPORT'
8955 darwin* | rhapsody*)
8956 # PIC is the default on this platform
8957 # Common symbols not allowed in MH_DYLIB files
8958 lt_prog_compiler_pic='-fno-common'
8962 # PIC is the default for Haiku.
8963 # The "-static" flag exists, but is broken.
8964 lt_prog_compiler_static=
8968 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8969 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8970 # sets the default TLS model and affects inlining.
8976 lt_prog_compiler_pic='-fPIC'
8982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8983 # Instead, we relocate shared libraries at runtime.
8987 # Just because we use GCC doesn't mean we suddenly get shared libraries
8988 # on systems that don't support them.
8989 lt_prog_compiler_can_build_shared=no
8994 # QNX uses GNU C++, but need to define -shared option too, otherwise
8996 lt_prog_compiler_pic='-fPIC -shared'
9000 if test -d /usr/nec; then
9001 lt_prog_compiler_pic=-Kconform_pic
9006 lt_prog_compiler_pic='-fPIC'
9010 case $cc_basename in
9011 nvcc*) # Cuda Compiler Driver 2.2
9012 lt_prog_compiler_wl='-Xlinker '
9013 if test -n "$lt_prog_compiler_pic"; then
9014 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9019 # PORTME Check for flag to pass linker flags through the system compiler.
9022 lt_prog_compiler_wl='-Wl,'
9023 if test "$host_cpu" = ia64; then
9024 # AIX 5 now supports IA64 processor
9025 lt_prog_compiler_static='-Bstatic'
9027 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9031 mingw* | cygwin* | pw32* | os2* | cegcc*)
9032 # This hack is so that the source file can tell whether it is being
9033 # built for inclusion in a dll (and should export symbols for example).
9034 lt_prog_compiler_pic='-DDLL_EXPORT'
9037 hpux9* | hpux10* | hpux11*)
9038 lt_prog_compiler_wl='-Wl,'
9039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9046 lt_prog_compiler_pic='+Z'
9049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9050 lt_prog_compiler_static='${wl}-a ${wl}archive'
9053 irix5* | irix6* | nonstopux*)
9054 lt_prog_compiler_wl='-Wl,'
9055 # PIC (with -KPIC) is the default.
9056 lt_prog_compiler_static='-non_shared'
9059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9060 case $cc_basename in
9061 # old Intel for x86_64 which still supported -KPIC.
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-static'
9067 # icc used to be incompatible with GCC.
9068 # ICC 10 doesn't accept -KPIC any more.
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-fPIC'
9072 lt_prog_compiler_static='-static'
9074 # Lahey Fortran 8.1.
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_pic='--shared'
9078 lt_prog_compiler_static='--static'
9081 # NAG Fortran compiler
9082 lt_prog_compiler_wl='-Wl,-Wl,,'
9083 lt_prog_compiler_pic='-PIC'
9084 lt_prog_compiler_static='-Bstatic'
9086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9087 # Portland Group compilers (*not* the Pentium gcc compiler,
9088 # which looks to be a dead project)
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_pic='-fpic'
9091 lt_prog_compiler_static='-Bstatic'
9094 lt_prog_compiler_wl='-Wl,'
9095 # All Alpha code is PIC.
9096 lt_prog_compiler_static='-non_shared'
9098 xl* | bgxl* | bgf* | mpixl*)
9099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-qpic'
9102 lt_prog_compiler_static='-qstaticlink'
9105 case `$CC -V 2>&1 | sed 5q` in
9106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9108 lt_prog_compiler_pic='-KPIC'
9109 lt_prog_compiler_static='-Bstatic'
9110 lt_prog_compiler_wl=''
9112 *Sun\ F* | *Sun*Fortran*)
9113 lt_prog_compiler_pic='-KPIC'
9114 lt_prog_compiler_static='-Bstatic'
9115 lt_prog_compiler_wl='-Qoption ld '
9119 lt_prog_compiler_pic='-KPIC'
9120 lt_prog_compiler_static='-Bstatic'
9121 lt_prog_compiler_wl='-Wl,'
9123 *Intel*\ [CF]*Compiler*)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-fPIC'
9126 lt_prog_compiler_static='-static'
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='-fpic'
9131 lt_prog_compiler_static='-Bstatic'
9139 lt_prog_compiler_pic='-KPIC'
9140 lt_prog_compiler_static='-Bstatic'
9144 # QNX uses GNU C++, but need to define -shared option too, otherwise
9146 lt_prog_compiler_pic='-fPIC -shared'
9149 osf3* | osf4* | osf5*)
9150 lt_prog_compiler_wl='-Wl,'
9151 # All OSF/1 code is PIC.
9152 lt_prog_compiler_static='-non_shared'
9156 lt_prog_compiler_static='-non_shared'
9160 lt_prog_compiler_pic='-KPIC'
9161 lt_prog_compiler_static='-Bstatic'
9162 case $cc_basename in
9163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9164 lt_prog_compiler_wl='-Qoption ld ';;
9166 lt_prog_compiler_wl='-Wl,';;
9171 lt_prog_compiler_wl='-Qoption ld '
9172 lt_prog_compiler_pic='-PIC'
9173 lt_prog_compiler_static='-Bstatic'
9176 sysv4 | sysv4.2uw2* | sysv4.3*)
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9183 if test -d /usr/nec ;then
9184 lt_prog_compiler_pic='-Kconform_pic'
9185 lt_prog_compiler_static='-Bstatic'
9189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_pic='-KPIC'
9192 lt_prog_compiler_static='-Bstatic'
9196 lt_prog_compiler_wl='-Wl,'
9197 lt_prog_compiler_can_build_shared=no
9201 lt_prog_compiler_pic='-pic'
9202 lt_prog_compiler_static='-Bstatic'
9206 lt_prog_compiler_can_build_shared=no
9212 # For platforms which do not support PIC, -DPIC is meaningless:
9214 lt_prog_compiler_pic=
9217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9223 if ${lt_cv_prog_compiler_pic+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9233 # Check to make sure the PIC flag actually works.
9235 if test -n "$lt_prog_compiler_pic"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 lt_cv_prog_compiler_pic_works=no
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9245 # Insert the option either (1) after the last *FLAGS variable, or
9246 # (2) before a word containing "conftest.", or (3) at the end.
9247 # Note that $ac_compile itself does not contain backslashes and begins
9248 # with a dollar sign (not a hyphen), so the echo should work correctly.
9249 # The option is referenced via a variable to avoid confusing sed.
9250 lt_compile=`echo "$ac_compile" | $SED \
9251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9253 -e 's:$: $lt_compiler_flag:'`
9254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9255 (eval "$lt_compile" 2>conftest.err)
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 if (exit $ac_status) && test -s "$ac_outfile"; then
9260 # The compiler can only warn and ignore the option if not recognized
9261 # So say no if there are warnings other than the usual output.
9262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler_pic_works=yes
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9274 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9275 case $lt_prog_compiler_pic in
9277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9280 lt_prog_compiler_pic=
9281 lt_prog_compiler_can_build_shared=no
9297 # Check to make sure the static flag actually works.
9299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9302 if ${lt_cv_prog_compiler_static_works+:} false; then :
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler_static_works=no
9306 save_LDFLAGS="$LDFLAGS"
9307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310 # The linker can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 if test -s conftest.err; then
9313 # Append any errors to the config.log.
9314 cat conftest.err 1>&5
9315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler_static_works=yes
9321 lt_cv_prog_compiler_static_works=yes
9325 LDFLAGS="$save_LDFLAGS"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9331 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9334 lt_prog_compiler_static=
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9345 if ${lt_cv_prog_compiler_c_o+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 lt_cv_prog_compiler_c_o=no
9349 $RM -r conftest 2>/dev/null
9353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355 lt_compiler_flag="-o out/conftest2.$ac_objext"
9356 # Insert the option either (1) after the last *FLAGS variable, or
9357 # (2) before a word containing "conftest.", or (3) at the end.
9358 # Note that $ac_compile itself does not contain backslashes and begins
9359 # with a dollar sign (not a hyphen), so the echo should work correctly.
9360 lt_compile=`echo "$ac_compile" | $SED \
9361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363 -e 's:$: $lt_compiler_flag:'`
9364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365 (eval "$lt_compile" 2>out/conftest.err)
9367 cat out/conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9371 # The compiler can only warn and ignore the option if not recognized
9372 # So say no if there are warnings
9373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9376 lt_cv_prog_compiler_c_o=yes
9381 # SGI C++ compiler will create directory out/ii_files/ for
9382 # template instantiation
9383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9384 $RM out/* && rmdir out
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9400 if ${lt_cv_prog_compiler_c_o+:} false; then :
9401 $as_echo_n "(cached) " >&6
9403 lt_cv_prog_compiler_c_o=no
9404 $RM -r conftest 2>/dev/null
9408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410 lt_compiler_flag="-o out/conftest2.$ac_objext"
9411 # Insert the option either (1) after the last *FLAGS variable, or
9412 # (2) before a word containing "conftest.", or (3) at the end.
9413 # Note that $ac_compile itself does not contain backslashes and begins
9414 # with a dollar sign (not a hyphen), so the echo should work correctly.
9415 lt_compile=`echo "$ac_compile" | $SED \
9416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418 -e 's:$: $lt_compiler_flag:'`
9419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420 (eval "$lt_compile" 2>out/conftest.err)
9422 cat out/conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9426 # The compiler can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler_c_o=yes
9436 # SGI C++ compiler will create directory out/ii_files/ for
9437 # template instantiation
9438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439 $RM out/* && rmdir out
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451 hard_links="nottested"
9452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9453 # do not overwrite the value of need_locks provided by the user
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9455 $as_echo_n "checking if we can lock with hard links... " >&6; }
9458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9460 ln conftest.a conftest.b 2>&5 || hard_links=no
9461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9463 $as_echo "$hard_links" >&6; }
9464 if test "$hard_links" = no; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9466 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9482 allow_undefined_flag=
9483 always_export_symbols=no
9485 archive_expsym_cmds=
9486 compiler_needs_object=no
9487 enable_shared_with_static_runtimes=no
9488 export_dynamic_flag_spec=
9489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9490 hardcode_automatic=no
9492 hardcode_direct_absolute=no
9493 hardcode_libdir_flag_spec=
9494 hardcode_libdir_separator=
9496 hardcode_shlibpath_var=unsupported
9498 link_all_deplibs=unknown
9501 old_archive_from_new_cmds=
9502 old_archive_from_expsyms_cmds=
9503 thread_safe_flag_spec=
9504 whole_archive_flag_spec=
9505 # include_expsyms should be a list of space-separated symbols to be *always*
9506 # included in the symbol list
9508 # exclude_expsyms can be an extended regexp of symbols to exclude
9509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9511 # as well as any symbol that contains `d'.
9512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9514 # platforms (ab)use it in PIC code, but their linkers get confused if
9515 # the symbol is explicitly referenced. Since portable code cannot
9516 # rely on this symbol name, it's probably fine to never include it in
9517 # preloaded symbol tables.
9518 # Exclude shared library initialization/finalization symbols.
9519 extract_expsyms_cmds=
9522 cygwin* | mingw* | pw32* | cegcc*)
9523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9524 # When not using gcc, we currently assume that we are using
9525 # Microsoft Visual C++.
9526 if test "$GCC" != yes; then
9531 # we just hope/assume this is gcc and not c89 (= MSVC++)
9537 linux* | k*bsd*-gnu | gnu*)
9544 # On some targets, GNU ld is compatible enough with the native linker
9545 # that we're better off using the native interface for both.
9546 lt_use_gnu_ld_interface=no
9547 if test "$with_gnu_ld" = yes; then
9550 # The AIX port of GNU ld has always aspired to compatibility
9551 # with the native linker. However, as the warning in the GNU ld
9552 # block says, versions before 2.19.5* couldn't really create working
9553 # shared libraries, regardless of the interface used.
9554 case `$LD -v 2>&1` in
9555 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9556 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9557 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9559 lt_use_gnu_ld_interface=yes
9564 lt_use_gnu_ld_interface=yes
9569 if test "$lt_use_gnu_ld_interface" = yes; then
9570 # If archive_cmds runs LD, not CC, wlarc should be empty
9573 # Set some defaults for GNU ld with shared library support. These
9574 # are reset later if shared libraries are not supported. Putting them
9575 # here allows them to be overridden if necessary.
9576 runpath_var=LD_RUN_PATH
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 export_dynamic_flag_spec='${wl}--export-dynamic'
9579 # ancient GNU ld didn't support --whole-archive et. al.
9580 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9581 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9583 whole_archive_flag_spec=
9585 supports_anon_versioning=no
9586 case `$LD -v 2>&1` in
9587 *GNU\ gold*) supports_anon_versioning=yes ;;
9588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9591 *\ 2.11.*) ;; # other 2.11 versions
9592 *) supports_anon_versioning=yes ;;
9595 # See if GNU ld supports shared libraries.
9598 # On AIX/PPC, the GNU linker is very broken
9599 if test "$host_cpu" != ia64; then
9603 *** Warning: the GNU linker, at least up to release 2.19, is reported
9604 *** to be unable to reliably create shared libraries on AIX.
9605 *** Therefore, libtool is disabling shared libraries support. If you
9606 *** really care for shared libraries, you may want to install binutils
9607 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9608 *** You will then need to restart the configuration process.
9617 # see comment about AmigaOS4 .so support
9618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619 archive_expsym_cmds=''
9622 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)'
9623 hardcode_libdir_flag_spec='-L$libdir'
9624 hardcode_minus_L=yes
9630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9631 allow_undefined_flag=unsupported
9632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9633 # support --undefined. This deserves some investigation. FIXME
9634 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 cygwin* | mingw* | pw32* | cegcc*)
9641 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9642 # as there is no search path for DLLs.
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 export_dynamic_flag_spec='${wl}--export-all-symbols'
9645 allow_undefined_flag=unsupported
9646 always_export_symbols=no
9647 enable_shared_with_static_runtimes=yes
9648 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'
9649 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9653 # If the export-symbols file already is a .def file (1st line
9654 # is EXPORTS), use it as is; otherwise, prepend...
9655 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9656 cp $export_symbols $output_objdir/$soname.def;
9658 echo EXPORTS > $output_objdir/$soname.def;
9659 cat $export_symbols >> $output_objdir/$soname.def;
9661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 link_all_deplibs=yes
9674 hardcode_shlibpath_var=no
9675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9676 export_dynamic_flag_spec='${wl}-E'
9677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9678 # Instead, shared libraries are loaded at an image base (0x10000000 by
9679 # default) and relocated if they conflict, which is a slow very memory
9680 # consuming and fragmenting process. To avoid this, we pick a random,
9681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9684 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'
9687 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9689 if test "$host_os" = linux-dietlibc; then
9690 case $cc_basename in
9691 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9694 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9695 && test "$tmp_diet" = no
9697 tmp_addflag=' $pic_flag'
9698 tmp_sharedflag='-shared'
9699 case $cc_basename,$host_cpu in
9700 pgcc*) # Portland Group C compiler
9701 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'
9702 tmp_addflag=' $pic_flag'
9704 pgf77* | pgf90* | pgf95* | pgfortran*)
9705 # Portland Group f77 and f90 compilers
9706 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'
9707 tmp_addflag=' $pic_flag -Mnomain' ;;
9708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9709 tmp_addflag=' -i_dynamic' ;;
9710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9711 tmp_addflag=' -i_dynamic -nofor_main' ;;
9712 ifc* | ifort*) # Intel Fortran compiler
9713 tmp_addflag=' -nofor_main' ;;
9714 lf95*) # Lahey Fortran 8.1
9715 whole_archive_flag_spec=
9716 tmp_sharedflag='--shared' ;;
9717 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9718 tmp_sharedflag='-qmkshrobj'
9720 nvcc*) # Cuda Compiler Driver 2.2
9721 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'
9722 compiler_needs_object=yes
9725 case `$CC -V 2>&1 | sed 5q` in
9726 *Sun\ C*) # Sun C 5.9
9727 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'
9728 compiler_needs_object=yes
9729 tmp_sharedflag='-G' ;;
9730 *Sun\ F*) # Sun Fortran 8.3
9731 tmp_sharedflag='-G' ;;
9733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 if test "x$supports_anon_versioning" = xyes; then
9736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9738 echo "local: *; };" >> $output_objdir/$libname.ver~
9739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9742 case $cc_basename in
9743 xlf* | bgf* | bgxlf* | mpixlf*)
9744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9745 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9748 if test "x$supports_anon_versioning" = xyes; then
9749 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9751 echo "local: *; };" >> $output_objdir/$libname.ver~
9752 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9761 netbsd* | netbsdelf*-gnu)
9762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9763 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9777 *** create shared libraries on Solaris systems. Therefore, libtool
9778 *** is disabling shared libraries support. We urge you to upgrade GNU
9779 *** binutils to release 2.9.1 or newer. Another option is to modify
9780 *** your PATH or compiler configuration so that the native linker is
9781 *** used, and then restart.
9784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9793 case `$LD -v 2>&1` in
9794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9799 *** reliably create shared libraries on SCO systems. Therefore, libtool
9800 *** is disabling shared libraries support. We urge you to upgrade GNU
9801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9808 # For security reasons, it is highly recommended that you always
9809 # use absolute paths for naming shared libraries, and exclude the
9810 # DT_RUNPATH tag from executables and libraries. But doing so
9811 # requires that you compile everything twice, which is a pain.
9812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_shlibpath_var=no
9831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9840 if test "$ld_shlibs" = no; then
9842 hardcode_libdir_flag_spec=
9843 export_dynamic_flag_spec=
9844 whole_archive_flag_spec=
9847 # PORTME fill in a description of your system's linker (not GNU ld)
9850 allow_undefined_flag=unsupported
9851 always_export_symbols=yes
9852 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'
9853 # Note: this linker hardcodes the directories in LIBPATH if there
9854 # are no directories specified by -L.
9855 hardcode_minus_L=yes
9856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9857 # Neither direct hardcoding nor static linking is supported with a
9859 hardcode_direct=unsupported
9864 if test "$host_cpu" = ia64; then
9865 # On IA64, the linker does run time linking by default, so we don't
9866 # have to do anything special.
9867 aix_use_runtimelinking=no
9868 exp_sym_flag='-Bexport'
9871 # If we're using GNU nm, then we don't want the "-C" option.
9872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9873 # Also, AIX nm treats weak defined symbols like other global
9874 # defined symbols, whereas GNU nm marks them as "W".
9875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9876 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'
9878 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'
9880 aix_use_runtimelinking=no
9882 # Test if we are trying to use run time linking or normal
9883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9884 # need to do runtime linking.
9885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9886 for ld_flag in $LDFLAGS; do
9887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9888 aix_use_runtimelinking=yes
9895 exp_sym_flag='-bexport'
9896 no_entry_flag='-bnoentry'
9899 # When large executables or shared objects are built, AIX ld can
9900 # have problems creating the table of contents. If linking a library
9901 # or program results in "error TOC overflow" add -mminimal-toc to
9902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9907 hardcode_direct_absolute=yes
9908 hardcode_libdir_separator=':'
9909 link_all_deplibs=yes
9910 file_list_spec='${wl}-f,'
9912 if test "$GCC" = yes; then
9913 case $host_os in aix4.[012]|aix4.[012].*)
9914 # We only want to do this on AIX 4.2 and lower, the check
9915 # below for broken collect2 doesn't work under 4.3+
9916 collect2name=`${CC} -print-prog-name=collect2`
9917 if test -f "$collect2name" &&
9918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9920 # We have reworked collect2
9923 # We have old collect2
9924 hardcode_direct=unsupported
9925 # It fails to find uninstalled libraries when the uninstalled
9926 # path is not listed in the libpath. Setting hardcode_minus_L
9927 # to unsupported forces relinking
9928 hardcode_minus_L=yes
9929 hardcode_libdir_flag_spec='-L$libdir'
9930 hardcode_libdir_separator=
9934 shared_flag='-shared'
9935 if test "$aix_use_runtimelinking" = yes; then
9936 shared_flag="$shared_flag "'${wl}-G'
9941 if test "$host_cpu" = ia64; then
9942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9943 # chokes on -Wl,-G. The following line is correct:
9946 if test "$aix_use_runtimelinking" = yes; then
9947 shared_flag='${wl}-G'
9949 shared_flag='${wl}-bM:SRE'
9954 export_dynamic_flag_spec='${wl}-bexpall'
9955 # It seems that -bexpall does not export symbols beginning with
9956 # underscore (_), so it is better to generate a list of symbols to export.
9957 always_export_symbols=yes
9958 if test "$aix_use_runtimelinking" = yes; then
9959 # Warning - without using the other runtime loading flags (-brtl),
9960 # -berok will link without error, but may produce a broken library.
9961 allow_undefined_flag='-berok'
9962 # Determine the default libpath from the value encoded in an
9964 if test "${lt_cv_aix_libpath+set}" = set; then
9965 aix_libpath=$lt_cv_aix_libpath
9967 if ${lt_cv_aix_libpath_+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9981 if ac_fn_c_try_link "$LINENO"; then :
9983 lt_aix_libpath_sed='
9984 /Import File Strings/,/^$/ {
9986 s/^0 *\([^ ]*\) *$/\1/
9990 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9991 # Check for a 64-bit object if we didn't find anything.
9992 if test -z "$lt_cv_aix_libpath_"; then
9993 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 if test -z "$lt_cv_aix_libpath_"; then
9999 lt_cv_aix_libpath_="/usr/lib:/lib"
10004 aix_libpath=$lt_cv_aix_libpath_
10007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10008 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"
10010 if test "$host_cpu" = ia64; then
10011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10012 allow_undefined_flag="-z nodefs"
10013 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"
10015 # Determine the default libpath from the value encoded in an
10016 # empty executable.
10017 if test "${lt_cv_aix_libpath+set}" = set; then
10018 aix_libpath=$lt_cv_aix_libpath
10020 if ${lt_cv_aix_libpath_+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10034 if ac_fn_c_try_link "$LINENO"; then :
10036 lt_aix_libpath_sed='
10037 /Import File Strings/,/^$/ {
10039 s/^0 *\([^ ]*\) *$/\1/
10043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044 # Check for a 64-bit object if we didn't find anything.
10045 if test -z "$lt_cv_aix_libpath_"; then
10046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 if test -z "$lt_cv_aix_libpath_"; then
10052 lt_cv_aix_libpath_="/usr/lib:/lib"
10057 aix_libpath=$lt_cv_aix_libpath_
10060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10061 # Warning - without using the other run time loading flags,
10062 # -berok will link without error, but may produce a broken library.
10063 no_undefined_flag=' ${wl}-bernotok'
10064 allow_undefined_flag=' ${wl}-berok'
10065 if test "$with_gnu_ld" = yes; then
10066 # We only use this code for GNU lds that support --whole-archive.
10067 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10069 # Exported symbols can be pulled into shared objects from archives
10070 whole_archive_flag_spec='$convenience'
10072 archive_cmds_need_lc=yes
10073 # This is similar to how AIX traditionally builds its shared libraries.
10074 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'
10082 # see comment about AmigaOS4 .so support
10083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084 archive_expsym_cmds=''
10087 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)'
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_minus_L=yes
10095 export_dynamic_flag_spec=-rdynamic
10098 cygwin* | mingw* | pw32* | cegcc*)
10099 # When not using gcc, we currently assume that we are using
10100 # Microsoft Visual C++.
10101 # hardcode_libdir_flag_spec is actually meaningless, as there is
10102 # no search path for DLLs.
10103 case $cc_basename in
10106 hardcode_libdir_flag_spec=' '
10107 allow_undefined_flag=unsupported
10108 always_export_symbols=yes
10110 # Tell ltmain to make .lib files, not .a files.
10112 # Tell ltmain to make .dll files, not .so files.
10114 # FIXME: Setting linknames here is a bad hack.
10115 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10117 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10119 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10121 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10123 # The linker will not automatically build a static lib if we build a DLL.
10124 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10125 enable_shared_with_static_runtimes=yes
10126 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10129 old_postinstall_cmds='chmod 644 $oldlib'
10130 postlink_cmds='lt_outputfile="@OUTPUT@"~
10131 lt_tool_outputfile="@TOOL_OUTPUT@"~
10132 case $lt_outputfile in
10135 lt_outputfile="$lt_outputfile.exe"
10136 lt_tool_outputfile="$lt_tool_outputfile.exe"
10139 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10140 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10141 $RM "$lt_outputfile.manifest";
10145 # Assume MSVC wrapper
10146 hardcode_libdir_flag_spec=' '
10147 allow_undefined_flag=unsupported
10148 # Tell ltmain to make .lib files, not .a files.
10150 # Tell ltmain to make .dll files, not .so files.
10152 # FIXME: Setting linknames here is a bad hack.
10153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10154 # The linker will automatically build a .lib file if we build a DLL.
10155 old_archive_from_new_cmds='true'
10156 # FIXME: Should let the user specify the lib program.
10157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10158 enable_shared_with_static_runtimes=yes
10163 darwin* | rhapsody*)
10166 archive_cmds_need_lc=no
10168 hardcode_automatic=yes
10169 hardcode_shlibpath_var=unsupported
10170 if test "$lt_cv_ld_force_load" = "yes"; then
10171 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\"`'
10174 whole_archive_flag_spec=''
10176 link_all_deplibs=yes
10177 allow_undefined_flag="$_lt_dar_allow_undefined"
10178 case $cc_basename in
10179 ifort*) _lt_dar_can_shared=yes ;;
10180 *) _lt_dar_can_shared=$GCC ;;
10182 if test "$_lt_dar_can_shared" = "yes"; then
10183 output_verbose_link_cmd=func_echo_all
10184 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10185 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10186 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}"
10187 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}"
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_shlibpath_var=no
10201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10202 # support. Future versions do this automatically, but an explicit c++rt0.o
10203 # does not break anything, and helps significantly (at the cost of a little
10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_minus_L=yes
10217 hardcode_shlibpath_var=no
10220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10221 freebsd* | dragonfly*)
10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223 hardcode_libdir_flag_spec='-R$libdir'
10224 hardcode_direct=yes
10225 hardcode_shlibpath_var=no
10229 if test "$GCC" = yes; then
10230 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'
10232 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'
10234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator=:
10236 hardcode_direct=yes
10238 # hardcode_minus_L: Not really in the search PATH,
10239 # but as the default location of the library.
10240 hardcode_minus_L=yes
10241 export_dynamic_flag_spec='${wl}-E'
10245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10246 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10250 if test "$with_gnu_ld" = no; then
10251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252 hardcode_libdir_separator=:
10253 hardcode_direct=yes
10254 hardcode_direct_absolute=yes
10255 export_dynamic_flag_spec='${wl}-E'
10256 # hardcode_minus_L: Not really in the search PATH,
10257 # but as the default location of the library.
10258 hardcode_minus_L=yes
10263 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10266 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10278 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285 # Older versions of the 11.00 compiler do not understand -b yet
10286 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10288 $as_echo_n "checking if $CC understands -b... " >&6; }
10289 if ${lt_cv_prog_compiler__b+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 lt_cv_prog_compiler__b=no
10293 save_LDFLAGS="$LDFLAGS"
10294 LDFLAGS="$LDFLAGS -b"
10295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10297 # The linker can only warn and ignore the option if not recognized
10298 # So say no if there are warnings
10299 if test -s conftest.err; then
10300 # Append any errors to the config.log.
10301 cat conftest.err 1>&5
10302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10304 if diff conftest.exp conftest.er2 >/dev/null; then
10305 lt_cv_prog_compiler__b=yes
10308 lt_cv_prog_compiler__b=yes
10312 LDFLAGS="$save_LDFLAGS"
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10316 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10318 if test x"$lt_cv_prog_compiler__b" = xyes; then
10319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10327 if test "$with_gnu_ld" = no; then
10328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10329 hardcode_libdir_separator=:
10334 hardcode_shlibpath_var=no
10337 hardcode_direct=yes
10338 hardcode_direct_absolute=yes
10339 export_dynamic_flag_spec='${wl}-E'
10341 # hardcode_minus_L: Not really in the search PATH,
10342 # but as the default location of the library.
10343 hardcode_minus_L=yes
10349 irix5* | irix6* | nonstopux*)
10350 if test "$GCC" = yes; then
10351 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'
10352 # Try to use the -exported_symbol ld option, if it does not
10353 # work, assume that -exports_file does not work either and
10354 # implicitly export all symbols.
10355 # This should be the same for all languages, so no per-tag cache variable.
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10357 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10358 if ${lt_cv_irix_exported_symbol+:} false; then :
10359 $as_echo_n "(cached) " >&6
10361 save_LDFLAGS="$LDFLAGS"
10362 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 int foo (void) { return 0; }
10367 if ac_fn_c_try_link "$LINENO"; then :
10368 lt_cv_irix_exported_symbol=yes
10370 lt_cv_irix_exported_symbol=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LDFLAGS="$save_LDFLAGS"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10377 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10378 if test "$lt_cv_irix_exported_symbol" = yes; then
10379 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'
10382 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'
10383 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'
10385 archive_cmds_need_lc='no'
10386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10387 hardcode_libdir_separator=:
10389 link_all_deplibs=yes
10392 netbsd* | netbsdelf*-gnu)
10393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10398 hardcode_libdir_flag_spec='-R$libdir'
10399 hardcode_direct=yes
10400 hardcode_shlibpath_var=no
10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405 hardcode_direct=yes
10406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10407 hardcode_libdir_separator=:
10408 hardcode_shlibpath_var=no
10415 if test -f /usr/libexec/ld.so; then
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10418 hardcode_direct_absolute=yes
10419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10423 export_dynamic_flag_spec='${wl}-E'
10426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec='-R$libdir'
10431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10442 hardcode_libdir_flag_spec='-L$libdir'
10443 hardcode_minus_L=yes
10444 allow_undefined_flag=unsupported
10445 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'
10446 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10450 if test "$GCC" = yes; then
10451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10452 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'
10454 allow_undefined_flag=' -expect_unresolved \*'
10455 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'
10457 archive_cmds_need_lc='no'
10458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10459 hardcode_libdir_separator=:
10462 osf4* | osf5*) # as osf3* with the addition of -msym flag
10463 if test "$GCC" = yes; then
10464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10465 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'
10466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468 allow_undefined_flag=' -expect_unresolved \*'
10469 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'
10470 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~
10471 $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'
10473 # Both c and cxx compiler support -rpath directly
10474 hardcode_libdir_flag_spec='-rpath $libdir'
10476 archive_cmds_need_lc='no'
10477 hardcode_libdir_separator=:
10481 no_undefined_flag=' -z defs'
10482 if test "$GCC" = yes; then
10484 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10486 $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'
10488 case `$CC -V 2>&1` in
10491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10497 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10499 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10503 hardcode_libdir_flag_spec='-R$libdir'
10504 hardcode_shlibpath_var=no
10506 solaris2.[0-5] | solaris2.[0-5].*) ;;
10508 # The compiler driver will combine and reorder linker options,
10509 # but understands `-z linker_flag'. GCC discards it without `$wl',
10510 # but is careful enough not to reorder.
10511 # Supported since Solaris 2.6 (maybe 2.5.1?)
10512 if test "$GCC" = yes; then
10513 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10519 link_all_deplibs=yes
10523 if test "x$host_vendor" = xsequent; then
10524 # Use $CC to link under sequent, because it throws in some extra .o
10525 # files that make .init and .fini sections work.
10526 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10530 hardcode_libdir_flag_spec='-L$libdir'
10531 hardcode_direct=yes
10532 hardcode_minus_L=yes
10533 hardcode_shlibpath_var=no
10537 case $host_vendor in
10539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10540 hardcode_direct=yes # is this really true???
10543 ## LD is ld it makes a PLAMLIB
10544 ## CC just makes a GrossModule.
10545 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10546 reload_cmds='$CC -r -o $output$reload_objs'
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10554 runpath_var='LD_RUN_PATH'
10555 hardcode_shlibpath_var=no
10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560 hardcode_shlibpath_var=no
10561 export_dynamic_flag_spec='-Bexport'
10565 if test -d /usr/nec; then
10566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567 hardcode_shlibpath_var=no
10568 runpath_var=LD_RUN_PATH
10569 hardcode_runpath_var=yes
10574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10575 no_undefined_flag='${wl}-z,text'
10576 archive_cmds_need_lc=no
10577 hardcode_shlibpath_var=no
10578 runpath_var='LD_RUN_PATH'
10580 if test "$GCC" = yes; then
10581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589 sysv5* | sco3.2v5* | sco5v6*)
10590 # Note: We can NOT use -z defs as we might desire, because we do not
10591 # link with -lc, and that would cause any symbols used from libc to
10592 # always be unresolved, which means just about no library would
10593 # ever link correctly. If we're not using GNU ld we use -z text
10594 # though, which does catch some bad symbols but isn't as heavy-handed
10596 no_undefined_flag='${wl}-z,text'
10597 allow_undefined_flag='${wl}-z,nodefs'
10598 archive_cmds_need_lc=no
10599 hardcode_shlibpath_var=no
10600 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10601 hardcode_libdir_separator=':'
10602 link_all_deplibs=yes
10603 export_dynamic_flag_spec='${wl}-Bexport'
10604 runpath_var='LD_RUN_PATH'
10606 if test "$GCC" = yes; then
10607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_shlibpath_var=no
10626 if test x$host_vendor = xsni; then
10628 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10629 export_dynamic_flag_spec='${wl}-Blargedynsym'
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10636 $as_echo "$ld_shlibs" >&6; }
10637 test "$ld_shlibs" = no && can_build_shared=no
10639 with_gnu_ld=$with_gnu_ld
10656 # Do we need to explicitly link libc?
10658 case "x$archive_cmds_need_lc" in
10660 # Assume -lc should be added
10661 archive_cmds_need_lc=yes
10663 if test "$enable_shared" = yes && test "$GCC" = yes; then
10664 case $archive_cmds in
10666 # FIXME: we may have to deal with multi-command sequences.
10669 # Test whether the compiler implicitly links with -lc since on some
10670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10671 # to ld, don't add -lc before -lgcc.
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10673 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10674 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10675 $as_echo_n "(cached) " >&6
10678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10681 (eval $ac_compile) 2>&5
10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684 test $ac_status = 0; } 2>conftest.err; then
10687 libobjs=conftest.$ac_objext
10689 wl=$lt_prog_compiler_wl
10690 pic_flag=$lt_prog_compiler_pic
10696 lt_save_allow_undefined_flag=$allow_undefined_flag
10697 allow_undefined_flag=
10698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10699 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10702 test $ac_status = 0; }
10704 lt_cv_archive_cmds_need_lc=no
10706 lt_cv_archive_cmds_need_lc=yes
10708 allow_undefined_flag=$lt_save_allow_undefined_flag
10710 cat conftest.err 1>&5
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10716 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10717 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10876 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10878 if test "$GCC" = yes; then
10880 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10881 *) lt_awk_arg="/^libraries:/" ;;
10884 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10885 *) lt_sed_strip_eq="s,=/,/,g" ;;
10887 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10888 case $lt_search_path_spec in
10890 # if the path contains ";" then we assume it to be the separator
10891 # otherwise default to the standard path separator (i.e. ":") - it is
10892 # assumed that no part of a normal pathname contains ";" but that should
10893 # okay in the real world where ";" in dirpaths is itself problematic.
10894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10900 # Ok, now we have the path, separated by spaces, we can step through it
10901 # and add multilib dir if necessary.
10902 lt_tmp_lt_search_path_spec=
10903 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10904 for lt_sys_path in $lt_search_path_spec; do
10905 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10906 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10908 test -d "$lt_sys_path" && \
10909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10912 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10913 BEGIN {RS=" "; FS="/|\n";} {
10916 for (lt_i = NF; lt_i > 0; lt_i--) {
10917 if ($lt_i != "" && $lt_i != ".") {
10918 if ($lt_i == "..") {
10921 if (lt_count == 0) {
10922 lt_foo="/" $lt_i lt_foo;
10929 if (lt_foo != "") { lt_freq[lt_foo]++; }
10930 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10932 # AWK program above erroneously prepends '/' to C:/dos/paths
10935 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10936 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10938 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10942 library_names_spec=
10943 libname_spec='lib$name'
10947 postuninstall_cmds=
10951 shlibpath_overrides_runpath=unknown
10953 dynamic_linker="$host_os ld.so"
10954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10955 need_lib_prefix=unknown
10956 hardcode_into_libs=no
10958 # when you set need_version to no, make sure it does not cause -set_version
10959 # flags to be left without arguments
10960 need_version=unknown
10964 version_type=linux # correct to gnu/linux during the next big refactor
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10966 shlibpath_var=LIBPATH
10968 # AIX 3 has no versioning support, so we append a major version to the name.
10969 soname_spec='${libname}${release}${shared_ext}$major'
10973 version_type=linux # correct to gnu/linux during the next big refactor
10976 hardcode_into_libs=yes
10977 if test "$host_cpu" = ia64; then
10978 # AIX 5 supports IA64
10979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10980 shlibpath_var=LD_LIBRARY_PATH
10982 # With GCC up to 2.95.x, collect2 would create an import file
10983 # for dependence libraries. The import file would start with
10984 # the line `#! .'. This would cause the generated library to
10985 # depend on `.', always an invalid library. This was fixed in
10986 # development snapshots of GCC prior to 3.0.
10988 aix4 | aix4.[01] | aix4.[01].*)
10989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10994 can_build_shared=no
10998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10999 # soname into executable. Probably we can add versioning support to
11000 # collect2, so additional links can be useful in future.
11001 if test "$aix_use_runtimelinking" = yes; then
11002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11003 # instead of lib<name>.a to let people know that these are not
11004 # typical AIX shared libraries.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 # We preserve .a as extension for shared libraries through AIX4.2
11008 # and later when we are not doing run time linking.
11009 library_names_spec='${libname}${release}.a $libname.a'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11012 shlibpath_var=LIBPATH
11019 # Since July 2007 AmigaOS4 officially supports .so libraries.
11020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 library_names_spec='$libname.ixlibrary $libname.a'
11025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11026 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'
11032 library_names_spec='${libname}${shared_ext}'
11033 dynamic_linker="$host_os ld.so"
11034 shlibpath_var=LIBRARY_PATH
11038 version_type=linux # correct to gnu/linux during the next big refactor
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11046 # the default ld.so.conf also contains /usr/contrib/lib and
11047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11048 # libtool to hard-code these into programs
11051 cygwin* | mingw* | pw32* | cegcc*)
11052 version_type=windows
11057 case $GCC,$cc_basename in
11060 library_names_spec='$libname.dll.a'
11061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062 postinstall_cmds='base_file=`basename \${file}`~
11063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11064 dldir=$destdir/`dirname \$dlpath`~
11065 test -d \$dldir || mkdir -p \$dldir~
11066 $install_prog $dir/$dlname \$dldir/$dlname~
11067 chmod a+x \$dldir/$dlname~
11068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11072 dlpath=$dir/\$dldll~
11074 shlibpath_overrides_runpath=yes
11078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11081 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11084 # MinGW DLLs use traditional 'lib' prefix
11085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11088 # pw32 DLLs use 'pw' prefix rather than 'lib'
11089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11092 dynamic_linker='Win32 ld.exe'
11097 libname_spec='$name'
11098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11099 library_names_spec='${libname}.dll.lib'
11103 sys_lib_search_path_spec=
11106 for lt_path in $LIB
11109 # Let DOS variable expansion print the short 8.3 style file name.
11110 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11111 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11114 # Convert to MSYS style.
11115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11118 # Convert to unix form, then to dos form, then back to unix form
11119 # but this time dos style (no spaces!) so that the unix form looks
11120 # like /cygdrive/c/PROGRA~1:/cygdr...
11121 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11122 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11123 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11126 sys_lib_search_path_spec="$LIB"
11127 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11128 # It is most probably a Windows format PATH.
11129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11133 # FIXME: find the short name or the path components, as spaces are
11134 # common. (e.g. "Program Files" -> "PROGRA~1")
11138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11139 postinstall_cmds='base_file=`basename \${file}`~
11140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11141 dldir=$destdir/`dirname \$dlpath`~
11142 test -d \$dldir || mkdir -p \$dldir~
11143 $install_prog $dir/$dlname \$dldir/$dlname'
11144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11145 dlpath=$dir/\$dldll~
11147 shlibpath_overrides_runpath=yes
11148 dynamic_linker='Win32 link.exe'
11152 # Assume MSVC wrapper
11153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11154 dynamic_linker='Win32 ld.exe'
11157 # FIXME: first we should search . and the directory the executable is in
11161 darwin* | rhapsody*)
11162 dynamic_linker="$host_os dyld"
11163 version_type=darwin
11166 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11167 soname_spec='${libname}${release}${major}$shared_ext'
11168 shlibpath_overrides_runpath=yes
11169 shlibpath_var=DYLD_LIBRARY_PATH
11170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11177 version_type=linux # correct to gnu/linux during the next big refactor
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11185 freebsd* | dragonfly*)
11186 # DragonFly does not have aout. When/if they implement a new
11187 # versioning mechanism, adjust this.
11188 if test -x /usr/bin/objformat; then
11189 objformat=`/usr/bin/objformat`
11192 freebsd[23].*) objformat=aout ;;
11193 *) objformat=elf ;;
11196 version_type=freebsd-$objformat
11197 case $version_type in
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11208 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=yes
11213 freebsd3.[01]* | freebsdelf3.[01]*)
11214 shlibpath_overrides_runpath=yes
11215 hardcode_into_libs=yes
11217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11222 *) # from 4.6 on, and DragonFly
11223 shlibpath_overrides_runpath=yes
11224 hardcode_into_libs=yes
11230 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=no
11237 hardcode_into_libs=yes
11241 version_type=linux # correct to gnu/linux during the next big refactor
11244 dynamic_linker="$host_os runtime_loader"
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LIBRARY_PATH
11248 shlibpath_overrides_runpath=yes
11249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11250 hardcode_into_libs=yes
11253 hpux9* | hpux10* | hpux11*)
11254 # Give a soname corresponding to the major version so that dld.sl refuses to
11255 # link against other versions.
11262 hardcode_into_libs=yes
11263 dynamic_linker="$host_os dld.so"
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 if test "X$HPUX_IA64_MODE" = X32; then
11269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11277 hardcode_into_libs=yes
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11288 dynamic_linker="$host_os dld.sl"
11289 shlibpath_var=SHLIB_PATH
11290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11296 postinstall_cmds='chmod 555 $lib'
11297 # or fails outright, so override atomically:
11298 install_override_mode=555
11302 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=no
11310 hardcode_into_libs=yes
11313 irix5* | irix6* | nonstopux*)
11315 nonstopux*) version_type=nonstopux ;;
11317 if test "$lt_cv_prog_gnu_ld" = yes; then
11318 version_type=linux # correct to gnu/linux during the next big refactor
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11328 irix5* | nonstopux*)
11329 libsuff= shlibsuff=
11332 case $LD in # libtool.m4 will add one of these switches to LD
11333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11334 libsuff= shlibsuff= libmagic=32-bit;;
11335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11336 libsuff=32 shlibsuff=N32 libmagic=N32;;
11337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11339 *) libsuff= shlibsuff= libmagic=never-match;;
11343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11344 shlibpath_overrides_runpath=no
11345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11347 hardcode_into_libs=yes
11350 # No shared lib support for Linux oldld, aout, or coff.
11351 linux*oldld* | linux*aout* | linux*coff*)
11355 # This must be glibc/ELF.
11356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11357 version_type=linux # correct to gnu/linux during the next big refactor
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=no
11366 # Some binutils ld are patched to set DT_RUNPATH
11367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11368 $as_echo_n "(cached) " >&6
11370 lt_cv_shlibpath_overrides_runpath=no
11371 save_LDFLAGS=$LDFLAGS
11372 save_libdir=$libdir
11373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11388 lt_cv_shlibpath_overrides_runpath=yes
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LDFLAGS=$save_LDFLAGS
11394 libdir=$save_libdir
11398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11400 # This implies no fast_install, which is unacceptable.
11401 # Some rework will be needed to allow for fast_install
11402 # before this can be enabled.
11403 hardcode_into_libs=yes
11405 # Append ld.so.conf contents to the search path
11406 if test -f /etc/ld.so.conf; then
11407 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' ' '`
11408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11411 # We used to test for /lib/ld.so.1 and disable shared libraries on
11412 # powerpc, because MkLinux only supported shared libraries with the
11413 # GNU dynamic linker. Since this was broken with cross compilers,
11414 # most powerpc-linux boxes support dynamic linking these days and
11415 # people can always --disable-shared, the test was removed, and we
11416 # assume the GNU/Linux dynamic linker is in use.
11417 dynamic_linker='GNU/Linux ld.so'
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=no
11428 hardcode_into_libs=yes
11429 dynamic_linker='NetBSD ld.elf_so'
11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439 dynamic_linker='NetBSD (a.out) ld.so'
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 dynamic_linker='NetBSD ld.elf_so'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 hardcode_into_libs=yes
11451 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='ldqnx.so'
11471 sys_lib_dlsearch_path_spec="/usr/lib"
11473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11476 *) need_version=no ;;
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11483 openbsd2.[89] | openbsd2.[89].*)
11484 shlibpath_overrides_runpath=no
11487 shlibpath_overrides_runpath=yes
11491 shlibpath_overrides_runpath=yes
11496 libname_spec='$name'
11499 library_names_spec='$libname${shared_ext} $libname.a'
11500 dynamic_linker='OS/2 ld.exe'
11501 shlibpath_var=LIBPATH
11504 osf3* | osf4* | osf5*)
11508 soname_spec='${libname}${release}${shared_ext}$major'
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11520 version_type=linux # correct to gnu/linux during the next big refactor
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11528 # ldd complains unless libraries are executable
11529 postinstall_cmds='chmod +x $lib'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 if test "$with_gnu_ld" = yes; then
11545 version_type=linux # correct to gnu/linux during the next big refactor
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_vendor in
11551 shlibpath_overrides_runpath=no
11553 runpath_var=LD_RUN_PATH
11561 shlibpath_overrides_runpath=no
11562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11568 if test -d /usr/nec ;then
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11571 soname_spec='$libname${shared_ext}.$major'
11572 shlibpath_var=LD_LIBRARY_PATH
11576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11577 version_type=freebsd-elf
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11584 hardcode_into_libs=yes
11585 if test "$with_gnu_ld" = yes; then
11586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11595 sys_lib_dlsearch_path_spec='/usr/lib'
11599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11600 version_type=linux # correct to gnu/linux during the next big refactor
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=no
11606 hardcode_into_libs=yes
11610 version_type=linux # correct to gnu/linux during the next big refactor
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 shlibpath_var=LD_LIBRARY_PATH
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11621 $as_echo "$dynamic_linker" >&6; }
11622 test "$dynamic_linker" = no && can_build_shared=no
11624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11625 if test "$GCC" = yes; then
11626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11630 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11632 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11633 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11730 if test -n "$hardcode_libdir_flag_spec" ||
11731 test -n "$runpath_var" ||
11732 test "X$hardcode_automatic" = "Xyes" ; then
11734 # We can hardcode non-existent directories.
11735 if test "$hardcode_direct" != no &&
11736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11737 # have to relink, otherwise we might link with an installed library
11738 # when we should be linking with a yet-to-be-installed one
11739 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11740 test "$hardcode_minus_L" != no; then
11741 # Linking always hardcodes the temporary library directory.
11742 hardcode_action=relink
11744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11745 hardcode_action=immediate
11748 # We cannot hardcode anything, or else we can only hardcode existing
11750 hardcode_action=unsupported
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11753 $as_echo "$hardcode_action" >&6; }
11755 if test "$hardcode_action" = relink ||
11756 test "$inherit_rpath" = yes; then
11757 # Fast installation is not supported
11758 enable_fast_install=no
11759 elif test "$shlibpath_overrides_runpath" = yes ||
11760 test "$enable_shared" = no; then
11761 # Fast installation is not necessary
11762 enable_fast_install=needless
11770 if test "x$enable_dlopen" != xyes; then
11771 enable_dlopen=unknown
11772 enable_dlopen_self=unknown
11773 enable_dlopen_self_static=unknown
11780 lt_cv_dlopen="load_add_on"
11782 lt_cv_dlopen_self=yes
11785 mingw* | pw32* | cegcc*)
11786 lt_cv_dlopen="LoadLibrary"
11791 lt_cv_dlopen="dlopen"
11796 # if libdl is installed we need to link against it
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if ${ac_cv_lib_dl_dlopen+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 ac_check_lib_save_LIBS=$LIBS
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dl_dlopen=yes
11825 ac_cv_lib_dl_dlopen=no
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11837 lt_cv_dlopen="dyld"
11839 lt_cv_dlopen_self=yes
11846 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11847 if test "x$ac_cv_func_shl_load" = xyes; then :
11848 lt_cv_dlopen="shl_load"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11852 if ${ac_cv_lib_dld_shl_load+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_check_lib_save_LIBS=$LIBS
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11870 return shl_load ();
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_dld_shl_load=yes
11878 ac_cv_lib_dld_shl_load=no
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11886 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11889 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11890 if test "x$ac_cv_func_dlopen" = xyes; then :
11891 lt_cv_dlopen="dlopen"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896 $as_echo_n "(cached) " >&6
11898 ac_check_lib_save_LIBS=$LIBS
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11921 ac_cv_lib_dl_dlopen=no
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11934 if ${ac_cv_lib_svld_dlopen+:} false; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsvld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_svld_dlopen=yes
11960 ac_cv_lib_svld_dlopen=no
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11968 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11973 if ${ac_cv_lib_dld_dld_link+:} false; then :
11974 $as_echo_n "(cached) " >&6
11976 ac_check_lib_save_LIBS=$LIBS
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11991 return dld_link ();
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dld_dld_link=yes
11999 ac_cv_lib_dld_dld_link=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12007 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12029 if test "x$lt_cv_dlopen" != xno; then
12035 case $lt_cv_dlopen in
12037 save_CPPFLAGS="$CPPFLAGS"
12038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12040 save_LDFLAGS="$LDFLAGS"
12041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12044 LIBS="$lt_cv_dlopen_libs $LIBS"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self+:} false; then :
12049 $as_echo_n "(cached) " >&6
12051 if test "$cross_compiling" = yes; then :
12052 lt_cv_dlopen_self=cross
12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055 lt_status=$lt_dlunknown
12056 cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12067 # define LT_DLGLOBAL RTLD_GLOBAL
12070 # define LT_DLGLOBAL DL_GLOBAL
12072 # define LT_DLGLOBAL 0
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077 find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # define LT_DLLAZY_OR_NOW DL_NOW
12091 # define LT_DLLAZY_OR_NOW 0
12098 /* When -fvisbility=hidden is used, assume the code has been annotated
12099 correspondingly for the symbols needed. */
12100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12104 int fnord () { return 42; }
12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108 int status = $lt_dlunknown;
12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12116 else puts (dlerror ());
12118 /* dlclose (self); */
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127 (eval $ac_link) 2>&5
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12131 (./conftest; exit; ) >&5 2>/dev/null
12133 case x$lt_status in
12134 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12135 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12136 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12139 # compilation failed
12140 lt_cv_dlopen_self=no
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12148 $as_echo "$lt_cv_dlopen_self" >&6; }
12150 if test "x$lt_cv_dlopen_self" = xyes; then
12151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12153 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12154 if ${lt_cv_dlopen_self_static+:} false; then :
12155 $as_echo_n "(cached) " >&6
12157 if test "$cross_compiling" = yes; then :
12158 lt_cv_dlopen_self_static=cross
12160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12161 lt_status=$lt_dlunknown
12162 cat > conftest.$ac_ext <<_LT_EOF
12163 #line $LINENO "configure"
12164 #include "confdefs.h"
12173 # define LT_DLGLOBAL RTLD_GLOBAL
12176 # define LT_DLGLOBAL DL_GLOBAL
12178 # define LT_DLGLOBAL 0
12182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12183 find out it does not work in some platform. */
12184 #ifndef LT_DLLAZY_OR_NOW
12186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12189 # define LT_DLLAZY_OR_NOW DL_LAZY
12192 # define LT_DLLAZY_OR_NOW RTLD_NOW
12195 # define LT_DLLAZY_OR_NOW DL_NOW
12197 # define LT_DLLAZY_OR_NOW 0
12204 /* When -fvisbility=hidden is used, assume the code has been annotated
12205 correspondingly for the symbols needed. */
12206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12207 int fnord () __attribute__((visibility("default")));
12210 int fnord () { return 42; }
12213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12214 int status = $lt_dlunknown;
12218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12222 else puts (dlerror ());
12224 /* dlclose (self); */
12232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12233 (eval $ac_link) 2>&5
12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12237 (./conftest; exit; ) >&5 2>/dev/null
12239 case x$lt_status in
12240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12242 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12245 # compilation failed
12246 lt_cv_dlopen_self_static=no
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12254 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12257 CPPFLAGS="$save_CPPFLAGS"
12258 LDFLAGS="$save_LDFLAGS"
12263 case $lt_cv_dlopen_self in
12264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12265 *) enable_dlopen_self=unknown ;;
12268 case $lt_cv_dlopen_self_static in
12269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12270 *) enable_dlopen_self_static=unknown ;;
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12293 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12294 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12296 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298 $as_echo "yes" >&6; }
12300 # FIXME - insert some real tests, host_os isn't really good enough
12303 if test -n "$STRIP" ; then
12304 striplib="$STRIP -x"
12305 old_striplib="$STRIP -S"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12331 # Report which library types will actually be built
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12333 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12335 $as_echo "$can_build_shared" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12338 $as_echo_n "checking whether to build shared libraries... " >&6; }
12339 test "$can_build_shared" = "no" && enable_shared=no
12341 # On AIX, shared libraries and static libraries use the same namespace, and
12342 # are all built from PIC.
12345 test "$enable_shared" = yes && enable_static=no
12346 if test -n "$RANLIB"; then
12347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12348 postinstall_cmds='$RANLIB $lib'
12353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12354 test "$enable_shared" = yes && enable_static=no
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12359 $as_echo "$enable_shared" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12362 $as_echo_n "checking whether to build static libraries... " >&6; }
12363 # Make sure either enable_shared or enable_static is yes.
12364 test "$enable_shared" = yes || enable_static=yes
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12366 $as_echo "$enable_static" >&6; }
12373 ac_cpp='$CPP $CPPFLAGS'
12374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12394 ac_config_commands="$ac_config_commands libtool"
12399 # Only expand once:
12403 # Check whether --enable-optimization was given.
12404 if test "${enable_optimization+set}" = set; then :
12405 enableval=$enable_optimization;
12406 if (test "${enableval}" = "no"); then
12407 CFLAGS="$CFLAGS -O0"
12413 # Check whether --enable-debug was given.
12414 if test "${enable_debug+set}" = set; then :
12415 enableval=$enable_debug;
12416 if (test "${enableval}" = "yes" &&
12417 test "${ac_cv_prog_cc_g}" = "yes"); then
12418 CFLAGS="$CFLAGS -g"
12424 # Check whether --enable-test was given.
12425 if test "${enable_test+set}" = set; then :
12426 enableval=$enable_test; enable_test=${enableval}
12429 if test "${enable_test}" = "yes"; then
12438 # Check whether --enable-pie was given.
12439 if test "${enable_pie+set}" = set; then :
12440 enableval=$enable_pie;
12441 if (test "${enableval}" = "yes" &&
12442 test "${ac_cv_prog_cc_pie}" = "yes"); then
12443 CFLAGS="$CFLAGS -fPIE"
12444 LDFLAGS="$LDFLAGS -pie"
12450 # Check whether --enable-threads was given.
12451 if test "${enable_threads+set}" = set; then :
12452 enableval=$enable_threads; enable_threads=${enableval}
12456 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12457 if test "x$ac_cv_func_signalfd" = xyes; then :
12460 as_fn_error $? "signalfd support is required" "$LINENO" 5
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12466 if ${ac_cv_lib_dl_dlopen+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 ac_check_lib_save_LIBS=$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. */
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_dl_dlopen=yes
12492 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
12499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12500 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12503 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12510 $as_echo_n "checking for GLIB... " >&6; }
12512 if test -n "$GLIB_CFLAGS"; then
12513 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12514 elif test -n "$PKG_CONFIG"; then
12515 if test -n "$PKG_CONFIG" && \
12516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12517 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; }; then
12521 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12522 test "x$?" != "x0" && pkg_failed=yes
12529 if test -n "$GLIB_LIBS"; then
12530 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12531 elif test -n "$PKG_CONFIG"; then
12532 if test -n "$PKG_CONFIG" && \
12533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12534 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; }; then
12538 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12539 test "x$?" != "x0" && pkg_failed=yes
12549 if test $pkg_failed = yes; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12554 _pkg_short_errors_supported=yes
12556 _pkg_short_errors_supported=no
12558 if test $_pkg_short_errors_supported = yes; then
12559 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12561 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12563 # Put the nasty error message in config.log where it belongs
12564 echo "$GLIB_PKG_ERRORS" >&5
12566 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12567 elif test $pkg_failed = untried; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12572 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12573 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12581 if (test "${enable_threads}" = "yes"); then
12583 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12588 $as_echo_n "checking for GTHREAD... " >&6; }
12590 if test -n "$GTHREAD_CFLAGS"; then
12591 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12592 elif test -n "$PKG_CONFIG"; then
12593 if test -n "$PKG_CONFIG" && \
12594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12595 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12598 test $ac_status = 0; }; then
12599 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12600 test "x$?" != "x0" && pkg_failed=yes
12607 if test -n "$GTHREAD_LIBS"; then
12608 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12609 elif test -n "$PKG_CONFIG"; then
12610 if test -n "$PKG_CONFIG" && \
12611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12612 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615 test $ac_status = 0; }; then
12616 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12617 test "x$?" != "x0" && pkg_failed=yes
12627 if test $pkg_failed = yes; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12632 _pkg_short_errors_supported=yes
12634 _pkg_short_errors_supported=no
12636 if test $_pkg_short_errors_supported = yes; then
12637 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12639 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12641 # Put the nasty error message in config.log where it belongs
12642 echo "$GTHREAD_PKG_ERRORS" >&5
12644 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12645 elif test $pkg_failed = untried; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12650 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12651 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12653 $as_echo "yes" >&6; }
12656 GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12657 GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12663 $as_echo_n "checking for DBUS... " >&6; }
12665 if test -n "$DBUS_CFLAGS"; then
12666 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12667 elif test -n "$PKG_CONFIG"; then
12668 if test -n "$PKG_CONFIG" && \
12669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12670 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673 test $ac_status = 0; }; then
12674 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12675 test "x$?" != "x0" && pkg_failed=yes
12682 if test -n "$DBUS_LIBS"; then
12683 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12684 elif test -n "$PKG_CONFIG"; then
12685 if test -n "$PKG_CONFIG" && \
12686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12687 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; }; then
12691 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12692 test "x$?" != "x0" && pkg_failed=yes
12702 if test $pkg_failed = yes; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12707 _pkg_short_errors_supported=yes
12709 _pkg_short_errors_supported=no
12711 if test $_pkg_short_errors_supported = yes; then
12712 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12714 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12716 # Put the nasty error message in config.log where it belongs
12717 echo "$DBUS_PKG_ERRORS" >&5
12719 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12720 elif test $pkg_failed = untried; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12725 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12726 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12728 $as_echo "yes" >&6; }
12735 # Check whether --with-dbusconfdir was given.
12736 if test "${with_dbusconfdir+set}" = set; then :
12737 withval=$with_dbusconfdir; path_dbusconf=${withval}
12739 path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12742 if (test -z "${path_dbusconf}"); then
12743 DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12745 DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12750 # Check whether --with-dbusdatadir was given.
12751 if test "${with_dbusdatadir+set}" = set; then :
12752 withval=$with_dbusdatadir; path_dbusdata=${withval}
12754 path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12757 if (test -z "${path_dbusdata}"); then
12758 DBUS_DATADIR="${datadir}/dbus-1/system-services"
12760 DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12765 # Check whether --with-systemdunitdir was given.
12766 if test "${with_systemdunitdir+set}" = set; then :
12767 withval=$with_systemdunitdir; path_systemdunit=${withval}
12769 path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12772 if (test -n "${path_systemdunit}"); then
12773 SYSTEMD_UNITDIR="${path_systemdunit}"
12776 if test -n "${path_systemdunit}"; then
12785 # Check whether --enable-udev was given.
12786 if test "${enable_udev+set}" = set; then :
12787 enableval=$enable_udev; enable_udev=${enableval}
12790 if (test "${enable_udev}" != "no"); then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
12794 $as_echo_n "checking for UDEV... " >&6; }
12796 if test -n "$UDEV_CFLAGS"; then
12797 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
12798 elif test -n "$PKG_CONFIG"; then
12799 if test -n "$PKG_CONFIG" && \
12800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12801 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; }; then
12805 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
12806 test "x$?" != "x0" && pkg_failed=yes
12813 if test -n "$UDEV_LIBS"; then
12814 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
12815 elif test -n "$PKG_CONFIG"; then
12816 if test -n "$PKG_CONFIG" && \
12817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12818 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }; then
12822 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
12823 test "x$?" != "x0" && pkg_failed=yes
12833 if test $pkg_failed = yes; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12838 _pkg_short_errors_supported=yes
12840 _pkg_short_errors_supported=no
12842 if test $_pkg_short_errors_supported = yes; then
12843 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
12845 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
12847 # Put the nasty error message in config.log where it belongs
12848 echo "$UDEV_PKG_ERRORS" >&5
12850 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12851 elif test $pkg_failed = untried; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12856 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
12857 UDEV_LIBS=$pkg_cv_UDEV_LIBS
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12859 $as_echo "yes" >&6; }
12862 UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
12863 if (test -z "${UDEV_DATADIR}"); then
12864 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
12866 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
12872 if test "${enable_udev}" = "yes"; then
12881 # Check whether --enable-tools was given.
12882 if test "${enable_tools+set}" = set; then :
12883 enableval=$enable_tools; enable_tools=${enableval}
12886 if (test "${enable_tools}" = "yes"); then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
12890 $as_echo_n "checking for USB... " >&6; }
12892 if test -n "$USB_CFLAGS"; then
12893 pkg_cv_USB_CFLAGS="$USB_CFLAGS"
12894 elif test -n "$PKG_CONFIG"; then
12895 if test -n "$PKG_CONFIG" && \
12896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12897 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12900 test $ac_status = 0; }; then
12901 pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
12902 test "x$?" != "x0" && pkg_failed=yes
12909 if test -n "$USB_LIBS"; then
12910 pkg_cv_USB_LIBS="$USB_LIBS"
12911 elif test -n "$PKG_CONFIG"; then
12912 if test -n "$PKG_CONFIG" && \
12913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12914 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917 test $ac_status = 0; }; then
12918 pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
12919 test "x$?" != "x0" && pkg_failed=yes
12929 if test $pkg_failed = yes; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12933 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12934 _pkg_short_errors_supported=yes
12936 _pkg_short_errors_supported=no
12938 if test $_pkg_short_errors_supported = yes; then
12939 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
12941 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
12943 # Put the nasty error message in config.log where it belongs
12944 echo "$USB_PKG_ERRORS" >&5
12946 as_fn_error $? "USB library is required" "$LINENO" 5
12947 elif test $pkg_failed = untried; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950 as_fn_error $? "USB library is required" "$LINENO" 5
12952 USB_CFLAGS=$pkg_cv_USB_CFLAGS
12953 USB_LIBS=$pkg_cv_USB_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955 $as_echo "yes" >&6; }
12961 if test "${enable_tools}" = "yes"; then
12970 # Check whether --enable-dundee was given.
12971 if test "${enable_dundee+set}" = set; then :
12972 enableval=$enable_dundee; enable_dundee=${enableval}
12975 if test "${enable_dundee}" = "yes"; then
12984 # Check whether --enable-atmodem was given.
12985 if test "${enable_atmodem+set}" = set; then :
12986 enableval=$enable_atmodem; enable_atmodem=${enableval}
12989 if test "${enable_atmodem}" != "no"; then
12998 # Check whether --enable-cdmamodem was given.
12999 if test "${enable_cdmamodem+set}" = set; then :
13000 enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13003 if test "${enable_cdmamodem}" != "no"; then
13005 CDMAMODEM_FALSE='#'
13012 # Check whether --enable-phonesim was given.
13013 if test "${enable_phonesim+set}" = set; then :
13014 enableval=$enable_phonesim; enable_phonesim=${enableval}
13017 if test "${enable_phonesim}" != "no" &&
13018 test "${enable_atmodem}" != "no"; then
13027 # Check whether --enable-isimodem was given.
13028 if test "${enable_isimodem+set}" = set; then :
13029 enableval=$enable_isimodem; enable_isimodem=${enableval}
13032 if test "${enable_isimodem}" != "no"; then
13041 # Check whether --enable-qmimodem was given.
13042 if test "${enable_qmimodem+set}" = set; then :
13043 enableval=$enable_qmimodem; enable_qmimodem=${enableval}
13046 if test "${enable_qmimodem}" != "no"; then
13055 # Check whether --enable-bluetooth was given.
13056 if test "${enable_bluetooth+set}" = set; then :
13057 enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13060 if (test "${enable_bluetooth}" != "no"); then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
13064 $as_echo_n "checking for BLUEZ... " >&6; }
13066 if test -n "$BLUEZ_CFLAGS"; then
13067 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13068 elif test -n "$PKG_CONFIG"; then
13069 if test -n "$PKG_CONFIG" && \
13070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.99\""; } >&5
13071 ($PKG_CONFIG --exists --print-errors "bluez >= 4.99") 2>&5
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }; then
13075 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.99" 2>/dev/null`
13076 test "x$?" != "x0" && pkg_failed=yes
13083 if test -n "$BLUEZ_LIBS"; then
13084 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13085 elif test -n "$PKG_CONFIG"; then
13086 if test -n "$PKG_CONFIG" && \
13087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.99\""; } >&5
13088 ($PKG_CONFIG --exists --print-errors "bluez >= 4.99") 2>&5
13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091 test $ac_status = 0; }; then
13092 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.99" 2>/dev/null`
13093 test "x$?" != "x0" && pkg_failed=yes
13103 if test $pkg_failed = yes; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13108 _pkg_short_errors_supported=yes
13110 _pkg_short_errors_supported=no
13112 if test $_pkg_short_errors_supported = yes; then
13113 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez >= 4.99" 2>&1`
13115 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez >= 4.99" 2>&1`
13117 # Put the nasty error message in config.log where it belongs
13118 echo "$BLUEZ_PKG_ERRORS" >&5
13120 as_fn_error $? "Bluetooth library >= 4.99 is required" "$LINENO" 5
13121 elif test $pkg_failed = untried; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124 as_fn_error $? "Bluetooth library >= 4.99 is required" "$LINENO" 5
13126 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13127 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129 $as_echo "yes" >&6; }
13135 if test "${enable_bluetooth}" != "no"; then
13137 BLUETOOTH_FALSE='#'
13145 # Check whether --with-provisiondb was given.
13146 if test "${with_provisiondb+set}" = set; then :
13147 withval=$with_provisiondb; path_provisiondb=${withval}
13151 # Check whether --enable-provision was given.
13152 if test "${enable_provision+set}" = set; then :
13153 enableval=$enable_provision; enable_provision=${enableval}
13156 if (test "${enable_provision}" != "no"); then
13157 if (test -n "${path_provisiondb}"); then
13159 cat >>confdefs.h <<_ACEOF
13160 #define PROVIDER_DATABASE "${path_provisiondb}"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mobile-broadband-provider-info" >&5
13165 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13166 if test -n "$PKG_CONFIG" && \
13167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13168 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171 test $ac_status = 0; }; then
13172 if test -n "$PROVIDER_DATABASE"; then
13173 pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13174 elif test -n "$PKG_CONFIG"; then
13175 if test -n "$PKG_CONFIG" && \
13176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13177 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }; then
13181 pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13182 test "x$?" != "x0" && pkg_failed=yes
13190 cat >>confdefs.h <<_ACEOF
13191 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13195 $as_echo "yes" >&6; }
13197 as_fn_error $? "Mobile broadband provider database is required" "$LINENO" 5
13201 if test "${enable_provision}" != "no"; then
13203 PROVISION_FALSE='#'
13210 # Check whether --enable-datafiles was given.
13211 if test "${enable_datafiles+set}" = set; then :
13212 enableval=$enable_datafiles; enable_datafiles=${enableval}
13215 if test "${enable_datafiles}" != "no"; then
13217 DATAFILES_FALSE='#'
13224 if (test "${prefix}" = "NONE"); then
13225 if (test "$localstatedir" = '${prefix}/var'); then
13226 localstatedir='/var'
13230 prefix="${ac_default_prefix}"
13233 if (test "$localstatedir" = '${prefix}/var'); then
13234 storagedir="${prefix}/var/lib/ofono"
13236 storagedir="${localstatedir}/lib/ofono"
13239 cat >>confdefs.h <<_ACEOF
13240 #define STORAGEDIR "${storagedir}"
13244 if (test "$sysconfdir" = '${prefix}/etc'); then
13245 configdir="${prefix}/etc/ofono"
13247 configdir="${sysconfdir}/ofono"
13250 cat >>confdefs.h <<_ACEOF
13251 #define CONFIGDIR "${configdir}"
13255 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc dundee/dundee.service"
13257 cat >confcache <<\_ACEOF
13258 # This file is a shell script that caches the results of configure
13259 # tests run on this system so they can be shared between configure
13260 # scripts and configure runs, see configure's option --config-cache.
13261 # It is not useful on other systems. If it contains results you don't
13262 # want to keep, you may remove or edit it.
13264 # config.status only pays attention to the cache file if you give it
13265 # the --recheck option to rerun configure.
13267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13269 # following values.
13273 # The following way of writing the cache mishandles newlines in values,
13274 # but we know of no workaround that is simple, portable, and efficient.
13275 # So, we kill variables containing newlines.
13276 # Ultrix sh set writes to stderr and can't be redirected directly,
13277 # and sets the high bit in the cache file unless we assign to the vars.
13279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13280 eval ac_val=\$$ac_var
13284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13288 _ | IFS | as_nl) ;; #(
13289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13290 *) { eval $ac_var=; unset $ac_var;} ;;
13296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13297 *${as_nl}ac_space=\ *)
13298 # `set' does not quote correctly, so add quotes: double-quote
13299 # substitution turns \\\\ into \\, and sed turns \\ into \.
13302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13305 # `set' quotes correctly as required by POSIX, so do not add quotes.
13306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13320 if test -w "$cache_file"; then
13321 if test "x$cache_file" != "x/dev/null"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13323 $as_echo "$as_me: updating cache $cache_file" >&6;}
13324 if test ! -f "$cache_file" || test -h "$cache_file"; then
13325 cat confcache >"$cache_file"
13327 case $cache_file in #(
13329 mv -f confcache "$cache_file"$$ &&
13330 mv -f "$cache_file"$$ "$cache_file" ;; #(
13332 mv -f confcache "$cache_file" ;;
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13344 # Let make expand exec_prefix.
13345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13347 DEFS=-DHAVE_CONFIG_H
13352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13353 # 1. Remove the extension, and $U if already installed.
13354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13355 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13357 # will be set to the directory where LIBOBJS objects are built.
13358 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13359 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13361 LIBOBJS=$ac_libobjs
13363 LTLIBOBJS=$ac_ltlibobjs
13366 if test -n "$EXEEXT"; then
13368 am__EXEEXT_FALSE='#'
13370 am__EXEEXT_TRUE='#'
13374 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13375 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13378 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13379 as_fn_error $? "conditional \"AMDEP\" was never defined.
13380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13383 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13387 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13390 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13391 as_fn_error $? "conditional \"TEST\" was never defined.
13392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13394 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13395 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13398 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13399 as_fn_error $? "conditional \"UDEV\" was never defined.
13400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13402 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13403 as_fn_error $? "conditional \"TOOLS\" was never defined.
13404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13406 if test -z "${DUNDEE_TRUE}" && test -z "${DUNDEE_FALSE}"; then
13407 as_fn_error $? "conditional \"DUNDEE\" was never defined.
13408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13410 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13411 as_fn_error $? "conditional \"ATMODEM\" was never defined.
13412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13414 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13415 as_fn_error $? "conditional \"CDMAMODEM\" was never defined.
13416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13418 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13419 as_fn_error $? "conditional \"PHONESIM\" was never defined.
13420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13422 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13423 as_fn_error $? "conditional \"ISIMODEM\" was never defined.
13424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13426 if test -z "${QMIMODEM_TRUE}" && test -z "${QMIMODEM_FALSE}"; then
13427 as_fn_error $? "conditional \"QMIMODEM\" was never defined.
13428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13431 as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13435 as_fn_error $? "conditional \"PROVISION\" was never defined.
13436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13439 as_fn_error $? "conditional \"DATAFILES\" was never defined.
13440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443 : "${CONFIG_STATUS=./config.status}"
13445 ac_clean_files_save=$ac_clean_files
13446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13452 # Generated by $as_me.
13453 # Run this file to recreate the current configuration.
13454 # Compiler output produced by configure, useful for debugging
13455 # configure, is in config.log if it exists.
13458 ac_cs_recheck=false
13461 SHELL=\${CONFIG_SHELL-$SHELL}
13464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13465 ## -------------------- ##
13466 ## M4sh Initialization. ##
13467 ## -------------------- ##
13469 # Be more Bourne compatible
13470 DUALCASE=1; export DUALCASE # for MKS sh
13471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13475 # is contrary to our usage. Disable this feature.
13476 alias -g '${1+"$@"}'='"$@"'
13477 setopt NO_GLOB_SUBST
13479 case `(set -o) 2>/dev/null` in #(
13491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13495 # Prefer a ksh shell builtin over an external printf program on Solaris,
13496 # but without wasting forks for bash or zsh.
13497 if test -z "$BASH_VERSION$ZSH_VERSION" \
13498 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13499 as_echo='print -r --'
13500 as_echo_n='print -rn --'
13501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13502 as_echo='printf %s\n'
13503 as_echo_n='printf %s'
13505 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13506 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13507 as_echo_n='/usr/ucb/echo -n'
13509 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13510 as_echo_n_body='eval
13514 expr "X$arg" : "X\\(.*\\)$as_nl";
13515 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13517 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13519 export as_echo_n_body
13520 as_echo_n='sh -c $as_echo_n_body as_echo'
13522 export as_echo_body
13523 as_echo='sh -c $as_echo_body as_echo'
13526 # The user is always right.
13527 if test "${PATH_SEPARATOR+set}" != set; then
13529 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13530 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13537 # We need space, tab and new line, in precisely that order. Quoting is
13538 # there to prevent editors from complaining about space-tab.
13539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13540 # splitting by setting IFS to empty value.)
13543 # Find who we are. Look in the path if we contain no directory separator.
13546 *[\\/]* ) as_myself=$0 ;;
13547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13551 test -z "$as_dir" && as_dir=.
13552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13558 # We did not find ourselves, most probably we were run as `sh COMMAND'
13559 # in which case we are not to be found in the path.
13560 if test "x$as_myself" = x; then
13563 if test ! -f "$as_myself"; then
13564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13568 # Unset variables that we do not need and which cause bugs (e.g. in
13569 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13570 # suppresses any "Segmentation fault" message there. '((' could
13571 # trigger a bug in pdksh 5.2.14.
13572 for as_var in BASH_ENV ENV MAIL MAILPATH
13573 do eval test x\${$as_var+set} = xset \
13574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13591 # ----------------------------------------
13592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13594 # script with STATUS, using 1 if that was 0.
13597 as_status=$1; test $as_status -eq 0 && as_status=1
13599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13602 $as_echo "$as_me: error: $2" >&2
13603 as_fn_exit $as_status
13607 # as_fn_set_status STATUS
13608 # -----------------------
13609 # Set $? to STATUS, without forking.
13610 as_fn_set_status ()
13613 } # as_fn_set_status
13615 # as_fn_exit STATUS
13616 # -----------------
13617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13621 as_fn_set_status $1
13627 # Portably unset VAR.
13630 { eval $1=; unset $1;}
13632 as_unset=as_fn_unset
13633 # as_fn_append VAR VALUE
13634 # ----------------------
13635 # Append the text in VALUE to the end of the definition contained in VAR. Take
13636 # advantage of any shell optimizations that allow amortized linear growth over
13637 # repeated appends, instead of the typical quadratic growth present in naive
13639 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13640 eval 'as_fn_append ()
13651 # as_fn_arith ARG...
13652 # ------------------
13653 # Perform arithmetic evaluation on the ARGs, and store the result in the
13654 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13655 # must be portable across $(()) and expr.
13656 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13657 eval 'as_fn_arith ()
13664 as_val=`expr "$@" || test $? -eq 1`
13669 if expr a : '\(a\)' >/dev/null 2>&1 &&
13670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13677 as_basename=basename
13682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13688 as_me=`$as_basename -- "$0" ||
13689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13690 X"$0" : 'X\(//\)$' \| \
13691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13693 sed '/^.*\/\([^/][^/]*\)\/*$/{
13707 # Avoid depending upon Character Ranges.
13708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13711 as_cr_digits='0123456789'
13712 as_cr_alnum=$as_cr_Letters$as_cr_digits
13714 ECHO_C= ECHO_N= ECHO_T=
13715 case `echo -n x` in #(((((
13717 case `echo 'xy\c'` in
13718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13727 rm -f conf$$ conf$$.exe conf$$.file
13728 if test -d conf$$.dir; then
13729 rm -f conf$$.dir/conf$$.file
13732 mkdir conf$$.dir 2>/dev/null
13734 if (echo >conf$$.file) 2>/dev/null; then
13735 if ln -s conf$$.file conf$$ 2>/dev/null; then
13737 # ... but there are two gotchas:
13738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13740 # In both cases, we have to default to `cp -pR'.
13741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13743 elif ln conf$$.file conf$$ 2>/dev/null; then
13751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13752 rmdir conf$$.dir 2>/dev/null
13757 # Create "$as_dir" as a directory, including parents if necessary.
13762 -*) as_dir=./$as_dir;;
13764 test -d "$as_dir" || eval $as_mkdir_p || {
13768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13769 *) as_qdir=$as_dir;;
13771 as_dirs="'$as_qdir' $as_dirs"
13772 as_dir=`$as_dirname -- "$as_dir" ||
13773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13774 X"$as_dir" : 'X\(//\)[^/]' \| \
13775 X"$as_dir" : 'X\(//\)$' \| \
13776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13777 $as_echo X"$as_dir" |
13778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13782 /^X\(\/\/\)[^/].*/{
13795 test -d "$as_dir" && break
13797 test -z "$as_dirs" || eval "mkdir $as_dirs"
13798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13802 if mkdir -p . 2>/dev/null; then
13803 as_mkdir_p='mkdir -p "$as_dir"'
13805 test -d ./-p && rmdir ./-p
13810 # as_fn_executable_p FILE
13811 # -----------------------
13812 # Test if FILE is an executable regular file.
13813 as_fn_executable_p ()
13815 test -f "$1" && test -x "$1"
13816 } # as_fn_executable_p
13817 as_test_x='test -x'
13818 as_executable_p=as_fn_executable_p
13820 # Sed expression to map a string onto a valid CPP name.
13821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13823 # Sed expression to map a string onto a valid variable name.
13824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13828 ## ----------------------------------- ##
13829 ## Main body of $CONFIG_STATUS script. ##
13830 ## ----------------------------------- ##
13832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 # Save the log message, to keep $0 and so on meaningful, and to
13836 # report actual input values of CONFIG_FILES etc. instead of their
13837 # values after options handling.
13839 This file was extended by ofono $as_me 1.8, which was
13840 generated by GNU Autoconf 2.69. Invocation command line was
13842 CONFIG_FILES = $CONFIG_FILES
13843 CONFIG_HEADERS = $CONFIG_HEADERS
13844 CONFIG_LINKS = $CONFIG_LINKS
13845 CONFIG_COMMANDS = $CONFIG_COMMANDS
13848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13853 case $ac_config_files in *"
13854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13857 case $ac_config_headers in *"
13858 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 # Files that config.status was made for.
13864 config_files="$ac_config_files"
13865 config_headers="$ac_config_headers"
13866 config_commands="$ac_config_commands"
13870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13872 \`$as_me' instantiates files and other configuration actions
13873 from templates according to the current configuration. Unless the files
13874 and actions are specified as TAGs, all are instantiated by default.
13876 Usage: $0 [OPTION]... [TAG]...
13878 -h, --help print this help, then exit
13879 -V, --version print version number and configuration settings, then exit
13880 --config print configuration, then exit
13881 -q, --quiet, --silent
13882 do not print progress messages
13883 -d, --debug don't remove temporary files
13884 --recheck update $as_me by reconfiguring in the same conditions
13885 --file=FILE[:TEMPLATE]
13886 instantiate the configuration file FILE
13887 --header=FILE[:TEMPLATE]
13888 instantiate the configuration header FILE
13890 Configuration files:
13893 Configuration headers:
13896 Configuration commands:
13899 Report bugs to the package provider."
13902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13905 ofono config.status 1.8
13906 configured by $0, generated by GNU Autoconf 2.69,
13907 with options \\"\$ac_cs_config\\"
13909 Copyright (C) 2012 Free Software Foundation, Inc.
13910 This config.status script is free software; the Free Software Foundation
13911 gives unlimited permission to copy, distribute and modify it."
13918 test -n "\$AWK" || AWK=awk
13921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13922 # The default lists apply if the user does not specify any file.
13928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13945 # Handling of the options.
13946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13949 $as_echo "$ac_cs_version"; exit ;;
13950 --config | --confi | --conf | --con | --co | --c )
13951 $as_echo "$ac_cs_config"; exit ;;
13952 --debug | --debu | --deb | --de | --d | -d )
13954 --file | --fil | --fi | --f )
13957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13958 '') as_fn_error $? "missing file argument" ;;
13960 as_fn_append CONFIG_FILES " '$ac_optarg'"
13961 ac_need_defaults=false;;
13962 --header | --heade | --head | --hea )
13965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13968 ac_need_defaults=false;;
13970 # Conflict between --help and --header
13971 as_fn_error $? "ambiguous option: \`$1'
13972 Try \`$0 --help' for more information.";;
13973 --help | --hel | -h )
13974 $as_echo "$ac_cs_usage"; exit ;;
13975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13979 # This is an error.
13980 -*) as_fn_error $? "unrecognized option: \`$1'
13981 Try \`$0 --help' for more information." ;;
13983 *) as_fn_append ac_config_targets " $1"
13984 ac_need_defaults=false ;;
13990 ac_configure_extra_args=
13992 if $ac_cs_silent; then
13994 ac_configure_extra_args="$ac_configure_extra_args --silent"
13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999 if \$ac_cs_recheck; then
14000 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14003 CONFIG_SHELL='$SHELL'
14004 export CONFIG_SHELL
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14014 ## Running $as_me. ##
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14027 # The HP-UX ksh and POSIX shell print the target directory to stdout
14028 # if CDPATH is set.
14029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14031 sed_quote_subst='$sed_quote_subst'
14032 double_quote_subst='$double_quote_subst'
14033 delay_variable_subst='$delay_variable_subst'
14034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14040 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14041 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14042 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14043 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14044 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14045 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14046 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14047 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14048 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14049 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14050 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14051 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14052 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14053 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14054 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14055 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14056 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14057 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14058 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14059 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14060 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14061 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14062 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14063 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14064 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14065 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14066 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14067 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14068 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14069 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14070 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14071 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14072 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14073 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14076 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14077 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14078 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14079 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14080 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14081 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14082 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14083 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14084 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14085 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14086 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14087 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14088 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14089 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14090 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"`'
14091 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14092 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14093 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14094 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14095 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14096 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14097 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14098 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14099 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14100 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14101 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14102 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14103 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14104 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14105 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14106 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14107 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14108 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14109 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14110 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14111 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14112 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14113 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14114 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14115 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14116 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14117 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14118 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14119 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14120 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14121 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14122 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14123 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14124 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14133 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14134 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14135 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14136 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14137 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14138 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14166 LTCFLAGS='$LTCFLAGS'
14167 compiler='$compiler_DEFAULT'
14169 # A function that is used when there is no print builtin or printf.
14170 func_fallback_echo ()
14172 eval 'cat <<_LTECHO_EOF
14177 # Quote evaled strings.
14192 deplibs_check_method \
14197 sharedlib_from_linklib_cmd \
14200 archiver_list_spec \
14206 lt_cv_sys_global_symbol_pipe \
14207 lt_cv_sys_global_symbol_to_cdecl \
14208 lt_cv_sys_global_symbol_to_c_name_address \
14209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14210 nm_file_list_spec \
14211 lt_prog_compiler_no_builtin_flag \
14212 lt_prog_compiler_pic \
14213 lt_prog_compiler_wl \
14214 lt_prog_compiler_static \
14215 lt_cv_prog_compiler_c_o \
14224 export_dynamic_flag_spec \
14225 whole_archive_flag_spec \
14226 compiler_needs_object \
14228 allow_undefined_flag \
14229 no_undefined_flag \
14230 hardcode_libdir_flag_spec \
14231 hardcode_libdir_separator \
14235 variables_saved_for_relink \
14237 library_names_spec \
14239 install_override_mode \
14243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14244 *[\\\\\\\`\\"\\\$]*)
14245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14253 # Double-quote double-evaled strings.
14254 for var in reload_cmds \
14255 old_postinstall_cmds \
14256 old_postuninstall_cmds \
14258 extract_expsyms_cmds \
14259 old_archive_from_new_cmds \
14260 old_archive_from_expsyms_cmds \
14262 archive_expsym_cmds \
14264 module_expsym_cmds \
14265 export_symbols_cmds \
14269 postuninstall_cmds \
14271 sys_lib_search_path_spec \
14272 sys_lib_dlsearch_path_spec; do
14273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14274 *[\\\\\\\`\\"\\\$]*)
14275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14283 ac_aux_dir='$ac_aux_dir'
14284 xsi_shell='$xsi_shell'
14285 lt_shell_append='$lt_shell_append'
14287 # See if we are running on zsh, and set the options which allow our
14288 # commands through without removal of \ escapes INIT.
14289 if test -n "\${ZSH_VERSION+set}" ; then
14290 setopt NO_GLOB_SUBST
14296 TIMESTAMP='$TIMESTAMP'
14305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 # Handling of arguments.
14308 for ac_config_target in $ac_config_targets
14310 case $ac_config_target in
14311 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14312 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14313 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14315 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14316 "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14317 "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14318 "dundee/dundee.service") CONFIG_FILES="$CONFIG_FILES dundee/dundee.service" ;;
14320 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14325 # If the user did not use the arguments to specify the items to instantiate,
14326 # then the envvar interface is used. Set only those that are not.
14327 # We use the long form for the default assignment because of an extremely
14328 # bizarre bug on SunOS 4.1.3.
14329 if $ac_need_defaults; then
14330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14335 # Have a temporary directory for convenience. Make it in the build tree
14336 # simply because there is no reason against having it here, and in addition,
14337 # creating and moving files from /tmp can sometimes cause problems.
14338 # Hook for its removal unless debugging.
14339 # Note that there is a small window in which the directory will not be cleaned:
14340 # after its creation but before its name has been assigned to `$tmp'.
14344 trap 'exit_status=$?
14345 : "${ac_tmp:=$tmp}"
14346 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14348 trap 'as_fn_exit 1' 1 2 13 15
14350 # Create a (secure) tmp directory for tmp files.
14353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14357 tmp=./conf$$-$RANDOM
14358 (umask 077 && mkdir "$tmp")
14359 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14362 # Set up the scripts for CONFIG_FILES section.
14363 # No need to generate them if there are no CONFIG_FILES.
14364 # This happens for instance with `./config.status config.h'.
14365 if test -n "$CONFIG_FILES"; then
14368 ac_cr=`echo X | tr X '\015'`
14369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14370 # But we know of no other shell where ac_cr would be empty at this
14371 # point, so we can use a bashism as a fallback.
14372 if test "x$ac_cr" = x; then
14373 eval ac_cr=\$\'\\r\'
14375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14379 ac_cs_awk_cr=$ac_cr
14382 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14387 echo "cat >conf$$subs.awk <<_ACEOF" &&
14388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14390 } >conf$$subs.sh ||
14391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14392 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14394 for ac_last_try in false false false false false :; do
14395 . ./conf$$subs.sh ||
14396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14399 if test $ac_delim_n = $ac_delim_num; then
14401 elif $ac_last_try; then
14402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14407 rm -f conf$$subs.sh
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14414 s/^/S["/; s/!.*/"]=/
14424 s/\(.\{148\}\)..*/\1/
14426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14438 s/\(.\{148\}\)..*/\1/
14440 s/["\\]/\\&/g; s/^/"/; s/$/"/
14444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14449 ' <conf$$subs.awk | sed '
14454 ' >>$CONFIG_STATUS || ac_write_fail=1
14455 rm -f conf$$subs.awk
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14458 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14459 for (key in S) S_is_set[key] = 1
14465 nfields = split(line, field, "@")
14467 len = length(field[1])
14468 for (i = 2; i < nfields; i++) {
14470 keylen = length(key)
14471 if (S_is_set[key]) {
14473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14474 len += length(value) + length(field[++i])
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14490 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14494 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14495 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14496 # trailing colons and then remove the whole line if VPATH becomes empty
14497 # (actually we leave an empty line to preserve line numbers).
14498 if test "x$srcdir" = x.; then
14499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14518 fi # test -n "$CONFIG_FILES"
14520 # Set up the scripts for CONFIG_HEADERS section.
14521 # No need to generate them if there are no CONFIG_HEADERS.
14522 # This happens for instance with `./config.status Makefile'.
14523 if test -n "$CONFIG_HEADERS"; then
14524 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14528 # Transform confdefs.h into an awk script `defines.awk', embedded as
14529 # here-document in config.status, that substitutes the proper values into
14530 # config.h.in to produce config.h.
14532 # Create a delimiter string that does not exist in confdefs.h, to ease
14533 # handling of long lines.
14535 for ac_last_try in false false :; do
14536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14537 if test -z "$ac_tt"; then
14539 elif $ac_last_try; then
14540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14546 # For the awk script, D is an array of macro values keyed by name,
14547 # likewise P contains macro parameters if any. Preserve backslash
14548 # newline sequences.
14550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14552 s/.\{148\}/&'"$ac_delim"'/g
14555 s/^[ ]*#[ ]*define[ ][ ]*/ /
14562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14569 D["\1"]=" \3\\\\\\n"\\/p
14571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14576 s/.\{148\}/&'"$ac_delim"'/g
14581 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14584 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14586 ' <confdefs.h | sed '
14587 s/'"$ac_delim"'/"\\\
14588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591 for (key in D) D_is_set[key] = 1
14594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14596 split(line, arg, " ")
14597 if (arg[1] == "#") {
14601 defundef = substr(arg[1], 2)
14604 split(mac1, mac2, "(") #)
14606 prefix = substr(line, 1, index(line, defundef) - 1)
14607 if (D_is_set[macro]) {
14608 # Preserve the white space surrounding the "#".
14609 print prefix "define", macro P[macro] D[macro]
14612 # Replace #undef with comments. This is necessary, for example,
14613 # in the case of _POSIX_SOURCE, which is predefined and required
14614 # on some systems where configure will not decide to define it.
14615 if (defundef == "undef") {
14616 print "/*", prefix defundef, macro, "*/"
14624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14626 fi # test -n "$CONFIG_HEADERS"
14629 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14634 :[FHLC]) ac_mode=$ac_tag; continue;;
14636 case $ac_mode$ac_tag in
14638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14639 :[FH]-) ac_tag=-:-;;
14640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14657 -) ac_f="$ac_tmp/stdin";;
14658 *) # Look for the file first in the build tree, then in the source tree
14659 # (if the path is not absolute). The absolute path cannot be DOS-style,
14660 # because $ac_f cannot contain `:'.
14664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14669 as_fn_append ac_file_inputs " '$ac_f'"
14672 # Let's still pretend it is `configure' which instantiates (i.e., don't
14673 # use $as_me), people would be surprised to read:
14674 # /* config.h. Generated by config.status. */
14675 configure_input='Generated from '`
14676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14678 if test x"$ac_file" != x-; then
14679 configure_input="$ac_file. $configure_input"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14681 $as_echo "$as_me: creating $ac_file" >&6;}
14683 # Neutralize special characters interpreted by sed in replacement strings.
14684 case $configure_input in #(
14685 *\&* | *\|* | *\\* )
14686 ac_sed_conf_input=`$as_echo "$configure_input" |
14687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14688 *) ac_sed_conf_input=$configure_input;;
14692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14698 ac_dir=`$as_dirname -- "$ac_file" ||
14699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14700 X"$ac_file" : 'X\(//\)[^/]' \| \
14701 X"$ac_file" : 'X\(//\)$' \| \
14702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14703 $as_echo X"$ac_file" |
14704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14708 /^X\(\/\/\)[^/].*/{
14721 as_dir="$ac_dir"; as_fn_mkdir_p
14725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14728 # A ".." for each directory in $ac_dir_suffix.
14729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14730 case $ac_top_builddir_sub in
14731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14735 ac_abs_top_builddir=$ac_pwd
14736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14737 # for backward compatibility:
14738 ac_top_builddir=$ac_top_build_prefix
14741 .) # We are building in place.
14743 ac_top_srcdir=$ac_top_builddir_sub
14744 ac_abs_top_srcdir=$ac_pwd ;;
14745 [\\/]* | ?:[\\/]* ) # Absolute name.
14746 ac_srcdir=$srcdir$ac_dir_suffix;
14747 ac_top_srcdir=$srcdir
14748 ac_abs_top_srcdir=$srcdir ;;
14749 *) # Relative name.
14750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14751 ac_top_srcdir=$ac_top_build_prefix$srcdir
14752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14767 ac_MKDIR_P=$MKDIR_P
14769 [\\/$]* | ?:[\\/]* ) ;;
14770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14775 # If the template does not know about datarootdir, expand it.
14776 # FIXME: This hack should be removed a few years after 2.60.
14777 ac_datarootdir_hack=; ac_datarootdir_seen=
14788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14789 *datarootdir*) ac_datarootdir_seen=yes;;
14790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14792 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795 ac_datarootdir_hack='
14796 s&@datadir@&$datadir&g
14797 s&@docdir@&$docdir&g
14798 s&@infodir@&$infodir&g
14799 s&@localedir@&$localedir&g
14800 s&@mandir@&$mandir&g
14801 s&\\\${datarootdir}&$datarootdir&g' ;;
14805 # Neutralize VPATH when `$srcdir' = `.'.
14806 # Shell code in configure.ac might set extrasub.
14807 # FIXME: do we really want to maintain this feature?
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14809 ac_sed_extra="$ac_vpsub
14812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14815 s|@configure_input@|$ac_sed_conf_input|;t t
14816 s&@top_builddir@&$ac_top_builddir_sub&;t t
14817 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14818 s&@srcdir@&$ac_srcdir&;t t
14819 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14820 s&@top_srcdir@&$ac_top_srcdir&;t t
14821 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14822 s&@builddir@&$ac_builddir&;t t
14823 s&@abs_builddir@&$ac_abs_builddir&;t t
14824 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14825 s&@INSTALL@&$ac_INSTALL&;t t
14826 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14827 $ac_datarootdir_hack
14829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14837 which seems to be undefined. Please make sure it is defined" >&5
14838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14839 which seems to be undefined. Please make sure it is defined" >&2;}
14841 rm -f "$ac_tmp/stdin"
14843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14852 if test x"$ac_file" != x-; then
14854 $as_echo "/* $configure_input */" \
14855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14856 } >"$ac_tmp/config.h" \
14857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14858 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14863 mv "$ac_tmp/config.h" "$ac_file" \
14864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14867 $as_echo "/* $configure_input */" \
14868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14869 || as_fn_error $? "could not create -" "$LINENO" 5
14871 # Compute "$ac_file"'s index in $config_headers.
14874 for _am_header in $config_headers :; do
14875 case $_am_header in
14876 $_am_arg | $_am_arg:* )
14879 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14882 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14883 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14884 X"$_am_arg" : 'X\(//\)[^/]' \| \
14885 X"$_am_arg" : 'X\(//\)$' \| \
14886 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14887 $as_echo X"$_am_arg" |
14888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14892 /^X\(\/\/\)[^/].*/{
14904 s/.*/./; q'`/stamp-h$_am_stamp_count
14907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14908 $as_echo "$as_me: executing $ac_file commands" >&6;}
14913 case $ac_file$ac_mode in
14914 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14915 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14916 # are listed without --file. Let's play safe and only enable the eval
14917 # if we detect the quoting.
14918 case $CONFIG_FILES in
14919 *\'*) eval set x "$CONFIG_FILES" ;;
14920 *) set x $CONFIG_FILES ;;
14925 # Strip MF so we end up with the name of the file.
14926 mf=`echo "$mf" | sed -e 's/:.*$//'`
14927 # Check whether this is an Automake generated Makefile or not.
14928 # We used to match only the files named `Makefile.in', but
14929 # some people rename them; so instead we look at the file content.
14930 # Grep'ing the first line is not enough: some people post-process
14931 # each Makefile.in and add a new line on top of each file to say so.
14932 # Grep'ing the whole file is not good either: AIX grep has a line
14933 # limit of 2048, but all sed's we know have understand at least 4000.
14934 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14935 dirpart=`$as_dirname -- "$mf" ||
14936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937 X"$mf" : 'X\(//\)[^/]' \| \
14938 X"$mf" : 'X\(//\)$' \| \
14939 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14945 /^X\(\/\/\)[^/].*/{
14961 # Extract the definition of DEPDIR, am__include, and am__quote
14962 # from the Makefile without running `make'.
14963 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14964 test -z "$DEPDIR" && continue
14965 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14966 test -z "am__include" && continue
14967 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14968 # When using ansi2knr, U may be empty or an underscore; expand it
14969 U=`sed -n 's/^U = //p' < "$mf"`
14970 # Find all dependency output files, they are included files with
14971 # $(DEPDIR) in their names. We invoke sed twice because it is the
14972 # simplest approach to changing $(DEPDIR) to its actual value in the
14974 for file in `sed -n "
14975 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14976 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14977 # Make sure the directory exists.
14978 test -f "$dirpart/$file" && continue
14979 fdir=`$as_dirname -- "$file" ||
14980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981 X"$file" : 'X\(//\)[^/]' \| \
14982 X"$file" : 'X\(//\)$' \| \
14983 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14984 $as_echo X"$file" |
14985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14989 /^X\(\/\/\)[^/].*/{
15002 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15003 # echo "creating $dirpart/$file"
15004 echo '# dummy' > "$dirpart/$file"
15011 # See if we are running on zsh, and set the options which allow our
15012 # commands through without removal of \ escapes.
15013 if test -n "${ZSH_VERSION+set}" ; then
15014 setopt NO_GLOB_SUBST
15017 cfgfile="${ofile}T"
15018 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15021 cat <<_LT_EOF >> "$cfgfile"
15024 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15025 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15026 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15027 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15029 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15030 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15032 # Written by Gordon Matzigkeit, 1996
15034 # This file is part of GNU Libtool.
15036 # GNU Libtool is free software; you can redistribute it and/or
15037 # modify it under the terms of the GNU General Public License as
15038 # published by the Free Software Foundation; either version 2 of
15039 # the License, or (at your option) any later version.
15041 # As a special exception to the GNU General Public License,
15042 # if you distribute this file as part of a program or library that
15043 # is built using GNU Libtool, you may include this file under the
15044 # same distribution terms that you use for the rest of that program.
15046 # GNU Libtool is distributed in the hope that it will be useful,
15047 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15049 # GNU General Public License for more details.
15051 # You should have received a copy of the GNU General Public License
15052 # along with GNU Libtool; see the file COPYING. If not, a copy
15053 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15054 # obtained by writing to the Free Software Foundation, Inc.,
15055 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15058 # The names of the tagged configurations supported by this script.
15061 # ### BEGIN LIBTOOL CONFIG
15063 # Whether or not to build static libraries.
15064 build_old_libs=$enable_static
15066 # Which release of libtool.m4 was used?
15067 macro_version=$macro_version
15068 macro_revision=$macro_revision
15070 # Whether or not to build shared libraries.
15071 build_libtool_libs=$enable_shared
15073 # What type of objects to build.
15076 # Whether or not to optimize for fast installation.
15077 fast_install=$enable_fast_install
15079 # Shell to use when invoking shell scripts.
15082 # An echo program that protects backslashes.
15085 # The PATH separator for the build system.
15086 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15089 host_alias=$host_alias
15093 # The build system.
15094 build_alias=$build_alias
15098 # A sed program that does not truncate output.
15101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15102 Xsed="\$SED -e 1s/^X//"
15104 # A grep program that handles long lines.
15110 # A literal string matcher.
15113 # A BSD- or MS-compatible name lister.
15116 # Whether we need soft or hard links.
15119 # What is the maximum length of a command?
15120 max_cmd_len=$max_cmd_len
15122 # Object file suffix (normally "o").
15125 # Executable file suffix (normally "").
15128 # whether the shell understands "unset".
15131 # turn spaces into newlines.
15134 # turn newlines into spaces.
15137 # convert \$build file names to \$host format.
15138 to_host_file_cmd=$lt_cv_to_host_file_cmd
15140 # convert \$build files to toolchain format.
15141 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15143 # An object symbol dumper.
15144 OBJDUMP=$lt_OBJDUMP
15146 # Method to check whether dependent libraries are shared objects.
15147 deplibs_check_method=$lt_deplibs_check_method
15149 # Command to use when deplibs_check_method = "file_magic".
15150 file_magic_cmd=$lt_file_magic_cmd
15152 # How to find potential files when deplibs_check_method = "file_magic".
15153 file_magic_glob=$lt_file_magic_glob
15155 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15156 want_nocaseglob=$lt_want_nocaseglob
15158 # DLL creation program.
15159 DLLTOOL=$lt_DLLTOOL
15161 # Command to associate shared and link libraries.
15162 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15167 # Flags to create an archive.
15168 AR_FLAGS=$lt_AR_FLAGS
15170 # How to feed a file listing to the archiver.
15171 archiver_list_spec=$lt_archiver_list_spec
15173 # A symbol stripping program.
15176 # Commands used to install an old-style archive.
15178 old_postinstall_cmds=$lt_old_postinstall_cmds
15179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15181 # Whether to use a lock for old archive extraction.
15182 lock_old_archive_extraction=$lock_old_archive_extraction
15187 # LTCC compiler flags.
15188 LTCFLAGS=$lt_CFLAGS
15190 # Take the output of nm and produce a listing of raw symbols and C names.
15191 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15193 # Transform the output of nm in a proper C declaration.
15194 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15196 # Transform the output of nm in a C name address pair.
15197 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15199 # Transform the output of nm in a C name address pair when lib prefix is needed.
15200 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15202 # Specify filename containing input files for \$NM.
15203 nm_file_list_spec=$lt_nm_file_list_spec
15205 # The root where to search for dependent libraries,and in which our libraries should be installed.
15206 lt_sysroot=$lt_sysroot
15208 # The name of the directory that contains temporary libtool files.
15211 # Used to examine libraries when file_magic_cmd begins with "file".
15212 MAGIC_CMD=$MAGIC_CMD
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15218 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15220 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15221 DSYMUTIL=$lt_DSYMUTIL
15223 # Tool to change global to local symbols on Mac OS X.
15226 # Tool to manipulate fat objects and archives on Mac OS X.
15229 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15232 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15233 OTOOL64=$lt_OTOOL64
15235 # Old archive suffix (normally "a").
15238 # Shared library suffix (normally ".so").
15239 shrext_cmds=$lt_shrext_cmds
15241 # The commands to extract the exported symbol list from a shared archive.
15242 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15244 # Variables whose values should be saved in libtool wrapper scripts and
15245 # restored at link time.
15246 variables_saved_for_relink=$lt_variables_saved_for_relink
15248 # Do we need the "lib" prefix for modules?
15249 need_lib_prefix=$need_lib_prefix
15251 # Do we need a version for libraries?
15252 need_version=$need_version
15254 # Library versioning type.
15255 version_type=$version_type
15257 # Shared library runtime path variable.
15258 runpath_var=$runpath_var
15260 # Shared library path variable.
15261 shlibpath_var=$shlibpath_var
15263 # Is shlibpath searched before the hard-coded library search path?
15264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15266 # Format of library name prefix.
15267 libname_spec=$lt_libname_spec
15269 # List of archive names. First name is the real one, the rest are links.
15270 # The last name is the one that the linker finds with -lNAME
15271 library_names_spec=$lt_library_names_spec
15273 # The coded name of the library, if different from the real name.
15274 soname_spec=$lt_soname_spec
15276 # Permission mode override for installation of shared libraries.
15277 install_override_mode=$lt_install_override_mode
15279 # Command to use after installation of a shared archive.
15280 postinstall_cmds=$lt_postinstall_cmds
15282 # Command to use after uninstallation of a shared archive.
15283 postuninstall_cmds=$lt_postuninstall_cmds
15285 # Commands used to finish a libtool library installation in a directory.
15286 finish_cmds=$lt_finish_cmds
15288 # As "finish_cmds", except a single script fragment to be evaled but
15290 finish_eval=$lt_finish_eval
15292 # Whether we should hardcode library paths into libraries.
15293 hardcode_into_libs=$hardcode_into_libs
15295 # Compile-time system search path for libraries.
15296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15298 # Run-time system search path for libraries.
15299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15301 # Whether dlopen is supported.
15302 dlopen_support=$enable_dlopen
15304 # Whether dlopen of programs is supported.
15305 dlopen_self=$enable_dlopen_self
15307 # Whether dlopen of statically linked programs is supported.
15308 dlopen_self_static=$enable_dlopen_self_static
15310 # Commands to strip libraries.
15311 old_striplib=$lt_old_striplib
15312 striplib=$lt_striplib
15315 # The linker used to build libraries.
15318 # How to create reloadable object files.
15319 reload_flag=$lt_reload_flag
15320 reload_cmds=$lt_reload_cmds
15322 # Commands used to build an old-style archive.
15323 old_archive_cmds=$lt_old_archive_cmds
15325 # A language specific compiler.
15328 # Is the compiler the GNU compiler?
15331 # Compiler flag to turn off builtin functions.
15332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15334 # Additional compiler flags for building library objects.
15335 pic_flag=$lt_lt_prog_compiler_pic
15337 # How to pass a linker flag through the compiler.
15338 wl=$lt_lt_prog_compiler_wl
15340 # Compiler flag to prevent dynamic linking.
15341 link_static_flag=$lt_lt_prog_compiler_static
15343 # Does compiler simultaneously support -c and -o options?
15344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15346 # Whether or not to add -lc for building shared libraries.
15347 build_libtool_need_lc=$archive_cmds_need_lc
15349 # Whether or not to disallow shared libs when runtime libs are static.
15350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15352 # Compiler flag to allow reflexive dlopens.
15353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15355 # Compiler flag to generate shared objects directly from archives.
15356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15358 # Whether the compiler copes with passing no objects directly.
15359 compiler_needs_object=$lt_compiler_needs_object
15361 # Create an old-style archive from a shared archive.
15362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15364 # Create a temporary old-style archive to link instead of a shared archive.
15365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15367 # Commands used to build a shared archive.
15368 archive_cmds=$lt_archive_cmds
15369 archive_expsym_cmds=$lt_archive_expsym_cmds
15371 # Commands used to build a loadable module if different from building
15372 # a shared archive.
15373 module_cmds=$lt_module_cmds
15374 module_expsym_cmds=$lt_module_expsym_cmds
15376 # Whether we are building with GNU ld or not.
15377 with_gnu_ld=$lt_with_gnu_ld
15379 # Flag that allows shared libraries with undefined symbols to be built.
15380 allow_undefined_flag=$lt_allow_undefined_flag
15382 # Flag that enforces no undefined symbols.
15383 no_undefined_flag=$lt_no_undefined_flag
15385 # Flag to hardcode \$libdir into a binary during linking.
15386 # This must work even if \$libdir does not exist
15387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15389 # Whether we need a single "-rpath" flag with a separated argument.
15390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15393 # DIR into the resulting binary.
15394 hardcode_direct=$hardcode_direct
15396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15397 # DIR into the resulting binary and the resulting library dependency is
15398 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15399 # library is relocated.
15400 hardcode_direct_absolute=$hardcode_direct_absolute
15402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15403 # into the resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L
15406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15407 # into the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var
15410 # Set to "yes" if building a shared library automatically hardcodes DIR
15411 # into the library and all subsequent libraries and executables linked
15413 hardcode_automatic=$hardcode_automatic
15415 # Set to yes if linker adds runtime paths of dependent libraries
15416 # to runtime path list.
15417 inherit_rpath=$inherit_rpath
15419 # Whether libtool must link a program against all its dependency libraries.
15420 link_all_deplibs=$link_all_deplibs
15422 # Set to "yes" if exported symbols are required.
15423 always_export_symbols=$always_export_symbols
15425 # The commands to list exported symbols.
15426 export_symbols_cmds=$lt_export_symbols_cmds
15428 # Symbols that should not be listed in the preloaded symbols.
15429 exclude_expsyms=$lt_exclude_expsyms
15431 # Symbols that must always be exported.
15432 include_expsyms=$lt_include_expsyms
15434 # Commands necessary for linking programs (against libraries) with templates.
15435 prelink_cmds=$lt_prelink_cmds
15437 # Commands necessary for finishing linking programs.
15438 postlink_cmds=$lt_postlink_cmds
15440 # Specify filename containing input files.
15441 file_list_spec=$lt_file_list_spec
15443 # How to hardcode a shared library path into an executable.
15444 hardcode_action=$hardcode_action
15446 # ### END LIBTOOL CONFIG
15452 cat <<\_LT_EOF >> "$cfgfile"
15453 # AIX sometimes has problems with the GCC collect2 program. For some
15454 # reason, if we set the COLLECT_NAMES environment variable, the problems
15455 # vanish in a puff of smoke.
15456 if test "X${COLLECT_NAMES+set}" != Xset; then
15458 export COLLECT_NAMES
15465 ltmain="$ac_aux_dir/ltmain.sh"
15468 # We use sed instead of cat because bash on DJGPP gets confused if
15469 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15470 # text mode, it properly converts lines to CR/LF. This bash problem
15471 # is reportedly fixed, but why not run on old versions too?
15472 sed '$q' "$ltmain" >> "$cfgfile" \
15473 || (rm -f "$cfgfile"; exit 1)
15475 if test x"$xsi_shell" = xyes; then
15476 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15480 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15481 \ * ) func_dirname_result="${3}" ;;\
15483 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15484 && mv -f "$cfgfile.tmp" "$cfgfile" \
15485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15486 test 0 -eq $? || _lt_function_replace_fail=:
15489 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15492 \ func_basename_result="${1##*/}"\
15493 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15494 && mv -f "$cfgfile.tmp" "$cfgfile" \
15495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15496 test 0 -eq $? || _lt_function_replace_fail=:
15499 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15500 func_dirname_and_basename ()\
15503 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15504 \ * ) func_dirname_result="${3}" ;;\
15506 \ func_basename_result="${1##*/}"\
15507 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15508 && mv -f "$cfgfile.tmp" "$cfgfile" \
15509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15510 test 0 -eq $? || _lt_function_replace_fail=:
15513 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15516 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15517 \ # positional parameters, so assign one to ordinary parameter first.\
15518 \ func_stripname_result=${3}\
15519 \ func_stripname_result=${func_stripname_result#"${1}"}\
15520 \ func_stripname_result=${func_stripname_result%"${2}"}\
15521 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15522 && mv -f "$cfgfile.tmp" "$cfgfile" \
15523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15524 test 0 -eq $? || _lt_function_replace_fail=:
15527 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15528 func_split_long_opt ()\
15530 \ func_split_long_opt_name=${1%%=*}\
15531 \ func_split_long_opt_arg=${1#*=}\
15532 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15533 && mv -f "$cfgfile.tmp" "$cfgfile" \
15534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15535 test 0 -eq $? || _lt_function_replace_fail=:
15538 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15539 func_split_short_opt ()\
15541 \ func_split_short_opt_arg=${1#??}\
15542 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15543 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15544 && mv -f "$cfgfile.tmp" "$cfgfile" \
15545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15546 test 0 -eq $? || _lt_function_replace_fail=:
15549 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15553 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15554 \ *) func_lo2o_result=${1} ;;\
15556 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15557 && mv -f "$cfgfile.tmp" "$cfgfile" \
15558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15559 test 0 -eq $? || _lt_function_replace_fail=:
15562 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15565 func_xform_result=${1%.*}.lo\
15566 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15567 && mv -f "$cfgfile.tmp" "$cfgfile" \
15568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15569 test 0 -eq $? || _lt_function_replace_fail=:
15572 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15575 func_arith_result=$(( $* ))\
15576 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15577 && mv -f "$cfgfile.tmp" "$cfgfile" \
15578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15579 test 0 -eq $? || _lt_function_replace_fail=:
15582 sed -e '/^func_len ()$/,/^} # func_len /c\
15585 func_len_result=${#1}\
15586 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15587 && mv -f "$cfgfile.tmp" "$cfgfile" \
15588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15589 test 0 -eq $? || _lt_function_replace_fail=:
15593 if test x"$lt_shell_append" = xyes; then
15594 sed -e '/^func_append ()$/,/^} # func_append /c\
15597 eval "${1}+=\\${2}"\
15598 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15599 && mv -f "$cfgfile.tmp" "$cfgfile" \
15600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15601 test 0 -eq $? || _lt_function_replace_fail=:
15604 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15605 func_append_quoted ()\
15607 \ func_quote_for_eval "${2}"\
15608 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15609 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15610 && mv -f "$cfgfile.tmp" "$cfgfile" \
15611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15612 test 0 -eq $? || _lt_function_replace_fail=:
15615 # Save a `func_append' function call where possible by direct use of '+='
15616 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15617 && mv -f "$cfgfile.tmp" "$cfgfile" \
15618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15619 test 0 -eq $? || _lt_function_replace_fail=:
15621 # Save a `func_append' function call even when '+=' is not available
15622 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15623 && mv -f "$cfgfile.tmp" "$cfgfile" \
15624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15625 test 0 -eq $? || _lt_function_replace_fail=:
15628 if test x"$_lt_function_replace_fail" = x":"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15630 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15634 mv -f "$cfgfile" "$ofile" ||
15635 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15646 ac_clean_files=$ac_clean_files_save
15648 test $ac_write_fail = 0 ||
15649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15652 # configure is writing to config.log, and then calls config.status.
15653 # config.status does its own redirection, appending to config.log.
15654 # Unfortunately, on DOS this fails, as config.log is still kept open
15655 # by configure, so config.status won't be able to write to it; its
15656 # output is simply discarded. So we exec the FD to /dev/null,
15657 # effectively closing config.log, so it can be properly (re)opened and
15658 # appended to by config.status. When coming back to configure, we
15659 # need to make the FD available again.
15660 if test "$no_create" != yes; then
15662 ac_config_status_args=
15663 test "$silent" = yes &&
15664 ac_config_status_args="$ac_config_status_args --quiet"
15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669 # would make configure fail if this is the last instruction.
15670 $ac_cs_success || as_fn_exit 1
15672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}