2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ofono 1.6.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='ofono'
570 PACKAGE_VERSION='1.6'
571 PACKAGE_STRING='ofono 1.6'
575 ac_default_prefix=/usr/local
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
707 MAINTAINER_MODE_FALSE
721 INSTALL_STRIP_PROGRAM
763 program_transform_name
776 enable_option_checking
778 enable_maintainer_mode
779 enable_dependency_tracking
807 ac_precious_vars='build_alias
835 # Initialize some variables set by options.
837 ac_init_version=false
838 ac_unrecognized_opts=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1142 -site=* | --site=* | --sit=*)
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval with_$ac_useropt=no ;;
1201 # Obsolete; use --with-x.
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used" >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures ofono 1.6 to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/ofono]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of ofono 1.6:";;
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: `make V=1')
1454 --disable-silent-rules verbose build output (undo: `make V=0')
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --enable-static[=PKGS] build static libraries [default=no]
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --disable-optimization disable code optimization through compiler
1465 --enable-debug enable compiling with debugging information
1466 --enable-test enable test/example scripts
1467 --enable-pie enable position independent executables flag
1468 --enable-threads enable threading support
1469 --enable-capng enable capabilities support
1470 --disable-udev don't use udev support even if available
1471 --enable-tools enable testing tools
1472 --disable-atmodem disable ETSI AT modem support
1473 --disable-cdmamodem disable CDMA AT modem support
1474 --disable-phonesim disable Phone simulator support
1475 --disable-isimodem disable PhoNet/ISI modem support
1476 --disable-bluetooth disable Bluetooth modem support
1477 --disable-provision disable provisioning suport
1478 --disable-datafiles don't install configuration and data files
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-sysroot=DIR Search for dependent libraries within DIR
1487 (or the compiler's sysroot if not specified).
1488 --with-dbusconfdir=PATH path to D-Bus config directory
1489 --with-dbusdatadir=PATH path to D-Bus data directory
1490 --with-systemdunitdir=DIR
1491 path to systemd service directory
1492 --with-provisiondb=FILE location of provision database
1494 Some influential environment variables:
1495 PKG_CONFIG path to pkg-config utility
1497 directories to add to pkg-config's search path
1499 path overriding pkg-config's built-in search path
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1508 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1509 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1511 C compiler flags for GTHREAD, overriding pkg-config
1513 linker flags for GTHREAD, overriding pkg-config
1514 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1515 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1517 C compiler flags for CAPNG, overriding pkg-config
1518 CAPNG_LIBS linker flags for CAPNG, overriding pkg-config
1519 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1520 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1521 USB_CFLAGS C compiler flags for USB, overriding pkg-config
1522 USB_LIBS linker flags for USB, overriding pkg-config
1524 C compiler flags for BLUEZ, overriding pkg-config
1525 BLUEZ_LIBS linker flags for BLUEZ, overriding pkg-config
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to the package provider.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1594 generated by GNU Autoconf 2.68
1596 Copyright (C) 2010 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 $as_test_x conftest$ac_exeext
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 } # ac_fn_c_check_header_compile
1722 # ac_fn_c_try_cpp LINENO
1723 # ----------------------
1724 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } > conftest.i && {
1744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=$ac_status
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1816 #define $2 innocuous_$2
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $2 (); below.
1820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821 <limits.h> exists even on freestanding compilers. */
1824 # include <limits.h>
1826 # include <assert.h>
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1853 if ac_fn_c_try_link "$LINENO"; then :
1858 rm -f core conftest.err conftest.$ac_objext \
1859 conftest$ac_exeext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_func
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1871 It was created by ofono $as_me 1.6, which was
1872 generated by GNU Autoconf 2.68. Invocation command line was
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_must_keep_next=false
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961 -* ) ac_must_keep_next=true ;;
1964 as_fn_append ac_configure_args " '$ac_arg'"
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2022 for ac_var in $ac_subst_vars
2024 eval ac_val=\$$ac_var
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 $as_echo "$ac_var='\''$ac_val'\''"
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2037 for ac_var in $ac_subst_files
2039 eval ac_val=\$$ac_var
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 $as_echo "$ac_var='\''$ac_val'\''"
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 $as_echo "/* confdefs.h */" > confdefs.h
2074 # Predefined preprocessor variables.
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2151 # Check that the precious variables saved in the cache have kept the same
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
2159 case $ac_old_set,$ac_new_set in
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2184 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 *) ac_arg=$ac_var=$ac_new_val ;;
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201 if $ac_cache_corrupted; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 am__api_version='1.11'
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 if test -f "$ac_dir/install-sh"; then
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 elif test -f "$ac_dir/install.sh"; then
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 elif test -f "$ac_dir/shtool"; then
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269 $as_echo_n "(cached) " >&6
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278 ./ | .// | /[cC]/* | \
2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2283 # OSF1 and SCO ODT 3.0 have their own names for install.
2284 # Don't use installbsd from OSF since it installs stuff as root
2286 for ac_prog in ginstall scoinst install; do
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2289 if test $ac_prog = install &&
2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # AIX install. It has an incompatible calling convention.
2293 elif test $ac_prog = install &&
2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # program-specific install script used by HP pwplus--don't use.
2298 rm -rf conftest.one conftest.two conftest.dir
2299 echo one > conftest.one
2300 echo two > conftest.two
2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303 test -s conftest.one && test -s conftest.two &&
2304 test -s conftest.dir/conftest.one &&
2305 test -s conftest.dir/conftest.two
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320 rm -rf conftest.one conftest.two conftest.dir
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 INSTALL=$ac_install_sh
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2348 echo timestamp > conftest.file
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name. Accept space and tab only in the latter.
2354 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2362 # Do `set' in a subshell so we don't clobber the current shell's
2363 # arguments. Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369 if test "$*" = "X"; then
2371 set X `ls -t "$srcdir/configure" conftest.file`
2374 if test "$*" != "X $srcdir/configure conftest.file" \
2375 && test "$*" != "X conftest.file $srcdir/configure"; then
2377 # If neither matched, then we have a broken ls. This can happen
2378 # if, for instance, CONFIG_SHELL is bash and it inherits a
2379 # broken ls alias from the environment. This has actually
2380 # happened. Such a system could not be considered "sane".
2381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2382 alias in your environment" "$LINENO" 5
2385 test "$2" = conftest.file
2391 as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.
2402 # By default was `s,x,x', remove it if useless.
2403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2406 # expand $ac_aux_dir to an absolute path
2407 am_aux_dir=`cd $ac_aux_dir && pwd`
2409 if test x"${MISSING+set}" != xset; then
2412 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2414 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419 am_missing_run="$MISSING --run "
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2426 if test x"${install_sh}" != xset; then
2429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2431 install_sh="\${SHELL} $am_aux_dir/install-sh"
2435 # Installed binaries are usually stripped using `strip' when the user
2436 # run `make install-strip'. However `strip' might not be the right
2437 # tool to use in cross-compilation environments, therefore Automake
2438 # will honor the `STRIP' environment variable to overrule this program.
2439 if test "$cross_compiling" != no; then
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}strip; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_STRIP+:} false; then :
2446 $as_echo_n "(cached) " >&6
2448 if test -n "$STRIP"; then
2449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 STRIP=$ac_cv_prog_STRIP
2469 if test -n "$STRIP"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2471 $as_echo "$STRIP" >&6; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2479 if test -z "$ac_cv_prog_STRIP"; then
2481 # Extract the first word of "strip", so it can be a program name with args.
2482 set dummy strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 if test -n "$ac_ct_STRIP"; then
2489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_STRIP="strip"
2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509 if test -n "$ac_ct_STRIP"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2511 $as_echo "$ac_ct_STRIP" >&6; }
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2517 if test "x$ac_ct_STRIP" = x; then
2520 case $cross_compiling:$ac_tool_warned in
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2524 ac_tool_warned=yes ;;
2529 STRIP="$ac_cv_prog_STRIP"
2533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2537 if test -z "$MKDIR_P"; then
2538 if ${ac_cv_path_mkdir+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2545 test -z "$as_dir" && as_dir=.
2546 for ac_prog in mkdir gmkdir; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2550 'mkdir (GNU coreutils) '* | \
2551 'mkdir (coreutils) '* | \
2552 'mkdir (fileutils) '4.1*)
2553 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563 test -d ./--version && rmdir ./--version
2564 if test "${ac_cv_path_mkdir+set}" = set; then
2565 MKDIR_P="$ac_cv_path_mkdir -p"
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for MKDIR_P within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 MKDIR_P="$ac_install_sh -d"
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2575 $as_echo "$MKDIR_P" >&6; }
2579 [\\/$]* | ?:[\\/]*) ;;
2580 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2583 for ac_prog in gawk mawk nawk awk
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_AWK+:} false; then :
2590 $as_echo_n "(cached) " >&6
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2622 test -n "$AWK" && break
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2630 $as_echo_n "(cached) " >&6
2632 cat >conftest.make <<\_ACEOF
2635 @echo '@@@%%%=$(MAKE)=@@@%%%'
2637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2640 eval ac_cv_prog_make_${ac_make}_set=yes;;
2642 eval ac_cv_prog_make_${ac_make}_set=no;;
2646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 SET_MAKE="MAKE=${MAKE-make}"
2656 rm -rf .tst 2>/dev/null
2657 mkdir .tst 2>/dev/null
2658 if test -d .tst; then
2663 rmdir .tst 2>/dev/null
2665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2666 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2667 # is not polluted with repeated "-I."
2668 am__isrc=' -I$(srcdir)'
2669 # test to see if srcdir already configured
2670 if test -f $srcdir/config.status; then
2671 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2675 # test whether we have cygpath
2676 if test -z "$CYGPATH_W"; then
2677 if (cygpath --version) >/dev/null 2>/dev/null; then
2678 CYGPATH_W='cygpath -w'
2685 # Define the identity of the package.
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE "$PACKAGE"
2695 cat >>confdefs.h <<_ACEOF
2696 #define VERSION "$VERSION"
2699 # Some tools Automake needs.
2701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715 # We need awk for the "check" target. The system "awk" is bad on
2717 # Always define AMTAR for backward compatibility. Yes, it's still used
2718 # in the wild :-( We should find a proper way to deprecate it ...
2721 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2727 ac_config_headers="$ac_config_headers config.h"
2730 # Check whether --enable-silent-rules was given.
2731 if test "${enable_silent_rules+set}" = set; then :
2732 enableval=$enable_silent_rules;
2735 case $enable_silent_rules in
2736 yes) AM_DEFAULT_VERBOSITY=0;;
2737 no) AM_DEFAULT_VERBOSITY=1;;
2738 *) AM_DEFAULT_VERBOSITY=0;;
2740 am_make=${MAKE-make}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2742 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2743 if ${am_cv_make_support_nested_variables+:} false; then :
2744 $as_echo_n "(cached) " >&6
2746 if $as_echo 'TRUE=$(BAR$(V))
2752 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2753 am_cv_make_support_nested_variables=yes
2755 am_cv_make_support_nested_variables=no
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2759 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2760 if test $am_cv_make_support_nested_variables = yes; then
2762 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2764 AM_V=$AM_DEFAULT_VERBOSITY
2765 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2772 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2773 # Check whether --enable-maintainer-mode was given.
2774 if test "${enable_maintainer_mode+set}" = set; then :
2775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2777 USE_MAINTAINER_MODE=no
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2782 if test $USE_MAINTAINER_MODE = yes; then
2783 MAINTAINER_MODE_TRUE=
2784 MAINTAINER_MODE_FALSE='#'
2786 MAINTAINER_MODE_TRUE='#'
2787 MAINTAINER_MODE_FALSE=
2790 MAINT=$MAINTAINER_MODE_TRUE
2803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2810 $as_echo_n "(cached) " >&6
2814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2836 if test -n "$PKG_CONFIG"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2838 $as_echo "$PKG_CONFIG" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2846 if test -z "$ac_cv_path_PKG_CONFIG"; then
2847 ac_pt_PKG_CONFIG=$PKG_CONFIG
2848 # Extract the first word of "pkg-config", so it can be a program name with args.
2849 set dummy pkg-config; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 case $ac_pt_PKG_CONFIG in
2857 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2879 if test -n "$ac_pt_PKG_CONFIG"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2881 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_pt_PKG_CONFIG" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2896 PKG_CONFIG=$ac_pt_PKG_CONFIG
2899 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2903 if test -n "$PKG_CONFIG"; then
2904 _pkg_min_version=0.9.0
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2906 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2907 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2918 if (test "${CFLAGS}" = ""); then
2919 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2921 if (test "$USE_MAINTAINER_MODE" = "yes"); then
2922 CFLAGS="$CFLAGS -Werror -Wextra"
2923 CFLAGS="$CFLAGS -Wno-unused-parameter"
2924 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2925 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2926 CFLAGS="$CFLAGS -Wmissing-declarations"
2927 CFLAGS="$CFLAGS -Wredundant-decls"
2928 CFLAGS="$CFLAGS -Wcast-align"
2929 CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 DEPDIR="${am__leading_dot}deps"
2942 ac_config_commands="$ac_config_commands depfiles"
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2948 @echo this is the am__doit target
2951 # If we don't find an include directive, just comment out the code.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # Ignore all kinds of additional output from `make'.
2960 case `$am_make -s -f confmf 2> /dev/null` in #(
2961 *the\ am__doit\ target*)
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 case `$am_make -s -f confmf 2> /dev/null` in #(
2971 *the\ am__doit\ target*)
2972 am__include=.include
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2981 $as_echo "$_am_result" >&6; }
2982 rm -f confinc confmf
2984 # Check whether --enable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then :
2986 enableval=$enable_dependency_tracking;
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2994 if test "x$enable_dependency_tracking" != xno; then
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$ac_cv_prog_CC"; then
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_ac_ct_CC="gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3085 if test "x$ac_ct_CC" = x; then
3088 case $cross_compiling:$ac_tool_warned in
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$CC" && break
3241 if test -z "$CC"; then
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$ac_ct_CC" && break
3285 if test "x$ac_ct_CC" = x; then
3288 case $cross_compiling:$ac_tool_warned in
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details" "$LINENO" 5; }
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3310 for ac_option in --version -v -V -qversion; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3320 if test -s conftest.err; then
3322 ... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3326 rm -f conftest.er1 conftest.err
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 $as_echo_n "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3355 for ac_file in $ac_files
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 if { { ac_try="$ac_link_default"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3380 for ac_file in $ac_files ''
3382 test -f "$ac_file" || continue
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3387 # We found the default executable, but exeext='' is most
3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3410 if test -z "$ac_file"; then :
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error 77 "C compiler cannot create executables
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422 $as_echo "yes" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3425 $as_echo_n "checking for C compiler default output file name... " >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3427 $as_echo "$ac_file" >&6; }
3428 ac_exeext=$ac_cv_exeext
3430 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3431 ac_clean_files=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3433 $as_echo_n "checking for suffix of executables... " >&6; }
3434 if { { ac_try="$ac_link"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_link") 2>&5
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
3445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3446 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3447 # work properly (i.e., refer to `conftest.exe'), while it won't with
3449 for ac_file in conftest.exe conftest conftest.*; do
3450 test -f "$ac_file" || continue
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3462 See \`config.log' for more details" "$LINENO" 5; }
3464 rm -f conftest conftest$ac_cv_exeext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3466 $as_echo "$ac_cv_exeext" >&6; }
3468 rm -f conftest.$ac_ext
3469 EXEEXT=$ac_cv_exeext
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3477 FILE *f = fopen ("conftest.out", "w");
3478 return ferror (f) || fclose (f) != 0;
3484 ac_clean_files="$ac_clean_files conftest.out"
3485 # Check that the compiler produces executables we can run. If not, either
3486 # the compiler is broken, or we cross compile.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3488 $as_echo_n "checking whether we are cross compiling... " >&6; }
3489 if test "$cross_compiling" != yes; then
3490 { { ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_link") 2>&5
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501 if { ac_try='./conftest$ac_cv_exeext'
3502 { { case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_try") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; }; then
3514 if test "$cross_compiling" = maybe; then
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot run C compiled programs.
3520 If you meant to cross compile, use \`--host'.
3521 See \`config.log' for more details" "$LINENO" 5; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3528 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3531 $as_echo_n "checking for suffix of object files... " >&6; }
3532 if ${ac_cv_objext+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 rm -f conftest.o conftest.obj
3547 if { { ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compile") 2>&5
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 for ac_file in conftest.o conftest.obj conftest.*; do
3559 test -f "$ac_file" || continue;
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of object files: cannot compile
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3578 $as_echo "$ac_cv_objext" >&6; }
3579 OBJEXT=$ac_cv_objext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3583 if ${ac_cv_c_compiler_gnu+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3611 if test $ac_compiler_gnu = yes; then
3616 ac_test_CFLAGS=${CFLAGS+set}
3617 ac_save_CFLAGS=$CFLAGS
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3620 if ${ac_cv_prog_cc_g+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 ac_save_c_werror_flag=$ac_c_werror_flag
3624 ac_c_werror_flag=yes
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 if ac_fn_c_try_compile "$LINENO"; then :
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3669 if ac_fn_c_try_compile "$LINENO"; then :
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3680 $as_echo "$ac_cv_prog_cc_g" >&6; }
3681 if test "$ac_test_CFLAGS" = set; then
3682 CFLAGS=$ac_save_CFLAGS
3683 elif test $ac_cv_prog_cc_g = yes; then
3684 if test "$GCC" = yes; then
3690 if test "$GCC" = yes; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3698 if ${ac_cv_prog_cc_c89+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 ac_cv_prog_cc_c89=no
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3723 s = g (p, va_arg (v,int));
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3729 function prototypes and stuff, but not '\xHH' hex character constants.
3730 These don't provoke an error unfortunately, instead are silently treated
3731 as 'x'. The following induces an error, until -std is added to get
3732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3733 array size at least. It's necessary to write '\x00'==0 to get something
3734 that's true only with -std. */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738 inside strings and character constants. */
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 CC="$ac_save_CC $ac_arg"
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_c89=$ac_arg
3763 rm -f core conftest.err conftest.$ac_objext
3764 test "x$ac_cv_prog_cc_c89" != "xno" && break
3766 rm -f conftest.$ac_ext
3771 case "x$ac_cv_prog_cc_c89" in
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 $as_echo "none needed" >&6; } ;;
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3777 $as_echo "unsupported" >&6; } ;;
3779 CC="$CC $ac_cv_prog_cc_c89"
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3783 if test "x$ac_cv_prog_cc_c89" != xno; then :
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 depcc="$CC" am_compiler_list=
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796 $as_echo_n "checking dependency style of $depcc... " >&6; }
3797 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801 # We make a subdir and do the tests there. Otherwise we can end up
3802 # making bogus files that we don't know about and never remove. For
3803 # instance it was reported that on HP-UX the gcc test will end up
3804 # making a dummy file named `D' -- because `-MD' means `put the output
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825 case " $depcc " in #(
3826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3829 for depmode in $am_compiler_list; do
3830 # Setup a source with many dependencies, because some compilers
3831 # like to wrap large dependency lists on column 80 (with \), and
3832 # we should not choose a depcomp mode which is confused by this.
3834 # We need to recreate these files for each test, as the compiler may
3835 # overwrite some of them when testing with obscure command lines.
3836 # This happens at least with the AIX C compiler.
3838 for i in 1 2 3 4 5 6; do
3839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3841 # Solaris 8's {/usr,}/bin/sh.
3842 touch sub/conftst$i.h
3844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle `-M -o', and we need to detect this. Also, some Intel
3849 # versions had trouble with output in subdirs
3850 am__obj=sub/conftest.${OBJEXT-o}
3851 am__minus_obj="-o $am__obj"
3854 # This depmode causes a compiler race in universal mode.
3855 test "$am__universal" = false || continue
3858 # after this tag, mechanisms are not by side-effect, so they'll
3859 # only be used when explicitly requested
3860 if test "x$enable_dependency_tracking" = xyes; then
3866 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867 # This compiler won't grok `-c -o', but also, the minuso test has
3868 # not run yet. These depmodes are late enough in the game, and
3869 # so weak that their functioning should not be impacted.
3870 am__obj=conftest.${OBJEXT-o}
3875 if depmode=$depmode \
3876 source=sub/conftest.c object=$am__obj \
3877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879 >/dev/null 2>conftest.err &&
3880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884 # icc doesn't choke on unknown options, it will just issue warnings
3885 # or remarks (even with -Werror). So we grep stderr for any message
3886 # that says an option was ignored or not supported.
3887 # When given -MP, icc 7.0 and 7.1 complain thusly:
3888 # icc: Command line warning: ignoring option '-M'; no argument required
3889 # The diagnosis changed in icc 8.0:
3890 # icc: Command line remark: option '-MP' not supported
3891 if (grep 'ignoring option' conftest.err ||
3892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893 am_cv_CC_dependencies_compiler_type=$depmode
3902 am_cv_CC_dependencies_compiler_type=none
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911 test "x$enable_dependency_tracking" != xno \
3912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3914 am__fastdepCC_FALSE='#'
3916 am__fastdepCC_TRUE='#'
3917 am__fastdepCC_FALSE=
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3923 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3924 if ${ac_cv_c_restrict+:} false; then :
3925 $as_echo_n "(cached) " >&6
3928 # The order here caters to the fact that C++ does not require restrict.
3929 for ac_kw in __restrict __restrict__ _Restrict restrict; do
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 typedef int * int_ptr;
3933 int foo (int_ptr $ac_kw ip) {
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_c_restrict=$ac_kw
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 test "$ac_cv_c_restrict" != no && break
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3956 $as_echo "$ac_cv_c_restrict" >&6; }
3958 case $ac_cv_c_restrict in
3960 no) $as_echo "#define restrict /**/" >>confdefs.h
3962 *) cat >>confdefs.h <<_ACEOF
3963 #define restrict $ac_cv_c_restrict
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if ${ac_cv_prog_CC+:} false; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4013 if test -z "$ac_cv_prog_CC"; then
4015 # Extract the first word of "gcc", so it can be a program name with args.
4016 set dummy gcc; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_ac_ct_CC="gcc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4051 if test "x$ac_ct_CC" = x; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058 ac_tool_warned=yes ;;
4066 if test -z "$CC"; then
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}cc; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_CC+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -n "$CC"; then
4076 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_CC="${ac_tool_prefix}cc"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 if test -n "$CC"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4098 $as_echo "$CC" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4107 if test -z "$CC"; then
4108 # Extract the first word of "cc", so it can be a program name with args.
4109 set dummy cc; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if ${ac_cv_prog_CC+:} false; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -n "$CC"; then
4116 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4127 ac_prog_rejected=yes
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test $ac_prog_rejected = yes; then
4139 # We found a bogon in the path, so make sure we never use it.
4140 set dummy $ac_cv_prog_CC
4142 if test $# != 0; then
4143 # We chose a different compiler from the bogus one.
4144 # However, it has the same basename, so the bogon will be chosen
4145 # first if we set CC to just the basename; use the full file name.
4147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4153 if test -n "$CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 $as_echo "$CC" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4163 if test -z "$CC"; then
4164 if test -n "$ac_tool_prefix"; then
4165 for ac_prog in cl.exe
4167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4204 test -n "$CC" && break
4207 if test -z "$CC"; then
4209 for ac_prog in cl.exe
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_CC="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 $as_echo "$ac_ct_CC" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4248 test -n "$ac_ct_CC" && break
4251 if test "x$ac_ct_CC" = x; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4267 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "no acceptable C compiler found in \$PATH
4270 See \`config.log' for more details" "$LINENO" 5; }
4272 # Provide some information about the compiler.
4273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4276 for ac_option in --version -v -V -qversion; do
4277 { { ac_try="$ac_compiler $ac_option >&5"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286 if test -s conftest.err; then
4288 ... rest of stderr output deleted ...
4289 10q' conftest.err >conftest.er1
4290 cat conftest.er1 >&5
4292 rm -f conftest.er1 conftest.err
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4299 if ${ac_cv_c_compiler_gnu+:} false; then :
4300 $as_echo_n "(cached) " >&6
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4316 if ac_fn_c_try_compile "$LINENO"; then :
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4327 if test $ac_compiler_gnu = yes; then
4332 ac_test_CFLAGS=${CFLAGS+set}
4333 ac_save_CFLAGS=$CFLAGS
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4336 if ${ac_cv_prog_cc_g+:} false; then :
4337 $as_echo_n "(cached) " >&6
4339 ac_save_c_werror_flag=$ac_c_werror_flag
4340 ac_c_werror_flag=yes
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 if ac_fn_c_try_compile "$LINENO"; then :
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4369 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_c_werror_flag=$ac_save_c_werror_flag
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 if ac_fn_c_try_compile "$LINENO"; then :
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_c_werror_flag=$ac_save_c_werror_flag
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4396 $as_echo "$ac_cv_prog_cc_g" >&6; }
4397 if test "$ac_test_CFLAGS" = set; then
4398 CFLAGS=$ac_save_CFLAGS
4399 elif test $ac_cv_prog_cc_g = yes; then
4400 if test "$GCC" = yes; then
4406 if test "$GCC" = yes; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4414 if ${ac_cv_prog_cc_c89+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 ac_cv_prog_cc_c89=no
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 #include <sys/stat.h>
4425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4426 struct buf { int x; };
4427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4428 static char *e (p, i)
4434 static char *f (char * (*g) (char **, int), char **p, ...)
4439 s = g (p, va_arg (v,int));
4444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4445 function prototypes and stuff, but not '\xHH' hex character constants.
4446 These don't provoke an error unfortunately, instead are silently treated
4447 as 'x'. The following induces an error, until -std is added to get
4448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4449 array size at least. It's necessary to write '\x00'==0 to get something
4450 that's true only with -std. */
4451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4454 inside strings and character constants. */
4456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4458 int test (int i, double x);
4459 struct s1 {int (*f) (int a);};
4460 struct s2 {int (*f) (double a);};
4461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4475 CC="$ac_save_CC $ac_arg"
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_prog_cc_c89=$ac_arg
4479 rm -f core conftest.err conftest.$ac_objext
4480 test "x$ac_cv_prog_cc_c89" != "xno" && break
4482 rm -f conftest.$ac_ext
4487 case "x$ac_cv_prog_cc_c89" in
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4490 $as_echo "none needed" >&6; } ;;
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4493 $as_echo "unsupported" >&6; } ;;
4495 CC="$CC $ac_cv_prog_cc_c89"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4499 if test "x$ac_cv_prog_cc_c89" != xno; then :
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 depcc="$CC" am_compiler_list=
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4512 $as_echo_n "checking dependency style of $depcc... " >&6; }
4513 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4517 # We make a subdir and do the tests there. Otherwise we can end up
4518 # making bogus files that we don't know about and never remove. For
4519 # instance it was reported that on HP-UX the gcc test will end up
4520 # making a dummy file named `D' -- because `-MD' means `put the output
4524 # Copy depcomp to subdir because otherwise we won't find it if we're
4525 # using a relative directory.
4526 cp "$am_depcomp" conftest.dir
4528 # We will build objects and dependencies in a subdirectory because
4529 # it helps to detect inapplicable dependency modes. For instance
4530 # both Tru64's cc and ICC support -MD to output dependencies as a
4531 # side effect of compilation, but ICC will put the dependencies in
4532 # the current directory while Tru64 will put them in the object
4536 am_cv_CC_dependencies_compiler_type=none
4537 if test "$am_compiler_list" = ""; then
4538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4541 case " $depcc " in #(
4542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4545 for depmode in $am_compiler_list; do
4546 # Setup a source with many dependencies, because some compilers
4547 # like to wrap large dependency lists on column 80 (with \), and
4548 # we should not choose a depcomp mode which is confused by this.
4550 # We need to recreate these files for each test, as the compiler may
4551 # overwrite some of them when testing with obscure command lines.
4552 # This happens at least with the AIX C compiler.
4554 for i in 1 2 3 4 5 6; do
4555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4557 # Solaris 8's {/usr,}/bin/sh.
4558 touch sub/conftst$i.h
4560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4563 # mode. It turns out that the SunPro C++ compiler does not properly
4564 # handle `-M -o', and we need to detect this. Also, some Intel
4565 # versions had trouble with output in subdirs
4566 am__obj=sub/conftest.${OBJEXT-o}
4567 am__minus_obj="-o $am__obj"
4570 # This depmode causes a compiler race in universal mode.
4571 test "$am__universal" = false || continue
4574 # after this tag, mechanisms are not by side-effect, so they'll
4575 # only be used when explicitly requested
4576 if test "x$enable_dependency_tracking" = xyes; then
4582 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4583 # This compiler won't grok `-c -o', but also, the minuso test has
4584 # not run yet. These depmodes are late enough in the game, and
4585 # so weak that their functioning should not be impacted.
4586 am__obj=conftest.${OBJEXT-o}
4591 if depmode=$depmode \
4592 source=sub/conftest.c object=$am__obj \
4593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4595 >/dev/null 2>conftest.err &&
4596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4600 # icc doesn't choke on unknown options, it will just issue warnings
4601 # or remarks (even with -Werror). So we grep stderr for any message
4602 # that says an option was ignored or not supported.
4603 # When given -MP, icc 7.0 and 7.1 complain thusly:
4604 # icc: Command line warning: ignoring option '-M'; no argument required
4605 # The diagnosis changed in icc 8.0:
4606 # icc: Command line remark: option '-MP' not supported
4607 if (grep 'ignoring option' conftest.err ||
4608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4609 am_cv_CC_dependencies_compiler_type=$depmode
4618 am_cv_CC_dependencies_compiler_type=none
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4623 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4624 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4627 test "x$enable_dependency_tracking" != xno \
4628 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4630 am__fastdepCC_FALSE='#'
4632 am__fastdepCC_TRUE='#'
4633 am__fastdepCC_FALSE=
4637 if test "x$CC" != xcc; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4639 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4642 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4644 set dummy $CC; ac_cc=`$as_echo "$2" |
4645 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4646 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4660 # Make sure it works both with $CC and with simple cc.
4661 # We do the test twice because some compilers refuse to overwrite an
4662 # existing .o file with -o, though they will create one.
4663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4665 if { { case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_try") 2>&5
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; } &&
4675 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_try") 2>&5
4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; };
4686 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4687 if test "x$CC" != xcc; then
4688 # Test first that cc exists at all.
4689 if { ac_try='cc -c conftest.$ac_ext >&5'
4690 { { 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; }; }; then
4700 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4702 if { { case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4707 $as_echo "$ac_try_echo"; } >&5
4708 (eval "$ac_try") 2>&5
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; } &&
4712 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4717 $as_echo "$ac_try_echo"; } >&5
4718 (eval "$ac_try") 2>&5
4720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721 test $ac_status = 0; };
4726 # cc exists but doesn't like -o.
4727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4732 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4734 rm -f core conftest*
4737 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739 $as_echo "yes" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4744 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4748 # FIXME: we rely on the cache variable name because
4749 # there is no other way.
4751 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4752 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4753 if test "$am_t" != yes; then
4754 # Losing compiler, so override with the script.
4755 # FIXME: It is wrong to rewrite CC.
4756 # But if we don't then we get into trouble of one sort or another.
4757 # A longer-term fix would be to have automake use am__CC in this case,
4758 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4759 CC="$am_aux_dir/compile $CC"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4765 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4766 if ${ac_cv_prog_cc_pie+:} false; then :
4767 $as_echo_n "(cached) " >&6
4770 echo 'void f(){}' > conftest.c
4771 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4772 ac_cv_prog_cc_pie=yes
4774 ac_cv_prog_cc_pie=no
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4780 $as_echo "$ac_cv_prog_cc_pie" >&6; }
4785 [\\/$]* | ?:[\\/]*) ;;
4786 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4793 # Check whether --enable-static was given.
4794 if test "${enable_static+set}" = set; then :
4795 enableval=$enable_static; p=${PACKAGE-default}
4797 yes) enable_static=yes ;;
4798 no) enable_static=no ;;
4801 # Look at the argument we got. We use all the common list separators.
4802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4803 for pkg in $enableval; do
4805 if test "X$pkg" = "X$p"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4832 macro_version='2.4.2'
4833 macro_revision='1.3337'
4847 ltmain="$ac_aux_dir/ltmain.sh"
4849 # Make sure we can run config.sub.
4850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4851 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4854 $as_echo_n "checking build system type... " >&6; }
4855 if ${ac_cv_build+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 ac_build_alias=$build_alias
4859 test "x$ac_build_alias" = x &&
4860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4861 test "x$ac_build_alias" = x &&
4862 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4868 $as_echo "$ac_cv_build" >&6; }
4869 case $ac_cv_build in
4871 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4874 ac_save_IFS=$IFS; IFS='-'
4880 # Remember, the first character of IFS is used to create $*,
4881 # except with old shells:
4884 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4888 $as_echo_n "checking host system type... " >&6; }
4889 if ${ac_cv_host+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 if test "x$host_alias" = x; then
4893 ac_cv_host=$ac_cv_build
4895 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4901 $as_echo "$ac_cv_host" >&6; }
4904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4907 ac_save_IFS=$IFS; IFS='-'
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4920 # Backslashify metacharacters that are still active within
4921 # double-quoted strings.
4922 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4924 # Same as above, but do not quote variable references.
4925 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4927 # Sed substitution to delay expansion of an escaped shell variable in a
4928 # double_quote_subst'ed string.
4929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4931 # Sed substitution to delay expansion of an escaped single quote.
4932 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4934 # Sed substitution to avoid accidental globbing in evaled expressions
4935 no_glob_subst='s/\*/\\\*/g'
4937 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4938 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4939 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4942 $as_echo_n "checking how to print strings... " >&6; }
4943 # Test print first, because it will be a builtin if present.
4944 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4945 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4947 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4950 # Use this function as a fallback that always works.
4951 func_fallback_echo ()
4953 eval 'cat <<_LTECHO_EOF
4957 ECHO='func_fallback_echo'
4960 # func_echo_all arg...
4961 # Invoke $ECHO with all args, space-separated.
4968 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4969 $as_echo "printf" >&6; } ;;
4970 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4971 $as_echo "print -r" >&6; } ;;
4972 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4973 $as_echo "cat" >&6; } ;;
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4990 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4991 if ${ac_cv_path_SED+:} false; then :
4992 $as_echo_n "(cached) " >&6
4994 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4995 for ac_i in 1 2 3 4 5 6 7; do
4996 ac_script="$ac_script$as_nl$ac_script"
4998 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4999 { ac_script=; unset ac_script;}
5000 if test -z "$SED"; then
5001 ac_path_SED_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_prog in sed gsed; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5011 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5012 # Check for GNU ac_path_SED and select it if it is found.
5013 # Check for GNU $ac_path_SED
5014 case `"$ac_path_SED" --version 2>&1` in
5016 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5019 $as_echo_n 0123456789 >"conftest.in"
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 $as_echo '' >> "conftest.nl"
5026 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028 as_fn_arith $ac_count + 1 && ac_count=$as_val
5029 if test $ac_count -gt ${ac_path_SED_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_SED="$ac_path_SED"
5032 ac_path_SED_max=$ac_count
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040 $ac_path_SED_found && break 3
5045 if test -z "$ac_cv_path_SED"; then
5046 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5054 $as_echo "$ac_cv_path_SED" >&6; }
5055 SED="$ac_cv_path_SED"
5058 test -z "$SED" && SED=sed
5059 Xsed="$SED -e 1s/^X//"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5072 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5073 if ${ac_cv_path_GREP+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -z "$GREP"; then
5077 ac_path_GREP_found=false
5078 # Loop through the user's path and test for each of PROGNAME-LIST
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5083 test -z "$as_dir" && as_dir=.
5084 for ac_prog in grep ggrep; do
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5087 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5088 # Check for GNU ac_path_GREP and select it if it is found.
5089 # Check for GNU $ac_path_GREP
5090 case `"$ac_path_GREP" --version 2>&1` in
5092 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5095 $as_echo_n 0123456789 >"conftest.in"
5098 cat "conftest.in" "conftest.in" >"conftest.tmp"
5099 mv "conftest.tmp" "conftest.in"
5100 cp "conftest.in" "conftest.nl"
5101 $as_echo 'GREP' >> "conftest.nl"
5102 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5104 as_fn_arith $ac_count + 1 && ac_count=$as_val
5105 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5106 # Best one so far, save it but keep looking for a better one
5107 ac_cv_path_GREP="$ac_path_GREP"
5108 ac_path_GREP_max=$ac_count
5110 # 10*(2^10) chars as input seems more than enough
5111 test $ac_count -gt 10 && break
5113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116 $ac_path_GREP_found && break 3
5121 if test -z "$ac_cv_path_GREP"; then
5122 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5125 ac_cv_path_GREP=$GREP
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5130 $as_echo "$ac_cv_path_GREP" >&6; }
5131 GREP="$ac_cv_path_GREP"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5135 $as_echo_n "checking for egrep... " >&6; }
5136 if ${ac_cv_path_EGREP+:} false; then :
5137 $as_echo_n "(cached) " >&6
5139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5140 then ac_cv_path_EGREP="$GREP -E"
5142 if test -z "$EGREP"; then
5143 ac_path_EGREP_found=false
5144 # Loop through the user's path and test for each of PROGNAME-LIST
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5149 test -z "$as_dir" && as_dir=.
5150 for ac_prog in egrep; do
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5153 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5154 # Check for GNU ac_path_EGREP and select it if it is found.
5155 # Check for GNU $ac_path_EGREP
5156 case `"$ac_path_EGREP" --version 2>&1` in
5158 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5161 $as_echo_n 0123456789 >"conftest.in"
5164 cat "conftest.in" "conftest.in" >"conftest.tmp"
5165 mv "conftest.tmp" "conftest.in"
5166 cp "conftest.in" "conftest.nl"
5167 $as_echo 'EGREP' >> "conftest.nl"
5168 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5170 as_fn_arith $ac_count + 1 && ac_count=$as_val
5171 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5172 # Best one so far, save it but keep looking for a better one
5173 ac_cv_path_EGREP="$ac_path_EGREP"
5174 ac_path_EGREP_max=$ac_count
5176 # 10*(2^10) chars as input seems more than enough
5177 test $ac_count -gt 10 && break
5179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182 $ac_path_EGREP_found && break 3
5187 if test -z "$ac_cv_path_EGREP"; then
5188 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5191 ac_cv_path_EGREP=$EGREP
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198 EGREP="$ac_cv_path_EGREP"
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5202 $as_echo_n "checking for fgrep... " >&6; }
5203 if ${ac_cv_path_FGREP+:} false; then :
5204 $as_echo_n "(cached) " >&6
5206 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5207 then ac_cv_path_FGREP="$GREP -F"
5209 if test -z "$FGREP"; then
5210 ac_path_FGREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in fgrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5220 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5221 # Check for GNU ac_path_FGREP and select it if it is found.
5222 # Check for GNU $ac_path_FGREP
5223 case `"$ac_path_FGREP" --version 2>&1` in
5225 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5228 $as_echo_n 0123456789 >"conftest.in"
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'FGREP' >> "conftest.nl"
5235 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_FGREP="$ac_path_FGREP"
5241 ac_path_FGREP_max=$ac_count
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 $ac_path_FGREP_found && break 3
5254 if test -z "$ac_cv_path_FGREP"; then
5255 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258 ac_cv_path_FGREP=$FGREP
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5264 $as_echo "$ac_cv_path_FGREP" >&6; }
5265 FGREP="$ac_cv_path_FGREP"
5268 test -z "$GREP" && GREP=grep
5288 # Check whether --with-gnu-ld was given.
5289 if test "${with_gnu_ld+set}" = set; then :
5290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5296 if test "$GCC" = yes; then
5297 # Check if gcc -print-prog-name=ld gives a path.
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5299 $as_echo_n "checking for ld used by $CC... " >&6; }
5302 # gcc leaves a trailing carriage return which upsets mingw
5303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5308 # Accept absolute paths.
5310 re_direlt='/[^/][^/]*/\.\./'
5311 # Canonicalize the pathname of ld
5312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5316 test -z "$LD" && LD="$ac_prog"
5319 # If it fails, then pretend we aren't using GCC.
5323 # If it is relative, then search for the first ld in PATH.
5327 elif test "$with_gnu_ld" = yes; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5329 $as_echo_n "checking for GNU ld... " >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5332 $as_echo_n "checking for non-GNU ld... " >&6; }
5334 if ${lt_cv_path_LD+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 if test -z "$LD"; then
5338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5339 for ac_dir in $PATH; do
5341 test -z "$ac_dir" && ac_dir=.
5342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5343 lt_cv_path_LD="$ac_dir/$ac_prog"
5344 # Check to see if the program is GNU ld. I'd rather use --version,
5345 # but apparently some variants of GNU ld only accept -v.
5346 # Break only if it was the GNU/non-GNU ld that we prefer.
5347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5348 *GNU* | *'with BFD'*)
5349 test "$with_gnu_ld" != no && break
5352 test "$with_gnu_ld" != yes && break
5359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5364 if test -n "$LD"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5366 $as_echo "$LD" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5371 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5373 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5374 if ${lt_cv_prog_gnu_ld+:} false; then :
5375 $as_echo_n "(cached) " >&6
5377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5378 case `$LD -v 2>&1 </dev/null` in
5379 *GNU* | *'with BFD'*)
5380 lt_cv_prog_gnu_ld=yes
5383 lt_cv_prog_gnu_ld=no
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5388 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5389 with_gnu_ld=$lt_cv_prog_gnu_ld
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5400 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5401 if ${lt_cv_path_NM+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$NM"; then
5405 # Let the user override the test.
5408 lt_nm_to_check="${ac_tool_prefix}nm"
5409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5410 lt_nm_to_check="$lt_nm_to_check nm"
5412 for lt_tmp_nm in $lt_nm_to_check; do
5413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5416 test -z "$ac_dir" && ac_dir=.
5417 tmp_nm="$ac_dir/$lt_tmp_nm"
5418 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5419 # Check to see if the nm accepts a BSD-compat flag.
5420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5421 # nm: unknown option "B" ignored
5422 # Tru64's nm complains that /dev/null is an invalid object file
5423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5424 */dev/null* | *'Invalid file or object type'*)
5425 lt_cv_path_NM="$tmp_nm -B"
5429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5431 lt_cv_path_NM="$tmp_nm -p"
5435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5436 continue # so that we can try to find one that supports BSD flags
5445 : ${lt_cv_path_NM=no}
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5449 $as_echo "$lt_cv_path_NM" >&6; }
5450 if test "$lt_cv_path_NM" != "no"; then
5453 # Didn't find any BSD compatible name lister, look for dumpbin.
5454 if test -n "$DUMPBIN"; then :
5455 # Let the user override the test.
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog in dumpbin "link -dump"
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_DUMPBIN+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$DUMPBIN"; then
5468 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 DUMPBIN=$ac_cv_prog_DUMPBIN
5488 if test -n "$DUMPBIN"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5490 $as_echo "$DUMPBIN" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 test -n "$DUMPBIN" && break
5500 if test -z "$DUMPBIN"; then
5501 ac_ct_DUMPBIN=$DUMPBIN
5502 for ac_prog in dumpbin "link -dump"
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$ac_ct_DUMPBIN"; then
5512 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5532 if test -n "$ac_ct_DUMPBIN"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5534 $as_echo "$ac_ct_DUMPBIN" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 test -n "$ac_ct_DUMPBIN" && break
5544 if test "x$ac_ct_DUMPBIN" = x; then
5547 case $cross_compiling:$ac_tool_warned in
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5553 DUMPBIN=$ac_ct_DUMPBIN
5557 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5559 DUMPBIN="$DUMPBIN -symbols"
5567 if test "$DUMPBIN" != ":"; then
5571 test -z "$NM" && NM=nm
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5579 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5580 if ${lt_cv_nm_interface+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 lt_cv_nm_interface="BSD nm"
5584 echo "int some_variable = 0;" > conftest.$ac_ext
5585 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5586 (eval "$ac_compile" 2>conftest.err)
5587 cat conftest.err >&5
5588 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5589 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5590 cat conftest.err >&5
5591 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5592 cat conftest.out >&5
5593 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5594 lt_cv_nm_interface="MS dumpbin"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5599 $as_echo "$lt_cv_nm_interface" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5602 $as_echo_n "checking whether ln -s works... " >&6; }
5604 if test "$LN_S" = "ln -s"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5609 $as_echo "no, using $LN_S" >&6; }
5612 # find the maximum length of command line arguments
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5614 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5615 if ${lt_cv_sys_max_cmd_len+:} false; then :
5616 $as_echo_n "(cached) " >&6
5623 # On DJGPP, this test can blow up pretty badly due to problems in libc
5624 # (any single argument exceeding 2000 bytes causes a buffer overrun
5625 # during glob expansion). Even if it were fixed, the result of this
5626 # check would be larger than it should be.
5627 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5631 # Under GNU Hurd, this test is not required because there is
5632 # no limit to the length of command line arguments.
5633 # Libtool will interpret -1 as no limit whatsoever
5634 lt_cv_sys_max_cmd_len=-1;
5637 cygwin* | mingw* | cegcc*)
5638 # On Win9x/ME, this test blows up -- it succeeds, but takes
5639 # about 5 minutes as the teststring grows exponentially.
5640 # Worse, since 9x/ME are not pre-emptively multitasking,
5641 # you end up with a "frozen" computer, even though with patience
5642 # the test eventually succeeds (with a max line length of 256k).
5643 # Instead, let's just punt: use the minimum linelength reported by
5644 # all of the supported platforms: 8192 (on NT/2K/XP).
5645 lt_cv_sys_max_cmd_len=8192;
5649 # On MiNT this can take a long time and run out of memory.
5650 lt_cv_sys_max_cmd_len=8192;
5654 # On AmigaOS with pdksh, this test takes hours, literally.
5655 # So we just punt and use a minimum line length of 8192.
5656 lt_cv_sys_max_cmd_len=8192;
5659 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5660 # This has been around since 386BSD, at least. Likely further.
5661 if test -x /sbin/sysctl; then
5662 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5663 elif test -x /usr/sbin/sysctl; then
5664 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5666 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5668 # And add a safety zone
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5674 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5675 lt_cv_sys_max_cmd_len=196608
5679 # The test takes a long time on OS/2.
5680 lt_cv_sys_max_cmd_len=8192
5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5686 # nice to cause kernel panics so lets avoid the loop below.
5687 # First set a reasonable default.
5688 lt_cv_sys_max_cmd_len=16384
5690 if test -x /sbin/sysconfig; then
5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697 lt_cv_sys_max_cmd_len=102400
5699 sysv5* | sco5v6* | sysv4.2uw2*)
5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5701 if test -n "$kargmax"; then
5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5704 lt_cv_sys_max_cmd_len=32768
5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5709 if test -n "$lt_cv_sys_max_cmd_len"; then
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 # Make teststring a little bigger before we do anything with it.
5714 # a 1K string should be a reasonable start.
5715 for i in 1 2 3 4 5 6 7 8 ; do
5716 teststring=$teststring$teststring
5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719 # If test is not a shell built-in, we'll probably end up computing a
5720 # maximum length that is only half of the actual maximum length, but
5722 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5724 test $i != 17 # 1/2 MB should be enough
5727 teststring=$teststring$teststring
5729 # Only check the string length outside the loop.
5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5732 # Add a significant safety factor because C++ compilers can tack on
5733 # massive amounts of additional arguments before passing them to the
5734 # linker. It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747 $as_echo "none" >&6; }
5749 max_cmd_len=$lt_cv_sys_max_cmd_len
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5762 # Try some XSI features
5765 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5767 && eval 'test $(( 1 + 1 )) -eq 2 \
5768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5771 $as_echo "$xsi_shell" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5779 && lt_shell_append=yes
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5781 $as_echo "$lt_shell_append" >&6; }
5784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5794 # test EBCDIC or ASCII
5795 case `echo X|tr X '\101'` in
5796 A) # ASCII based system
5797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5798 lt_SP2NL='tr \040 \012'
5799 lt_NL2SP='tr \015\012 \040\040'
5801 *) # EBCDIC based system
5802 lt_SP2NL='tr \100 \n'
5803 lt_NL2SP='tr \r\n \100\100'
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5816 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5817 if ${lt_cv_to_host_file_cmd+:} false; then :
5818 $as_echo_n "(cached) " >&6
5823 *-*-mingw* ) # actually msys
5824 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5827 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5829 * ) # otherwise, assume *nix
5830 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5836 *-*-mingw* ) # actually msys
5837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5840 lt_cv_to_host_file_cmd=func_convert_file_noop
5842 * ) # otherwise, assume *nix
5843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5847 * ) # unhandled hosts (and "normal" native builds)
5848 lt_cv_to_host_file_cmd=func_convert_file_noop
5854 to_host_file_cmd=$lt_cv_to_host_file_cmd
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5856 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5863 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5864 if ${lt_cv_to_tool_file_cmd+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 #assume ordinary cross tools, or native build.
5868 lt_cv_to_tool_file_cmd=func_convert_file_noop
5872 *-*-mingw* ) # actually msys
5873 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5881 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5883 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5891 if ${lt_cv_ld_reload_flag+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 lt_cv_ld_reload_flag='-r'
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5898 reload_flag=$lt_cv_ld_reload_flag
5899 case $reload_flag in
5901 *) reload_flag=" $reload_flag" ;;
5903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5905 cygwin* | mingw* | pw32* | cegcc*)
5906 if test "$GCC" != yes; then
5911 if test "$GCC" = yes; then
5912 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5914 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_prog_OBJDUMP+:} false; then :
5933 $as_echo_n "(cached) " >&6
5935 if test -n "$OBJDUMP"; then
5936 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 OBJDUMP=$ac_cv_prog_OBJDUMP
5956 if test -n "$OBJDUMP"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5958 $as_echo "$OBJDUMP" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5966 if test -z "$ac_cv_prog_OBJDUMP"; then
5967 ac_ct_OBJDUMP=$OBJDUMP
5968 # Extract the first word of "objdump", so it can be a program name with args.
5969 set dummy objdump; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5996 if test -n "$ac_ct_OBJDUMP"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5998 $as_echo "$ac_ct_OBJDUMP" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6004 if test "x$ac_ct_OBJDUMP" = x; then
6007 case $cross_compiling:$ac_tool_warned in
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011 ac_tool_warned=yes ;;
6013 OBJDUMP=$ac_ct_OBJDUMP
6016 OBJDUMP="$ac_cv_prog_OBJDUMP"
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6030 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6031 if ${lt_cv_deplibs_check_method+:} false; then :
6032 $as_echo_n "(cached) " >&6
6034 lt_cv_file_magic_cmd='$MAGIC_CMD'
6035 lt_cv_file_magic_test_file=
6036 lt_cv_deplibs_check_method='unknown'
6037 # Need to set the preceding variable on all platforms that support
6038 # interlibrary dependencies.
6039 # 'none' -- dependencies not supported.
6040 # `unknown' -- same as none, but documents that we really don't know.
6041 # 'pass_all' -- all dependencies passed with no checks.
6042 # 'test_compile' -- check by making test program.
6043 # 'file_magic [[regex]]' -- check by looking for files in library path
6044 # which responds to the $file_magic_cmd with a given extended regex.
6045 # If you have `file' or equivalent on your system and you're not sure
6046 # whether `pass_all' will *always* work, you probably want this one.
6050 lt_cv_deplibs_check_method=pass_all
6054 lt_cv_deplibs_check_method=pass_all
6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6059 lt_cv_file_magic_cmd='/usr/bin/file -L'
6060 lt_cv_file_magic_test_file=/shlib/libc.so
6064 # func_win32_libid is a shell function defined in ltmain.sh
6065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6066 lt_cv_file_magic_cmd='func_win32_libid'
6070 # Base MSYS/MinGW do not provide the 'file' command needed by
6071 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6072 # unless we find 'file', for example because we are cross-compiling.
6073 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6074 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6075 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076 lt_cv_file_magic_cmd='func_win32_libid'
6078 # Keep this pattern in sync with the one in func_win32_libid.
6079 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6080 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 # use the weaker test based on 'objdump'. See mingw*.
6086 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6087 lt_cv_file_magic_cmd='$OBJDUMP -f'
6090 darwin* | rhapsody*)
6091 lt_cv_deplibs_check_method=pass_all
6094 freebsd* | dragonfly*)
6095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6098 # Not sure whether the presence of OpenBSD here was a mistake.
6099 # Let's accept both of them until this is cleared up.
6100 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6101 lt_cv_file_magic_cmd=/usr/bin/file
6102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6106 lt_cv_deplibs_check_method=pass_all
6111 lt_cv_deplibs_check_method=pass_all
6115 lt_cv_deplibs_check_method=pass_all
6118 hpux10.20* | hpux11*)
6119 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6126 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]'
6127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6131 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6137 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6141 irix5* | irix6* | nonstopux*)
6143 *-32|*"-32 ") libmagic=32-bit;;
6144 *-n32|*"-n32 ") libmagic=N32;;
6145 *-64|*"-64 ") libmagic=64-bit;;
6146 *) libmagic=never-match;;
6148 lt_cv_deplibs_check_method=pass_all
6151 # This must be glibc/ELF.
6152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6153 lt_cv_deplibs_check_method=pass_all
6156 netbsd* | netbsdelf*-gnu)
6157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6171 lt_cv_deplibs_check_method=pass_all
6175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6182 osf3* | osf4* | osf5*)
6183 lt_cv_deplibs_check_method=pass_all
6187 lt_cv_deplibs_check_method=pass_all
6191 lt_cv_deplibs_check_method=pass_all
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195 lt_cv_deplibs_check_method=pass_all
6199 case $host_vendor in
6201 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]'
6202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6205 lt_cv_deplibs_check_method=pass_all
6208 lt_cv_file_magic_cmd='/bin/file'
6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6212 lt_cv_file_magic_cmd='/bin/file'
6213 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6214 lt_cv_file_magic_test_file=/lib/libc.so
6217 lt_cv_deplibs_check_method=pass_all
6220 lt_cv_deplibs_check_method=pass_all
6226 lt_cv_deplibs_check_method=pass_all
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6232 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6236 if test "$build" = "$host"; then
6239 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6242 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6248 file_magic_cmd=$lt_cv_file_magic_cmd
6249 deplibs_check_method=$lt_cv_deplibs_check_method
6250 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_DLLTOOL+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$DLLTOOL"; then
6282 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 DLLTOOL=$ac_cv_prog_DLLTOOL
6302 if test -n "$DLLTOOL"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6304 $as_echo "$DLLTOOL" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_DLLTOOL"; then
6313 ac_ct_DLLTOOL=$DLLTOOL
6314 # Extract the first word of "dlltool", so it can be a program name with args.
6315 set dummy dlltool; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$ac_ct_DLLTOOL"; then
6322 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6342 if test -n "$ac_ct_DLLTOOL"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6344 $as_echo "$ac_ct_DLLTOOL" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_DLLTOOL" = x; then
6353 case $cross_compiling:$ac_tool_warned in
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6359 DLLTOOL=$ac_ct_DLLTOOL
6362 DLLTOOL="$ac_cv_prog_DLLTOOL"
6365 test -z "$DLLTOOL" && DLLTOOL=dlltool
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6377 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6378 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 lt_cv_sharedlib_from_linklib_cmd='unknown'
6384 cygwin* | mingw* | pw32* | cegcc*)
6385 # two different shell functions defined in ltmain.sh
6386 # decide which to use based on capabilities of $DLLTOOL
6387 case `$DLLTOOL --help 2>&1` in
6388 *--identify-strict*)
6389 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6397 # fallback: assume linklib IS sharedlib
6398 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6404 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6405 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6406 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6414 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_AR+:} false; then :
6422 $as_echo_n "(cached) " >&6
6424 if test -n "$AR"; then
6425 ac_cv_prog_AR="$AR" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 if test -n "$AR"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6447 $as_echo "$AR" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6454 test -n "$AR" && break
6457 if test -z "$AR"; then
6461 # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 if test -n "$ac_ct_AR"; then
6469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_ac_ct_AR="$ac_prog"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6489 if test -n "$ac_ct_AR"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6491 $as_echo "$ac_ct_AR" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6498 test -n "$ac_ct_AR" && break
6501 if test "x$ac_ct_AR" = x; then
6504 case $cross_compiling:$ac_tool_warned in
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6528 $as_echo_n "checking for archiver @FILE support... " >&6; }
6529 if ${lt_cv_ar_at_file+:} false; then :
6530 $as_echo_n "(cached) " >&6
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 echo conftest.$ac_objext > conftest.lst
6546 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6548 (eval $lt_ar_try) 2>&5
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }
6552 if test "$ac_status" -eq 0; then
6553 # Ensure the archiver fails upon bogus file names.
6554 rm -f conftest.$ac_objext libconftest.a
6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6556 (eval $lt_ar_try) 2>&5
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }
6560 if test "$ac_status" -ne 0; then
6564 rm -f conftest.* libconftest.a
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6571 $as_echo "$lt_cv_ar_at_file" >&6; }
6573 if test "x$lt_cv_ar_at_file" = xno; then
6576 archiver_list_spec=$lt_cv_ar_at_file
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_STRIP+:} false; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$STRIP"; then
6594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 STRIP=$ac_cv_prog_STRIP
6614 if test -n "$STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6616 $as_echo "$STRIP" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6624 if test -z "$ac_cv_prog_STRIP"; then
6626 # Extract the first word of "strip", so it can be a program name with args.
6627 set dummy strip; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 if test -n "$ac_ct_STRIP"; then
6634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_ac_ct_STRIP="strip"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654 if test -n "$ac_ct_STRIP"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6656 $as_echo "$ac_ct_STRIP" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6662 if test "x$ac_ct_STRIP" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6674 STRIP="$ac_cv_prog_STRIP"
6677 test -z "$STRIP" && STRIP=:
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_RANLIB+:} false; then :
6690 $as_echo_n "(cached) " >&6
6692 if test -n "$RANLIB"; then
6693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 RANLIB=$ac_cv_prog_RANLIB
6713 if test -n "$RANLIB"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6715 $as_echo "$RANLIB" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6723 if test -z "$ac_cv_prog_RANLIB"; then
6724 ac_ct_RANLIB=$RANLIB
6725 # Extract the first word of "ranlib", so it can be a program name with args.
6726 set dummy ranlib; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$ac_ct_RANLIB"; then
6733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_ac_ct_RANLIB="ranlib"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753 if test -n "$ac_ct_RANLIB"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6755 $as_echo "$ac_ct_RANLIB" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6761 if test "x$ac_ct_RANLIB" = x; then
6764 case $cross_compiling:$ac_tool_warned in
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6770 RANLIB=$ac_ct_RANLIB
6773 RANLIB="$ac_cv_prog_RANLIB"
6776 test -z "$RANLIB" && RANLIB=:
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6788 if test -n "$RANLIB"; then
6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6802 lock_old_archive_extraction=yes ;;
6804 lock_old_archive_extraction=no ;;
6845 # If no C compiler was specified, use CC.
6848 # If no C compiler flags were specified, use CFLAGS.
6849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6851 # Allow CC to be a program name with arguments.
6855 # Check for command to grab the raw symbol name followed by C symbol from nm.
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6857 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6858 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6859 $as_echo_n "(cached) " >&6
6862 # These are sane defaults that work on at least a few old systems.
6863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6865 # Character class describing NM global symbol codes.
6866 symcode='[BCDEGRST]'
6868 # Regexp to match symbols that can be accessed directly from C.
6869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6871 # Define system-specific variables.
6876 cygwin* | mingw* | pw32* | cegcc*)
6877 symcode='[ABCDGISTW]'
6880 if test "$host_cpu" = ia64; then
6881 symcode='[ABCDEGRST]'
6885 symcode='[BCDEGRST]'
6888 symcode='[BCDEGQRST]'
6899 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6907 # If we're using GNU nm, then use its standard symbol codes.
6908 case `$NM -V 2>&1` in
6909 *GNU* | *'with BFD'*)
6910 symcode='[ABCDGIRSTW]' ;;
6913 # Transform an extracted symbol line into a proper C declaration.
6914 # Some systems (esp. on ia64) link data and code symbols differently,
6915 # so use this general approach.
6916 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918 # Transform an extracted symbol line into symbol name and symbol address
6919 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6920 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'"
6922 # Handle CRLF in mingw tool chain
6926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6930 # Try without a prefix underscore, then with it.
6931 for ac_symprfx in "" "_"; do
6933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6934 symxfrm="\\1 $ac_symprfx\\2 \\2"
6936 # Write the raw and C identifiers.
6937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6938 # Fake it for dumpbin and say T for any non-static function
6939 # and D for any global variable.
6940 # Also find C++ and __fastcall symbols from MSVC++,
6941 # which start with @ or ?.
6942 lt_cv_sys_global_symbol_pipe="$AWK '"\
6943 " {last_section=section; section=\$ 3};"\
6944 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6945 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6946 " \$ 0!~/External *\|/{next};"\
6947 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6948 " {if(hide[section]) next};"\
6949 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6950 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6951 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6952 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6953 " ' prfx=^$ac_symprfx"
6955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6957 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6959 # Check to see that the pipe works correctly.
6963 cat > conftest.$ac_ext <<_LT_EOF
6968 void nm_test_func(void);
6969 void nm_test_func(void){}
6973 int main(){nm_test_var='a';nm_test_func();return(0);}
6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6977 (eval $ac_compile) 2>&5
6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980 test $ac_status = 0; }; then
6981 # Now try to grab the symbols.
6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; } && test -s "$nlist"; then
6988 # Try sorting and uniquifying the output.
6989 if sort "$nlist" | uniq > "$nlist"T; then
6990 mv -f "$nlist"T "$nlist"
6995 # Make sure that we snagged all the symbols we need.
6996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6998 cat <<_LT_EOF > conftest.$ac_ext
6999 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7000 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7001 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7002 relocations are performed -- see ld's documentation on pseudo-relocs. */
7003 # define LT_DLSYM_CONST
7004 #elif defined(__osf__)
7005 /* This system does not cope well with relocations in const data. */
7006 # define LT_DLSYM_CONST
7008 # define LT_DLSYM_CONST const
7016 # Now generate the symbol file.
7017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7019 cat <<_LT_EOF >> conftest.$ac_ext
7021 /* The mapping between symbol names and symbols. */
7022 LT_DLSYM_CONST struct {
7026 lt__PROGRAM__LTX_preloaded_symbols[] =
7028 { "@PROGRAM@", (void *) 0 },
7030 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7031 cat <<\_LT_EOF >> conftest.$ac_ext
7035 /* This works around a problem in FreeBSD linker */
7036 #ifdef FREEBSD_WORKAROUND
7037 static const void *lt_preloaded_setup() {
7038 return lt__PROGRAM__LTX_preloaded_symbols;
7046 # Now try linking the two files.
7047 mv conftest.$ac_objext conftstm.$ac_objext
7048 lt_globsym_save_LIBS=$LIBS
7049 lt_globsym_save_CFLAGS=$CFLAGS
7050 LIBS="conftstm.$ac_objext"
7051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7053 (eval $ac_link) 2>&5
7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7059 LIBS=$lt_globsym_save_LIBS
7060 CFLAGS=$lt_globsym_save_CFLAGS
7062 echo "cannot find nm_test_func in $nlist" >&5
7065 echo "cannot find nm_test_var in $nlist" >&5
7068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7071 echo "$progname: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 rm -rf conftest* conftst*
7076 # Do not use the global_symbol_pipe unless it works.
7077 if test "$pipe_works" = yes; then
7080 lt_cv_sys_global_symbol_pipe=
7086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7087 lt_cv_sys_global_symbol_to_cdecl=
7089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7091 $as_echo "failed" >&6; }
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7094 $as_echo "ok" >&6; }
7097 # Response file support.
7098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7099 nm_file_list_spec='@'
7100 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7101 nm_file_list_spec='@'
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7131 $as_echo_n "checking for sysroot... " >&6; }
7133 # Check whether --with-sysroot was given.
7134 if test "${with_sysroot+set}" = set; then :
7135 withval=$with_sysroot;
7142 case ${with_sysroot} in #(
7144 if test "$GCC" = yes; then
7145 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7149 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7155 $as_echo "${with_sysroot}" >&6; }
7156 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7161 $as_echo "${lt_sysroot:-no}" >&6; }
7167 # Check whether --enable-libtool-lock was given.
7168 if test "${enable_libtool_lock+set}" = set; then :
7169 enableval=$enable_libtool_lock;
7172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7174 # Some flags need to be propagated to the compiler or linker for good
7178 # Find out which ABI we are using.
7179 echo 'int i;' > conftest.$ac_ext
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181 (eval $ac_compile) 2>&5
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 case `/usr/bin/file conftest.$ac_objext` in
7197 # Find out which ABI we are using.
7198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 if test "$lt_cv_prog_gnu_ld" = yes; then
7205 case `/usr/bin/file conftest.$ac_objext` in
7207 LD="${LD-ld} -melf32bsmip"
7210 LD="${LD-ld} -melf32bmipn32"
7213 LD="${LD-ld} -melf64bmip"
7217 case `/usr/bin/file conftest.$ac_objext` in
7233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7235 # Find out which ABI we are using.
7236 echo 'int i;' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 case `/usr/bin/file conftest.o` in
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_i386_fbsd"
7249 LD="${LD-ld} -m elf_i386"
7251 ppc64-*linux*|powerpc64-*linux*)
7252 LD="${LD-ld} -m elf32ppclinux"
7255 LD="${LD-ld} -m elf_s390"
7258 LD="${LD-ld} -m elf32_sparc"
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_x86_64_fbsd"
7268 LD="${LD-ld} -m elf_x86_64"
7270 ppc*-*linux*|powerpc*-*linux*)
7271 LD="${LD-ld} -m elf64ppc"
7273 s390*-*linux*|s390*-*tpf*)
7274 LD="${LD-ld} -m elf64_s390"
7277 LD="${LD-ld} -m elf64_sparc"
7287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7288 SAVE_CFLAGS="$CFLAGS"
7289 CFLAGS="$CFLAGS -belf"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7291 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7292 if ${lt_cv_cc_needs_belf+:} false; then :
7293 $as_echo_n "(cached) " >&6
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7312 if ac_fn_c_try_link "$LINENO"; then :
7313 lt_cv_cc_needs_belf=yes
7315 lt_cv_cc_needs_belf=no
7317 rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7327 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7330 CFLAGS="$SAVE_CFLAGS"
7334 # Find out which ABI we are using.
7335 echo 'int i;' > conftest.$ac_ext
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337 (eval $ac_compile) 2>&5
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7341 case `/usr/bin/file conftest.o` in
7343 case $lt_cv_prog_gnu_ld in
7347 LD="${LD-ld} -m elf_x86_64"
7350 LD="${LD-ld} -m elf64_sparc"
7353 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7354 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7371 need_locks="$enable_libtool_lock"
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}mt; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$MANIFEST_TOOL"; then
7382 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7402 if test -n "$MANIFEST_TOOL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7404 $as_echo "$MANIFEST_TOOL" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7412 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7413 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7414 # Extract the first word of "mt", so it can be a program name with args.
7415 set dummy mt; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7419 $as_echo_n "(cached) " >&6
7421 if test -n "$ac_ct_MANIFEST_TOOL"; then
7422 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7442 if test -n "$ac_ct_MANIFEST_TOOL"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7444 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7450 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7453 case $cross_compiling:$ac_tool_warned in
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7459 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7462 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7465 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7467 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7468 if ${lt_cv_path_mainfest_tool+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 lt_cv_path_mainfest_tool=no
7472 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7473 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7474 cat conftest.err >&5
7475 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7476 lt_cv_path_mainfest_tool=yes
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7481 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7482 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7492 rhapsody* | darwin*)
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$DSYMUTIL"; then
7502 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7522 if test -n "$DSYMUTIL"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7524 $as_echo "$DSYMUTIL" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 if test -z "$ac_cv_prog_DSYMUTIL"; then
7533 ac_ct_DSYMUTIL=$DSYMUTIL
7534 # Extract the first word of "dsymutil", so it can be a program name with args.
7535 set dummy dsymutil; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$ac_ct_DSYMUTIL"; then
7542 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7562 if test -n "$ac_ct_DSYMUTIL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7564 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7570 if test "x$ac_ct_DSYMUTIL" = x; then
7573 case $cross_compiling:$ac_tool_warned in
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7579 DSYMUTIL=$ac_ct_DSYMUTIL
7582 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_NMEDIT+:} false; then :
7591 $as_echo_n "(cached) " >&6
7593 if test -n "$NMEDIT"; then
7594 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 NMEDIT=$ac_cv_prog_NMEDIT
7614 if test -n "$NMEDIT"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7616 $as_echo "$NMEDIT" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7624 if test -z "$ac_cv_prog_NMEDIT"; then
7625 ac_ct_NMEDIT=$NMEDIT
7626 # Extract the first word of "nmedit", so it can be a program name with args.
7627 set dummy nmedit; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 if test -n "$ac_ct_NMEDIT"; then
7634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7654 if test -n "$ac_ct_NMEDIT"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7656 $as_echo "$ac_ct_NMEDIT" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7662 if test "x$ac_ct_NMEDIT" = x; then
7665 case $cross_compiling:$ac_tool_warned in
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7671 NMEDIT=$ac_ct_NMEDIT
7674 NMEDIT="$ac_cv_prog_NMEDIT"
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_prog_LIPO+:} false; then :
7683 $as_echo_n "(cached) " >&6
7685 if test -n "$LIPO"; then
7686 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 LIPO=$ac_cv_prog_LIPO
7706 if test -n "$LIPO"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7708 $as_echo "$LIPO" >&6; }
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7716 if test -z "$ac_cv_prog_LIPO"; then
7718 # Extract the first word of "lipo", so it can be a program name with args.
7719 set dummy lipo; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 if test -n "$ac_ct_LIPO"; then
7726 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_ac_ct_LIPO="lipo"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7746 if test -n "$ac_ct_LIPO"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7748 $as_echo "$ac_ct_LIPO" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7754 if test "x$ac_ct_LIPO" = x; then
7757 case $cross_compiling:$ac_tool_warned in
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7766 LIPO="$ac_cv_prog_LIPO"
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}otool; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_prog_OTOOL+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 if test -n "$OTOOL"; then
7778 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 OTOOL=$ac_cv_prog_OTOOL
7798 if test -n "$OTOOL"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7800 $as_echo "$OTOOL" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7808 if test -z "$ac_cv_prog_OTOOL"; then
7810 # Extract the first word of "otool", so it can be a program name with args.
7811 set dummy otool; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 if test -n "$ac_ct_OTOOL"; then
7818 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_ac_ct_OTOOL="otool"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7838 if test -n "$ac_ct_OTOOL"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7840 $as_echo "$ac_ct_OTOOL" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7846 if test "x$ac_ct_OTOOL" = x; then
7849 case $cross_compiling:$ac_tool_warned in
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7858 OTOOL="$ac_cv_prog_OTOOL"
7861 if test -n "$ac_tool_prefix"; then
7862 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7863 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if ${ac_cv_prog_OTOOL64+:} false; then :
7867 $as_echo_n "(cached) " >&6
7869 if test -n "$OTOOL64"; then
7870 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 OTOOL64=$ac_cv_prog_OTOOL64
7890 if test -n "$OTOOL64"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7892 $as_echo "$OTOOL64" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7900 if test -z "$ac_cv_prog_OTOOL64"; then
7901 ac_ct_OTOOL64=$OTOOL64
7902 # Extract the first word of "otool64", so it can be a program name with args.
7903 set dummy otool64; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7907 $as_echo_n "(cached) " >&6
7909 if test -n "$ac_ct_OTOOL64"; then
7910 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_ac_ct_OTOOL64="otool64"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7930 if test -n "$ac_ct_OTOOL64"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7932 $as_echo "$ac_ct_OTOOL64" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7938 if test "x$ac_ct_OTOOL64" = x; then
7941 case $cross_compiling:$ac_tool_warned in
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7947 OTOOL64=$ac_ct_OTOOL64
7950 OTOOL64="$ac_cv_prog_OTOOL64"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7980 $as_echo_n "checking for -single_module linker flag... " >&6; }
7981 if ${lt_cv_apple_cc_single_mod+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 lt_cv_apple_cc_single_mod=no
7985 if test -z "${LT_MULTI_MODULE}"; then
7986 # By default we will add the -single_module flag. You can override
7987 # by either setting the environment variable LT_MULTI_MODULE
7988 # non-empty at configure time, or by adding -multi_module to the
7990 rm -rf libconftest.dylib*
7991 echo "int foo(void){return 1;}" > conftest.c
7992 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7993 -dynamiclib -Wl,-single_module conftest.c" >&5
7994 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7995 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7997 # If there is a non-empty error log, and "single_module"
7998 # appears in it, assume the flag caused a linker warning
7999 if test -s conftest.err && $GREP single_module conftest.err; then
8000 cat conftest.err >&5
8001 # Otherwise, if the output was created with a 0 exit code from
8002 # the compiler, it worked.
8003 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8004 lt_cv_apple_cc_single_mod=yes
8006 cat conftest.err >&5
8008 rm -rf libconftest.dylib*
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8013 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8016 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8017 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 lt_cv_ld_exported_symbols_list=no
8021 save_LDFLAGS=$LDFLAGS
8022 echo "_main" > conftest.sym
8023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8035 if ac_fn_c_try_link "$LINENO"; then :
8036 lt_cv_ld_exported_symbols_list=yes
8038 lt_cv_ld_exported_symbols_list=no
8040 rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LDFLAGS="$save_LDFLAGS"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8046 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8049 $as_echo_n "checking for -force_load linker flag... " >&6; }
8050 if ${lt_cv_ld_force_load+:} false; then :
8051 $as_echo_n "(cached) " >&6
8053 lt_cv_ld_force_load=no
8054 cat > conftest.c << _LT_EOF
8055 int forced_loaded() { return 2;}
8057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8059 echo "$AR cru libconftest.a conftest.o" >&5
8060 $AR cru libconftest.a conftest.o 2>&5
8061 echo "$RANLIB libconftest.a" >&5
8062 $RANLIB libconftest.a 2>&5
8063 cat > conftest.c << _LT_EOF
8064 int main() { return 0;}
8066 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8067 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8069 if test -s conftest.err && $GREP force_load conftest.err; then
8070 cat conftest.err >&5
8071 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8072 lt_cv_ld_force_load=yes
8074 cat conftest.err >&5
8076 rm -f conftest.err libconftest.a conftest conftest.c
8077 rm -rf conftest.dSYM
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8081 $as_echo "$lt_cv_ld_force_load" >&6; }
8083 rhapsody* | darwin1.[012])
8084 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8086 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8087 darwin*) # darwin 5.x on
8088 # if running on 10.5 or later, the deployment target defaults
8089 # to the OS version, if on x86, and 10.4, the deployment
8090 # target defaults to 10.4. Don't you love it?
8091 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8092 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8093 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8095 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8101 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8102 _lt_dar_single_mod='$single_module'
8104 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8105 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8107 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8109 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8110 _lt_dsymutil='~$DSYMUTIL $lib || :'
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8124 # On Suns, sometimes $CPP names a directory.
8125 if test -n "$CPP" && test -d "$CPP"; then
8128 if test -z "$CPP"; then
8129 if ${ac_cv_prog_CPP+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 # Double quotes because CPP needs to be expanded
8133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8136 for ac_c_preproc_warn_flag in '' yes
8138 # Use a header file that comes with gcc, so configuring glibc
8139 # with a fresh cross-compiler works.
8140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141 # <limits.h> exists even on freestanding compilers.
8142 # On the NeXT, cc -E runs the code through the compiler's parser,
8143 # not just through cpp. "Syntax error" is here to catch this case.
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8147 # include <limits.h>
8149 # include <assert.h>
8153 if ac_fn_c_try_cpp "$LINENO"; then :
8156 # Broken: fails on valid input.
8159 rm -f conftest.err conftest.i conftest.$ac_ext
8161 # OK, works on sane cases. Now check whether nonexistent headers
8162 # can be detected and how.
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165 #include <ac_nonexistent.h>
8167 if ac_fn_c_try_cpp "$LINENO"; then :
8168 # Broken: success on invalid input.
8171 # Passes both tests.
8175 rm -f conftest.err conftest.i conftest.$ac_ext
8178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8179 rm -f conftest.i conftest.err conftest.$ac_ext
8180 if $ac_preproc_ok; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8193 $as_echo "$CPP" >&6; }
8195 for ac_c_preproc_warn_flag in '' yes
8197 # Use a header file that comes with gcc, so configuring glibc
8198 # with a fresh cross-compiler works.
8199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8200 # <limits.h> exists even on freestanding compilers.
8201 # On the NeXT, cc -E runs the code through the compiler's parser,
8202 # not just through cpp. "Syntax error" is here to catch this case.
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 # include <limits.h>
8208 # include <assert.h>
8212 if ac_fn_c_try_cpp "$LINENO"; then :
8215 # Broken: fails on valid input.
8218 rm -f conftest.err conftest.i conftest.$ac_ext
8220 # OK, works on sane cases. Now check whether nonexistent headers
8221 # can be detected and how.
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <ac_nonexistent.h>
8226 if ac_fn_c_try_cpp "$LINENO"; then :
8227 # Broken: success on invalid input.
8230 # Passes both tests.
8234 rm -f conftest.err conftest.i conftest.$ac_ext
8237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8238 rm -f conftest.i conftest.err conftest.$ac_ext
8239 if $ac_preproc_ok; then :
8242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8245 See \`config.log' for more details" "$LINENO" 5; }
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8256 $as_echo_n "checking for ANSI C header files... " >&6; }
8257 if ${ac_cv_header_stdc+:} false; then :
8258 $as_echo_n "(cached) " >&6
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276 ac_cv_header_stdc=yes
8278 ac_cv_header_stdc=no
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 if test $ac_cv_header_stdc = yes; then
8283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 $EGREP "memchr" >/dev/null 2>&1; then :
8293 ac_cv_header_stdc=no
8299 if test $ac_cv_header_stdc = yes; then
8300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8307 $EGREP "free" >/dev/null 2>&1; then :
8310 ac_cv_header_stdc=no
8316 if test $ac_cv_header_stdc = yes; then
8317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8318 if test "$cross_compiling" = yes; then :
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8325 #if ((' ' & 0x0FF) == 0x020)
8326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8329 # define ISLOWER(c) \
8330 (('a' <= (c) && (c) <= 'i') \
8331 || ('j' <= (c) && (c) <= 'r') \
8332 || ('s' <= (c) && (c) <= 'z'))
8333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8341 for (i = 0; i < 256; i++)
8342 if (XOR (islower (i), ISLOWER (i))
8343 || toupper (i) != TOUPPER (i))
8348 if ac_fn_c_try_run "$LINENO"; then :
8351 ac_cv_header_stdc=no
8353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8354 conftest.$ac_objext conftest.beam conftest.$ac_ext
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8360 $as_echo "$ac_cv_header_stdc" >&6; }
8361 if test $ac_cv_header_stdc = yes; then
8363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8369 inttypes.h stdint.h unistd.h
8371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8375 cat >>confdefs.h <<_ACEOF
8376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8384 for ac_header in dlfcn.h
8386 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8388 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8389 cat >>confdefs.h <<_ACEOF
8390 #define HAVE_DLFCN_H 1
8411 # Check whether --enable-shared was given.
8412 if test "${enable_shared+set}" = set; then :
8413 enableval=$enable_shared; p=${PACKAGE-default}
8415 yes) enable_shared=yes ;;
8416 no) enable_shared=no ;;
8419 # Look at the argument we got. We use all the common list separators.
8420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8421 for pkg in $enableval; do
8423 if test "X$pkg" = "X$p"; then
8444 # Check whether --with-pic was given.
8445 if test "${with_pic+set}" = set; then :
8446 withval=$with_pic; lt_p=${PACKAGE-default}
8448 yes|no) pic_mode=$withval ;;
8451 # Look at the argument we got. We use all the common list separators.
8452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8453 for lt_pkg in $withval; do
8455 if test "X$lt_pkg" = "X$lt_p"; then
8467 test -z "$pic_mode" && pic_mode=default
8475 # Check whether --enable-fast-install was given.
8476 if test "${enable_fast_install+set}" = set; then :
8477 enableval=$enable_fast_install; p=${PACKAGE-default}
8479 yes) enable_fast_install=yes ;;
8480 no) enable_fast_install=no ;;
8482 enable_fast_install=no
8483 # Look at the argument we got. We use all the common list separators.
8484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8485 for pkg in $enableval; do
8487 if test "X$pkg" = "X$p"; then
8488 enable_fast_install=yes
8495 enable_fast_install=yes
8508 # This can be used to rebuild libtool when needed
8509 LIBTOOL_DEPS="$ltmain"
8511 # Always use our own libtool.
8512 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8543 test -z "$LN_S" && LN_S="ln -s"
8558 if test -n "${ZSH_VERSION+set}" ; then
8559 setopt NO_GLOB_SUBST
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8563 $as_echo_n "checking for objdir... " >&6; }
8564 if ${lt_cv_objdir+:} false; then :
8565 $as_echo_n "(cached) " >&6
8567 rm -f .libs 2>/dev/null
8568 mkdir .libs 2>/dev/null
8569 if test -d .libs; then
8572 # MS-DOS does not allow filenames that begin with a dot.
8575 rmdir .libs 2>/dev/null
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8578 $as_echo "$lt_cv_objdir" >&6; }
8579 objdir=$lt_cv_objdir
8585 cat >>confdefs.h <<_ACEOF
8586 #define LT_OBJDIR "$lt_cv_objdir/"
8594 # AIX sometimes has problems with the GCC collect2 program. For some
8595 # reason, if we set the COLLECT_NAMES environment variable, the problems
8596 # vanish in a puff of smoke.
8597 if test "X${COLLECT_NAMES+set}" != Xset; then
8599 export COLLECT_NAMES
8606 can_build_shared=yes
8608 # All known linkers require a `.a' archive for static linking (except MSVC,
8609 # which needs '.lib').
8612 with_gnu_ld="$lt_cv_prog_gnu_ld"
8615 old_CFLAGS="$CFLAGS"
8617 # Set sane defaults for various variables
8618 test -z "$CC" && CC=cc
8619 test -z "$LTCC" && LTCC=$CC
8620 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8621 test -z "$LD" && LD=ld
8622 test -z "$ac_objext" && ac_objext=o
8624 for cc_temp in $compiler""; do
8626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8632 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8635 # Only perform the check for file, if the check method requires it
8636 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8637 case $deplibs_check_method in
8639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8641 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8642 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8643 $as_echo_n "(cached) " >&6
8647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8650 lt_save_MAGIC_CMD="$MAGIC_CMD"
8651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8653 for ac_dir in $ac_dummy; do
8655 test -z "$ac_dir" && ac_dir=.
8656 if test -f $ac_dir/${ac_tool_prefix}file; then
8657 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8658 if test -n "$file_magic_test_file"; then
8659 case $deplibs_check_method in
8661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8664 $EGREP "$file_magic_regex" > /dev/null; then
8669 *** Warning: the command libtool uses to detect shared libraries,
8670 *** $file_magic_cmd, produces output that libtool cannot recognize.
8671 *** The result is that libtool may fail to recognize shared libraries
8672 *** as such. This will affect the creation of libtool libraries that
8673 *** depend on shared libraries, but programs linked with such libtool
8674 *** libraries will work regardless of this problem. Nevertheless, you
8675 *** may want to report the problem to your system manager and/or to
8676 *** bug-libtool@gnu.org
8686 MAGIC_CMD="$lt_save_MAGIC_CMD"
8691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8692 if test -n "$MAGIC_CMD"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8694 $as_echo "$MAGIC_CMD" >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8704 if test -z "$lt_cv_path_MAGIC_CMD"; then
8705 if test -n "$ac_tool_prefix"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8707 $as_echo_n "checking for file... " >&6; }
8708 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8709 $as_echo_n "(cached) " >&6
8713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8716 lt_save_MAGIC_CMD="$MAGIC_CMD"
8717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8719 for ac_dir in $ac_dummy; do
8721 test -z "$ac_dir" && ac_dir=.
8722 if test -f $ac_dir/file; then
8723 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8724 if test -n "$file_magic_test_file"; then
8725 case $deplibs_check_method in
8727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8730 $EGREP "$file_magic_regex" > /dev/null; then
8735 *** Warning: the command libtool uses to detect shared libraries,
8736 *** $file_magic_cmd, produces output that libtool cannot recognize.
8737 *** The result is that libtool may fail to recognize shared libraries
8738 *** as such. This will affect the creation of libtool libraries that
8739 *** depend on shared libraries, but programs linked with such libtool
8740 *** libraries will work regardless of this problem. Nevertheless, you
8741 *** may want to report the problem to your system manager and/or to
8742 *** bug-libtool@gnu.org
8752 MAGIC_CMD="$lt_save_MAGIC_CMD"
8757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8758 if test -n "$MAGIC_CMD"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8760 $as_echo "$MAGIC_CMD" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8776 # Use C for the default configuration in the libtool script
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786 # Source file extension for C test sources.
8789 # Object file extension for compiled C test sources.
8793 # Code to be used in simple compile tests
8794 lt_simple_compile_test_code="int some_variable = 0;"
8796 # Code to be used in simple link tests
8797 lt_simple_link_test_code='int main(){return(0);}'
8805 # If no C compiler was specified, use CC.
8808 # If no C compiler flags were specified, use CFLAGS.
8809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8811 # Allow CC to be a program name with arguments.
8814 # Save the default compiler, since it gets overwritten when the other
8815 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8816 compiler_DEFAULT=$CC
8818 # save warnings/boilerplate of simple test code
8819 ac_outfile=conftest.$ac_objext
8820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8822 _lt_compiler_boilerplate=`cat conftest.err`
8825 ac_outfile=conftest.$ac_objext
8826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8828 _lt_linker_boilerplate=`cat conftest.err`
8832 if test -n "$compiler"; then
8834 lt_prog_compiler_no_builtin_flag=
8836 if test "$GCC" = yes; then
8837 case $cc_basename in
8839 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8841 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8845 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8846 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8847 $as_echo_n "(cached) " >&6
8849 lt_cv_prog_compiler_rtti_exceptions=no
8850 ac_outfile=conftest.$ac_objext
8851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852 lt_compiler_flag="-fno-rtti -fno-exceptions"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 # The option is referenced via a variable to avoid confusing sed.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>conftest.err)
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s "$ac_outfile"; then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings other than the usual output.
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_rtti_exceptions=yes
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8880 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8882 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8883 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8895 lt_prog_compiler_wl=
8896 lt_prog_compiler_pic=
8897 lt_prog_compiler_static=
8900 if test "$GCC" = yes; then
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_static='-static'
8906 # All AIX code is PIC.
8907 if test "$host_cpu" = ia64; then
8908 # AIX 5 now supports IA64 processor
8909 lt_prog_compiler_static='-Bstatic'
8916 # see comment about AmigaOS4 .so support
8917 lt_prog_compiler_pic='-fPIC'
8920 # FIXME: we need at least 68020 code to build shared libraries, but
8921 # adding the `-m68020' flag to GCC prevents building anything better,
8923 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8929 # PIC is the default for these OSes.
8932 mingw* | cygwin* | pw32* | os2* | cegcc*)
8933 # This hack is so that the source file can tell whether it is being
8934 # built for inclusion in a dll (and should export symbols for example).
8935 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8936 # (--disable-auto-import) libraries
8937 lt_prog_compiler_pic='-DDLL_EXPORT'
8940 darwin* | rhapsody*)
8941 # PIC is the default on this platform
8942 # Common symbols not allowed in MH_DYLIB files
8943 lt_prog_compiler_pic='-fno-common'
8947 # PIC is the default for Haiku.
8948 # The "-static" flag exists, but is broken.
8949 lt_prog_compiler_static=
8953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8955 # sets the default TLS model and affects inlining.
8961 lt_prog_compiler_pic='-fPIC'
8967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8968 # Instead, we relocate shared libraries at runtime.
8972 # Just because we use GCC doesn't mean we suddenly get shared libraries
8973 # on systems that don't support them.
8974 lt_prog_compiler_can_build_shared=no
8979 # QNX uses GNU C++, but need to define -shared option too, otherwise
8981 lt_prog_compiler_pic='-fPIC -shared'
8985 if test -d /usr/nec; then
8986 lt_prog_compiler_pic=-Kconform_pic
8991 lt_prog_compiler_pic='-fPIC'
8995 case $cc_basename in
8996 nvcc*) # Cuda Compiler Driver 2.2
8997 lt_prog_compiler_wl='-Xlinker '
8998 if test -n "$lt_prog_compiler_pic"; then
8999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9004 # PORTME Check for flag to pass linker flags through the system compiler.
9007 lt_prog_compiler_wl='-Wl,'
9008 if test "$host_cpu" = ia64; then
9009 # AIX 5 now supports IA64 processor
9010 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9016 mingw* | cygwin* | pw32* | os2* | cegcc*)
9017 # This hack is so that the source file can tell whether it is being
9018 # built for inclusion in a dll (and should export symbols for example).
9019 lt_prog_compiler_pic='-DDLL_EXPORT'
9022 hpux9* | hpux10* | hpux11*)
9023 lt_prog_compiler_wl='-Wl,'
9024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9031 lt_prog_compiler_pic='+Z'
9034 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9035 lt_prog_compiler_static='${wl}-a ${wl}archive'
9038 irix5* | irix6* | nonstopux*)
9039 lt_prog_compiler_wl='-Wl,'
9040 # PIC (with -KPIC) is the default.
9041 lt_prog_compiler_static='-non_shared'
9044 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9045 case $cc_basename in
9046 # old Intel for x86_64 which still supported -KPIC.
9048 lt_prog_compiler_wl='-Wl,'
9049 lt_prog_compiler_pic='-KPIC'
9050 lt_prog_compiler_static='-static'
9052 # icc used to be incompatible with GCC.
9053 # ICC 10 doesn't accept -KPIC any more.
9055 lt_prog_compiler_wl='-Wl,'
9056 lt_prog_compiler_pic='-fPIC'
9057 lt_prog_compiler_static='-static'
9059 # Lahey Fortran 8.1.
9061 lt_prog_compiler_wl='-Wl,'
9062 lt_prog_compiler_pic='--shared'
9063 lt_prog_compiler_static='--static'
9066 # NAG Fortran compiler
9067 lt_prog_compiler_wl='-Wl,-Wl,,'
9068 lt_prog_compiler_pic='-PIC'
9069 lt_prog_compiler_static='-Bstatic'
9071 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9072 # Portland Group compilers (*not* the Pentium gcc compiler,
9073 # which looks to be a dead project)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='-fpic'
9076 lt_prog_compiler_static='-Bstatic'
9079 lt_prog_compiler_wl='-Wl,'
9080 # All Alpha code is PIC.
9081 lt_prog_compiler_static='-non_shared'
9083 xl* | bgxl* | bgf* | mpixl*)
9084 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-qpic'
9087 lt_prog_compiler_static='-qstaticlink'
9090 case `$CC -V 2>&1 | sed 5q` in
9091 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9092 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9093 lt_prog_compiler_pic='-KPIC'
9094 lt_prog_compiler_static='-Bstatic'
9095 lt_prog_compiler_wl=''
9097 *Sun\ F* | *Sun*Fortran*)
9098 lt_prog_compiler_pic='-KPIC'
9099 lt_prog_compiler_static='-Bstatic'
9100 lt_prog_compiler_wl='-Qoption ld '
9104 lt_prog_compiler_pic='-KPIC'
9105 lt_prog_compiler_static='-Bstatic'
9106 lt_prog_compiler_wl='-Wl,'
9108 *Intel*\ [CF]*Compiler*)
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_pic='-fPIC'
9111 lt_prog_compiler_static='-static'
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-fpic'
9116 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9129 # QNX uses GNU C++, but need to define -shared option too, otherwise
9131 lt_prog_compiler_pic='-fPIC -shared'
9134 osf3* | osf4* | osf5*)
9135 lt_prog_compiler_wl='-Wl,'
9136 # All OSF/1 code is PIC.
9137 lt_prog_compiler_static='-non_shared'
9141 lt_prog_compiler_static='-non_shared'
9145 lt_prog_compiler_pic='-KPIC'
9146 lt_prog_compiler_static='-Bstatic'
9147 case $cc_basename in
9148 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9149 lt_prog_compiler_wl='-Qoption ld ';;
9151 lt_prog_compiler_wl='-Wl,';;
9156 lt_prog_compiler_wl='-Qoption ld '
9157 lt_prog_compiler_pic='-PIC'
9158 lt_prog_compiler_static='-Bstatic'
9161 sysv4 | sysv4.2uw2* | sysv4.3*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_pic='-KPIC'
9164 lt_prog_compiler_static='-Bstatic'
9168 if test -d /usr/nec ;then
9169 lt_prog_compiler_pic='-Kconform_pic'
9170 lt_prog_compiler_static='-Bstatic'
9174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9175 lt_prog_compiler_wl='-Wl,'
9176 lt_prog_compiler_pic='-KPIC'
9177 lt_prog_compiler_static='-Bstatic'
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_can_build_shared=no
9186 lt_prog_compiler_pic='-pic'
9187 lt_prog_compiler_static='-Bstatic'
9191 lt_prog_compiler_can_build_shared=no
9197 # For platforms which do not support PIC, -DPIC is meaningless:
9199 lt_prog_compiler_pic=
9202 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9207 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9208 if ${lt_cv_prog_compiler_pic+:} false; then :
9209 $as_echo_n "(cached) " >&6
9211 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9214 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9215 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9218 # Check to make sure the PIC flag actually works.
9220 if test -n "$lt_prog_compiler_pic"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9222 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9223 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 lt_cv_prog_compiler_pic_works=no
9227 ac_outfile=conftest.$ac_objext
9228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9230 # Insert the option either (1) after the last *FLAGS variable, or
9231 # (2) before a word containing "conftest.", or (3) at the end.
9232 # Note that $ac_compile itself does not contain backslashes and begins
9233 # with a dollar sign (not a hyphen), so the echo should work correctly.
9234 # The option is referenced via a variable to avoid confusing sed.
9235 lt_compile=`echo "$ac_compile" | $SED \
9236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9238 -e 's:$: $lt_compiler_flag:'`
9239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9240 (eval "$lt_compile" 2>conftest.err)
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 if (exit $ac_status) && test -s "$ac_outfile"; then
9245 # The compiler can only warn and ignore the option if not recognized
9246 # So say no if there are warnings other than the usual output.
9247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9250 lt_cv_prog_compiler_pic_works=yes
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9257 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9259 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9260 case $lt_prog_compiler_pic in
9262 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9265 lt_prog_compiler_pic=
9266 lt_prog_compiler_can_build_shared=no
9282 # Check to make sure the static flag actually works.
9284 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9286 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9287 if ${lt_cv_prog_compiler_static_works+:} false; then :
9288 $as_echo_n "(cached) " >&6
9290 lt_cv_prog_compiler_static_works=no
9291 save_LDFLAGS="$LDFLAGS"
9292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9295 # The linker can only warn and ignore the option if not recognized
9296 # So say no if there are warnings
9297 if test -s conftest.err; then
9298 # Append any errors to the config.log.
9299 cat conftest.err 1>&5
9300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9302 if diff conftest.exp conftest.er2 >/dev/null; then
9303 lt_cv_prog_compiler_static_works=yes
9306 lt_cv_prog_compiler_static_works=yes
9310 LDFLAGS="$save_LDFLAGS"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9314 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9316 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9319 lt_prog_compiler_static=
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9330 if ${lt_cv_prog_compiler_c_o+:} false; then :
9331 $as_echo_n "(cached) " >&6
9333 lt_cv_prog_compiler_c_o=no
9334 $RM -r conftest 2>/dev/null
9338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9340 lt_compiler_flag="-o out/conftest2.$ac_objext"
9341 # Insert the option either (1) after the last *FLAGS variable, or
9342 # (2) before a word containing "conftest.", or (3) at the end.
9343 # Note that $ac_compile itself does not contain backslashes and begins
9344 # with a dollar sign (not a hyphen), so the echo should work correctly.
9345 lt_compile=`echo "$ac_compile" | $SED \
9346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9348 -e 's:$: $lt_compiler_flag:'`
9349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9350 (eval "$lt_compile" 2>out/conftest.err)
9352 cat out/conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9356 # The compiler can only warn and ignore the option if not recognized
9357 # So say no if there are warnings
9358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9361 lt_cv_prog_compiler_c_o=yes
9366 # SGI C++ compiler will create directory out/ii_files/ for
9367 # template instantiation
9368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9369 $RM out/* && rmdir out
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9376 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9385 if ${lt_cv_prog_compiler_c_o+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 lt_cv_prog_compiler_c_o=no
9389 $RM -r conftest 2>/dev/null
9393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395 lt_compiler_flag="-o out/conftest2.$ac_objext"
9396 # Insert the option either (1) after the last *FLAGS variable, or
9397 # (2) before a word containing "conftest.", or (3) at the end.
9398 # Note that $ac_compile itself does not contain backslashes and begins
9399 # with a dollar sign (not a hyphen), so the echo should work correctly.
9400 lt_compile=`echo "$ac_compile" | $SED \
9401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403 -e 's:$: $lt_compiler_flag:'`
9404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405 (eval "$lt_compile" 2>out/conftest.err)
9407 cat out/conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9411 # The compiler can only warn and ignore the option if not recognized
9412 # So say no if there are warnings
9413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler_c_o=yes
9421 # SGI C++ compiler will create directory out/ii_files/ for
9422 # template instantiation
9423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9424 $RM out/* && rmdir out
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9431 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9436 hard_links="nottested"
9437 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9438 # do not overwrite the value of need_locks provided by the user
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9440 $as_echo_n "checking if we can lock with hard links... " >&6; }
9443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9445 ln conftest.a conftest.b 2>&5 || hard_links=no
9446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9448 $as_echo "$hard_links" >&6; }
9449 if test "$hard_links" = no; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9451 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9467 allow_undefined_flag=
9468 always_export_symbols=no
9470 archive_expsym_cmds=
9471 compiler_needs_object=no
9472 enable_shared_with_static_runtimes=no
9473 export_dynamic_flag_spec=
9474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9475 hardcode_automatic=no
9477 hardcode_direct_absolute=no
9478 hardcode_libdir_flag_spec=
9479 hardcode_libdir_separator=
9481 hardcode_shlibpath_var=unsupported
9483 link_all_deplibs=unknown
9486 old_archive_from_new_cmds=
9487 old_archive_from_expsyms_cmds=
9488 thread_safe_flag_spec=
9489 whole_archive_flag_spec=
9490 # include_expsyms should be a list of space-separated symbols to be *always*
9491 # included in the symbol list
9493 # exclude_expsyms can be an extended regexp of symbols to exclude
9494 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9495 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9496 # as well as any symbol that contains `d'.
9497 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9498 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9499 # platforms (ab)use it in PIC code, but their linkers get confused if
9500 # the symbol is explicitly referenced. Since portable code cannot
9501 # rely on this symbol name, it's probably fine to never include it in
9502 # preloaded symbol tables.
9503 # Exclude shared library initialization/finalization symbols.
9504 extract_expsyms_cmds=
9507 cygwin* | mingw* | pw32* | cegcc*)
9508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9509 # When not using gcc, we currently assume that we are using
9510 # Microsoft Visual C++.
9511 if test "$GCC" != yes; then
9516 # we just hope/assume this is gcc and not c89 (= MSVC++)
9522 linux* | k*bsd*-gnu | gnu*)
9529 # On some targets, GNU ld is compatible enough with the native linker
9530 # that we're better off using the native interface for both.
9531 lt_use_gnu_ld_interface=no
9532 if test "$with_gnu_ld" = yes; then
9535 # The AIX port of GNU ld has always aspired to compatibility
9536 # with the native linker. However, as the warning in the GNU ld
9537 # block says, versions before 2.19.5* couldn't really create working
9538 # shared libraries, regardless of the interface used.
9539 case `$LD -v 2>&1` in
9540 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9541 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9542 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9544 lt_use_gnu_ld_interface=yes
9549 lt_use_gnu_ld_interface=yes
9554 if test "$lt_use_gnu_ld_interface" = yes; then
9555 # If archive_cmds runs LD, not CC, wlarc should be empty
9558 # Set some defaults for GNU ld with shared library support. These
9559 # are reset later if shared libraries are not supported. Putting them
9560 # here allows them to be overridden if necessary.
9561 runpath_var=LD_RUN_PATH
9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563 export_dynamic_flag_spec='${wl}--export-dynamic'
9564 # ancient GNU ld didn't support --whole-archive et. al.
9565 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9566 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9568 whole_archive_flag_spec=
9570 supports_anon_versioning=no
9571 case `$LD -v 2>&1` in
9572 *GNU\ gold*) supports_anon_versioning=yes ;;
9573 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9574 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9575 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9576 *\ 2.11.*) ;; # other 2.11 versions
9577 *) supports_anon_versioning=yes ;;
9580 # See if GNU ld supports shared libraries.
9583 # On AIX/PPC, the GNU linker is very broken
9584 if test "$host_cpu" != ia64; then
9588 *** Warning: the GNU linker, at least up to release 2.19, is reported
9589 *** to be unable to reliably create shared libraries on AIX.
9590 *** Therefore, libtool is disabling shared libraries support. If you
9591 *** really care for shared libraries, you may want to install binutils
9592 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9593 *** You will then need to restart the configuration process.
9602 # see comment about AmigaOS4 .so support
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 archive_expsym_cmds=''
9607 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)'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_minus_L=yes
9615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9616 allow_undefined_flag=unsupported
9617 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9618 # support --undefined. This deserves some investigation. FIXME
9619 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625 cygwin* | mingw* | pw32* | cegcc*)
9626 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9627 # as there is no search path for DLLs.
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 export_dynamic_flag_spec='${wl}--export-all-symbols'
9630 allow_undefined_flag=unsupported
9631 always_export_symbols=no
9632 enable_shared_with_static_runtimes=yes
9633 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'
9634 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9636 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9638 # If the export-symbols file already is a .def file (1st line
9639 # is EXPORTS), use it as is; otherwise, prepend...
9640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9641 cp $export_symbols $output_objdir/$soname.def;
9643 echo EXPORTS > $output_objdir/$soname.def;
9644 cat $export_symbols >> $output_objdir/$soname.def;
9646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 link_all_deplibs=yes
9659 hardcode_shlibpath_var=no
9660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661 export_dynamic_flag_spec='${wl}-E'
9662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9663 # Instead, shared libraries are loaded at an image base (0x10000000 by
9664 # default) and relocated if they conflict, which is a slow very memory
9665 # consuming and fragmenting process. To avoid this, we pick a random,
9666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9669 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'
9672 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9674 if test "$host_os" = linux-dietlibc; then
9675 case $cc_basename in
9676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9680 && test "$tmp_diet" = no
9682 tmp_addflag=' $pic_flag'
9683 tmp_sharedflag='-shared'
9684 case $cc_basename,$host_cpu in
9685 pgcc*) # Portland Group C compiler
9686 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'
9687 tmp_addflag=' $pic_flag'
9689 pgf77* | pgf90* | pgf95* | pgfortran*)
9690 # Portland Group f77 and f90 compilers
9691 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'
9692 tmp_addflag=' $pic_flag -Mnomain' ;;
9693 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9694 tmp_addflag=' -i_dynamic' ;;
9695 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9696 tmp_addflag=' -i_dynamic -nofor_main' ;;
9697 ifc* | ifort*) # Intel Fortran compiler
9698 tmp_addflag=' -nofor_main' ;;
9699 lf95*) # Lahey Fortran 8.1
9700 whole_archive_flag_spec=
9701 tmp_sharedflag='--shared' ;;
9702 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9703 tmp_sharedflag='-qmkshrobj'
9705 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
9710 case `$CC -V 2>&1 | sed 5q` in
9711 *Sun\ C*) # Sun C 5.9
9712 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'
9713 compiler_needs_object=yes
9714 tmp_sharedflag='-G' ;;
9715 *Sun\ F*) # Sun Fortran 8.3
9716 tmp_sharedflag='-G' ;;
9718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 if test "x$supports_anon_versioning" = xyes; then
9721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9723 echo "local: *; };" >> $output_objdir/$libname.ver~
9724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9727 case $cc_basename in
9728 xlf* | bgf* | bgxlf* | mpixlf*)
9729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9733 if test "x$supports_anon_versioning" = xyes; then
9734 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9736 echo "local: *; };" >> $output_objdir/$libname.ver~
9737 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9746 netbsd* | netbsdelf*-gnu)
9747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9757 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9762 *** create shared libraries on Solaris systems. Therefore, libtool
9763 *** is disabling shared libraries support. We urge you to upgrade GNU
9764 *** binutils to release 2.9.1 or newer. Another option is to modify
9765 *** your PATH or compiler configuration so that the native linker is
9766 *** used, and then restart.
9769 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9778 case `$LD -v 2>&1` in
9779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9784 *** reliably create shared libraries on SCO systems. Therefore, libtool
9785 *** is disabling shared libraries support. We urge you to upgrade GNU
9786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9787 *** your PATH or compiler configuration so that the native linker is
9788 *** used, and then restart.
9793 # For security reasons, it is highly recommended that you always
9794 # use absolute paths for naming shared libraries, and exclude the
9795 # DT_RUNPATH tag from executables and libraries. But doing so
9796 # requires that you compile everything twice, which is a pain.
9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9809 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825 if test "$ld_shlibs" = no; then
9827 hardcode_libdir_flag_spec=
9828 export_dynamic_flag_spec=
9829 whole_archive_flag_spec=
9832 # PORTME fill in a description of your system's linker (not GNU ld)
9835 allow_undefined_flag=unsupported
9836 always_export_symbols=yes
9837 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'
9838 # Note: this linker hardcodes the directories in LIBPATH if there
9839 # are no directories specified by -L.
9840 hardcode_minus_L=yes
9841 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9842 # Neither direct hardcoding nor static linking is supported with a
9844 hardcode_direct=unsupported
9849 if test "$host_cpu" = ia64; then
9850 # On IA64, the linker does run time linking by default, so we don't
9851 # have to do anything special.
9852 aix_use_runtimelinking=no
9853 exp_sym_flag='-Bexport'
9856 # If we're using GNU nm, then we don't want the "-C" option.
9857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9858 # Also, AIX nm treats weak defined symbols like other global
9859 # defined symbols, whereas GNU nm marks them as "W".
9860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9861 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'
9863 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'
9865 aix_use_runtimelinking=no
9867 # Test if we are trying to use run time linking or normal
9868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9869 # need to do runtime linking.
9870 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9871 for ld_flag in $LDFLAGS; do
9872 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9873 aix_use_runtimelinking=yes
9880 exp_sym_flag='-bexport'
9881 no_entry_flag='-bnoentry'
9884 # When large executables or shared objects are built, AIX ld can
9885 # have problems creating the table of contents. If linking a library
9886 # or program results in "error TOC overflow" add -mminimal-toc to
9887 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9888 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9892 hardcode_direct_absolute=yes
9893 hardcode_libdir_separator=':'
9894 link_all_deplibs=yes
9895 file_list_spec='${wl}-f,'
9897 if test "$GCC" = yes; then
9898 case $host_os in aix4.[012]|aix4.[012].*)
9899 # We only want to do this on AIX 4.2 and lower, the check
9900 # below for broken collect2 doesn't work under 4.3+
9901 collect2name=`${CC} -print-prog-name=collect2`
9902 if test -f "$collect2name" &&
9903 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9905 # We have reworked collect2
9908 # We have old collect2
9909 hardcode_direct=unsupported
9910 # It fails to find uninstalled libraries when the uninstalled
9911 # path is not listed in the libpath. Setting hardcode_minus_L
9912 # to unsupported forces relinking
9913 hardcode_minus_L=yes
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 hardcode_libdir_separator=
9919 shared_flag='-shared'
9920 if test "$aix_use_runtimelinking" = yes; then
9921 shared_flag="$shared_flag "'${wl}-G'
9926 if test "$host_cpu" = ia64; then
9927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9928 # chokes on -Wl,-G. The following line is correct:
9931 if test "$aix_use_runtimelinking" = yes; then
9932 shared_flag='${wl}-G'
9934 shared_flag='${wl}-bM:SRE'
9939 export_dynamic_flag_spec='${wl}-bexpall'
9940 # It seems that -bexpall does not export symbols beginning with
9941 # underscore (_), so it is better to generate a list of symbols to export.
9942 always_export_symbols=yes
9943 if test "$aix_use_runtimelinking" = yes; then
9944 # Warning - without using the other runtime loading flags (-brtl),
9945 # -berok will link without error, but may produce a broken library.
9946 allow_undefined_flag='-berok'
9947 # Determine the default libpath from the value encoded in an
9949 if test "${lt_cv_aix_libpath+set}" = set; then
9950 aix_libpath=$lt_cv_aix_libpath
9952 if ${lt_cv_aix_libpath_+:} false; then :
9953 $as_echo_n "(cached) " >&6
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9966 if ac_fn_c_try_link "$LINENO"; then :
9968 lt_aix_libpath_sed='
9969 /Import File Strings/,/^$/ {
9971 s/^0 *\([^ ]*\) *$/\1/
9975 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9976 # Check for a 64-bit object if we didn't find anything.
9977 if test -z "$lt_cv_aix_libpath_"; then
9978 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 if test -z "$lt_cv_aix_libpath_"; then
9984 lt_cv_aix_libpath_="/usr/lib:/lib"
9989 aix_libpath=$lt_cv_aix_libpath_
9992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9993 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"
9995 if test "$host_cpu" = ia64; then
9996 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9997 allow_undefined_flag="-z nodefs"
9998 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"
10000 # Determine the default libpath from the value encoded in an
10001 # empty executable.
10002 if test "${lt_cv_aix_libpath+set}" = set; then
10003 aix_libpath=$lt_cv_aix_libpath
10005 if ${lt_cv_aix_libpath_+:} false; then :
10006 $as_echo_n "(cached) " >&6
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10019 if ac_fn_c_try_link "$LINENO"; then :
10021 lt_aix_libpath_sed='
10022 /Import File Strings/,/^$/ {
10024 s/^0 *\([^ ]*\) *$/\1/
10028 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029 # Check for a 64-bit object if we didn't find anything.
10030 if test -z "$lt_cv_aix_libpath_"; then
10031 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$lt_cv_aix_libpath_"; then
10037 lt_cv_aix_libpath_="/usr/lib:/lib"
10042 aix_libpath=$lt_cv_aix_libpath_
10045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10046 # Warning - without using the other run time loading flags,
10047 # -berok will link without error, but may produce a broken library.
10048 no_undefined_flag=' ${wl}-bernotok'
10049 allow_undefined_flag=' ${wl}-berok'
10050 if test "$with_gnu_ld" = yes; then
10051 # We only use this code for GNU lds that support --whole-archive.
10052 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10054 # Exported symbols can be pulled into shared objects from archives
10055 whole_archive_flag_spec='$convenience'
10057 archive_cmds_need_lc=yes
10058 # This is similar to how AIX traditionally builds its shared libraries.
10059 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'
10067 # see comment about AmigaOS4 .so support
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 archive_expsym_cmds=''
10072 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)'
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_minus_L=yes
10080 export_dynamic_flag_spec=-rdynamic
10083 cygwin* | mingw* | pw32* | cegcc*)
10084 # When not using gcc, we currently assume that we are using
10085 # Microsoft Visual C++.
10086 # hardcode_libdir_flag_spec is actually meaningless, as there is
10087 # no search path for DLLs.
10088 case $cc_basename in
10091 hardcode_libdir_flag_spec=' '
10092 allow_undefined_flag=unsupported
10093 always_export_symbols=yes
10095 # Tell ltmain to make .lib files, not .a files.
10097 # Tell ltmain to make .dll files, not .so files.
10099 # FIXME: Setting linknames here is a bad hack.
10100 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10102 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10104 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10106 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10108 # The linker will not automatically build a static lib if we build a DLL.
10109 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10110 enable_shared_with_static_runtimes=yes
10111 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10114 old_postinstall_cmds='chmod 644 $oldlib'
10115 postlink_cmds='lt_outputfile="@OUTPUT@"~
10116 lt_tool_outputfile="@TOOL_OUTPUT@"~
10117 case $lt_outputfile in
10120 lt_outputfile="$lt_outputfile.exe"
10121 lt_tool_outputfile="$lt_tool_outputfile.exe"
10124 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10125 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10126 $RM "$lt_outputfile.manifest";
10130 # Assume MSVC wrapper
10131 hardcode_libdir_flag_spec=' '
10132 allow_undefined_flag=unsupported
10133 # Tell ltmain to make .lib files, not .a files.
10135 # Tell ltmain to make .dll files, not .so files.
10137 # FIXME: Setting linknames here is a bad hack.
10138 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10139 # The linker will automatically build a .lib file if we build a DLL.
10140 old_archive_from_new_cmds='true'
10141 # FIXME: Should let the user specify the lib program.
10142 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10143 enable_shared_with_static_runtimes=yes
10148 darwin* | rhapsody*)
10151 archive_cmds_need_lc=no
10153 hardcode_automatic=yes
10154 hardcode_shlibpath_var=unsupported
10155 if test "$lt_cv_ld_force_load" = "yes"; then
10156 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\"`'
10159 whole_archive_flag_spec=''
10161 link_all_deplibs=yes
10162 allow_undefined_flag="$_lt_dar_allow_undefined"
10163 case $cc_basename in
10164 ifort*) _lt_dar_can_shared=yes ;;
10165 *) _lt_dar_can_shared=$GCC ;;
10167 if test "$_lt_dar_can_shared" = "yes"; then
10168 output_verbose_link_cmd=func_echo_all
10169 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10170 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10171 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}"
10172 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}"
10181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_shlibpath_var=no
10186 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10187 # support. Future versions do this automatically, but an explicit c++rt0.o
10188 # does not break anything, and helps significantly (at the cost of a little
10191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10192 hardcode_libdir_flag_spec='-R$libdir'
10193 hardcode_direct=yes
10194 hardcode_shlibpath_var=no
10197 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=yes
10201 hardcode_minus_L=yes
10202 hardcode_shlibpath_var=no
10205 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10206 freebsd* | dragonfly*)
10207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10214 if test "$GCC" = yes; then
10215 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'
10217 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'
10219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10220 hardcode_libdir_separator=:
10221 hardcode_direct=yes
10223 # hardcode_minus_L: Not really in the search PATH,
10224 # but as the default location of the library.
10225 hardcode_minus_L=yes
10226 export_dynamic_flag_spec='${wl}-E'
10230 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10231 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10235 if test "$with_gnu_ld" = no; then
10236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10237 hardcode_libdir_separator=:
10238 hardcode_direct=yes
10239 hardcode_direct_absolute=yes
10240 export_dynamic_flag_spec='${wl}-E'
10241 # hardcode_minus_L: Not really in the search PATH,
10242 # but as the default location of the library.
10243 hardcode_minus_L=yes
10248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10251 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10270 # Older versions of the 11.00 compiler do not understand -b yet
10271 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10273 $as_echo_n "checking if $CC understands -b... " >&6; }
10274 if ${lt_cv_prog_compiler__b+:} false; then :
10275 $as_echo_n "(cached) " >&6
10277 lt_cv_prog_compiler__b=no
10278 save_LDFLAGS="$LDFLAGS"
10279 LDFLAGS="$LDFLAGS -b"
10280 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10282 # The linker can only warn and ignore the option if not recognized
10283 # So say no if there are warnings
10284 if test -s conftest.err; then
10285 # Append any errors to the config.log.
10286 cat conftest.err 1>&5
10287 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10289 if diff conftest.exp conftest.er2 >/dev/null; then
10290 lt_cv_prog_compiler__b=yes
10293 lt_cv_prog_compiler__b=yes
10297 LDFLAGS="$save_LDFLAGS"
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10301 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10303 if test x"$lt_cv_prog_compiler__b" = xyes; then
10304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10312 if test "$with_gnu_ld" = no; then
10313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10314 hardcode_libdir_separator=:
10319 hardcode_shlibpath_var=no
10322 hardcode_direct=yes
10323 hardcode_direct_absolute=yes
10324 export_dynamic_flag_spec='${wl}-E'
10326 # hardcode_minus_L: Not really in the search PATH,
10327 # but as the default location of the library.
10328 hardcode_minus_L=yes
10334 irix5* | irix6* | nonstopux*)
10335 if test "$GCC" = yes; then
10336 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'
10337 # Try to use the -exported_symbol ld option, if it does not
10338 # work, assume that -exports_file does not work either and
10339 # implicitly export all symbols.
10340 # This should be the same for all languages, so no per-tag cache variable.
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10342 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10343 if ${lt_cv_irix_exported_symbol+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 save_LDFLAGS="$LDFLAGS"
10347 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 int foo (void) { return 0; }
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 lt_cv_irix_exported_symbol=yes
10355 lt_cv_irix_exported_symbol=no
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LDFLAGS="$save_LDFLAGS"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10362 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10363 if test "$lt_cv_irix_exported_symbol" = yes; then
10364 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'
10367 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'
10368 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'
10370 archive_cmds_need_lc='no'
10371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10372 hardcode_libdir_separator=:
10374 link_all_deplibs=yes
10377 netbsd* | netbsdelf*-gnu)
10378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10381 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct=yes
10391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392 hardcode_libdir_separator=:
10393 hardcode_shlibpath_var=no
10400 if test -f /usr/libexec/ld.so; then
10401 hardcode_direct=yes
10402 hardcode_shlibpath_var=no
10403 hardcode_direct_absolute=yes
10404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408 export_dynamic_flag_spec='${wl}-E'
10411 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10413 hardcode_libdir_flag_spec='-R$libdir'
10416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_minus_L=yes
10429 allow_undefined_flag=unsupported
10430 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'
10431 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10435 if test "$GCC" = yes; then
10436 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10437 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'
10439 allow_undefined_flag=' -expect_unresolved \*'
10440 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'
10442 archive_cmds_need_lc='no'
10443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444 hardcode_libdir_separator=:
10447 osf4* | osf5*) # as osf3* with the addition of -msym flag
10448 if test "$GCC" = yes; then
10449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10450 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'
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10453 allow_undefined_flag=' -expect_unresolved \*'
10454 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'
10455 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~
10456 $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'
10458 # Both c and cxx compiler support -rpath directly
10459 hardcode_libdir_flag_spec='-rpath $libdir'
10461 archive_cmds_need_lc='no'
10462 hardcode_libdir_separator=:
10466 no_undefined_flag=' -z defs'
10467 if test "$GCC" = yes; then
10469 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471 $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'
10473 case `$CC -V 2>&1` in
10476 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10482 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10484 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10488 hardcode_libdir_flag_spec='-R$libdir'
10489 hardcode_shlibpath_var=no
10491 solaris2.[0-5] | solaris2.[0-5].*) ;;
10493 # The compiler driver will combine and reorder linker options,
10494 # but understands `-z linker_flag'. GCC discards it without `$wl',
10495 # but is careful enough not to reorder.
10496 # Supported since Solaris 2.6 (maybe 2.5.1?)
10497 if test "$GCC" = yes; then
10498 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10500 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10504 link_all_deplibs=yes
10508 if test "x$host_vendor" = xsequent; then
10509 # Use $CC to link under sequent, because it throws in some extra .o
10510 # files that make .init and .fini sections work.
10511 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10515 hardcode_libdir_flag_spec='-L$libdir'
10516 hardcode_direct=yes
10517 hardcode_minus_L=yes
10518 hardcode_shlibpath_var=no
10522 case $host_vendor in
10524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_direct=yes # is this really true???
10528 ## LD is ld it makes a PLAMLIB
10529 ## CC just makes a GrossModule.
10530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10531 reload_cmds='$CC -r -o $output$reload_objs'
10535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10539 runpath_var='LD_RUN_PATH'
10540 hardcode_shlibpath_var=no
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_shlibpath_var=no
10546 export_dynamic_flag_spec='-Bexport'
10550 if test -d /usr/nec; then
10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_shlibpath_var=no
10553 runpath_var=LD_RUN_PATH
10554 hardcode_runpath_var=yes
10559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10560 no_undefined_flag='${wl}-z,text'
10561 archive_cmds_need_lc=no
10562 hardcode_shlibpath_var=no
10563 runpath_var='LD_RUN_PATH'
10565 if test "$GCC" = yes; then
10566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10574 sysv5* | sco3.2v5* | sco5v6*)
10575 # Note: We can NOT use -z defs as we might desire, because we do not
10576 # link with -lc, and that would cause any symbols used from libc to
10577 # always be unresolved, which means just about no library would
10578 # ever link correctly. If we're not using GNU ld we use -z text
10579 # though, which does catch some bad symbols but isn't as heavy-handed
10581 no_undefined_flag='${wl}-z,text'
10582 allow_undefined_flag='${wl}-z,nodefs'
10583 archive_cmds_need_lc=no
10584 hardcode_shlibpath_var=no
10585 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10586 hardcode_libdir_separator=':'
10587 link_all_deplibs=yes
10588 export_dynamic_flag_spec='${wl}-Bexport'
10589 runpath_var='LD_RUN_PATH'
10591 if test "$GCC" = yes; then
10592 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10596 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_libdir_flag_spec='-L$libdir'
10603 hardcode_shlibpath_var=no
10611 if test x$host_vendor = xsni; then
10613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10614 export_dynamic_flag_spec='${wl}-Blargedynsym'
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10621 $as_echo "$ld_shlibs" >&6; }
10622 test "$ld_shlibs" = no && can_build_shared=no
10624 with_gnu_ld=$with_gnu_ld
10641 # Do we need to explicitly link libc?
10643 case "x$archive_cmds_need_lc" in
10645 # Assume -lc should be added
10646 archive_cmds_need_lc=yes
10648 if test "$enable_shared" = yes && test "$GCC" = yes; then
10649 case $archive_cmds in
10651 # FIXME: we may have to deal with multi-command sequences.
10654 # Test whether the compiler implicitly links with -lc since on some
10655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10656 # to ld, don't add -lc before -lgcc.
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10658 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10659 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10660 $as_echo_n "(cached) " >&6
10663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10666 (eval $ac_compile) 2>&5
10668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669 test $ac_status = 0; } 2>conftest.err; then
10672 libobjs=conftest.$ac_objext
10674 wl=$lt_prog_compiler_wl
10675 pic_flag=$lt_prog_compiler_pic
10681 lt_save_allow_undefined_flag=$allow_undefined_flag
10682 allow_undefined_flag=
10683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10684 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687 test $ac_status = 0; }
10689 lt_cv_archive_cmds_need_lc=no
10691 lt_cv_archive_cmds_need_lc=yes
10693 allow_undefined_flag=$lt_save_allow_undefined_flag
10695 cat conftest.err 1>&5
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10701 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10702 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10861 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10863 if test "$GCC" = yes; then
10865 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10866 *) lt_awk_arg="/^libraries:/" ;;
10869 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10870 *) lt_sed_strip_eq="s,=/,/,g" ;;
10872 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10873 case $lt_search_path_spec in
10875 # if the path contains ";" then we assume it to be the separator
10876 # otherwise default to the standard path separator (i.e. ":") - it is
10877 # assumed that no part of a normal pathname contains ";" but that should
10878 # okay in the real world where ";" in dirpaths is itself problematic.
10879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10885 # Ok, now we have the path, separated by spaces, we can step through it
10886 # and add multilib dir if necessary.
10887 lt_tmp_lt_search_path_spec=
10888 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10889 for lt_sys_path in $lt_search_path_spec; do
10890 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10891 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10893 test -d "$lt_sys_path" && \
10894 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10897 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10898 BEGIN {RS=" "; FS="/|\n";} {
10901 for (lt_i = NF; lt_i > 0; lt_i--) {
10902 if ($lt_i != "" && $lt_i != ".") {
10903 if ($lt_i == "..") {
10906 if (lt_count == 0) {
10907 lt_foo="/" $lt_i lt_foo;
10914 if (lt_foo != "") { lt_freq[lt_foo]++; }
10915 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10917 # AWK program above erroneously prepends '/' to C:/dos/paths
10920 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10921 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10923 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10927 library_names_spec=
10928 libname_spec='lib$name'
10932 postuninstall_cmds=
10936 shlibpath_overrides_runpath=unknown
10938 dynamic_linker="$host_os ld.so"
10939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10940 need_lib_prefix=unknown
10941 hardcode_into_libs=no
10943 # when you set need_version to no, make sure it does not cause -set_version
10944 # flags to be left without arguments
10945 need_version=unknown
10949 version_type=linux # correct to gnu/linux during the next big refactor
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10951 shlibpath_var=LIBPATH
10953 # AIX 3 has no versioning support, so we append a major version to the name.
10954 soname_spec='${libname}${release}${shared_ext}$major'
10958 version_type=linux # correct to gnu/linux during the next big refactor
10961 hardcode_into_libs=yes
10962 if test "$host_cpu" = ia64; then
10963 # AIX 5 supports IA64
10964 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10965 shlibpath_var=LD_LIBRARY_PATH
10967 # With GCC up to 2.95.x, collect2 would create an import file
10968 # for dependence libraries. The import file would start with
10969 # the line `#! .'. This would cause the generated library to
10970 # depend on `.', always an invalid library. This was fixed in
10971 # development snapshots of GCC prior to 3.0.
10973 aix4 | aix4.[01] | aix4.[01].*)
10974 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10976 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10979 can_build_shared=no
10983 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10984 # soname into executable. Probably we can add versioning support to
10985 # collect2, so additional links can be useful in future.
10986 if test "$aix_use_runtimelinking" = yes; then
10987 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988 # instead of lib<name>.a to let people know that these are not
10989 # typical AIX shared libraries.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 # We preserve .a as extension for shared libraries through AIX4.2
10993 # and later when we are not doing run time linking.
10994 library_names_spec='${libname}${release}.a $libname.a'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LIBPATH
11004 # Since July 2007 AmigaOS4 officially supports .so libraries.
11005 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 library_names_spec='$libname.ixlibrary $libname.a'
11010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11011 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'
11017 library_names_spec='${libname}${shared_ext}'
11018 dynamic_linker="$host_os ld.so"
11019 shlibpath_var=LIBRARY_PATH
11023 version_type=linux # correct to gnu/linux during the next big refactor
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11031 # the default ld.so.conf also contains /usr/contrib/lib and
11032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11033 # libtool to hard-code these into programs
11036 cygwin* | mingw* | pw32* | cegcc*)
11037 version_type=windows
11042 case $GCC,$cc_basename in
11045 library_names_spec='$libname.dll.a'
11046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11047 postinstall_cmds='base_file=`basename \${file}`~
11048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11049 dldir=$destdir/`dirname \$dlpath`~
11050 test -d \$dldir || mkdir -p \$dldir~
11051 $install_prog $dir/$dlname \$dldir/$dlname~
11052 chmod a+x \$dldir/$dlname~
11053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11057 dlpath=$dir/\$dldll~
11059 shlibpath_overrides_runpath=yes
11063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11069 # MinGW DLLs use traditional 'lib' prefix
11070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11073 # pw32 DLLs use 'pw' prefix rather than 'lib'
11074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11077 dynamic_linker='Win32 ld.exe'
11082 libname_spec='$name'
11083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11084 library_names_spec='${libname}.dll.lib'
11088 sys_lib_search_path_spec=
11091 for lt_path in $LIB
11094 # Let DOS variable expansion print the short 8.3 style file name.
11095 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11096 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11099 # Convert to MSYS style.
11100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11103 # Convert to unix form, then to dos form, then back to unix form
11104 # but this time dos style (no spaces!) so that the unix form looks
11105 # like /cygdrive/c/PROGRA~1:/cygdr...
11106 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11107 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11108 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11111 sys_lib_search_path_spec="$LIB"
11112 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11113 # It is most probably a Windows format PATH.
11114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11118 # FIXME: find the short name or the path components, as spaces are
11119 # common. (e.g. "Program Files" -> "PROGRA~1")
11123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124 postinstall_cmds='base_file=`basename \${file}`~
11125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11126 dldir=$destdir/`dirname \$dlpath`~
11127 test -d \$dldir || mkdir -p \$dldir~
11128 $install_prog $dir/$dlname \$dldir/$dlname'
11129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11130 dlpath=$dir/\$dldll~
11132 shlibpath_overrides_runpath=yes
11133 dynamic_linker='Win32 link.exe'
11137 # Assume MSVC wrapper
11138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11139 dynamic_linker='Win32 ld.exe'
11142 # FIXME: first we should search . and the directory the executable is in
11146 darwin* | rhapsody*)
11147 dynamic_linker="$host_os dyld"
11148 version_type=darwin
11151 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11152 soname_spec='${libname}${release}${major}$shared_ext'
11153 shlibpath_overrides_runpath=yes
11154 shlibpath_var=DYLD_LIBRARY_PATH
11155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11162 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11170 freebsd* | dragonfly*)
11171 # DragonFly does not have aout. When/if they implement a new
11172 # versioning mechanism, adjust this.
11173 if test -x /usr/bin/objformat; then
11174 objformat=`/usr/bin/objformat`
11177 freebsd[23].*) objformat=aout ;;
11178 *) objformat=elf ;;
11181 version_type=freebsd-$objformat
11182 case $version_type in
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11193 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11198 freebsd3.[01]* | freebsdelf3.[01]*)
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11207 *) # from 4.6 on, and DragonFly
11208 shlibpath_overrides_runpath=yes
11209 hardcode_into_libs=yes
11215 version_type=linux # correct to gnu/linux during the next big refactor
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=no
11222 hardcode_into_libs=yes
11226 version_type=linux # correct to gnu/linux during the next big refactor
11229 dynamic_linker="$host_os runtime_loader"
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 shlibpath_var=LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11235 hardcode_into_libs=yes
11238 hpux9* | hpux10* | hpux11*)
11239 # Give a soname corresponding to the major version so that dld.sl refuses to
11240 # link against other versions.
11247 hardcode_into_libs=yes
11248 dynamic_linker="$host_os dld.so"
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 if test "X$HPUX_IA64_MODE" = X32; then
11254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11262 hardcode_into_libs=yes
11263 dynamic_linker="$host_os dld.sl"
11264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11273 dynamic_linker="$host_os dld.sl"
11274 shlibpath_var=SHLIB_PATH
11275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277 soname_spec='${libname}${release}${shared_ext}$major'
11280 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11281 postinstall_cmds='chmod 555 $lib'
11282 # or fails outright, so override atomically:
11283 install_override_mode=555
11287 version_type=linux # correct to gnu/linux during the next big refactor
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11295 hardcode_into_libs=yes
11298 irix5* | irix6* | nonstopux*)
11300 nonstopux*) version_type=nonstopux ;;
11302 if test "$lt_cv_prog_gnu_ld" = yes; then
11303 version_type=linux # correct to gnu/linux during the next big refactor
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11313 irix5* | nonstopux*)
11314 libsuff= shlibsuff=
11317 case $LD in # libtool.m4 will add one of these switches to LD
11318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11319 libsuff= shlibsuff= libmagic=32-bit;;
11320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11321 libsuff=32 shlibsuff=N32 libmagic=N32;;
11322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11324 *) libsuff= shlibsuff= libmagic=never-match;;
11328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11329 shlibpath_overrides_runpath=no
11330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11332 hardcode_into_libs=yes
11335 # No shared lib support for Linux oldld, aout, or coff.
11336 linux*oldld* | linux*aout* | linux*coff*)
11340 # This must be glibc/ELF.
11341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11342 version_type=linux # correct to gnu/linux during the next big refactor
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=no
11351 # Some binutils ld are patched to set DT_RUNPATH
11352 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 lt_cv_shlibpath_overrides_runpath=no
11356 save_LDFLAGS=$LDFLAGS
11357 save_libdir=$libdir
11358 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11359 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11371 if ac_fn_c_try_link "$LINENO"; then :
11372 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11373 lt_cv_shlibpath_overrides_runpath=yes
11376 rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
11378 LDFLAGS=$save_LDFLAGS
11379 libdir=$save_libdir
11383 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11385 # This implies no fast_install, which is unacceptable.
11386 # Some rework will be needed to allow for fast_install
11387 # before this can be enabled.
11388 hardcode_into_libs=yes
11390 # Append ld.so.conf contents to the search path
11391 if test -f /etc/ld.so.conf; then
11392 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' ' '`
11393 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11396 # We used to test for /lib/ld.so.1 and disable shared libraries on
11397 # powerpc, because MkLinux only supported shared libraries with the
11398 # GNU dynamic linker. Since this was broken with cross compilers,
11399 # most powerpc-linux boxes support dynamic linking these days and
11400 # people can always --disable-shared, the test was removed, and we
11401 # assume the GNU/Linux dynamic linker is in use.
11402 dynamic_linker='GNU/Linux ld.so'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=no
11413 hardcode_into_libs=yes
11414 dynamic_linker='NetBSD ld.elf_so'
11421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11424 dynamic_linker='NetBSD (a.out) ld.so'
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11428 dynamic_linker='NetBSD ld.elf_so'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=yes
11432 hardcode_into_libs=yes
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=yes
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 hardcode_into_libs=yes
11451 dynamic_linker='ldqnx.so'
11456 sys_lib_dlsearch_path_spec="/usr/lib"
11458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11461 *) need_version=no ;;
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11468 openbsd2.[89] | openbsd2.[89].*)
11469 shlibpath_overrides_runpath=no
11472 shlibpath_overrides_runpath=yes
11476 shlibpath_overrides_runpath=yes
11481 libname_spec='$name'
11484 library_names_spec='$libname${shared_ext} $libname.a'
11485 dynamic_linker='OS/2 ld.exe'
11486 shlibpath_var=LIBPATH
11489 osf3* | osf4* | osf5*)
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11505 version_type=linux # correct to gnu/linux during the next big refactor
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 # ldd complains unless libraries are executable
11514 postinstall_cmds='chmod +x $lib'
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 if test "$with_gnu_ld" = yes; then
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 case $host_vendor in
11536 shlibpath_overrides_runpath=no
11538 runpath_var=LD_RUN_PATH
11546 shlibpath_overrides_runpath=no
11547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11553 if test -d /usr/nec ;then
11554 version_type=linux # correct to gnu/linux during the next big refactor
11555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11556 soname_spec='$libname${shared_ext}.$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11562 version_type=freebsd-elf
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 if test "$with_gnu_ld" = yes; then
11571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11580 sys_lib_dlsearch_path_spec='/usr/lib'
11584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11585 version_type=linux # correct to gnu/linux during the next big refactor
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=no
11591 hardcode_into_libs=yes
11595 version_type=linux # correct to gnu/linux during the next big refactor
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11606 $as_echo "$dynamic_linker" >&6; }
11607 test "$dynamic_linker" = no && can_build_shared=no
11609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11610 if test "$GCC" = yes; then
11611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11618 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11715 if test -n "$hardcode_libdir_flag_spec" ||
11716 test -n "$runpath_var" ||
11717 test "X$hardcode_automatic" = "Xyes" ; then
11719 # We can hardcode non-existent directories.
11720 if test "$hardcode_direct" != no &&
11721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11722 # have to relink, otherwise we might link with an installed library
11723 # when we should be linking with a yet-to-be-installed one
11724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11725 test "$hardcode_minus_L" != no; then
11726 # Linking always hardcodes the temporary library directory.
11727 hardcode_action=relink
11729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11730 hardcode_action=immediate
11733 # We cannot hardcode anything, or else we can only hardcode existing
11735 hardcode_action=unsupported
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11738 $as_echo "$hardcode_action" >&6; }
11740 if test "$hardcode_action" = relink ||
11741 test "$inherit_rpath" = yes; then
11742 # Fast installation is not supported
11743 enable_fast_install=no
11744 elif test "$shlibpath_overrides_runpath" = yes ||
11745 test "$enable_shared" = no; then
11746 # Fast installation is not necessary
11747 enable_fast_install=needless
11755 if test "x$enable_dlopen" != xyes; then
11756 enable_dlopen=unknown
11757 enable_dlopen_self=unknown
11758 enable_dlopen_self_static=unknown
11765 lt_cv_dlopen="load_add_on"
11767 lt_cv_dlopen_self=yes
11770 mingw* | pw32* | cegcc*)
11771 lt_cv_dlopen="LoadLibrary"
11776 lt_cv_dlopen="dlopen"
11781 # if libdl is installed we need to link against it
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11784 if ${ac_cv_lib_dl_dlopen+:} false; then :
11785 $as_echo_n "(cached) " >&6
11787 ac_check_lib_save_LIBS=$LIBS
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_dl_dlopen=yes
11810 ac_cv_lib_dl_dlopen=no
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11818 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11822 lt_cv_dlopen="dyld"
11824 lt_cv_dlopen_self=yes
11831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11832 if test "x$ac_cv_func_shl_load" = xyes; then :
11833 lt_cv_dlopen="shl_load"
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11837 if ${ac_cv_lib_dld_shl_load+:} false; then :
11838 $as_echo_n "(cached) " >&6
11840 ac_check_lib_save_LIBS=$LIBS
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11855 return shl_load ();
11860 if ac_fn_c_try_link "$LINENO"; then :
11861 ac_cv_lib_dld_shl_load=yes
11863 ac_cv_lib_dld_shl_load=no
11865 rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867 LIBS=$ac_check_lib_save_LIBS
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11871 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11875 if test "x$ac_cv_func_dlopen" = xyes; then :
11876 lt_cv_dlopen="dlopen"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11880 if ${ac_cv_lib_dl_dlopen+:} false; then :
11881 $as_echo_n "(cached) " >&6
11883 ac_check_lib_save_LIBS=$LIBS
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_dl_dlopen=yes
11906 ac_cv_lib_dl_dlopen=no
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11919 if ${ac_cv_lib_svld_dlopen+:} false; then :
11920 $as_echo_n "(cached) " >&6
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lsvld $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_svld_dlopen=yes
11945 ac_cv_lib_svld_dlopen=no
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11953 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11958 if ${ac_cv_lib_dld_dld_link+:} false; then :
11959 $as_echo_n "(cached) " >&6
11961 ac_check_lib_save_LIBS=$LIBS
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11976 return dld_link ();
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_dld_dld_link=yes
11984 ac_cv_lib_dld_dld_link=no
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11992 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12014 if test "x$lt_cv_dlopen" != xno; then
12020 case $lt_cv_dlopen in
12022 save_CPPFLAGS="$CPPFLAGS"
12023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12025 save_LDFLAGS="$LDFLAGS"
12026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12029 LIBS="$lt_cv_dlopen_libs $LIBS"
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12033 if ${lt_cv_dlopen_self+:} false; then :
12034 $as_echo_n "(cached) " >&6
12036 if test "$cross_compiling" = yes; then :
12037 lt_cv_dlopen_self=cross
12039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12040 lt_status=$lt_dlunknown
12041 cat > conftest.$ac_ext <<_LT_EOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12052 # define LT_DLGLOBAL RTLD_GLOBAL
12055 # define LT_DLGLOBAL DL_GLOBAL
12057 # define LT_DLGLOBAL 0
12061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12062 find out it does not work in some platform. */
12063 #ifndef LT_DLLAZY_OR_NOW
12065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12068 # define LT_DLLAZY_OR_NOW DL_LAZY
12071 # define LT_DLLAZY_OR_NOW RTLD_NOW
12074 # define LT_DLLAZY_OR_NOW DL_NOW
12076 # define LT_DLLAZY_OR_NOW 0
12083 /* When -fvisbility=hidden is used, assume the code has been annotated
12084 correspondingly for the symbols needed. */
12085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12086 int fnord () __attribute__((visibility("default")));
12089 int fnord () { return 42; }
12092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12093 int status = $lt_dlunknown;
12097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12101 else puts (dlerror ());
12103 /* dlclose (self); */
12111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12112 (eval $ac_link) 2>&5
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12116 (./conftest; exit; ) >&5 2>/dev/null
12118 case x$lt_status in
12119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12124 # compilation failed
12125 lt_cv_dlopen_self=no
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12133 $as_echo "$lt_cv_dlopen_self" >&6; }
12135 if test "x$lt_cv_dlopen_self" = xyes; then
12136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12139 if ${lt_cv_dlopen_self_static+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 if test "$cross_compiling" = yes; then :
12143 lt_cv_dlopen_self_static=cross
12145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146 lt_status=$lt_dlunknown
12147 cat > conftest.$ac_ext <<_LT_EOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12158 # define LT_DLGLOBAL RTLD_GLOBAL
12161 # define LT_DLGLOBAL DL_GLOBAL
12163 # define LT_DLGLOBAL 0
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168 find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12174 # define LT_DLLAZY_OR_NOW DL_LAZY
12177 # define LT_DLLAZY_OR_NOW RTLD_NOW
12180 # define LT_DLLAZY_OR_NOW DL_NOW
12182 # define LT_DLLAZY_OR_NOW 0
12189 /* When -fvisbility=hidden is used, assume the code has been annotated
12190 correspondingly for the symbols needed. */
12191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12192 int fnord () __attribute__((visibility("default")));
12195 int fnord () { return 42; }
12198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199 int status = $lt_dlunknown;
12203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12207 else puts (dlerror ());
12209 /* dlclose (self); */
12217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12218 (eval $ac_link) 2>&5
12220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12222 (./conftest; exit; ) >&5 2>/dev/null
12224 case x$lt_status in
12225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12230 # compilation failed
12231 lt_cv_dlopen_self_static=no
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12242 CPPFLAGS="$save_CPPFLAGS"
12243 LDFLAGS="$save_LDFLAGS"
12248 case $lt_cv_dlopen_self in
12249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12250 *) enable_dlopen_self=unknown ;;
12253 case $lt_cv_dlopen_self_static in
12254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12255 *) enable_dlopen_self_static=unknown ;;
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12285 # FIXME - insert some real tests, host_os isn't really good enough
12288 if test -n "$STRIP" ; then
12289 striplib="$STRIP -x"
12290 old_striplib="$STRIP -S"
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12316 # Report which library types will actually be built
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12320 $as_echo "$can_build_shared" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12323 $as_echo_n "checking whether to build shared libraries... " >&6; }
12324 test "$can_build_shared" = "no" && enable_shared=no
12326 # On AIX, shared libraries and static libraries use the same namespace, and
12327 # are all built from PIC.
12330 test "$enable_shared" = yes && enable_static=no
12331 if test -n "$RANLIB"; then
12332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12333 postinstall_cmds='$RANLIB $lib'
12338 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12339 test "$enable_shared" = yes && enable_static=no
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12344 $as_echo "$enable_shared" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12347 $as_echo_n "checking whether to build static libraries... " >&6; }
12348 # Make sure either enable_shared or enable_static is yes.
12349 test "$enable_shared" = yes || enable_static=yes
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12351 $as_echo "$enable_static" >&6; }
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379 ac_config_commands="$ac_config_commands libtool"
12384 # Only expand once:
12388 # Check whether --enable-optimization was given.
12389 if test "${enable_optimization+set}" = set; then :
12390 enableval=$enable_optimization;
12391 if (test "${enableval}" = "no"); then
12392 CFLAGS="$CFLAGS -O0"
12398 # Check whether --enable-debug was given.
12399 if test "${enable_debug+set}" = set; then :
12400 enableval=$enable_debug;
12401 if (test "${enableval}" = "yes" &&
12402 test "${ac_cv_prog_cc_g}" = "yes"); then
12403 CFLAGS="$CFLAGS -g"
12409 # Check whether --enable-test was given.
12410 if test "${enable_test+set}" = set; then :
12411 enableval=$enable_test; enable_test=${enableval}
12414 if test "${enable_test}" = "yes"; then
12423 # Check whether --enable-pie was given.
12424 if test "${enable_pie+set}" = set; then :
12425 enableval=$enable_pie;
12426 if (test "${enableval}" = "yes" &&
12427 test "${ac_cv_prog_cc_pie}" = "yes"); then
12428 CFLAGS="$CFLAGS -fPIE"
12429 LDFLAGS="$LDFLAGS -pie"
12435 # Check whether --enable-threads was given.
12436 if test "${enable_threads+set}" = set; then :
12437 enableval=$enable_threads; enable_threads=${enableval}
12441 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12442 if test "x$ac_cv_func_signalfd" = xyes; then :
12445 as_fn_error $? "signalfd support is required" "$LINENO" 5
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12451 if ${ac_cv_lib_dl_dlopen+:} false; then :
12452 $as_echo_n "(cached) " >&6
12454 ac_check_lib_save_LIBS=$LIBS
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 ac_cv_lib_dl_dlopen=yes
12477 ac_cv_lib_dl_dlopen=no
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12481 LIBS=$ac_check_lib_save_LIBS
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12484 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12485 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12488 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12495 $as_echo_n "checking for GLIB... " >&6; }
12497 if test -n "$GLIB_CFLAGS"; then
12498 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12499 elif test -n "$PKG_CONFIG"; then
12500 if test -n "$PKG_CONFIG" && \
12501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12502 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12505 test $ac_status = 0; }; then
12506 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12507 test "x$?" != "x0" && pkg_failed=yes
12514 if test -n "$GLIB_LIBS"; then
12515 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12516 elif test -n "$PKG_CONFIG"; then
12517 if test -n "$PKG_CONFIG" && \
12518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12519 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; }; then
12523 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12524 test "x$?" != "x0" && pkg_failed=yes
12534 if test $pkg_failed = yes; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12539 _pkg_short_errors_supported=yes
12541 _pkg_short_errors_supported=no
12543 if test $_pkg_short_errors_supported = yes; then
12544 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12546 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12548 # Put the nasty error message in config.log where it belongs
12549 echo "$GLIB_PKG_ERRORS" >&5
12551 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12552 elif test $pkg_failed = untried; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12557 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12558 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 $as_echo "yes" >&6; }
12566 if (test "${enable_threads}" = "yes"); then
12568 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12573 $as_echo_n "checking for GTHREAD... " >&6; }
12575 if test -n "$GTHREAD_CFLAGS"; then
12576 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12577 elif test -n "$PKG_CONFIG"; then
12578 if test -n "$PKG_CONFIG" && \
12579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12580 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583 test $ac_status = 0; }; then
12584 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12585 test "x$?" != "x0" && pkg_failed=yes
12592 if test -n "$GTHREAD_LIBS"; then
12593 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12594 elif test -n "$PKG_CONFIG"; then
12595 if test -n "$PKG_CONFIG" && \
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12597 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600 test $ac_status = 0; }; then
12601 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12602 test "x$?" != "x0" && pkg_failed=yes
12612 if test $pkg_failed = yes; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12617 _pkg_short_errors_supported=yes
12619 _pkg_short_errors_supported=no
12621 if test $_pkg_short_errors_supported = yes; then
12622 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12624 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12626 # Put the nasty error message in config.log where it belongs
12627 echo "$GTHREAD_PKG_ERRORS" >&5
12629 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12630 elif test $pkg_failed = untried; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12635 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12636 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12641 GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
12642 GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12648 $as_echo_n "checking for DBUS... " >&6; }
12650 if test -n "$DBUS_CFLAGS"; then
12651 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
12652 elif test -n "$PKG_CONFIG"; then
12653 if test -n "$PKG_CONFIG" && \
12654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12655 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658 test $ac_status = 0; }; then
12659 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.4" 2>/dev/null`
12660 test "x$?" != "x0" && pkg_failed=yes
12667 if test -n "$DBUS_LIBS"; then
12668 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
12669 elif test -n "$PKG_CONFIG"; then
12670 if test -n "$PKG_CONFIG" && \
12671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.4\""; } >&5
12672 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.4") 2>&5
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; }; then
12676 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.4" 2>/dev/null`
12677 test "x$?" != "x0" && pkg_failed=yes
12687 if test $pkg_failed = yes; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12692 _pkg_short_errors_supported=yes
12694 _pkg_short_errors_supported=no
12696 if test $_pkg_short_errors_supported = yes; then
12697 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12699 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.4" 2>&1`
12701 # Put the nasty error message in config.log where it belongs
12702 echo "$DBUS_PKG_ERRORS" >&5
12704 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12705 elif test $pkg_failed = untried; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 as_fn_error $? "D-Bus >= 1.4 is required" "$LINENO" 5
12710 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
12711 DBUS_LIBS=$pkg_cv_DBUS_LIBS
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713 $as_echo "yes" >&6; }
12720 # Check whether --with-dbusconfdir was given.
12721 if test "${with_dbusconfdir+set}" = set; then :
12722 withval=$with_dbusconfdir; path_dbusconf=${withval}
12724 path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
12727 if (test -z "${path_dbusconf}"); then
12728 DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
12730 DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
12735 # Check whether --with-dbusdatadir was given.
12736 if test "${with_dbusdatadir+set}" = set; then :
12737 withval=$with_dbusdatadir; path_dbusdata=${withval}
12739 path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"
12742 if (test -z "${path_dbusdata}"); then
12743 DBUS_DATADIR="${datadir}/dbus-1/system-services"
12745 DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
12750 # Check whether --with-systemdunitdir was given.
12751 if test "${with_systemdunitdir+set}" = set; then :
12752 withval=$with_systemdunitdir; path_systemdunit=${withval}
12754 path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
12757 if (test -n "${path_systemdunit}"); then
12758 SYSTEMD_UNITDIR="${path_systemdunit}"
12761 if test -n "${path_systemdunit}"; then
12770 # Check whether --enable-capng was given.
12771 if test "${enable_capng+set}" = set; then :
12772 enableval=$enable_capng; enable_capng=${enableval}
12775 if (test "${enable_capng}" = "yes"); then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAPNG" >&5
12779 $as_echo_n "checking for CAPNG... " >&6; }
12781 if test -n "$CAPNG_CFLAGS"; then
12782 pkg_cv_CAPNG_CFLAGS="$CAPNG_CFLAGS"
12783 elif test -n "$PKG_CONFIG"; then
12784 if test -n "$PKG_CONFIG" && \
12785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng\""; } >&5
12786 ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
12788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12789 test $ac_status = 0; }; then
12790 pkg_cv_CAPNG_CFLAGS=`$PKG_CONFIG --cflags "libcap-ng" 2>/dev/null`
12791 test "x$?" != "x0" && pkg_failed=yes
12798 if test -n "$CAPNG_LIBS"; then
12799 pkg_cv_CAPNG_LIBS="$CAPNG_LIBS"
12800 elif test -n "$PKG_CONFIG"; then
12801 if test -n "$PKG_CONFIG" && \
12802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap-ng\""; } >&5
12803 ($PKG_CONFIG --exists --print-errors "libcap-ng") 2>&5
12805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806 test $ac_status = 0; }; then
12807 pkg_cv_CAPNG_LIBS=`$PKG_CONFIG --libs "libcap-ng" 2>/dev/null`
12808 test "x$?" != "x0" && pkg_failed=yes
12818 if test $pkg_failed = yes; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12823 _pkg_short_errors_supported=yes
12825 _pkg_short_errors_supported=no
12827 if test $_pkg_short_errors_supported = yes; then
12828 CAPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap-ng" 2>&1`
12830 CAPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap-ng" 2>&1`
12832 # Put the nasty error message in config.log where it belongs
12833 echo "$CAPNG_PKG_ERRORS" >&5
12835 as_fn_error $? "Capabilities library is required" "$LINENO" 5
12836 elif test $pkg_failed = untried; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 as_fn_error $? "Capabilities library is required" "$LINENO" 5
12841 CAPNG_CFLAGS=$pkg_cv_CAPNG_CFLAGS
12842 CAPNG_LIBS=$pkg_cv_CAPNG_LIBS
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12850 $as_echo "#define HAVE_CAPNG 1" >>confdefs.h
12854 # Check whether --enable-udev was given.
12855 if test "${enable_udev+set}" = set; then :
12856 enableval=$enable_udev; enable_udev=${enableval}
12859 if (test "${enable_udev}" != "no"); then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
12863 $as_echo_n "checking for UDEV... " >&6; }
12865 if test -n "$UDEV_CFLAGS"; then
12866 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
12867 elif test -n "$PKG_CONFIG"; then
12868 if test -n "$PKG_CONFIG" && \
12869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12870 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
12875 test "x$?" != "x0" && pkg_failed=yes
12882 if test -n "$UDEV_LIBS"; then
12883 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
12884 elif test -n "$PKG_CONFIG"; then
12885 if test -n "$PKG_CONFIG" && \
12886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
12887 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
12889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12890 test $ac_status = 0; }; then
12891 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
12892 test "x$?" != "x0" && pkg_failed=yes
12902 if test $pkg_failed = yes; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12907 _pkg_short_errors_supported=yes
12909 _pkg_short_errors_supported=no
12911 if test $_pkg_short_errors_supported = yes; then
12912 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
12914 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
12916 # Put the nasty error message in config.log where it belongs
12917 echo "$UDEV_PKG_ERRORS" >&5
12919 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12920 elif test $pkg_failed = untried; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923 as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
12925 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
12926 UDEV_LIBS=$pkg_cv_UDEV_LIBS
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928 $as_echo "yes" >&6; }
12931 UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
12932 if (test -z "${UDEV_DATADIR}"); then
12933 UDEV_DATADIR="${sysconfdir}/udev/rules.d"
12935 UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
12941 if test "${enable_udev}" = "yes"; then
12950 # Check whether --enable-tools was given.
12951 if test "${enable_tools+set}" = set; then :
12952 enableval=$enable_tools; enable_tools=${enableval}
12955 if (test "${enable_tools}" = "yes"); then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
12959 $as_echo_n "checking for USB... " >&6; }
12961 if test -n "$USB_CFLAGS"; then
12962 pkg_cv_USB_CFLAGS="$USB_CFLAGS"
12963 elif test -n "$PKG_CONFIG"; then
12964 if test -n "$PKG_CONFIG" && \
12965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12966 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; }; then
12970 pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
12971 test "x$?" != "x0" && pkg_failed=yes
12978 if test -n "$USB_LIBS"; then
12979 pkg_cv_USB_LIBS="$USB_LIBS"
12980 elif test -n "$PKG_CONFIG"; then
12981 if test -n "$PKG_CONFIG" && \
12982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
12983 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
12985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12986 test $ac_status = 0; }; then
12987 pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
12988 test "x$?" != "x0" && pkg_failed=yes
12998 if test $pkg_failed = yes; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13002 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13003 _pkg_short_errors_supported=yes
13005 _pkg_short_errors_supported=no
13007 if test $_pkg_short_errors_supported = yes; then
13008 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13010 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13012 # Put the nasty error message in config.log where it belongs
13013 echo "$USB_PKG_ERRORS" >&5
13015 as_fn_error $? "USB library is required" "$LINENO" 5
13016 elif test $pkg_failed = untried; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 as_fn_error $? "USB library is required" "$LINENO" 5
13021 USB_CFLAGS=$pkg_cv_USB_CFLAGS
13022 USB_LIBS=$pkg_cv_USB_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 $as_echo "yes" >&6; }
13030 if test "${enable_tools}" = "yes"; then
13039 # Check whether --enable-atmodem was given.
13040 if test "${enable_atmodem+set}" = set; then :
13041 enableval=$enable_atmodem; enable_atmodem=${enableval}
13044 if test "${enable_atmodem}" != "no"; then
13053 # Check whether --enable-cdmamodem was given.
13054 if test "${enable_cdmamodem+set}" = set; then :
13055 enableval=$enable_cdmamodem; enable_cdmamodem=${enableval}
13058 if test "${enable_cdmamodem}" != "no"; then
13060 CDMAMODEM_FALSE='#'
13067 # Check whether --enable-phonesim was given.
13068 if test "${enable_phonesim+set}" = set; then :
13069 enableval=$enable_phonesim; enable_phonesim=${enableval}
13072 if test "${enable_phonesim}" != "no" &&
13073 test "${enable_atmodem}" != "no"; then
13082 # Check whether --enable-isimodem was given.
13083 if test "${enable_isimodem+set}" = set; then :
13084 enableval=$enable_isimodem; enable_isimodem=${enableval}
13087 if test "${enable_isimodem}" != "no"; then
13096 # Check whether --enable-bluetooth was given.
13097 if test "${enable_bluetooth+set}" = set; then :
13098 enableval=$enable_bluetooth; enable_bluetooth=${enableval}
13101 if (test "${enable_bluetooth}" != "no"); then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ" >&5
13105 $as_echo_n "checking for BLUEZ... " >&6; }
13107 if test -n "$BLUEZ_CFLAGS"; then
13108 pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
13109 elif test -n "$PKG_CONFIG"; then
13110 if test -n "$PKG_CONFIG" && \
13111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\""; } >&5
13112 ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115 test $ac_status = 0; }; then
13116 pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 4.30" 2>/dev/null`
13117 test "x$?" != "x0" && pkg_failed=yes
13124 if test -n "$BLUEZ_LIBS"; then
13125 pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
13126 elif test -n "$PKG_CONFIG"; then
13127 if test -n "$PKG_CONFIG" && \
13128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.30\""; } >&5
13129 ($PKG_CONFIG --exists --print-errors "bluez >= 4.30") 2>&5
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; }; then
13133 pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez >= 4.30" 2>/dev/null`
13134 test "x$?" != "x0" && pkg_failed=yes
13144 if test $pkg_failed = yes; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13149 _pkg_short_errors_supported=yes
13151 _pkg_short_errors_supported=no
13153 if test $_pkg_short_errors_supported = yes; then
13154 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bluez >= 4.30" 2>&1`
13156 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bluez >= 4.30" 2>&1`
13158 # Put the nasty error message in config.log where it belongs
13159 echo "$BLUEZ_PKG_ERRORS" >&5
13161 as_fn_error $? "Bluetooth library >= 4.30 is required" "$LINENO" 5
13162 elif test $pkg_failed = untried; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 as_fn_error $? "Bluetooth library >= 4.30 is required" "$LINENO" 5
13167 BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
13168 BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13170 $as_echo "yes" >&6; }
13176 if test "${enable_bluetooth}" != "no"; then
13178 BLUETOOTH_FALSE='#'
13186 # Check whether --with-provisiondb was given.
13187 if test "${with_provisiondb+set}" = set; then :
13188 withval=$with_provisiondb; path_provisiondb=${withval}
13192 # Check whether --enable-provision was given.
13193 if test "${enable_provision+set}" = set; then :
13194 enableval=$enable_provision; enable_provision=${enableval}
13197 if (test "${enable_provision}" != "no"); then
13198 if (test -n "${path_provisiondb}"); then
13200 cat >>confdefs.h <<_ACEOF
13201 #define PROVIDER_DATABASE "${path_provisiondb}"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mobile-broadband-provider-info" >&5
13206 $as_echo_n "checking for mobile-broadband-provider-info... " >&6; }
13207 if test -n "$PKG_CONFIG" && \
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13209 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13212 test $ac_status = 0; }; then
13213 if test -n "$PROVIDER_DATABASE"; then
13214 pkg_cv_PROVIDER_DATABASE="$PROVIDER_DATABASE"
13215 elif test -n "$PKG_CONFIG"; then
13216 if test -n "$PKG_CONFIG" && \
13217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mobile-broadband-provider-info\""; } >&5
13218 ($PKG_CONFIG --exists --print-errors "mobile-broadband-provider-info") 2>&5
13220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221 test $ac_status = 0; }; then
13222 pkg_cv_PROVIDER_DATABASE=`$PKG_CONFIG --variable=database "mobile-broadband-provider-info" 2>/dev/null`
13223 test "x$?" != "x0" && pkg_failed=yes
13231 cat >>confdefs.h <<_ACEOF
13232 #define PROVIDER_DATABASE "$pkg_cv_PROVIDER_DATABASE"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13236 $as_echo "yes" >&6; }
13238 as_fn_error $? "Mobile broadband provider database is required" "$LINENO" 5
13242 if test "${enable_provision}" != "no"; then
13244 PROVISION_FALSE='#'
13251 # Check whether --enable-datafiles was given.
13252 if test "${enable_datafiles+set}" = set; then :
13253 enableval=$enable_datafiles; enable_datafiles=${enableval}
13256 if test "${enable_datafiles}" != "no"; then
13258 DATAFILES_FALSE='#'
13265 if (test "${prefix}" = "NONE"); then
13266 if (test "$localstatedir" = '${prefix}/var'); then
13267 localstatedir='/var'
13271 prefix="${ac_default_prefix}"
13274 if (test "$localstatedir" = '${prefix}/var'); then
13275 storagedir="${prefix}/var/lib/ofono"
13277 storagedir="${localstatedir}/lib/ofono"
13280 cat >>confdefs.h <<_ACEOF
13281 #define STORAGEDIR "${storagedir}"
13285 if (test "$sysconfdir" = '${prefix}/etc'); then
13286 configdir="${prefix}/etc/ofono"
13288 configdir="${sysconfdir}/ofono"
13291 cat >>confdefs.h <<_ACEOF
13292 #define CONFIGDIR "${configdir}"
13296 ac_config_files="$ac_config_files Makefile include/version.h src/ofono.service ofono.pc"
13298 cat >confcache <<\_ACEOF
13299 # This file is a shell script that caches the results of configure
13300 # tests run on this system so they can be shared between configure
13301 # scripts and configure runs, see configure's option --config-cache.
13302 # It is not useful on other systems. If it contains results you don't
13303 # want to keep, you may remove or edit it.
13305 # config.status only pays attention to the cache file if you give it
13306 # the --recheck option to rerun configure.
13308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13310 # following values.
13314 # The following way of writing the cache mishandles newlines in values,
13315 # but we know of no workaround that is simple, portable, and efficient.
13316 # So, we kill variables containing newlines.
13317 # Ultrix sh set writes to stderr and can't be redirected directly,
13318 # and sets the high bit in the cache file unless we assign to the vars.
13320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13321 eval ac_val=\$$ac_var
13325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13329 _ | IFS | as_nl) ;; #(
13330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13331 *) { eval $ac_var=; unset $ac_var;} ;;
13337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13338 *${as_nl}ac_space=\ *)
13339 # `set' does not quote correctly, so add quotes: double-quote
13340 # substitution turns \\\\ into \\, and sed turns \\ into \.
13343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13346 # `set' quotes correctly as required by POSIX, so do not add quotes.
13347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13361 if test -w "$cache_file"; then
13362 if test "x$cache_file" != "x/dev/null"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13364 $as_echo "$as_me: updating cache $cache_file" >&6;}
13365 if test ! -f "$cache_file" || test -h "$cache_file"; then
13366 cat confcache >"$cache_file"
13368 case $cache_file in #(
13370 mv -f confcache "$cache_file"$$ &&
13371 mv -f "$cache_file"$$ "$cache_file" ;; #(
13373 mv -f confcache "$cache_file" ;;
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13385 # Let make expand exec_prefix.
13386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13388 DEFS=-DHAVE_CONFIG_H
13393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13394 # 1. Remove the extension, and $U if already installed.
13395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13398 # will be set to the directory where LIBOBJS objects are built.
13399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13402 LIBOBJS=$ac_libobjs
13404 LTLIBOBJS=$ac_ltlibobjs
13407 if test -n "$EXEEXT"; then
13409 am__EXEEXT_FALSE='#'
13411 am__EXEEXT_TRUE='#'
13415 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13416 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13420 as_fn_error $? "conditional \"AMDEP\" was never defined.
13421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13424 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13428 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13431 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13432 as_fn_error $? "conditional \"TEST\" was never defined.
13433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13435 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13436 as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13439 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13440 as_fn_error $? "conditional \"UDEV\" was never defined.
13441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13444 as_fn_error $? "conditional \"TOOLS\" was never defined.
13445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13447 if test -z "${ATMODEM_TRUE}" && test -z "${ATMODEM_FALSE}"; then
13448 as_fn_error $? "conditional \"ATMODEM\" was never defined.
13449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13451 if test -z "${CDMAMODEM_TRUE}" && test -z "${CDMAMODEM_FALSE}"; then
13452 as_fn_error $? "conditional \"CDMAMODEM\" was never defined.
13453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13455 if test -z "${PHONESIM_TRUE}" && test -z "${PHONESIM_FALSE}"; then
13456 as_fn_error $? "conditional \"PHONESIM\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13459 if test -z "${ISIMODEM_TRUE}" && test -z "${ISIMODEM_FALSE}"; then
13460 as_fn_error $? "conditional \"ISIMODEM\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13463 if test -z "${BLUETOOTH_TRUE}" && test -z "${BLUETOOTH_FALSE}"; then
13464 as_fn_error $? "conditional \"BLUETOOTH\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13467 if test -z "${PROVISION_TRUE}" && test -z "${PROVISION_FALSE}"; then
13468 as_fn_error $? "conditional \"PROVISION\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13471 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13472 as_fn_error $? "conditional \"DATAFILES\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13476 : "${CONFIG_STATUS=./config.status}"
13478 ac_clean_files_save=$ac_clean_files
13479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13485 # Generated by $as_me.
13486 # Run this file to recreate the current configuration.
13487 # Compiler output produced by configure, useful for debugging
13488 # configure, is in config.log if it exists.
13491 ac_cs_recheck=false
13494 SHELL=\${CONFIG_SHELL-$SHELL}
13497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13498 ## -------------------- ##
13499 ## M4sh Initialization. ##
13500 ## -------------------- ##
13502 # Be more Bourne compatible
13503 DUALCASE=1; export DUALCASE # for MKS sh
13504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13508 # is contrary to our usage. Disable this feature.
13509 alias -g '${1+"$@"}'='"$@"'
13510 setopt NO_GLOB_SUBST
13512 case `(set -o) 2>/dev/null` in #(
13524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13528 # Prefer a ksh shell builtin over an external printf program on Solaris,
13529 # but without wasting forks for bash or zsh.
13530 if test -z "$BASH_VERSION$ZSH_VERSION" \
13531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='print -r --'
13533 as_echo_n='print -rn --'
13534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13535 as_echo='printf %s\n'
13536 as_echo_n='printf %s'
13538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13540 as_echo_n='/usr/ucb/echo -n'
13542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13543 as_echo_n_body='eval
13547 expr "X$arg" : "X\\(.*\\)$as_nl";
13548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13552 export as_echo_n_body
13553 as_echo_n='sh -c $as_echo_n_body as_echo'
13555 export as_echo_body
13556 as_echo='sh -c $as_echo_body as_echo'
13559 # The user is always right.
13560 if test "${PATH_SEPARATOR+set}" != set; then
13562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13570 # We need space, tab and new line, in precisely that order. Quoting is
13571 # there to prevent editors from complaining about space-tab.
13572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13573 # splitting by setting IFS to empty value.)
13576 # Find who we are. Look in the path if we contain no directory separator.
13579 *[\\/]* ) as_myself=$0 ;;
13580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13584 test -z "$as_dir" && as_dir=.
13585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13591 # We did not find ourselves, most probably we were run as `sh COMMAND'
13592 # in which case we are not to be found in the path.
13593 if test "x$as_myself" = x; then
13596 if test ! -f "$as_myself"; then
13597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13601 # Unset variables that we do not need and which cause bugs (e.g. in
13602 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13603 # suppresses any "Segmentation fault" message there. '((' could
13604 # trigger a bug in pdksh 5.2.14.
13605 for as_var in BASH_ENV ENV MAIL MAILPATH
13606 do eval test x\${$as_var+set} = xset \
13607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13624 # ----------------------------------------
13625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13627 # script with STATUS, using 1 if that was 0.
13630 as_status=$1; test $as_status -eq 0 && as_status=1
13632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13635 $as_echo "$as_me: error: $2" >&2
13636 as_fn_exit $as_status
13640 # as_fn_set_status STATUS
13641 # -----------------------
13642 # Set $? to STATUS, without forking.
13643 as_fn_set_status ()
13646 } # as_fn_set_status
13648 # as_fn_exit STATUS
13649 # -----------------
13650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13654 as_fn_set_status $1
13660 # Portably unset VAR.
13663 { eval $1=; unset $1;}
13665 as_unset=as_fn_unset
13666 # as_fn_append VAR VALUE
13667 # ----------------------
13668 # Append the text in VALUE to the end of the definition contained in VAR. Take
13669 # advantage of any shell optimizations that allow amortized linear growth over
13670 # repeated appends, instead of the typical quadratic growth present in naive
13672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13673 eval 'as_fn_append ()
13684 # as_fn_arith ARG...
13685 # ------------------
13686 # Perform arithmetic evaluation on the ARGs, and store the result in the
13687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13688 # must be portable across $(()) and expr.
13689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13690 eval 'as_fn_arith ()
13697 as_val=`expr "$@" || test $? -eq 1`
13702 if expr a : '\(a\)' >/dev/null 2>&1 &&
13703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13710 as_basename=basename
13715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13721 as_me=`$as_basename -- "$0" ||
13722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13723 X"$0" : 'X\(//\)$' \| \
13724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13726 sed '/^.*\/\([^/][^/]*\)\/*$/{
13740 # Avoid depending upon Character Ranges.
13741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13744 as_cr_digits='0123456789'
13745 as_cr_alnum=$as_cr_Letters$as_cr_digits
13747 ECHO_C= ECHO_N= ECHO_T=
13748 case `echo -n x` in #(((((
13750 case `echo 'xy\c'` in
13751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13760 rm -f conf$$ conf$$.exe conf$$.file
13761 if test -d conf$$.dir; then
13762 rm -f conf$$.dir/conf$$.file
13765 mkdir conf$$.dir 2>/dev/null
13767 if (echo >conf$$.file) 2>/dev/null; then
13768 if ln -s conf$$.file conf$$ 2>/dev/null; then
13770 # ... but there are two gotchas:
13771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13773 # In both cases, we have to default to `cp -p'.
13774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13776 elif ln conf$$.file conf$$ 2>/dev/null; then
13784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13785 rmdir conf$$.dir 2>/dev/null
13790 # Create "$as_dir" as a directory, including parents if necessary.
13795 -*) as_dir=./$as_dir;;
13797 test -d "$as_dir" || eval $as_mkdir_p || {
13801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13802 *) as_qdir=$as_dir;;
13804 as_dirs="'$as_qdir' $as_dirs"
13805 as_dir=`$as_dirname -- "$as_dir" ||
13806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13807 X"$as_dir" : 'X\(//\)[^/]' \| \
13808 X"$as_dir" : 'X\(//\)$' \| \
13809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13810 $as_echo X"$as_dir" |
13811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13815 /^X\(\/\/\)[^/].*/{
13828 test -d "$as_dir" && break
13830 test -z "$as_dirs" || eval "mkdir $as_dirs"
13831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13835 if mkdir -p . 2>/dev/null; then
13836 as_mkdir_p='mkdir -p "$as_dir"'
13838 test -d ./-p && rmdir ./-p
13842 if test -x / >/dev/null 2>&1; then
13843 as_test_x='test -x'
13845 if ls -dL / >/dev/null 2>&1; then
13852 if test -d "$1"; then
13858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13859 ???[sx]*):;;*)false;;esac;fi
13863 as_executable_p=$as_test_x
13865 # Sed expression to map a string onto a valid CPP name.
13866 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13868 # Sed expression to map a string onto a valid variable name.
13869 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13873 ## ----------------------------------- ##
13874 ## Main body of $CONFIG_STATUS script. ##
13875 ## ----------------------------------- ##
13877 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13880 # Save the log message, to keep $0 and so on meaningful, and to
13881 # report actual input values of CONFIG_FILES etc. instead of their
13882 # values after options handling.
13884 This file was extended by ofono $as_me 1.6, which was
13885 generated by GNU Autoconf 2.68. Invocation command line was
13887 CONFIG_FILES = $CONFIG_FILES
13888 CONFIG_HEADERS = $CONFIG_HEADERS
13889 CONFIG_LINKS = $CONFIG_LINKS
13890 CONFIG_COMMANDS = $CONFIG_COMMANDS
13893 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13898 case $ac_config_files in *"
13899 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13902 case $ac_config_headers in *"
13903 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 # Files that config.status was made for.
13909 config_files="$ac_config_files"
13910 config_headers="$ac_config_headers"
13911 config_commands="$ac_config_commands"
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917 \`$as_me' instantiates files and other configuration actions
13918 from templates according to the current configuration. Unless the files
13919 and actions are specified as TAGs, all are instantiated by default.
13921 Usage: $0 [OPTION]... [TAG]...
13923 -h, --help print this help, then exit
13924 -V, --version print version number and configuration settings, then exit
13925 --config print configuration, then exit
13926 -q, --quiet, --silent
13927 do not print progress messages
13928 -d, --debug don't remove temporary files
13929 --recheck update $as_me by reconfiguring in the same conditions
13930 --file=FILE[:TEMPLATE]
13931 instantiate the configuration file FILE
13932 --header=FILE[:TEMPLATE]
13933 instantiate the configuration header FILE
13935 Configuration files:
13938 Configuration headers:
13941 Configuration commands:
13944 Report bugs to the package provider."
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13950 ofono config.status 1.6
13951 configured by $0, generated by GNU Autoconf 2.68,
13952 with options \\"\$ac_cs_config\\"
13954 Copyright (C) 2010 Free Software Foundation, Inc.
13955 This config.status script is free software; the Free Software Foundation
13956 gives unlimited permission to copy, distribute and modify it."
13963 test -n "\$AWK" || AWK=awk
13966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13967 # The default lists apply if the user does not specify any file.
13973 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13974 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13990 # Handling of the options.
13991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13994 $as_echo "$ac_cs_version"; exit ;;
13995 --config | --confi | --conf | --con | --co | --c )
13996 $as_echo "$ac_cs_config"; exit ;;
13997 --debug | --debu | --deb | --de | --d | -d )
13999 --file | --fil | --fi | --f )
14002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14003 '') as_fn_error $? "missing file argument" ;;
14005 as_fn_append CONFIG_FILES " '$ac_optarg'"
14006 ac_need_defaults=false;;
14007 --header | --heade | --head | --hea )
14010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14012 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14013 ac_need_defaults=false;;
14015 # Conflict between --help and --header
14016 as_fn_error $? "ambiguous option: \`$1'
14017 Try \`$0 --help' for more information.";;
14018 --help | --hel | -h )
14019 $as_echo "$ac_cs_usage"; exit ;;
14020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14024 # This is an error.
14025 -*) as_fn_error $? "unrecognized option: \`$1'
14026 Try \`$0 --help' for more information." ;;
14028 *) as_fn_append ac_config_targets " $1"
14029 ac_need_defaults=false ;;
14035 ac_configure_extra_args=
14037 if $ac_cs_silent; then
14039 ac_configure_extra_args="$ac_configure_extra_args --silent"
14043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14044 if \$ac_cs_recheck; then
14045 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14047 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14048 CONFIG_SHELL='$SHELL'
14049 export CONFIG_SHELL
14054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14059 ## Running $as_me. ##
14065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14069 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14072 # The HP-UX ksh and POSIX shell print the target directory to stdout
14073 # if CDPATH is set.
14074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14076 sed_quote_subst='$sed_quote_subst'
14077 double_quote_subst='$double_quote_subst'
14078 delay_variable_subst='$delay_variable_subst'
14079 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14080 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14081 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14082 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14083 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14084 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14085 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14086 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14087 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14088 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14089 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14090 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14091 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14092 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14093 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14094 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14095 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14096 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14097 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14098 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14099 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14100 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14101 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14102 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14103 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14104 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14105 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14106 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14107 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14108 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14109 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14110 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14111 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14112 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14113 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14114 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14115 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14116 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14117 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14118 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14119 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14120 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14121 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14122 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14123 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14124 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14125 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14126 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14127 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14128 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14129 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14130 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14131 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14132 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14133 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14134 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14135 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"`'
14136 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14137 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14138 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14139 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14140 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14141 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14142 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14143 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14144 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14145 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14146 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14147 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14148 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14149 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14150 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14151 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14152 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14153 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14154 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14155 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14156 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14157 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14158 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14159 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14160 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14161 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14162 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14163 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14164 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14165 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14166 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14167 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14168 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14169 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14170 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14171 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14172 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14173 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14174 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14175 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14176 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14177 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14178 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14179 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14180 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14181 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14182 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14183 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14184 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14185 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14186 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14187 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14188 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14189 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14190 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14191 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14192 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14193 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14194 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14195 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14196 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14197 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14198 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14199 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14200 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14201 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14202 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14203 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14204 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14205 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14206 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14207 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14208 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14211 LTCFLAGS='$LTCFLAGS'
14212 compiler='$compiler_DEFAULT'
14214 # A function that is used when there is no print builtin or printf.
14215 func_fallback_echo ()
14217 eval 'cat <<_LTECHO_EOF
14222 # Quote evaled strings.
14237 deplibs_check_method \
14242 sharedlib_from_linklib_cmd \
14245 archiver_list_spec \
14251 lt_cv_sys_global_symbol_pipe \
14252 lt_cv_sys_global_symbol_to_cdecl \
14253 lt_cv_sys_global_symbol_to_c_name_address \
14254 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14255 nm_file_list_spec \
14256 lt_prog_compiler_no_builtin_flag \
14257 lt_prog_compiler_pic \
14258 lt_prog_compiler_wl \
14259 lt_prog_compiler_static \
14260 lt_cv_prog_compiler_c_o \
14269 export_dynamic_flag_spec \
14270 whole_archive_flag_spec \
14271 compiler_needs_object \
14273 allow_undefined_flag \
14274 no_undefined_flag \
14275 hardcode_libdir_flag_spec \
14276 hardcode_libdir_separator \
14280 variables_saved_for_relink \
14282 library_names_spec \
14284 install_override_mode \
14288 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14289 *[\\\\\\\`\\"\\\$]*)
14290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14298 # Double-quote double-evaled strings.
14299 for var in reload_cmds \
14300 old_postinstall_cmds \
14301 old_postuninstall_cmds \
14303 extract_expsyms_cmds \
14304 old_archive_from_new_cmds \
14305 old_archive_from_expsyms_cmds \
14307 archive_expsym_cmds \
14309 module_expsym_cmds \
14310 export_symbols_cmds \
14314 postuninstall_cmds \
14316 sys_lib_search_path_spec \
14317 sys_lib_dlsearch_path_spec; do
14318 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14319 *[\\\\\\\`\\"\\\$]*)
14320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14328 ac_aux_dir='$ac_aux_dir'
14329 xsi_shell='$xsi_shell'
14330 lt_shell_append='$lt_shell_append'
14332 # See if we are running on zsh, and set the options which allow our
14333 # commands through without removal of \ escapes INIT.
14334 if test -n "\${ZSH_VERSION+set}" ; then
14335 setopt NO_GLOB_SUBST
14341 TIMESTAMP='$TIMESTAMP'
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352 # Handling of arguments.
14353 for ac_config_target in $ac_config_targets
14355 case $ac_config_target in
14356 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14358 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14360 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
14361 "src/ofono.service") CONFIG_FILES="$CONFIG_FILES src/ofono.service" ;;
14362 "ofono.pc") CONFIG_FILES="$CONFIG_FILES ofono.pc" ;;
14364 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14369 # If the user did not use the arguments to specify the items to instantiate,
14370 # then the envvar interface is used. Set only those that are not.
14371 # We use the long form for the default assignment because of an extremely
14372 # bizarre bug on SunOS 4.1.3.
14373 if $ac_need_defaults; then
14374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14379 # Have a temporary directory for convenience. Make it in the build tree
14380 # simply because there is no reason against having it here, and in addition,
14381 # creating and moving files from /tmp can sometimes cause problems.
14382 # Hook for its removal unless debugging.
14383 # Note that there is a small window in which the directory will not be cleaned:
14384 # after its creation but before its name has been assigned to `$tmp'.
14388 trap 'exit_status=$?
14389 : "${ac_tmp:=$tmp}"
14390 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14392 trap 'as_fn_exit 1' 1 2 13 15
14394 # Create a (secure) tmp directory for tmp files.
14397 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14401 tmp=./conf$$-$RANDOM
14402 (umask 077 && mkdir "$tmp")
14403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14406 # Set up the scripts for CONFIG_FILES section.
14407 # No need to generate them if there are no CONFIG_FILES.
14408 # This happens for instance with `./config.status config.h'.
14409 if test -n "$CONFIG_FILES"; then
14412 ac_cr=`echo X | tr X '\015'`
14413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14414 # But we know of no other shell where ac_cr would be empty at this
14415 # point, so we can use a bashism as a fallback.
14416 if test "x$ac_cr" = x; then
14417 eval ac_cr=\$\'\\r\'
14419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14423 ac_cs_awk_cr=$ac_cr
14426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14431 echo "cat >conf$$subs.awk <<_ACEOF" &&
14432 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14434 } >conf$$subs.sh ||
14435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14438 for ac_last_try in false false false false false :; do
14439 . ./conf$$subs.sh ||
14440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14442 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14443 if test $ac_delim_n = $ac_delim_num; then
14445 elif $ac_last_try; then
14446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14451 rm -f conf$$subs.sh
14453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14458 s/^/S["/; s/!.*/"]=/
14468 s/\(.\{148\}\)..*/\1/
14470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14482 s/\(.\{148\}\)..*/\1/
14484 s/["\\]/\\&/g; s/^/"/; s/$/"/
14488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14493 ' <conf$$subs.awk | sed '
14498 ' >>$CONFIG_STATUS || ac_write_fail=1
14499 rm -f conf$$subs.awk
14500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14503 for (key in S) S_is_set[key] = 1
14509 nfields = split(line, field, "@")
14511 len = length(field[1])
14512 for (i = 2; i < nfields; i++) {
14514 keylen = length(key)
14515 if (S_is_set[key]) {
14517 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14518 len += length(value) + length(field[++i])
14529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14535 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14540 # trailing colons and then remove the whole line if VPATH becomes empty
14541 # (actually we leave an empty line to preserve line numbers).
14542 if test "x$srcdir" = x.; then
14543 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 fi # test -n "$CONFIG_FILES"
14564 # Set up the scripts for CONFIG_HEADERS section.
14565 # No need to generate them if there are no CONFIG_HEADERS.
14566 # This happens for instance with `./config.status Makefile'.
14567 if test -n "$CONFIG_HEADERS"; then
14568 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14572 # Transform confdefs.h into an awk script `defines.awk', embedded as
14573 # here-document in config.status, that substitutes the proper values into
14574 # config.h.in to produce config.h.
14576 # Create a delimiter string that does not exist in confdefs.h, to ease
14577 # handling of long lines.
14579 for ac_last_try in false false :; do
14580 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14581 if test -z "$ac_tt"; then
14583 elif $ac_last_try; then
14584 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14590 # For the awk script, D is an array of macro values keyed by name,
14591 # likewise P contains macro parameters if any. Preserve backslash
14592 # newline sequences.
14594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14596 s/.\{148\}/&'"$ac_delim"'/g
14599 s/^[ ]*#[ ]*define[ ][ ]*/ /
14606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14613 D["\1"]=" \3\\\\\\n"\\/p
14615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14620 s/.\{148\}/&'"$ac_delim"'/g
14625 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14628 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14630 ' <confdefs.h | sed '
14631 s/'"$ac_delim"'/"\\\
14632 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14635 for (key in D) D_is_set[key] = 1
14638 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14640 split(line, arg, " ")
14641 if (arg[1] == "#") {
14645 defundef = substr(arg[1], 2)
14648 split(mac1, mac2, "(") #)
14650 prefix = substr(line, 1, index(line, defundef) - 1)
14651 if (D_is_set[macro]) {
14652 # Preserve the white space surrounding the "#".
14653 print prefix "define", macro P[macro] D[macro]
14656 # Replace #undef with comments. This is necessary, for example,
14657 # in the case of _POSIX_SOURCE, which is predefined and required
14658 # on some systems where configure will not decide to define it.
14659 if (defundef == "undef") {
14660 print "/*", prefix defundef, macro, "*/"
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14670 fi # test -n "$CONFIG_HEADERS"
14673 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14678 :[FHLC]) ac_mode=$ac_tag; continue;;
14680 case $ac_mode$ac_tag in
14682 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14683 :[FH]-) ac_tag=-:-;;
14684 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14701 -) ac_f="$ac_tmp/stdin";;
14702 *) # Look for the file first in the build tree, then in the source tree
14703 # (if the path is not absolute). The absolute path cannot be DOS-style,
14704 # because $ac_f cannot contain `:'.
14708 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14710 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14712 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14713 as_fn_append ac_file_inputs " '$ac_f'"
14716 # Let's still pretend it is `configure' which instantiates (i.e., don't
14717 # use $as_me), people would be surprised to read:
14718 # /* config.h. Generated by config.status. */
14719 configure_input='Generated from '`
14720 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14722 if test x"$ac_file" != x-; then
14723 configure_input="$ac_file. $configure_input"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14725 $as_echo "$as_me: creating $ac_file" >&6;}
14727 # Neutralize special characters interpreted by sed in replacement strings.
14728 case $configure_input in #(
14729 *\&* | *\|* | *\\* )
14730 ac_sed_conf_input=`$as_echo "$configure_input" |
14731 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14732 *) ac_sed_conf_input=$configure_input;;
14736 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14742 ac_dir=`$as_dirname -- "$ac_file" ||
14743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14744 X"$ac_file" : 'X\(//\)[^/]' \| \
14745 X"$ac_file" : 'X\(//\)$' \| \
14746 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14747 $as_echo X"$ac_file" |
14748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14752 /^X\(\/\/\)[^/].*/{
14765 as_dir="$ac_dir"; as_fn_mkdir_p
14769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14772 # A ".." for each directory in $ac_dir_suffix.
14773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14774 case $ac_top_builddir_sub in
14775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14779 ac_abs_top_builddir=$ac_pwd
14780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14781 # for backward compatibility:
14782 ac_top_builddir=$ac_top_build_prefix
14785 .) # We are building in place.
14787 ac_top_srcdir=$ac_top_builddir_sub
14788 ac_abs_top_srcdir=$ac_pwd ;;
14789 [\\/]* | ?:[\\/]* ) # Absolute name.
14790 ac_srcdir=$srcdir$ac_dir_suffix;
14791 ac_top_srcdir=$srcdir
14792 ac_abs_top_srcdir=$srcdir ;;
14793 *) # Relative name.
14794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14795 ac_top_srcdir=$ac_top_build_prefix$srcdir
14796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14811 ac_MKDIR_P=$MKDIR_P
14813 [\\/$]* | ?:[\\/]* ) ;;
14814 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14819 # If the template does not know about datarootdir, expand it.
14820 # FIXME: This hack should be removed a few years after 2.60.
14821 ac_datarootdir_hack=; ac_datarootdir_seen=
14832 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14833 *datarootdir*) ac_datarootdir_seen=yes;;
14834 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14836 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14839 ac_datarootdir_hack='
14840 s&@datadir@&$datadir&g
14841 s&@docdir@&$docdir&g
14842 s&@infodir@&$infodir&g
14843 s&@localedir@&$localedir&g
14844 s&@mandir@&$mandir&g
14845 s&\\\${datarootdir}&$datarootdir&g' ;;
14849 # Neutralize VPATH when `$srcdir' = `.'.
14850 # Shell code in configure.ac might set extrasub.
14851 # FIXME: do we really want to maintain this feature?
14852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14853 ac_sed_extra="$ac_vpsub
14856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14859 s|@configure_input@|$ac_sed_conf_input|;t t
14860 s&@top_builddir@&$ac_top_builddir_sub&;t t
14861 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14862 s&@srcdir@&$ac_srcdir&;t t
14863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14864 s&@top_srcdir@&$ac_top_srcdir&;t t
14865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14866 s&@builddir@&$ac_builddir&;t t
14867 s&@abs_builddir@&$ac_abs_builddir&;t t
14868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14869 s&@INSTALL@&$ac_INSTALL&;t t
14870 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14871 $ac_datarootdir_hack
14873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14874 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14877 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14879 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14881 which seems to be undefined. Please make sure it is defined" >&5
14882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14883 which seems to be undefined. Please make sure it is defined" >&2;}
14885 rm -f "$ac_tmp/stdin"
14887 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14888 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14896 if test x"$ac_file" != x-; then
14898 $as_echo "/* $configure_input */" \
14899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14900 } >"$ac_tmp/config.h" \
14901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14902 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14907 mv "$ac_tmp/config.h" "$ac_file" \
14908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14911 $as_echo "/* $configure_input */" \
14912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14913 || as_fn_error $? "could not create -" "$LINENO" 5
14915 # Compute "$ac_file"'s index in $config_headers.
14918 for _am_header in $config_headers :; do
14919 case $_am_header in
14920 $_am_arg | $_am_arg:* )
14923 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14926 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14927 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14928 X"$_am_arg" : 'X\(//\)[^/]' \| \
14929 X"$_am_arg" : 'X\(//\)$' \| \
14930 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14931 $as_echo X"$_am_arg" |
14932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14936 /^X\(\/\/\)[^/].*/{
14948 s/.*/./; q'`/stamp-h$_am_stamp_count
14951 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14952 $as_echo "$as_me: executing $ac_file commands" >&6;}
14957 case $ac_file$ac_mode in
14958 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14959 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14960 # are listed without --file. Let's play safe and only enable the eval
14961 # if we detect the quoting.
14962 case $CONFIG_FILES in
14963 *\'*) eval set x "$CONFIG_FILES" ;;
14964 *) set x $CONFIG_FILES ;;
14969 # Strip MF so we end up with the name of the file.
14970 mf=`echo "$mf" | sed -e 's/:.*$//'`
14971 # Check whether this is an Automake generated Makefile or not.
14972 # We used to match only the files named `Makefile.in', but
14973 # some people rename them; so instead we look at the file content.
14974 # Grep'ing the first line is not enough: some people post-process
14975 # each Makefile.in and add a new line on top of each file to say so.
14976 # Grep'ing the whole file is not good either: AIX grep has a line
14977 # limit of 2048, but all sed's we know have understand at least 4000.
14978 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14979 dirpart=`$as_dirname -- "$mf" ||
14980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981 X"$mf" : 'X\(//\)[^/]' \| \
14982 X"$mf" : 'X\(//\)$' \| \
14983 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14989 /^X\(\/\/\)[^/].*/{
15005 # Extract the definition of DEPDIR, am__include, and am__quote
15006 # from the Makefile without running `make'.
15007 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15008 test -z "$DEPDIR" && continue
15009 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15010 test -z "am__include" && continue
15011 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15012 # When using ansi2knr, U may be empty or an underscore; expand it
15013 U=`sed -n 's/^U = //p' < "$mf"`
15014 # Find all dependency output files, they are included files with
15015 # $(DEPDIR) in their names. We invoke sed twice because it is the
15016 # simplest approach to changing $(DEPDIR) to its actual value in the
15018 for file in `sed -n "
15019 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15021 # Make sure the directory exists.
15022 test -f "$dirpart/$file" && continue
15023 fdir=`$as_dirname -- "$file" ||
15024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025 X"$file" : 'X\(//\)[^/]' \| \
15026 X"$file" : 'X\(//\)$' \| \
15027 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15028 $as_echo X"$file" |
15029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15033 /^X\(\/\/\)[^/].*/{
15046 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15047 # echo "creating $dirpart/$file"
15048 echo '# dummy' > "$dirpart/$file"
15055 # See if we are running on zsh, and set the options which allow our
15056 # commands through without removal of \ escapes.
15057 if test -n "${ZSH_VERSION+set}" ; then
15058 setopt NO_GLOB_SUBST
15061 cfgfile="${ofile}T"
15062 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15065 cat <<_LT_EOF >> "$cfgfile"
15068 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15069 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15071 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15073 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15074 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15076 # Written by Gordon Matzigkeit, 1996
15078 # This file is part of GNU Libtool.
15080 # GNU Libtool is free software; you can redistribute it and/or
15081 # modify it under the terms of the GNU General Public License as
15082 # published by the Free Software Foundation; either version 2 of
15083 # the License, or (at your option) any later version.
15085 # As a special exception to the GNU General Public License,
15086 # if you distribute this file as part of a program or library that
15087 # is built using GNU Libtool, you may include this file under the
15088 # same distribution terms that you use for the rest of that program.
15090 # GNU Libtool is distributed in the hope that it will be useful,
15091 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15092 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15093 # GNU General Public License for more details.
15095 # You should have received a copy of the GNU General Public License
15096 # along with GNU Libtool; see the file COPYING. If not, a copy
15097 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15098 # obtained by writing to the Free Software Foundation, Inc.,
15099 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15102 # The names of the tagged configurations supported by this script.
15105 # ### BEGIN LIBTOOL CONFIG
15107 # Whether or not to build static libraries.
15108 build_old_libs=$enable_static
15110 # Which release of libtool.m4 was used?
15111 macro_version=$macro_version
15112 macro_revision=$macro_revision
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15117 # What type of objects to build.
15120 # Whether or not to optimize for fast installation.
15121 fast_install=$enable_fast_install
15123 # Shell to use when invoking shell scripts.
15126 # An echo program that protects backslashes.
15129 # The PATH separator for the build system.
15130 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15133 host_alias=$host_alias
15137 # The build system.
15138 build_alias=$build_alias
15142 # A sed program that does not truncate output.
15145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15146 Xsed="\$SED -e 1s/^X//"
15148 # A grep program that handles long lines.
15154 # A literal string matcher.
15157 # A BSD- or MS-compatible name lister.
15160 # Whether we need soft or hard links.
15163 # What is the maximum length of a command?
15164 max_cmd_len=$max_cmd_len
15166 # Object file suffix (normally "o").
15169 # Executable file suffix (normally "").
15172 # whether the shell understands "unset".
15175 # turn spaces into newlines.
15178 # turn newlines into spaces.
15181 # convert \$build file names to \$host format.
15182 to_host_file_cmd=$lt_cv_to_host_file_cmd
15184 # convert \$build files to toolchain format.
15185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15187 # An object symbol dumper.
15188 OBJDUMP=$lt_OBJDUMP
15190 # Method to check whether dependent libraries are shared objects.
15191 deplibs_check_method=$lt_deplibs_check_method
15193 # Command to use when deplibs_check_method = "file_magic".
15194 file_magic_cmd=$lt_file_magic_cmd
15196 # How to find potential files when deplibs_check_method = "file_magic".
15197 file_magic_glob=$lt_file_magic_glob
15199 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15200 want_nocaseglob=$lt_want_nocaseglob
15202 # DLL creation program.
15203 DLLTOOL=$lt_DLLTOOL
15205 # Command to associate shared and link libraries.
15206 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15211 # Flags to create an archive.
15212 AR_FLAGS=$lt_AR_FLAGS
15214 # How to feed a file listing to the archiver.
15215 archiver_list_spec=$lt_archiver_list_spec
15217 # A symbol stripping program.
15220 # Commands used to install an old-style archive.
15222 old_postinstall_cmds=$lt_old_postinstall_cmds
15223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15225 # Whether to use a lock for old archive extraction.
15226 lock_old_archive_extraction=$lock_old_archive_extraction
15231 # LTCC compiler flags.
15232 LTCFLAGS=$lt_CFLAGS
15234 # Take the output of nm and produce a listing of raw symbols and C names.
15235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15237 # Transform the output of nm in a proper C declaration.
15238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15240 # Transform the output of nm in a C name address pair.
15241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15243 # Transform the output of nm in a C name address pair when lib prefix is needed.
15244 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15246 # Specify filename containing input files for \$NM.
15247 nm_file_list_spec=$lt_nm_file_list_spec
15249 # The root where to search for dependent libraries,and in which our libraries should be installed.
15250 lt_sysroot=$lt_sysroot
15252 # The name of the directory that contains temporary libtool files.
15255 # Used to examine libraries when file_magic_cmd begins with "file".
15256 MAGIC_CMD=$MAGIC_CMD
15258 # Must we lock files when doing compilation?
15259 need_locks=$lt_need_locks
15262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15265 DSYMUTIL=$lt_DSYMUTIL
15267 # Tool to change global to local symbols on Mac OS X.
15270 # Tool to manipulate fat objects and archives on Mac OS X.
15273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15277 OTOOL64=$lt_OTOOL64
15279 # Old archive suffix (normally "a").
15282 # Shared library suffix (normally ".so").
15283 shrext_cmds=$lt_shrext_cmds
15285 # The commands to extract the exported symbol list from a shared archive.
15286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15288 # Variables whose values should be saved in libtool wrapper scripts and
15289 # restored at link time.
15290 variables_saved_for_relink=$lt_variables_saved_for_relink
15292 # Do we need the "lib" prefix for modules?
15293 need_lib_prefix=$need_lib_prefix
15295 # Do we need a version for libraries?
15296 need_version=$need_version
15298 # Library versioning type.
15299 version_type=$version_type
15301 # Shared library runtime path variable.
15302 runpath_var=$runpath_var
15304 # Shared library path variable.
15305 shlibpath_var=$shlibpath_var
15307 # Is shlibpath searched before the hard-coded library search path?
15308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15310 # Format of library name prefix.
15311 libname_spec=$lt_libname_spec
15313 # List of archive names. First name is the real one, the rest are links.
15314 # The last name is the one that the linker finds with -lNAME
15315 library_names_spec=$lt_library_names_spec
15317 # The coded name of the library, if different from the real name.
15318 soname_spec=$lt_soname_spec
15320 # Permission mode override for installation of shared libraries.
15321 install_override_mode=$lt_install_override_mode
15323 # Command to use after installation of a shared archive.
15324 postinstall_cmds=$lt_postinstall_cmds
15326 # Command to use after uninstallation of a shared archive.
15327 postuninstall_cmds=$lt_postuninstall_cmds
15329 # Commands used to finish a libtool library installation in a directory.
15330 finish_cmds=$lt_finish_cmds
15332 # As "finish_cmds", except a single script fragment to be evaled but
15334 finish_eval=$lt_finish_eval
15336 # Whether we should hardcode library paths into libraries.
15337 hardcode_into_libs=$hardcode_into_libs
15339 # Compile-time system search path for libraries.
15340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15342 # Run-time system search path for libraries.
15343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15345 # Whether dlopen is supported.
15346 dlopen_support=$enable_dlopen
15348 # Whether dlopen of programs is supported.
15349 dlopen_self=$enable_dlopen_self
15351 # Whether dlopen of statically linked programs is supported.
15352 dlopen_self_static=$enable_dlopen_self_static
15354 # Commands to strip libraries.
15355 old_striplib=$lt_old_striplib
15356 striplib=$lt_striplib
15359 # The linker used to build libraries.
15362 # How to create reloadable object files.
15363 reload_flag=$lt_reload_flag
15364 reload_cmds=$lt_reload_cmds
15366 # Commands used to build an old-style archive.
15367 old_archive_cmds=$lt_old_archive_cmds
15369 # A language specific compiler.
15372 # Is the compiler the GNU compiler?
15375 # Compiler flag to turn off builtin functions.
15376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15378 # Additional compiler flags for building library objects.
15379 pic_flag=$lt_lt_prog_compiler_pic
15381 # How to pass a linker flag through the compiler.
15382 wl=$lt_lt_prog_compiler_wl
15384 # Compiler flag to prevent dynamic linking.
15385 link_static_flag=$lt_lt_prog_compiler_static
15387 # Does compiler simultaneously support -c and -o options?
15388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15390 # Whether or not to add -lc for building shared libraries.
15391 build_libtool_need_lc=$archive_cmds_need_lc
15393 # Whether or not to disallow shared libs when runtime libs are static.
15394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15396 # Compiler flag to allow reflexive dlopens.
15397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15399 # Compiler flag to generate shared objects directly from archives.
15400 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15402 # Whether the compiler copes with passing no objects directly.
15403 compiler_needs_object=$lt_compiler_needs_object
15405 # Create an old-style archive from a shared archive.
15406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15408 # Create a temporary old-style archive to link instead of a shared archive.
15409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15411 # Commands used to build a shared archive.
15412 archive_cmds=$lt_archive_cmds
15413 archive_expsym_cmds=$lt_archive_expsym_cmds
15415 # Commands used to build a loadable module if different from building
15416 # a shared archive.
15417 module_cmds=$lt_module_cmds
15418 module_expsym_cmds=$lt_module_expsym_cmds
15420 # Whether we are building with GNU ld or not.
15421 with_gnu_ld=$lt_with_gnu_ld
15423 # Flag that allows shared libraries with undefined symbols to be built.
15424 allow_undefined_flag=$lt_allow_undefined_flag
15426 # Flag that enforces no undefined symbols.
15427 no_undefined_flag=$lt_no_undefined_flag
15429 # Flag to hardcode \$libdir into a binary during linking.
15430 # This must work even if \$libdir does not exist
15431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15433 # Whether we need a single "-rpath" flag with a separated argument.
15434 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15437 # DIR into the resulting binary.
15438 hardcode_direct=$hardcode_direct
15440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15441 # DIR into the resulting binary and the resulting library dependency is
15442 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15443 # library is relocated.
15444 hardcode_direct_absolute=$hardcode_direct_absolute
15446 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15447 # into the resulting binary.
15448 hardcode_minus_L=$hardcode_minus_L
15450 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15451 # into the resulting binary.
15452 hardcode_shlibpath_var=$hardcode_shlibpath_var
15454 # Set to "yes" if building a shared library automatically hardcodes DIR
15455 # into the library and all subsequent libraries and executables linked
15457 hardcode_automatic=$hardcode_automatic
15459 # Set to yes if linker adds runtime paths of dependent libraries
15460 # to runtime path list.
15461 inherit_rpath=$inherit_rpath
15463 # Whether libtool must link a program against all its dependency libraries.
15464 link_all_deplibs=$link_all_deplibs
15466 # Set to "yes" if exported symbols are required.
15467 always_export_symbols=$always_export_symbols
15469 # The commands to list exported symbols.
15470 export_symbols_cmds=$lt_export_symbols_cmds
15472 # Symbols that should not be listed in the preloaded symbols.
15473 exclude_expsyms=$lt_exclude_expsyms
15475 # Symbols that must always be exported.
15476 include_expsyms=$lt_include_expsyms
15478 # Commands necessary for linking programs (against libraries) with templates.
15479 prelink_cmds=$lt_prelink_cmds
15481 # Commands necessary for finishing linking programs.
15482 postlink_cmds=$lt_postlink_cmds
15484 # Specify filename containing input files.
15485 file_list_spec=$lt_file_list_spec
15487 # How to hardcode a shared library path into an executable.
15488 hardcode_action=$hardcode_action
15490 # ### END LIBTOOL CONFIG
15496 cat <<\_LT_EOF >> "$cfgfile"
15497 # AIX sometimes has problems with the GCC collect2 program. For some
15498 # reason, if we set the COLLECT_NAMES environment variable, the problems
15499 # vanish in a puff of smoke.
15500 if test "X${COLLECT_NAMES+set}" != Xset; then
15502 export COLLECT_NAMES
15509 ltmain="$ac_aux_dir/ltmain.sh"
15512 # We use sed instead of cat because bash on DJGPP gets confused if
15513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15514 # text mode, it properly converts lines to CR/LF. This bash problem
15515 # is reportedly fixed, but why not run on old versions too?
15516 sed '$q' "$ltmain" >> "$cfgfile" \
15517 || (rm -f "$cfgfile"; exit 1)
15519 if test x"$xsi_shell" = xyes; then
15520 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15524 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15525 \ * ) func_dirname_result="${3}" ;;\
15527 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15528 && mv -f "$cfgfile.tmp" "$cfgfile" \
15529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15530 test 0 -eq $? || _lt_function_replace_fail=:
15533 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15536 \ func_basename_result="${1##*/}"\
15537 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15538 && mv -f "$cfgfile.tmp" "$cfgfile" \
15539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15540 test 0 -eq $? || _lt_function_replace_fail=:
15543 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15544 func_dirname_and_basename ()\
15547 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15548 \ * ) func_dirname_result="${3}" ;;\
15550 \ func_basename_result="${1##*/}"\
15551 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15552 && mv -f "$cfgfile.tmp" "$cfgfile" \
15553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15554 test 0 -eq $? || _lt_function_replace_fail=:
15557 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15560 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15561 \ # positional parameters, so assign one to ordinary parameter first.\
15562 \ func_stripname_result=${3}\
15563 \ func_stripname_result=${func_stripname_result#"${1}"}\
15564 \ func_stripname_result=${func_stripname_result%"${2}"}\
15565 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15566 && mv -f "$cfgfile.tmp" "$cfgfile" \
15567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15568 test 0 -eq $? || _lt_function_replace_fail=:
15571 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15572 func_split_long_opt ()\
15574 \ func_split_long_opt_name=${1%%=*}\
15575 \ func_split_long_opt_arg=${1#*=}\
15576 } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
15583 func_split_short_opt ()\
15585 \ func_split_short_opt_arg=${1#??}\
15586 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15587 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15588 && mv -f "$cfgfile.tmp" "$cfgfile" \
15589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15590 test 0 -eq $? || _lt_function_replace_fail=:
15593 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15597 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15598 \ *) func_lo2o_result=${1} ;;\
15600 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15601 && mv -f "$cfgfile.tmp" "$cfgfile" \
15602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603 test 0 -eq $? || _lt_function_replace_fail=:
15606 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15609 func_xform_result=${1%.*}.lo\
15610 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15611 && mv -f "$cfgfile.tmp" "$cfgfile" \
15612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15613 test 0 -eq $? || _lt_function_replace_fail=:
15616 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15619 func_arith_result=$(( $* ))\
15620 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15621 && mv -f "$cfgfile.tmp" "$cfgfile" \
15622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15623 test 0 -eq $? || _lt_function_replace_fail=:
15626 sed -e '/^func_len ()$/,/^} # func_len /c\
15629 func_len_result=${#1}\
15630 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15631 && mv -f "$cfgfile.tmp" "$cfgfile" \
15632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15633 test 0 -eq $? || _lt_function_replace_fail=:
15637 if test x"$lt_shell_append" = xyes; then
15638 sed -e '/^func_append ()$/,/^} # func_append /c\
15641 eval "${1}+=\\${2}"\
15642 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15643 && mv -f "$cfgfile.tmp" "$cfgfile" \
15644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15645 test 0 -eq $? || _lt_function_replace_fail=:
15648 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15649 func_append_quoted ()\
15651 \ func_quote_for_eval "${2}"\
15652 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15653 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15654 && mv -f "$cfgfile.tmp" "$cfgfile" \
15655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15656 test 0 -eq $? || _lt_function_replace_fail=:
15659 # Save a `func_append' function call where possible by direct use of '+='
15660 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15661 && mv -f "$cfgfile.tmp" "$cfgfile" \
15662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15663 test 0 -eq $? || _lt_function_replace_fail=:
15665 # Save a `func_append' function call even when '+=' is not available
15666 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15667 && mv -f "$cfgfile.tmp" "$cfgfile" \
15668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15669 test 0 -eq $? || _lt_function_replace_fail=:
15672 if test x"$_lt_function_replace_fail" = x":"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15674 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15678 mv -f "$cfgfile" "$ofile" ||
15679 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15690 ac_clean_files=$ac_clean_files_save
15692 test $ac_write_fail = 0 ||
15693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15696 # configure is writing to config.log, and then calls config.status.
15697 # config.status does its own redirection, appending to config.log.
15698 # Unfortunately, on DOS this fails, as config.log is still kept open
15699 # by configure, so config.status won't be able to write to it; its
15700 # output is simply discarded. So we exec the FD to /dev/null,
15701 # effectively closing config.log, so it can be properly (re)opened and
15702 # appended to by config.status. When coming back to configure, we
15703 # need to make the FD available again.
15704 if test "$no_create" != yes; then
15706 ac_config_status_args=
15707 test "$silent" = yes &&
15708 ac_config_status_args="$ac_config_status_args --quiet"
15710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15713 # would make configure fail if this is the last instruction.
15714 $ac_cs_success || as_fn_exit 1
15716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}