2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmtp 1.1.11.
5 # Report bugs to <libmtp-discuss@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: libmtp-discuss@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libmtp'
592 PACKAGE_TARNAME='libmtp'
593 PACKAGE_VERSION='1.1.11'
594 PACKAGE_STRING='libmtp 1.1.11'
595 PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
598 ac_unique_file="src/libmtp.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
640 LIBOPENUSB_COMPILE_FALSE
641 LIBOPENUSB_COMPILE_TRUE
642 LIBUSB0_COMPILE_FALSE
644 LIBUSB1_COMPILE_FALSE
657 COMPILE_MINGW32_FALSE
732 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
789 enable_dependency_tracking
808 ac_precious_vars='build_alias
825 # Initialize some variables set by options.
827 ac_init_version=false
828 ac_unrecognized_opts=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures libmtp 1.1.11 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libmtp]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of libmtp 1.1.11:";;
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --disable-rpath do not hardcode runtime library paths
1453 --enable-doxygen Build API documentation using Doxygen [default=auto]
1454 --disable-mtpz Disable functionality to connect to MTPZ devices
1456 --disable-largefile omit support for large files
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1463 --with-aix-soname=aix|svr4|both
1464 shared library versioning (aka "SONAME") variant to
1465 provide on AIX, [default=aix].
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1468 compiler's sysroot if not specified).
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1471 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1472 --with-udev=DIR directory where udev is installed
1473 [default=/usr/lib/udev]
1474 --with-udev-rules=NAME file name for udev rules [default=69-libmtp.rules]
1475 --with-udev-group=GROUP file group for device nodes [default: none
1477 --with-udev-mode=GROUP file mode for device nodes [default: none specified]
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1488 User-defined run-time library search path.
1490 PKG_CONFIG path to pkg-config utility
1492 directories to add to pkg-config's search path
1494 path overriding pkg-config's built-in search path
1496 C compiler flags for LIBUSB, overriding pkg-config
1497 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <libmtp-discuss@lists.sourceforge.net>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1565 libmtp configure 1.1.11
1566 generated by GNU Autoconf 2.69
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_compile
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 test -x conftest$ac_exeext
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_link
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile "$LINENO"; then :
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1845 ac_fn_c_check_header_mongrel ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval \${$3+:} false; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_header_compiler=yes
1869 ac_header_compiler=no
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883 ac_header_preproc=yes
1885 ac_header_preproc=no
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1891 # So? What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## --------------------------------------------------- ##
1911 ## Report this to libmtp-discuss@lists.sourceforge.net ##
1912 ## --------------------------------------------------- ##"
1913 ) | sed "s/^/$as_me: WARNING: /" >&2
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_type
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 $as_echo_n "checking for $2.$3... " >&6; }
1994 if eval \${$4+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2020 if (sizeof ac_aggr.$3)
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_member
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2045 It was created by libmtp $as_me 1.1.11, which was
2046 generated by GNU Autoconf 2.69. Invocation command line was
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2106 ac_must_keep_next=false
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135 -* ) ac_must_keep_next=true ;;
2138 as_fn_append ac_configure_args " '$ac_arg'"
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2156 $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2160 # The following way of writing the cache mishandles newlines in values,
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2196 for ac_var in $ac_subst_vars
2198 eval ac_val=\$$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2211 for ac_var in $ac_subst_files
2213 eval ac_val=\$$ac_var
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 $as_echo "$ac_var='\''$ac_val'\''"
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2246 $as_echo "/* confdefs.h */" > confdefs.h
2248 # Predefined preprocessor variables.
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2279 if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2325 # Check that the precious variables saved in the cache have kept the same
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 am__api_version='1.15'
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name. Accept space and tab only in the latter.
2525 *[\\\"\#\$\&\'\`$am_lf]*)
2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments. Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2545 set X `ls -t "$srcdir/configure" conftest.file`
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2564 test "$2" = conftest.file
2570 as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595 # Expand $ac_aux_dir to an absolute path.
2596 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2598 if test x"${MISSING+set}" != xset; then
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615 if test x"${install_sh+set}" != xset; then
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip". However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_STRIP"; then
2670 # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_STRIP" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2718 STRIP="$ac_cv_prog_STRIP"
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2766 for ac_prog in gawk mawk nawk awk
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$AWK" && break
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 cat >conftest.make <<\_ACEOF
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 SET_MAKE="MAKE=${MAKE-make}"
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2846 rmdir .tst 2>/dev/null
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2853 case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if $as_echo 'TRUE=$(BAR$(V))
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2873 am_cv_make_support_nested_variables=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 # For better backward compatibility. To be removed once Automake 1.9.x
2938 # dies out for good. For more background, see:
2939 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2943 # We need awk for the "check" target (and possibly the TAP driver). The
2944 # system "awk" is bad on some platforms.
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar pax cpio none'
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes. So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present. This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message. This
2979 can help us improve future automake versions.
2982 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983 echo 'Configuration will proceed anyway, since you have set the' >&2
2984 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988 Aborting the configuration process, to ensure you take notice of the issue.
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2998 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3003 ac_config_headers="$ac_config_headers config.h"
3006 # Checks for programs.
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3051 if test -z "$ac_cv_prog_CC"; then
3053 # Extract the first word of "gcc", so it can be a program name with args.
3054 set dummy gcc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_ac_ct_CC="gcc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 $as_echo "$ac_ct_CC" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3089 if test "x$ac_ct_CC" = x; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_CC="${ac_tool_prefix}cc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3145 if test -z "$CC"; then
3146 # Extract the first word of "cc", so it can be a program name with args.
3147 set dummy cc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165 ac_prog_rejected=yes
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test $ac_prog_rejected = yes; then
3177 # We found a bogon in the path, so make sure we never use it.
3178 set dummy $ac_cv_prog_CC
3180 if test $# != 0; then
3181 # We chose a different compiler from the bogus one.
3182 # However, it has the same basename, so the bogon will be chosen
3183 # first if we set CC to just the basename; use the full file name.
3185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3201 if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 for ac_prog in cl.exe
3205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$CC" && break
3245 if test -z "$CC"; then
3247 for ac_prog in cl.exe
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_CC="$ac_prog"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279 $as_echo "$ac_ct_CC" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3286 test -n "$ac_ct_CC" && break
3289 if test "x$ac_ct_CC" = x; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3305 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 # Provide some information about the compiler.
3311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3314 for ac_option in --version -v -V -qversion; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324 if test -s conftest.err; then
3326 ... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3330 rm -f conftest.er1 conftest.err
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352 $as_echo_n "checking whether the C compiler works... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3359 for ac_file in $ac_files
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 if { { ac_try="$ac_link_default"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3384 for ac_file in $ac_files ''
3386 test -f "$ac_file" || continue
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3391 # We found the default executable, but exeext='' is most
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414 if test -z "$ac_file"; then :
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error 77 "C compiler cannot create executables
3423 See \`config.log' for more details" "$LINENO" 5; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 $as_echo "yes" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429 $as_echo_n "checking for C compiler default output file name... " >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431 $as_echo "$ac_file" >&6; }
3432 ac_exeext=$ac_cv_exeext
3434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435 ac_clean_files=$ac_clean_files_save
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437 $as_echo_n "checking for suffix of executables... " >&6; }
3438 if { { ac_try="$ac_link"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3451 # work properly (i.e., refer to `conftest.exe'), while it won't with
3453 for ac_file in conftest.exe conftest conftest.*; do
3454 test -f "$ac_file" || continue
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466 See \`config.log' for more details" "$LINENO" 5; }
3468 rm -f conftest conftest$ac_cv_exeext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470 $as_echo "$ac_cv_exeext" >&6; }
3472 rm -f conftest.$ac_ext
3473 EXEEXT=$ac_cv_exeext
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3481 FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3488 ac_clean_files="$ac_clean_files conftest.out"
3489 # Check that the compiler produces executables we can run. If not, either
3490 # the compiler is broken, or we cross compile.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492 $as_echo_n "checking whether we are cross compiling... " >&6; }
3493 if test "$cross_compiling" != yes; then
3494 { { ac_try="$ac_link"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 if { ac_try='./conftest$ac_cv_exeext'
3506 { { case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_try") 2>&5
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; }; then
3518 if test "$cross_compiling" = maybe; then
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot run C compiled programs.
3524 If you meant to cross compile, use \`--host'.
3525 See \`config.log' for more details" "$LINENO" 5; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530 $as_echo "$cross_compiling" >&6; }
3532 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533 ac_clean_files=$ac_clean_files_save
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if ${ac_cv_objext+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 rm -f conftest.o conftest.obj
3551 if { { ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_compile") 2>&5
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
3562 for ac_file in conftest.o conftest.obj conftest.*; do
3563 test -f "$ac_file" || continue;
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of object files: cannot compile
3577 See \`config.log' for more details" "$LINENO" 5; }
3579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582 $as_echo "$ac_cv_objext" >&6; }
3583 OBJEXT=$ac_cv_objext
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3587 if ${ac_cv_c_compiler_gnu+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3604 if ac_fn_c_try_compile "$LINENO"; then :
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3614 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615 if test $ac_compiler_gnu = yes; then
3620 ac_test_CFLAGS=${CFLAGS+set}
3621 ac_save_CFLAGS=$CFLAGS
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3623 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3624 if ${ac_cv_prog_cc_g+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 ac_save_c_werror_flag=$ac_c_werror_flag
3628 ac_c_werror_flag=yes
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 if ac_fn_c_try_compile "$LINENO"; then :
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3657 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_c_werror_flag=$ac_save_c_werror_flag
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3673 if ac_fn_c_try_compile "$LINENO"; then :
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_c_werror_flag=$ac_save_c_werror_flag
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3684 $as_echo "$ac_cv_prog_cc_g" >&6; }
3685 if test "$ac_test_CFLAGS" = set; then
3686 CFLAGS=$ac_save_CFLAGS
3687 elif test $ac_cv_prog_cc_g = yes; then
3688 if test "$GCC" = yes; then
3694 if test "$GCC" = yes; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3701 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3702 if ${ac_cv_prog_cc_c89+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 ac_cv_prog_cc_c89=no
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3713 struct buf { int x; };
3714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715 static char *e (p, i)
3721 static char *f (char * (*g) (char **, int), char **p, ...)
3726 s = g (p, va_arg (v,int));
3731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3732 function prototypes and stuff, but not '\xHH' hex character constants.
3733 These don't provoke an error unfortunately, instead are silently treated
3734 as 'x'. The following induces an error, until -std is added to get
3735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3736 array size at least. It's necessary to write '\x00'==0 to get something
3737 that's true only with -std. */
3738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741 inside strings and character constants. */
3743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745 int test (int i, double x);
3746 struct s1 {int (*f) (int a);};
3747 struct s2 {int (*f) (double a);};
3748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762 CC="$ac_save_CC $ac_arg"
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_prog_cc_c89=$ac_arg
3766 rm -f core conftest.err conftest.$ac_objext
3767 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 rm -f conftest.$ac_ext
3774 case "x$ac_cv_prog_cc_c89" in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3777 $as_echo "none needed" >&6; } ;;
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3780 $as_echo "unsupported" >&6; } ;;
3782 CC="$CC $ac_cv_prog_cc_c89"
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786 if test "x$ac_cv_prog_cc_c89" != xno; then :
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3802 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3803 if ${am_cv_prog_cc_c_o+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3817 # Make sure it works both with $CC and with simple cc.
3818 # Following AC_PROG_CC_C_O, we do the test twice because some
3819 # compilers refuse to overwrite an existing .o file with -o,
3820 # though they will create one.
3821 am_cv_prog_cc_c_o=yes
3823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } \
3828 && test -f conftest2.$ac_objext; then
3831 am_cv_prog_cc_c_o=no
3835 rm -f core conftest*
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3840 if test "$am_cv_prog_cc_c_o" != yes; then
3841 # Losing compiler, so override with the script.
3842 # FIXME: It is wrong to rewrite CC.
3843 # But if we don't then we get into trouble of one sort or another.
3844 # A longer-term fix would be to have automake use am__CC in this case,
3845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846 CC="$am_aux_dir/compile $CC"
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 DEPDIR="${am__leading_dot}deps"
3856 ac_config_commands="$ac_config_commands depfiles"
3859 am_make=${MAKE-make}
3860 cat > confinc << 'END'
3862 @echo this is the am__doit target
3865 # If we don't find an include directive, just comment out the code.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3871 # First try GNU make style include.
3872 echo "include confinc" > confmf
3873 # Ignore all kinds of additional output from 'make'.
3874 case `$am_make -s -f confmf 2> /dev/null` in #(
3875 *the\ am__doit\ target*)
3881 # Now try BSD make style include.
3882 if test "$am__include" = "#"; then
3883 echo '.include "confinc"' > confmf
3884 case `$am_make -s -f confmf 2> /dev/null` in #(
3885 *the\ am__doit\ target*)
3886 am__include=.include
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3895 $as_echo "$_am_result" >&6; }
3896 rm -f confinc confmf
3898 # Check whether --enable-dependency-tracking was given.
3899 if test "${enable_dependency_tracking+set}" = set; then :
3900 enableval=$enable_dependency_tracking;
3903 if test "x$enable_dependency_tracking" != xno; then
3904 am_depcomp="$ac_aux_dir/depcomp"
3908 if test "x$enable_dependency_tracking" != xno; then
3918 depcc="$CC" am_compiler_list=
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921 $as_echo_n "checking dependency style of $depcc... " >&6; }
3922 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926 # We make a subdir and do the tests there. Otherwise we can end up
3927 # making bogus files that we don't know about and never remove. For
3928 # instance it was reported that on HP-UX the gcc test will end up
3929 # making a dummy file named 'D' -- because '-MD' means "put the output
3933 # Copy depcomp to subdir because otherwise we won't find it if we're
3934 # using a relative directory.
3935 cp "$am_depcomp" conftest.dir
3937 # We will build objects and dependencies in a subdirectory because
3938 # it helps to detect inapplicable dependency modes. For instance
3939 # both Tru64's cc and ICC support -MD to output dependencies as a
3940 # side effect of compilation, but ICC will put the dependencies in
3941 # the current directory while Tru64 will put them in the object
3945 am_cv_CC_dependencies_compiler_type=none
3946 if test "$am_compiler_list" = ""; then
3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3950 case " $depcc " in #(
3951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966 # Solaris 10 /bin/sh.
3967 echo '/* dummy */' > sub/conftst$i.h
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3972 # mode. It turns out that the SunPro C++ compiler does not properly
3973 # handle '-M -o', and we need to detect this. Also, some Intel
3974 # versions had trouble with output in subdirs.
3975 am__obj=sub/conftest.${OBJEXT-o}
3976 am__minus_obj="-o $am__obj"
3979 # This depmode causes a compiler race in universal mode.
3980 test "$am__universal" = false || continue
3983 # After this tag, mechanisms are not by side-effect, so they'll
3984 # only be used when explicitly requested.
3985 if test "x$enable_dependency_tracking" = xyes; then
3991 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992 # This compiler won't grok '-c -o', but also, the minuso test has
3993 # not run yet. These depmodes are late enough in the game, and
3994 # so weak that their functioning should not be impacted.
3995 am__obj=conftest.${OBJEXT-o}
4000 if depmode=$depmode \
4001 source=sub/conftest.c object=$am__obj \
4002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004 >/dev/null 2>conftest.err &&
4005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009 # icc doesn't choke on unknown options, it will just issue warnings
4010 # or remarks (even with -Werror). So we grep stderr for any message
4011 # that says an option was ignored or not supported.
4012 # When given -MP, icc 7.0 and 7.1 complain thusly:
4013 # icc: Command line warning: ignoring option '-M'; no argument required
4014 # The diagnosis changed in icc 8.0:
4015 # icc: Command line remark: option '-MP' not supported
4016 if (grep 'ignoring option' conftest.err ||
4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018 am_cv_CC_dependencies_compiler_type=$depmode
4027 am_cv_CC_dependencies_compiler_type=none
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4036 test "x$enable_dependency_tracking" != xno \
4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039 am__fastdepCC_FALSE='#'
4041 am__fastdepCC_TRUE='#'
4042 am__fastdepCC_FALSE=
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4048 $as_echo_n "checking whether ln -s works... " >&6; }
4050 if test "$LN_S" = "ln -s"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 $as_echo "yes" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4055 $as_echo "no, using $LN_S" >&6; }
4058 # Make sure we can run config.sub.
4059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4060 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4063 $as_echo_n "checking build system type... " >&6; }
4064 if ${ac_cv_build+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 ac_build_alias=$build_alias
4068 test "x$ac_build_alias" = x &&
4069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4070 test "x$ac_build_alias" = x &&
4071 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4073 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4077 $as_echo "$ac_cv_build" >&6; }
4078 case $ac_cv_build in
4080 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4083 ac_save_IFS=$IFS; IFS='-'
4089 # Remember, the first character of IFS is used to create $*,
4090 # except with old shells:
4093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4097 $as_echo_n "checking host system type... " >&6; }
4098 if ${ac_cv_host+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test "x$host_alias" = x; then
4102 ac_cv_host=$ac_cv_build
4104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4110 $as_echo "$ac_cv_host" >&6; }
4113 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4116 ac_save_IFS=$IFS; IFS='-'
4122 # Remember, the first character of IFS is used to create $*,
4123 # except with old shells:
4126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4129 enable_win32_dll=yes
4132 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}as; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_AS+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$AS"; then
4142 ac_cv_prog_AS="$AS" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_AS="${ac_tool_prefix}as"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$AS"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4164 $as_echo "$AS" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4172 if test -z "$ac_cv_prog_AS"; then
4174 # Extract the first word of "as", so it can be a program name with args.
4175 set dummy as; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$ac_ct_AS"; then
4182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_AS="as"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4202 if test -n "$ac_ct_AS"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4204 $as_echo "$ac_ct_AS" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4210 if test "x$ac_ct_AS" = x; then
4213 case $cross_compiling:$ac_tool_warned in
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_DLLTOOL+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$DLLTOOL"; then
4234 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 DLLTOOL=$ac_cv_prog_DLLTOOL
4254 if test -n "$DLLTOOL"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4256 $as_echo "$DLLTOOL" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4264 if test -z "$ac_cv_prog_DLLTOOL"; then
4265 ac_ct_DLLTOOL=$DLLTOOL
4266 # Extract the first word of "dlltool", so it can be a program name with args.
4267 set dummy dlltool; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4271 $as_echo_n "(cached) " >&6
4273 if test -n "$ac_ct_DLLTOOL"; then
4274 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4294 if test -n "$ac_ct_DLLTOOL"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4296 $as_echo "$ac_ct_DLLTOOL" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4302 if test "x$ac_ct_DLLTOOL" = x; then
4305 case $cross_compiling:$ac_tool_warned in
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4311 DLLTOOL=$ac_ct_DLLTOOL
4314 DLLTOOL="$ac_cv_prog_DLLTOOL"
4317 if test -n "$ac_tool_prefix"; then
4318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_prog_OBJDUMP+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$OBJDUMP"; then
4326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 OBJDUMP=$ac_cv_prog_OBJDUMP
4346 if test -n "$OBJDUMP"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4348 $as_echo "$OBJDUMP" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4356 if test -z "$ac_cv_prog_OBJDUMP"; then
4357 ac_ct_OBJDUMP=$OBJDUMP
4358 # Extract the first word of "objdump", so it can be a program name with args.
4359 set dummy objdump; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$ac_ct_OBJDUMP"; then
4366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4386 if test -n "$ac_ct_OBJDUMP"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4388 $as_echo "$ac_ct_OBJDUMP" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4394 if test "x$ac_ct_OBJDUMP" = x; then
4397 case $cross_compiling:$ac_tool_warned in
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 ac_tool_warned=yes ;;
4403 OBJDUMP=$ac_ct_OBJDUMP
4406 OBJDUMP="$ac_cv_prog_OBJDUMP"
4412 test -z "$AS" && AS=as
4418 test -z "$DLLTOOL" && DLLTOOL=dlltool
4424 test -z "$OBJDUMP" && OBJDUMP=objdump
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4435 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4440 macro_version='2.4.6'
4441 macro_revision='2.4.6'
4455 ltmain=$ac_aux_dir/ltmain.sh
4457 # Backslashify metacharacters that are still active within
4458 # double-quoted strings.
4459 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4461 # Same as above, but do not quote variable references.
4462 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4464 # Sed substitution to delay expansion of an escaped shell variable in a
4465 # double_quote_subst'ed string.
4466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4468 # Sed substitution to delay expansion of an escaped single quote.
4469 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4471 # Sed substitution to avoid accidental globbing in evaled expressions
4472 no_glob_subst='s/\*/\\\*/g'
4474 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4479 $as_echo_n "checking how to print strings... " >&6; }
4480 # Test print first, because it will be a builtin if present.
4481 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4482 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4484 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4487 # Use this function as a fallback that always works.
4488 func_fallback_echo ()
4490 eval 'cat <<_LTECHO_EOF
4494 ECHO='func_fallback_echo'
4497 # func_echo_all arg...
4498 # Invoke $ECHO with all args, space-separated.
4505 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4506 $as_echo "printf" >&6; } ;;
4507 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4508 $as_echo "print -r" >&6; } ;;
4509 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4510 $as_echo "cat" >&6; } ;;
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4527 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4528 if ${ac_cv_path_SED+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4532 for ac_i in 1 2 3 4 5 6 7; do
4533 ac_script="$ac_script$as_nl$ac_script"
4535 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4536 { ac_script=; unset ac_script;}
4537 if test -z "$SED"; then
4538 ac_path_SED_found=false
4539 # Loop through the user's path and test for each of PROGNAME-LIST
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir=.
4545 for ac_prog in sed gsed; do
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4548 as_fn_executable_p "$ac_path_SED" || continue
4549 # Check for GNU ac_path_SED and select it if it is found.
4550 # Check for GNU $ac_path_SED
4551 case `"$ac_path_SED" --version 2>&1` in
4553 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4556 $as_echo_n 0123456789 >"conftest.in"
4559 cat "conftest.in" "conftest.in" >"conftest.tmp"
4560 mv "conftest.tmp" "conftest.in"
4561 cp "conftest.in" "conftest.nl"
4562 $as_echo '' >> "conftest.nl"
4563 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4565 as_fn_arith $ac_count + 1 && ac_count=$as_val
4566 if test $ac_count -gt ${ac_path_SED_max-0}; then
4567 # Best one so far, save it but keep looking for a better one
4568 ac_cv_path_SED="$ac_path_SED"
4569 ac_path_SED_max=$ac_count
4571 # 10*(2^10) chars as input seems more than enough
4572 test $ac_count -gt 10 && break
4574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577 $ac_path_SED_found && break 3
4582 if test -z "$ac_cv_path_SED"; then
4583 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4591 $as_echo "$ac_cv_path_SED" >&6; }
4592 SED="$ac_cv_path_SED"
4595 test -z "$SED" && SED=sed
4596 Xsed="$SED -e 1s/^X//"
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in grep ggrep; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624 as_fn_executable_p "$ac_path_GREP" || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4632 $as_echo_n 0123456789 >"conftest.in"
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP="$ac_path_GREP"
4645 ac_path_GREP_max=$ac_count
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 $ac_path_GREP_found && break 3
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662 ac_cv_path_GREP=$GREP
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP="$ac_cv_path_GREP"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677 then ac_cv_path_EGREP="$GREP -E"
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in egrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p "$ac_path_EGREP" || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4698 $as_echo_n 0123456789 >"conftest.in"
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP="$ac_path_EGREP"
4711 ac_path_EGREP_max=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 $ac_path_EGREP_found && break 3
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4728 ac_cv_path_EGREP=$EGREP
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4739 $as_echo_n "checking for fgrep... " >&6; }
4740 if ${ac_cv_path_FGREP+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4744 then ac_cv_path_FGREP="$GREP -F"
4746 if test -z "$FGREP"; then
4747 ac_path_FGREP_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in fgrep; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4757 as_fn_executable_p "$ac_path_FGREP" || continue
4758 # Check for GNU ac_path_FGREP and select it if it is found.
4759 # Check for GNU $ac_path_FGREP
4760 case `"$ac_path_FGREP" --version 2>&1` in
4762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4765 $as_echo_n 0123456789 >"conftest.in"
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo 'FGREP' >> "conftest.nl"
4772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
4775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_FGREP="$ac_path_FGREP"
4778 ac_path_FGREP_max=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 $ac_path_FGREP_found && break 3
4791 if test -z "$ac_cv_path_FGREP"; then
4792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4795 ac_cv_path_FGREP=$FGREP
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4801 $as_echo "$ac_cv_path_FGREP" >&6; }
4802 FGREP="$ac_cv_path_FGREP"
4805 test -z "$GREP" && GREP=grep
4825 # Check whether --with-gnu-ld was given.
4826 if test "${with_gnu_ld+set}" = set; then :
4827 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4833 if test yes = "$GCC"; then
4834 # Check if gcc -print-prog-name=ld gives a path.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4836 $as_echo_n "checking for ld used by $CC... " >&6; }
4839 # gcc leaves a trailing carriage return, which upsets mingw
4840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4845 # Accept absolute paths.
4847 re_direlt='/[^/][^/]*/\.\./'
4848 # Canonicalize the pathname of ld
4849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4853 test -z "$LD" && LD=$ac_prog
4856 # If it fails, then pretend we aren't using GCC.
4860 # If it is relative, then search for the first ld in PATH.
4864 elif test yes = "$with_gnu_ld"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4866 $as_echo_n "checking for GNU ld... " >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4869 $as_echo_n "checking for non-GNU ld... " >&6; }
4871 if ${lt_cv_path_LD+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -z "$LD"; then
4875 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4876 for ac_dir in $PATH; do
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4880 lt_cv_path_LD=$ac_dir/$ac_prog
4881 # Check to see if the program is GNU ld. I'd rather use --version,
4882 # but apparently some variants of GNU ld only accept -v.
4883 # Break only if it was the GNU/non-GNU ld that we prefer.
4884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886 test no != "$with_gnu_ld" && break
4889 test yes != "$with_gnu_ld" && break
4896 lt_cv_path_LD=$LD # Let the user override the test with a path.
4901 if test -n "$LD"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4903 $as_echo "$LD" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4911 if ${lt_cv_prog_gnu_ld+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4915 case `$LD -v 2>&1 </dev/null` in
4916 *GNU* | *'with BFD'*)
4917 lt_cv_prog_gnu_ld=yes
4920 lt_cv_prog_gnu_ld=no
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4926 with_gnu_ld=$lt_cv_prog_gnu_ld
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4938 if ${lt_cv_path_NM+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 if test -n "$NM"; then
4942 # Let the user override the test.
4945 lt_nm_to_check=${ac_tool_prefix}nm
4946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4947 lt_nm_to_check="$lt_nm_to_check nm"
4949 for lt_tmp_nm in $lt_nm_to_check; do
4950 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4951 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4953 test -z "$ac_dir" && ac_dir=.
4954 tmp_nm=$ac_dir/$lt_tmp_nm
4955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4956 # Check to see if the nm accepts a BSD-compat flag.
4957 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4958 # nm: unknown option "B" ignored
4959 # Tru64's nm complains that /dev/null is an invalid object file
4960 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4962 mingw*) lt_bad_file=conftest.nm/nofile ;;
4963 *) lt_bad_file=/dev/null ;;
4965 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4966 *$lt_bad_file* | *'Invalid file or object type'*)
4967 lt_cv_path_NM="$tmp_nm -B"
4971 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4973 lt_cv_path_NM="$tmp_nm -p"
4977 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978 continue # so that we can try to find one that supports BSD flags
4987 : ${lt_cv_path_NM=no}
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test no != "$lt_cv_path_NM"; then
4995 # Didn't find any BSD compatible name lister, look for dumpbin.
4996 if test -n "$DUMPBIN"; then :
4997 # Let the user override the test.
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog in dumpbin "link -dump"
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_DUMPBIN+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$DUMPBIN"; then
5010 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 test -n "$DUMPBIN" && break
5042 if test -z "$DUMPBIN"; then
5043 ac_ct_DUMPBIN=$DUMPBIN
5044 for ac_prog in dumpbin "link -dump"
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$ac_ct_DUMPBIN"; then
5054 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 test -n "$ac_ct_DUMPBIN" && break
5086 if test "x$ac_ct_DUMPBIN" = x; then
5089 case $cross_compiling:$ac_tool_warned in
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5095 DUMPBIN=$ac_ct_DUMPBIN
5099 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5101 DUMPBIN="$DUMPBIN -symbols -headers"
5109 if test : != "$DUMPBIN"; then
5113 test -z "$NM" && NM=nm
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if ${lt_cv_nm_interface+:} false; then :
5123 $as_echo_n "(cached) " >&6
5125 lt_cv_nm_interface="BSD nm"
5126 echo "int some_variable = 0;" > conftest.$ac_ext
5127 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128 (eval "$ac_compile" 2>conftest.err)
5129 cat conftest.err >&5
5130 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132 cat conftest.err >&5
5133 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134 cat conftest.out >&5
5135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136 lt_cv_nm_interface="MS dumpbin"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5143 # find the maximum length of command line arguments
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5145 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5146 if ${lt_cv_sys_max_cmd_len+:} false; then :
5147 $as_echo_n "(cached) " >&6
5154 # On DJGPP, this test can blow up pretty badly due to problems in libc
5155 # (any single argument exceeding 2000 bytes causes a buffer overrun
5156 # during glob expansion). Even if it were fixed, the result of this
5157 # check would be larger than it should be.
5158 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5162 # Under GNU Hurd, this test is not required because there is
5163 # no limit to the length of command line arguments.
5164 # Libtool will interpret -1 as no limit whatsoever
5165 lt_cv_sys_max_cmd_len=-1;
5168 cygwin* | mingw* | cegcc*)
5169 # On Win9x/ME, this test blows up -- it succeeds, but takes
5170 # about 5 minutes as the teststring grows exponentially.
5171 # Worse, since 9x/ME are not pre-emptively multitasking,
5172 # you end up with a "frozen" computer, even though with patience
5173 # the test eventually succeeds (with a max line length of 256k).
5174 # Instead, let's just punt: use the minimum linelength reported by
5175 # all of the supported platforms: 8192 (on NT/2K/XP).
5176 lt_cv_sys_max_cmd_len=8192;
5180 # On MiNT this can take a long time and run out of memory.
5181 lt_cv_sys_max_cmd_len=8192;
5185 # On AmigaOS with pdksh, this test takes hours, literally.
5186 # So we just punt and use a minimum line length of 8192.
5187 lt_cv_sys_max_cmd_len=8192;
5190 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5191 # This has been around since 386BSD, at least. Likely further.
5192 if test -x /sbin/sysctl; then
5193 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194 elif test -x /usr/sbin/sysctl; then
5195 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5197 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5199 # And add a safety zone
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5205 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206 lt_cv_sys_max_cmd_len=196608
5210 # The test takes a long time on OS/2.
5211 lt_cv_sys_max_cmd_len=8192
5215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217 # nice to cause kernel panics so lets avoid the loop below.
5218 # First set a reasonable default.
5219 lt_cv_sys_max_cmd_len=16384
5221 if test -x /sbin/sysconfig; then
5222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5228 lt_cv_sys_max_cmd_len=102400
5230 sysv5* | sco5v6* | sysv4.2uw2*)
5231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232 if test -n "$kargmax"; then
5233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5235 lt_cv_sys_max_cmd_len=32768
5239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240 if test -n "$lt_cv_sys_max_cmd_len" && \
5241 test undefined != "$lt_cv_sys_max_cmd_len"; then
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5245 # Make teststring a little bigger before we do anything with it.
5246 # a 1K string should be a reasonable start.
5247 for i in 1 2 3 4 5 6 7 8; do
5248 teststring=$teststring$teststring
5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5251 # If test is not a shell built-in, we'll probably end up computing a
5252 # maximum length that is only half of the actual maximum length, but
5254 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5256 test 17 != "$i" # 1/2 MB should be enough
5259 teststring=$teststring$teststring
5261 # Only check the string length outside the loop.
5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5264 # Add a significant safety factor because C++ compilers can tack on
5265 # massive amounts of additional arguments before passing them to the
5266 # linker. It appears as though 1/2 is a usable value.
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5274 if test -n "$lt_cv_sys_max_cmd_len"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5279 $as_echo "none" >&6; }
5281 max_cmd_len=$lt_cv_sys_max_cmd_len
5292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302 # test EBCDIC or ASCII
5303 case `echo X|tr X '\101'` in
5304 A) # ASCII based system
5305 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5306 lt_SP2NL='tr \040 \012'
5307 lt_NL2SP='tr \015\012 \040\040'
5309 *) # EBCDIC based system
5310 lt_SP2NL='tr \100 \n'
5311 lt_NL2SP='tr \r\n \100\100'
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5324 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5325 if ${lt_cv_to_host_file_cmd+:} false; then :
5326 $as_echo_n "(cached) " >&6
5331 *-*-mingw* ) # actually msys
5332 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5335 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5337 * ) # otherwise, assume *nix
5338 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5344 *-*-mingw* ) # actually msys
5345 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5348 lt_cv_to_host_file_cmd=func_convert_file_noop
5350 * ) # otherwise, assume *nix
5351 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5355 * ) # unhandled hosts (and "normal" native builds)
5356 lt_cv_to_host_file_cmd=func_convert_file_noop
5362 to_host_file_cmd=$lt_cv_to_host_file_cmd
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5364 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5371 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5372 if ${lt_cv_to_tool_file_cmd+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 #assume ordinary cross tools, or native build.
5376 lt_cv_to_tool_file_cmd=func_convert_file_noop
5380 *-*-mingw* ) # actually msys
5381 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5389 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5391 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5398 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5399 if ${lt_cv_ld_reload_flag+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 lt_cv_ld_reload_flag='-r'
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5405 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5406 reload_flag=$lt_cv_ld_reload_flag
5407 case $reload_flag in
5409 *) reload_flag=" $reload_flag" ;;
5411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413 cygwin* | mingw* | pw32* | cegcc*)
5414 if test yes != "$GCC"; then
5419 if test yes = "$GCC"; then
5420 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5422 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_OBJDUMP+:} false; then :
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$OBJDUMP"; then
5444 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 OBJDUMP=$ac_cv_prog_OBJDUMP
5464 if test -n "$OBJDUMP"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5466 $as_echo "$OBJDUMP" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5474 if test -z "$ac_cv_prog_OBJDUMP"; then
5475 ac_ct_OBJDUMP=$OBJDUMP
5476 # Extract the first word of "objdump", so it can be a program name with args.
5477 set dummy objdump; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_OBJDUMP"; then
5484 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5504 if test -n "$ac_ct_OBJDUMP"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5506 $as_echo "$ac_ct_OBJDUMP" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5512 if test "x$ac_ct_OBJDUMP" = x; then
5515 case $cross_compiling:$ac_tool_warned in
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5521 OBJDUMP=$ac_ct_OBJDUMP
5524 OBJDUMP="$ac_cv_prog_OBJDUMP"
5527 test -z "$OBJDUMP" && OBJDUMP=objdump
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5535 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5536 if ${lt_cv_deplibs_check_method+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 lt_cv_file_magic_cmd='$MAGIC_CMD'
5540 lt_cv_file_magic_test_file=
5541 lt_cv_deplibs_check_method='unknown'
5542 # Need to set the preceding variable on all platforms that support
5543 # interlibrary dependencies.
5544 # 'none' -- dependencies not supported.
5545 # 'unknown' -- same as none, but documents that we really don't know.
5546 # 'pass_all' -- all dependencies passed with no checks.
5547 # 'test_compile' -- check by making test program.
5548 # 'file_magic [[regex]]' -- check by looking for files in library path
5549 # that responds to the $file_magic_cmd with a given extended regex.
5550 # If you have 'file' or equivalent on your system and you're not sure
5551 # whether 'pass_all' will *always* work, you probably want this one.
5555 lt_cv_deplibs_check_method=pass_all
5559 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5564 lt_cv_file_magic_cmd='/usr/bin/file -L'
5565 lt_cv_file_magic_test_file=/shlib/libc.so
5569 # func_win32_libid is a shell function defined in ltmain.sh
5570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5571 lt_cv_file_magic_cmd='func_win32_libid'
5575 # Base MSYS/MinGW do not provide the 'file' command needed by
5576 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5577 # unless we find 'file', for example because we are cross-compiling.
5578 if ( file / ) >/dev/null 2>&1; then
5579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5580 lt_cv_file_magic_cmd='func_win32_libid'
5582 # Keep this pattern in sync with the one in func_win32_libid.
5583 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5584 lt_cv_file_magic_cmd='$OBJDUMP -f'
5589 # use the weaker test based on 'objdump'. See mingw*.
5590 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5591 lt_cv_file_magic_cmd='$OBJDUMP -f'
5594 darwin* | rhapsody*)
5595 lt_cv_deplibs_check_method=pass_all
5598 freebsd* | dragonfly*)
5599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5602 # Not sure whether the presence of OpenBSD here was a mistake.
5603 # Let's accept both of them until this is cleared up.
5604 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5605 lt_cv_file_magic_cmd=/usr/bin/file
5606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5610 lt_cv_deplibs_check_method=pass_all
5615 lt_cv_deplibs_check_method=pass_all
5618 hpux10.20* | hpux11*)
5619 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5623 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5626 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]'
5627 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5631 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5637 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5641 irix5* | irix6* | nonstopux*)
5643 *-32|*"-32 ") libmagic=32-bit;;
5644 *-n32|*"-n32 ") libmagic=N32;;
5645 *-64|*"-64 ") libmagic=64-bit;;
5646 *) libmagic=never-match;;
5648 lt_cv_deplibs_check_method=pass_all
5651 # This must be glibc/ELF.
5652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5653 lt_cv_deplibs_check_method=pass_all
5657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5671 lt_cv_deplibs_check_method=pass_all
5675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5682 osf3* | osf4* | osf5*)
5683 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_deplibs_check_method=pass_all
5691 lt_cv_deplibs_check_method=pass_all
5694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5695 lt_cv_deplibs_check_method=pass_all
5699 case $host_vendor in
5701 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]'
5702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5705 lt_cv_deplibs_check_method=pass_all
5708 lt_cv_file_magic_cmd='/bin/file'
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5712 lt_cv_file_magic_cmd='/bin/file'
5713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5714 lt_cv_file_magic_test_file=/lib/libc.so
5717 lt_cv_deplibs_check_method=pass_all
5720 lt_cv_deplibs_check_method=pass_all
5726 lt_cv_deplibs_check_method=pass_all
5729 lt_cv_deplibs_check_method=pass_all
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5735 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5739 if test "$build" = "$host"; then
5742 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5745 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5751 file_magic_cmd=$lt_cv_file_magic_cmd
5752 deplibs_check_method=$lt_cv_deplibs_check_method
5753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5776 if test -n "$ac_tool_prefix"; then
5777 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5778 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_DLLTOOL+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 if test -n "$DLLTOOL"; then
5785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 DLLTOOL=$ac_cv_prog_DLLTOOL
5805 if test -n "$DLLTOOL"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5807 $as_echo "$DLLTOOL" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5815 if test -z "$ac_cv_prog_DLLTOOL"; then
5816 ac_ct_DLLTOOL=$DLLTOOL
5817 # Extract the first word of "dlltool", so it can be a program name with args.
5818 set dummy dlltool; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$ac_ct_DLLTOOL"; then
5825 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5845 if test -n "$ac_ct_DLLTOOL"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5847 $as_echo "$ac_ct_DLLTOOL" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5853 if test "x$ac_ct_DLLTOOL" = x; then
5856 case $cross_compiling:$ac_tool_warned in
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5862 DLLTOOL=$ac_ct_DLLTOOL
5865 DLLTOOL="$ac_cv_prog_DLLTOOL"
5868 test -z "$DLLTOOL" && DLLTOOL=dlltool
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5877 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5878 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 lt_cv_sharedlib_from_linklib_cmd='unknown'
5884 cygwin* | mingw* | pw32* | cegcc*)
5885 # two different shell functions defined in ltmain.sh;
5886 # decide which one to use based on capabilities of $DLLTOOL
5887 case `$DLLTOOL --help 2>&1` in
5888 *--identify-strict*)
5889 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5892 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5897 # fallback: assume linklib IS sharedlib
5898 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5904 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5905 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5906 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5915 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_AR+:} false; then :
5923 $as_echo_n "(cached) " >&6
5925 if test -n "$AR"; then
5926 ac_cv_prog_AR="$AR" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 if test -n "$AR"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5948 $as_echo "$AR" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5955 test -n "$AR" && break
5958 if test -z "$AR"; then
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$ac_ct_AR"; then
5970 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_AR="$ac_prog"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5990 if test -n "$ac_ct_AR"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5992 $as_echo "$ac_ct_AR" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5999 test -n "$ac_ct_AR" && break
6002 if test "x$ac_ct_AR" = x; then
6005 case $cross_compiling:$ac_tool_warned in
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6029 $as_echo_n "checking for archiver @FILE support... " >&6; }
6030 if ${lt_cv_ar_at_file+:} false; then :
6031 $as_echo_n "(cached) " >&6
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046 echo conftest.$ac_objext > conftest.lst
6047 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049 (eval $lt_ar_try) 2>&5
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }
6053 if test 0 -eq "$ac_status"; then
6054 # Ensure the archiver fails upon bogus file names.
6055 rm -f conftest.$ac_objext libconftest.a
6056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6057 (eval $lt_ar_try) 2>&5
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }
6061 if test 0 -ne "$ac_status"; then
6065 rm -f conftest.* libconftest.a
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6072 $as_echo "$lt_cv_ar_at_file" >&6; }
6074 if test no = "$lt_cv_ar_at_file"; then
6077 archiver_list_spec=$lt_cv_ar_at_file
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}strip; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_STRIP+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 if test -n "$STRIP"; then
6095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 STRIP=$ac_cv_prog_STRIP
6115 if test -n "$STRIP"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6117 $as_echo "$STRIP" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6125 if test -z "$ac_cv_prog_STRIP"; then
6127 # Extract the first word of "strip", so it can be a program name with args.
6128 set dummy strip; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$ac_ct_STRIP"; then
6135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_STRIP="strip"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155 if test -n "$ac_ct_STRIP"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6157 $as_echo "$ac_ct_STRIP" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6163 if test "x$ac_ct_STRIP" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6175 STRIP="$ac_cv_prog_STRIP"
6178 test -z "$STRIP" && STRIP=:
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_RANLIB+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$RANLIB"; then
6194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 RANLIB=$ac_cv_prog_RANLIB
6214 if test -n "$RANLIB"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6216 $as_echo "$RANLIB" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6224 if test -z "$ac_cv_prog_RANLIB"; then
6225 ac_ct_RANLIB=$RANLIB
6226 # Extract the first word of "ranlib", so it can be a program name with args.
6227 set dummy ranlib; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$ac_ct_RANLIB"; then
6234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_RANLIB="ranlib"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6254 if test -n "$ac_ct_RANLIB"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6256 $as_echo "$ac_ct_RANLIB" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_RANLIB" = x; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6271 RANLIB=$ac_ct_RANLIB
6274 RANLIB="$ac_cv_prog_RANLIB"
6277 test -z "$RANLIB" && RANLIB=:
6284 # Determine commands to create old-style static archives.
6285 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6286 old_postinstall_cmds='chmod 644 $oldlib'
6287 old_postuninstall_cmds=
6289 if test -n "$RANLIB"; then
6292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6303 lock_old_archive_extraction=yes ;;
6305 lock_old_archive_extraction=no ;;
6346 # If no C compiler was specified, use CC.
6349 # If no C compiler flags were specified, use CFLAGS.
6350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6352 # Allow CC to be a program name with arguments.
6356 # Check for command to grab the raw symbol name followed by C symbol from nm.
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6358 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6359 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6360 $as_echo_n "(cached) " >&6
6363 # These are sane defaults that work on at least a few old systems.
6364 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6366 # Character class describing NM global symbol codes.
6367 symcode='[BCDEGRST]'
6369 # Regexp to match symbols that can be accessed directly from C.
6370 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6372 # Define system-specific variables.
6377 cygwin* | mingw* | pw32* | cegcc*)
6378 symcode='[ABCDGISTW]'
6381 if test ia64 = "$host_cpu"; then
6382 symcode='[ABCDEGRST]'
6386 symcode='[BCDEGRST]'
6389 symcode='[BCDEGQRST]'
6400 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408 # If we're using GNU nm, then use its standard symbol codes.
6409 case `$NM -V 2>&1` in
6410 *GNU* | *'with BFD'*)
6411 symcode='[ABCDGIRSTW]' ;;
6414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6415 # Gets list of data symbols to import.
6416 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6417 # Adjust the below global symbol transforms to fixup imported variables.
6418 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6419 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6420 lt_c_name_lib_hook="\
6421 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6422 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6424 # Disable hooks by default.
6425 lt_cv_sys_global_symbol_to_import=
6431 # Transform an extracted symbol line into a proper C declaration.
6432 # Some systems (esp. on ia64) link data and code symbols differently,
6433 # so use this general approach.
6434 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6436 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6437 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6439 # Transform an extracted symbol line into symbol name and symbol address
6440 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6442 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6443 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6445 # Transform an extracted symbol line into symbol name with lib prefix and
6447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6448 $lt_c_name_lib_hook\
6449 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6450 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6451 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6453 # Handle CRLF in mingw tool chain
6457 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6461 # Try without a prefix underscore, then with it.
6462 for ac_symprfx in "" "_"; do
6464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6465 symxfrm="\\1 $ac_symprfx\\2 \\2"
6467 # Write the raw and C identifiers.
6468 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6469 # Fake it for dumpbin and say T for any non-static function,
6470 # D for any global variable and I for any imported variable.
6471 # Also find C++ and __fastcall symbols from MSVC++,
6472 # which start with @ or ?.
6473 lt_cv_sys_global_symbol_pipe="$AWK '"\
6474 " {last_section=section; section=\$ 3};"\
6475 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6476 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6477 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6478 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6479 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6480 " \$ 0!~/External *\|/{next};"\
6481 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6482 " {if(hide[section]) next};"\
6483 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6484 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6485 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6486 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6487 " ' prfx=^$ac_symprfx"
6489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6491 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6493 # Check to see that the pipe works correctly.
6497 cat > conftest.$ac_ext <<_LT_EOF
6502 void nm_test_func(void);
6503 void nm_test_func(void){}
6507 int main(){nm_test_var='a';nm_test_func();return(0);}
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 # Now try to grab the symbols.
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6518 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; } && test -s "$nlist"; then
6522 # Try sorting and uniquifying the output.
6523 if sort "$nlist" | uniq > "$nlist"T; then
6524 mv -f "$nlist"T "$nlist"
6529 # Make sure that we snagged all the symbols we need.
6530 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6531 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6532 cat <<_LT_EOF > conftest.$ac_ext
6533 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6534 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6535 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6536 relocations are performed -- see ld's documentation on pseudo-relocs. */
6537 # define LT_DLSYM_CONST
6538 #elif defined __osf__
6539 /* This system does not cope well with relocations in const data. */
6540 # define LT_DLSYM_CONST
6542 # define LT_DLSYM_CONST const
6550 # Now generate the symbol file.
6551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6553 cat <<_LT_EOF >> conftest.$ac_ext
6555 /* The mapping between symbol names and symbols. */
6556 LT_DLSYM_CONST struct {
6560 lt__PROGRAM__LTX_preloaded_symbols[] =
6562 { "@PROGRAM@", (void *) 0 },
6564 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6565 cat <<\_LT_EOF >> conftest.$ac_ext
6569 /* This works around a problem in FreeBSD linker */
6570 #ifdef FREEBSD_WORKAROUND
6571 static const void *lt_preloaded_setup() {
6572 return lt__PROGRAM__LTX_preloaded_symbols;
6580 # Now try linking the two files.
6581 mv conftest.$ac_objext conftstm.$ac_objext
6582 lt_globsym_save_LIBS=$LIBS
6583 lt_globsym_save_CFLAGS=$CFLAGS
6584 LIBS=conftstm.$ac_objext
6585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6587 (eval $ac_link) 2>&5
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6593 LIBS=$lt_globsym_save_LIBS
6594 CFLAGS=$lt_globsym_save_CFLAGS
6596 echo "cannot find nm_test_func in $nlist" >&5
6599 echo "cannot find nm_test_var in $nlist" >&5
6602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6605 echo "$progname: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 rm -rf conftest* conftst*
6610 # Do not use the global_symbol_pipe unless it works.
6611 if test yes = "$pipe_works"; then
6614 lt_cv_sys_global_symbol_pipe=
6620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6621 lt_cv_sys_global_symbol_to_cdecl=
6623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6625 $as_echo "failed" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6628 $as_echo "ok" >&6; }
6631 # Response file support.
6632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6633 nm_file_list_spec='@'
6634 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6635 nm_file_list_spec='@'
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6675 $as_echo_n "checking for sysroot... " >&6; }
6677 # Check whether --with-sysroot was given.
6678 if test "${with_sysroot+set}" = set; then :
6679 withval=$with_sysroot;
6686 case $with_sysroot in #(
6688 if test yes = "$GCC"; then
6689 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6693 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6699 $as_echo "$with_sysroot" >&6; }
6700 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6705 $as_echo "${lt_sysroot:-no}" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6712 $as_echo_n "checking for a working dd... " >&6; }
6713 if ${ac_cv_path_lt_DD+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 printf 0123456789abcdef0123456789abcdef >conftest.i
6717 cat conftest.i conftest.i >conftest2.i
6719 if test -z "$lt_DD"; then
6720 ac_path_lt_DD_found=false
6721 # Loop through the user's path and test for each of PROGNAME-LIST
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_prog in dd; do
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6730 as_fn_executable_p "$ac_path_lt_DD" || continue
6731 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6732 cmp -s conftest.i conftest.out \
6733 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6735 $ac_path_lt_DD_found && break 3
6740 if test -z "$ac_cv_path_lt_DD"; then
6744 ac_cv_path_lt_DD=$lt_DD
6747 rm -f conftest.i conftest2.i conftest.out
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6750 $as_echo "$ac_cv_path_lt_DD" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6754 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6755 if ${lt_cv_truncate_bin+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 printf 0123456789abcdef0123456789abcdef >conftest.i
6759 cat conftest.i conftest.i >conftest2.i
6761 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6762 cmp -s conftest.i conftest.out \
6763 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6765 rm -f conftest.i conftest2.i conftest.out
6766 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6769 $as_echo "$lt_cv_truncate_bin" >&6; }
6777 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6780 for cc_temp in $*""; do
6782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6788 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6791 # Check whether --enable-libtool-lock was given.
6792 if test "${enable_libtool_lock+set}" = set; then :
6793 enableval=$enable_libtool_lock;
6796 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6798 # Some flags need to be propagated to the compiler or linker for good
6802 # Find out what ABI is being produced by ac_compile, and set mode
6803 # options accordingly.
6804 echo 'int i;' > conftest.$ac_ext
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806 (eval $ac_compile) 2>&5
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }; then
6810 case `/usr/bin/file conftest.$ac_objext` in
6822 # Find out what ABI is being produced by ac_compile, and set linker
6823 # options accordingly.
6824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 if test yes = "$lt_cv_prog_gnu_ld"; then
6831 case `/usr/bin/file conftest.$ac_objext` in
6833 LD="${LD-ld} -melf32bsmip"
6836 LD="${LD-ld} -melf32bmipn32"
6839 LD="${LD-ld} -melf64bmip"
6843 case `/usr/bin/file conftest.$ac_objext` in
6860 # Find out what ABI is being produced by ac_compile, and set linker
6861 # options accordingly.
6862 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864 (eval $ac_compile) 2>&5
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.$ac_objext` in
6877 case `/usr/bin/file conftest.$ac_objext` in
6879 emul="${emul}btsmip"
6882 emul="${emul}ltsmip"
6885 case `/usr/bin/file conftest.$ac_objext` in
6890 LD="${LD-ld} -m $emul"
6895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6897 # Find out what ABI is being produced by ac_compile, and set linker
6898 # options accordingly. Note that the listed cases only cover the
6899 # situations where additional linker options are needed (such as when
6900 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6901 # vice versa); the common cases where no linker options are needed do
6902 # not appear in the list.
6903 echo 'int i;' > conftest.$ac_ext
6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905 (eval $ac_compile) 2>&5
6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908 test $ac_status = 0; }; then
6909 case `/usr/bin/file conftest.o` in
6912 x86_64-*kfreebsd*-gnu)
6913 LD="${LD-ld} -m elf_i386_fbsd"
6916 case `/usr/bin/file conftest.o` in
6918 LD="${LD-ld} -m elf32_x86_64"
6921 LD="${LD-ld} -m elf_i386"
6925 powerpc64le-*linux*)
6926 LD="${LD-ld} -m elf32lppclinux"
6929 LD="${LD-ld} -m elf32ppclinux"
6932 LD="${LD-ld} -m elf_s390"
6935 LD="${LD-ld} -m elf32_sparc"
6941 x86_64-*kfreebsd*-gnu)
6942 LD="${LD-ld} -m elf_x86_64_fbsd"
6945 LD="${LD-ld} -m elf_x86_64"
6948 LD="${LD-ld} -m elf64lppc"
6951 LD="${LD-ld} -m elf64ppc"
6953 s390*-*linux*|s390*-*tpf*)
6954 LD="${LD-ld} -m elf64_s390"
6957 LD="${LD-ld} -m elf64_sparc"
6967 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6969 CFLAGS="$CFLAGS -belf"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6971 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6972 if ${lt_cv_cc_needs_belf+:} false; then :
6973 $as_echo_n "(cached) " >&6
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 lt_cv_cc_needs_belf=yes
6995 lt_cv_cc_needs_belf=no
6997 rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
7000 ac_cpp='$CPP $CPPFLAGS'
7001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7007 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7008 if test yes != "$lt_cv_cc_needs_belf"; then
7009 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7014 # Find out what ABI is being produced by ac_compile, and set linker
7015 # options accordingly.
7016 echo 'int i;' > conftest.$ac_ext
7017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7018 (eval $ac_compile) 2>&5
7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021 test $ac_status = 0; }; then
7022 case `/usr/bin/file conftest.o` in
7024 case $lt_cv_prog_gnu_ld in
7027 i?86-*-solaris*|x86_64-*-solaris*)
7028 LD="${LD-ld} -m elf_x86_64"
7031 LD="${LD-ld} -m elf64_sparc"
7034 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7035 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7040 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7052 need_locks=$enable_libtool_lock
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}mt; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 if test -n "$MANIFEST_TOOL"; then
7063 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7083 if test -n "$MANIFEST_TOOL"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7085 $as_echo "$MANIFEST_TOOL" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7093 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7094 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7095 # Extract the first word of "mt", so it can be a program name with args.
7096 set dummy mt; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$ac_ct_MANIFEST_TOOL"; then
7103 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7123 if test -n "$ac_ct_MANIFEST_TOOL"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7125 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7131 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7134 case $cross_compiling:$ac_tool_warned in
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7140 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7143 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7146 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7148 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7149 if ${lt_cv_path_mainfest_tool+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 lt_cv_path_mainfest_tool=no
7153 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7154 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7155 cat conftest.err >&5
7156 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7157 lt_cv_path_mainfest_tool=yes
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7162 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7163 if test yes != "$lt_cv_path_mainfest_tool"; then
7173 rhapsody* | darwin*)
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$DSYMUTIL"; then
7183 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7203 if test -n "$DSYMUTIL"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7205 $as_echo "$DSYMUTIL" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7213 if test -z "$ac_cv_prog_DSYMUTIL"; then
7214 ac_ct_DSYMUTIL=$DSYMUTIL
7215 # Extract the first word of "dsymutil", so it can be a program name with args.
7216 set dummy dsymutil; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$ac_ct_DSYMUTIL"; then
7223 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7243 if test -n "$ac_ct_DSYMUTIL"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7245 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7251 if test "x$ac_ct_DSYMUTIL" = x; then
7254 case $cross_compiling:$ac_tool_warned in
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7260 DSYMUTIL=$ac_ct_DSYMUTIL
7263 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_NMEDIT+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$NMEDIT"; then
7275 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 NMEDIT=$ac_cv_prog_NMEDIT
7295 if test -n "$NMEDIT"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7297 $as_echo "$NMEDIT" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7305 if test -z "$ac_cv_prog_NMEDIT"; then
7306 ac_ct_NMEDIT=$NMEDIT
7307 # Extract the first word of "nmedit", so it can be a program name with args.
7308 set dummy nmedit; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$ac_ct_NMEDIT"; then
7315 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7335 if test -n "$ac_ct_NMEDIT"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7337 $as_echo "$ac_ct_NMEDIT" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7343 if test "x$ac_ct_NMEDIT" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7352 NMEDIT=$ac_ct_NMEDIT
7355 NMEDIT="$ac_cv_prog_NMEDIT"
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_LIPO+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 if test -n "$LIPO"; then
7367 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 LIPO=$ac_cv_prog_LIPO
7387 if test -n "$LIPO"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7389 $as_echo "$LIPO" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7397 if test -z "$ac_cv_prog_LIPO"; then
7399 # Extract the first word of "lipo", so it can be a program name with args.
7400 set dummy lipo; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$ac_ct_LIPO"; then
7407 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_ac_ct_LIPO="lipo"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7427 if test -n "$ac_ct_LIPO"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7429 $as_echo "$ac_ct_LIPO" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7435 if test "x$ac_ct_LIPO" = x; then
7438 case $cross_compiling:$ac_tool_warned in
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7447 LIPO="$ac_cv_prog_LIPO"
7450 if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}otool; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_OTOOL+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$OTOOL"; then
7459 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 OTOOL=$ac_cv_prog_OTOOL
7479 if test -n "$OTOOL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7481 $as_echo "$OTOOL" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7489 if test -z "$ac_cv_prog_OTOOL"; then
7491 # Extract the first word of "otool", so it can be a program name with args.
7492 set dummy otool; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$ac_ct_OTOOL"; then
7499 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_OTOOL="otool"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7519 if test -n "$ac_ct_OTOOL"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7521 $as_echo "$ac_ct_OTOOL" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7527 if test "x$ac_ct_OTOOL" = x; then
7530 case $cross_compiling:$ac_tool_warned in
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7539 OTOOL="$ac_cv_prog_OTOOL"
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_OTOOL64+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 if test -n "$OTOOL64"; then
7551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 OTOOL64=$ac_cv_prog_OTOOL64
7571 if test -n "$OTOOL64"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7573 $as_echo "$OTOOL64" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7581 if test -z "$ac_cv_prog_OTOOL64"; then
7582 ac_ct_OTOOL64=$OTOOL64
7583 # Extract the first word of "otool64", so it can be a program name with args.
7584 set dummy otool64; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 if test -n "$ac_ct_OTOOL64"; then
7591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_ac_ct_OTOOL64="otool64"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7611 if test -n "$ac_ct_OTOOL64"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7613 $as_echo "$ac_ct_OTOOL64" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7619 if test "x$ac_ct_OTOOL64" = x; then
7622 case $cross_compiling:$ac_tool_warned in
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626 ac_tool_warned=yes ;;
7628 OTOOL64=$ac_ct_OTOOL64
7631 OTOOL64="$ac_cv_prog_OTOOL64"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7661 $as_echo_n "checking for -single_module linker flag... " >&6; }
7662 if ${lt_cv_apple_cc_single_mod+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 lt_cv_apple_cc_single_mod=no
7666 if test -z "$LT_MULTI_MODULE"; then
7667 # By default we will add the -single_module flag. You can override
7668 # by either setting the environment variable LT_MULTI_MODULE
7669 # non-empty at configure time, or by adding -multi_module to the
7671 rm -rf libconftest.dylib*
7672 echo "int foo(void){return 1;}" > conftest.c
7673 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7674 -dynamiclib -Wl,-single_module conftest.c" >&5
7675 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7676 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7678 # If there is a non-empty error log, and "single_module"
7679 # appears in it, assume the flag caused a linker warning
7680 if test -s conftest.err && $GREP single_module conftest.err; then
7681 cat conftest.err >&5
7682 # Otherwise, if the output was created with a 0 exit code from
7683 # the compiler, it worked.
7684 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7685 lt_cv_apple_cc_single_mod=yes
7687 cat conftest.err >&5
7689 rm -rf libconftest.dylib*
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7697 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7698 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 lt_cv_ld_exported_symbols_list=no
7702 save_LDFLAGS=$LDFLAGS
7703 echo "_main" > conftest.sym
7704 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7716 if ac_fn_c_try_link "$LINENO"; then :
7717 lt_cv_ld_exported_symbols_list=yes
7719 lt_cv_ld_exported_symbols_list=no
7721 rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 LDFLAGS=$save_LDFLAGS
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7727 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7730 $as_echo_n "checking for -force_load linker flag... " >&6; }
7731 if ${lt_cv_ld_force_load+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 lt_cv_ld_force_load=no
7735 cat > conftest.c << _LT_EOF
7736 int forced_loaded() { return 2;}
7738 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7739 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7740 echo "$AR cru libconftest.a conftest.o" >&5
7741 $AR cru libconftest.a conftest.o 2>&5
7742 echo "$RANLIB libconftest.a" >&5
7743 $RANLIB libconftest.a 2>&5
7744 cat > conftest.c << _LT_EOF
7745 int main() { return 0;}
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7748 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7750 if test -s conftest.err && $GREP force_load conftest.err; then
7751 cat conftest.err >&5
7752 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7753 lt_cv_ld_force_load=yes
7755 cat conftest.err >&5
7757 rm -f conftest.err libconftest.a conftest conftest.c
7758 rm -rf conftest.dSYM
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7762 $as_echo "$lt_cv_ld_force_load" >&6; }
7764 rhapsody* | darwin1.[012])
7765 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7767 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7768 darwin*) # darwin 5.x on
7769 # if running on 10.5 or later, the deployment target defaults
7770 # to the OS version, if on x86, and 10.4, the deployment
7771 # target defaults to 10.4. Don't you love it?
7772 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7773 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7774 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7776 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7778 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7782 if test yes = "$lt_cv_apple_cc_single_mod"; then
7783 _lt_dar_single_mod='$single_module'
7785 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7786 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7788 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7790 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7791 _lt_dsymutil='~$DSYMUTIL $lib || :'
7798 # func_munge_path_list VARIABLE PATH
7799 # -----------------------------------
7800 # VARIABLE is name of variable containing _space_ separated list of
7801 # directories to be munged by the contents of PATH, which is string
7804 # string "DIR[ DIR]" will be prepended to VARIABLE
7806 # string "DIR[ DIR]" will be appended to VARIABLE
7807 # "DIRP[:DIRP]::[DIRA:]DIRA"
7808 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7809 # "DIRA[ DIRA]" will be appended to VARIABLE
7811 # VARIABLE will be replaced by "DIR[ DIR]"
7812 func_munge_path_list ()
7818 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7821 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7824 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7825 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7828 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7834 ac_cpp='$CPP $CPPFLAGS'
7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7839 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7840 # On Suns, sometimes $CPP names a directory.
7841 if test -n "$CPP" && test -d "$CPP"; then
7844 if test -z "$CPP"; then
7845 if ${ac_cv_prog_CPP+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 # Double quotes because CPP needs to be expanded
7849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7852 for ac_c_preproc_warn_flag in '' yes
7854 # Use a header file that comes with gcc, so configuring glibc
7855 # with a fresh cross-compiler works.
7856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7857 # <limits.h> exists even on freestanding compilers.
7858 # On the NeXT, cc -E runs the code through the compiler's parser,
7859 # not just through cpp. "Syntax error" is here to catch this case.
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7863 # include <limits.h>
7865 # include <assert.h>
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7872 # Broken: fails on valid input.
7875 rm -f conftest.err conftest.i conftest.$ac_ext
7877 # OK, works on sane cases. Now check whether nonexistent headers
7878 # can be detected and how.
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 #include <ac_nonexistent.h>
7883 if ac_fn_c_try_cpp "$LINENO"; then :
7884 # Broken: success on invalid input.
7887 # Passes both tests.
7891 rm -f conftest.err conftest.i conftest.$ac_ext
7894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7895 rm -f conftest.i conftest.err conftest.$ac_ext
7896 if $ac_preproc_ok; then :
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7909 $as_echo "$CPP" >&6; }
7911 for ac_c_preproc_warn_flag in '' yes
7913 # Use a header file that comes with gcc, so configuring glibc
7914 # with a fresh cross-compiler works.
7915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916 # <limits.h> exists even on freestanding compilers.
7917 # On the NeXT, cc -E runs the code through the compiler's parser,
7918 # not just through cpp. "Syntax error" is here to catch this case.
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7922 # include <limits.h>
7924 # include <assert.h>
7928 if ac_fn_c_try_cpp "$LINENO"; then :
7931 # Broken: fails on valid input.
7934 rm -f conftest.err conftest.i conftest.$ac_ext
7936 # OK, works on sane cases. Now check whether nonexistent headers
7937 # can be detected and how.
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #include <ac_nonexistent.h>
7942 if ac_fn_c_try_cpp "$LINENO"; then :
7943 # Broken: success on invalid input.
7946 # Passes both tests.
7950 rm -f conftest.err conftest.i conftest.$ac_ext
7953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7954 rm -f conftest.i conftest.err conftest.$ac_ext
7955 if $ac_preproc_ok; then :
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7960 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7961 See \`config.log' for more details" "$LINENO" 5; }
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7972 $as_echo_n "checking for ANSI C header files... " >&6; }
7973 if ${ac_cv_header_stdc+:} false; then :
7974 $as_echo_n "(cached) " >&6
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7991 if ac_fn_c_try_compile "$LINENO"; then :
7992 ac_cv_header_stdc=yes
7994 ac_cv_header_stdc=no
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 if test $ac_cv_header_stdc = yes; then
7999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "memchr" >/dev/null 2>&1; then :
8009 ac_cv_header_stdc=no
8015 if test $ac_cv_header_stdc = yes; then
8016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023 $EGREP "free" >/dev/null 2>&1; then :
8026 ac_cv_header_stdc=no
8032 if test $ac_cv_header_stdc = yes; then
8033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8034 if test "$cross_compiling" = yes; then :
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8041 #if ((' ' & 0x0FF) == 0x020)
8042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8045 # define ISLOWER(c) \
8046 (('a' <= (c) && (c) <= 'i') \
8047 || ('j' <= (c) && (c) <= 'r') \
8048 || ('s' <= (c) && (c) <= 'z'))
8049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8057 for (i = 0; i < 256; i++)
8058 if (XOR (islower (i), ISLOWER (i))
8059 || toupper (i) != TOUPPER (i))
8064 if ac_fn_c_try_run "$LINENO"; then :
8067 ac_cv_header_stdc=no
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070 conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8076 $as_echo "$ac_cv_header_stdc" >&6; }
8077 if test $ac_cv_header_stdc = yes; then
8079 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8085 inttypes.h stdint.h unistd.h
8087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8091 cat >>confdefs.h <<_ACEOF
8092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 for ac_header in dlfcn.h
8102 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8104 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8105 cat >>confdefs.h <<_ACEOF
8106 #define HAVE_DLFCN_H 1
8125 # Check whether --enable-shared was given.
8126 if test "${enable_shared+set}" = set; then :
8127 enableval=$enable_shared; p=${PACKAGE-default}
8129 yes) enable_shared=yes ;;
8130 no) enable_shared=no ;;
8133 # Look at the argument we got. We use all the common list separators.
8134 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8135 for pkg in $enableval; do
8137 if test "X$pkg" = "X$p"; then
8156 # Check whether --enable-static was given.
8157 if test "${enable_static+set}" = set; then :
8158 enableval=$enable_static; p=${PACKAGE-default}
8160 yes) enable_static=yes ;;
8161 no) enable_static=no ;;
8164 # Look at the argument we got. We use all the common list separators.
8165 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8166 for pkg in $enableval; do
8168 if test "X$pkg" = "X$p"; then
8188 # Check whether --with-pic was given.
8189 if test "${with_pic+set}" = set; then :
8190 withval=$with_pic; lt_p=${PACKAGE-default}
8192 yes|no) pic_mode=$withval ;;
8195 # Look at the argument we got. We use all the common list separators.
8196 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8197 for lt_pkg in $withval; do
8199 if test "X$lt_pkg" = "X$lt_p"; then
8217 # Check whether --enable-fast-install was given.
8218 if test "${enable_fast_install+set}" = set; then :
8219 enableval=$enable_fast_install; p=${PACKAGE-default}
8221 yes) enable_fast_install=yes ;;
8222 no) enable_fast_install=no ;;
8224 enable_fast_install=no
8225 # Look at the argument we got. We use all the common list separators.
8226 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8227 for pkg in $enableval; do
8229 if test "X$pkg" = "X$p"; then
8230 enable_fast_install=yes
8237 enable_fast_install=yes
8247 shared_archive_member_spec=
8248 case $host,$enable_shared in
8249 power*-*-aix[5-9]*,yes)
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8251 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8253 # Check whether --with-aix-soname was given.
8254 if test "${with_aix_soname+set}" = set; then :
8255 withval=$with_aix_soname; case $withval in
8259 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8262 lt_cv_with_aix_soname=$with_aix_soname
8264 if ${lt_cv_with_aix_soname+:} false; then :
8265 $as_echo_n "(cached) " >&6
8267 lt_cv_with_aix_soname=aix
8270 with_aix_soname=$lt_cv_with_aix_soname
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8274 $as_echo "$with_aix_soname" >&6; }
8275 if test aix != "$with_aix_soname"; then
8276 # For the AIX way of multilib, we name the shared archive member
8277 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8278 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8279 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8280 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8281 if test 64 = "${OBJECT_MODE-32}"; then
8282 shared_archive_member_spec=shr_64
8284 shared_archive_member_spec=shr
8302 # This can be used to rebuild libtool when needed
8303 LIBTOOL_DEPS=$ltmain
8305 # Always use our own libtool.
8306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8337 test -z "$LN_S" && LN_S="ln -s"
8352 if test -n "${ZSH_VERSION+set}"; then
8353 setopt NO_GLOB_SUBST
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8357 $as_echo_n "checking for objdir... " >&6; }
8358 if ${lt_cv_objdir+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 rm -f .libs 2>/dev/null
8362 mkdir .libs 2>/dev/null
8363 if test -d .libs; then
8366 # MS-DOS does not allow filenames that begin with a dot.
8369 rmdir .libs 2>/dev/null
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8372 $as_echo "$lt_cv_objdir" >&6; }
8373 objdir=$lt_cv_objdir
8379 cat >>confdefs.h <<_ACEOF
8380 #define LT_OBJDIR "$lt_cv_objdir/"
8388 # AIX sometimes has problems with the GCC collect2 program. For some
8389 # reason, if we set the COLLECT_NAMES environment variable, the problems
8390 # vanish in a puff of smoke.
8391 if test set != "${COLLECT_NAMES+set}"; then
8393 export COLLECT_NAMES
8400 can_build_shared=yes
8402 # All known linkers require a '.a' archive for static linking (except MSVC,
8403 # which needs '.lib').
8406 with_gnu_ld=$lt_cv_prog_gnu_ld
8411 # Set sane defaults for various variables
8412 test -z "$CC" && CC=cc
8413 test -z "$LTCC" && LTCC=$CC
8414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8415 test -z "$LD" && LD=ld
8416 test -z "$ac_objext" && ac_objext=o
8418 func_cc_basename $compiler
8419 cc_basename=$func_cc_basename_result
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430 $as_echo_n "(cached) " >&6
8434 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8437 lt_save_MAGIC_CMD=$MAGIC_CMD
8438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8444 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8473 MAGIC_CMD=$lt_save_MAGIC_CMD
8478 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492 if test -n "$ac_tool_prefix"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8496 $as_echo_n "(cached) " >&6
8500 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8503 lt_save_MAGIC_CMD=$MAGIC_CMD
8504 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f "$ac_dir/file"; then
8510 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8539 MAGIC_CMD=$lt_save_MAGIC_CMD
8544 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8563 # Use C for the default configuration in the libtool script
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8573 # Source file extension for C test sources.
8576 # Object file extension for compiled C test sources.
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8592 # If no C compiler was specified, use CC.
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8598 # Allow CC to be a program name with arguments.
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8625 lt_prog_compiler_no_builtin_flag=
8627 if test yes = "$GCC"; then
8628 case $cc_basename in
8630 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8632 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8638 $as_echo_n "(cached) " >&6
8640 lt_cv_prog_compiler_rtti_exceptions=no
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8644 # Insert the option either (1) after the last *FLAGS variable, or
8645 # (2) before a word containing "conftest.", or (3) at the end.
8646 # Note that $ac_compile itself does not contain backslashes and begins
8647 # with a dollar sign (not a hyphen), so the echo should work correctly.
8648 # The option is referenced via a variable to avoid confusing sed.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
8653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654 (eval "$lt_compile" 2>conftest.err)
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 if (exit $ac_status) && test -s "$ac_outfile"; then
8659 # The compiler can only warn and ignore the option if not recognized
8660 # So say no if there are warnings other than the usual output.
8661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_rtti_exceptions=yes
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8673 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8686 lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8691 if test yes = "$GCC"; then
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_static='-static'
8697 # All AIX code is PIC.
8698 if test ia64 = "$host_cpu"; then
8699 # AIX 5 now supports IA64 processor
8700 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_pic='-fPIC'
8708 # see comment about AmigaOS4 .so support
8709 lt_prog_compiler_pic='-fPIC'
8712 # FIXME: we need at least 68020 code to build shared libraries, but
8713 # adding the '-m68020' flag to GCC prevents building anything better,
8715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8721 # PIC is the default for these OSes.
8724 mingw* | cygwin* | pw32* | os2* | cegcc*)
8725 # This hack is so that the source file can tell whether it is being
8726 # built for inclusion in a dll (and should export symbols for example).
8727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8728 # (--disable-auto-import) libraries
8729 lt_prog_compiler_pic='-DDLL_EXPORT'
8732 lt_prog_compiler_static='$wl-static'
8737 darwin* | rhapsody*)
8738 # PIC is the default on this platform
8739 # Common symbols not allowed in MH_DYLIB files
8740 lt_prog_compiler_pic='-fno-common'
8744 # PIC is the default for Haiku.
8745 # The "-static" flag exists, but is broken.
8746 lt_prog_compiler_static=
8750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8752 # sets the default TLS model and affects inlining.
8758 lt_prog_compiler_pic='-fPIC'
8764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8765 # Instead, we relocate shared libraries at runtime.
8769 # Just because we use GCC doesn't mean we suddenly get shared libraries
8770 # on systems that don't support them.
8771 lt_prog_compiler_can_build_shared=no
8776 # QNX uses GNU C++, but need to define -shared option too, otherwise
8778 lt_prog_compiler_pic='-fPIC -shared'
8782 if test -d /usr/nec; then
8783 lt_prog_compiler_pic=-Kconform_pic
8788 lt_prog_compiler_pic='-fPIC'
8792 case $cc_basename in
8793 nvcc*) # Cuda Compiler Driver 2.2
8794 lt_prog_compiler_wl='-Xlinker '
8795 if test -n "$lt_prog_compiler_pic"; then
8796 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8801 # PORTME Check for flag to pass linker flags through the system compiler.
8804 lt_prog_compiler_wl='-Wl,'
8805 if test ia64 = "$host_cpu"; then
8806 # AIX 5 now supports IA64 processor
8807 lt_prog_compiler_static='-Bstatic'
8809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8813 darwin* | rhapsody*)
8814 # PIC is the default on this platform
8815 # Common symbols not allowed in MH_DYLIB files
8816 lt_prog_compiler_pic='-fno-common'
8817 case $cc_basename in
8819 # NAG Fortran compiler
8820 lt_prog_compiler_wl='-Wl,-Wl,,'
8821 lt_prog_compiler_pic='-PIC'
8822 lt_prog_compiler_static='-Bstatic'
8827 mingw* | cygwin* | pw32* | os2* | cegcc*)
8828 # This hack is so that the source file can tell whether it is being
8829 # built for inclusion in a dll (and should export symbols for example).
8830 lt_prog_compiler_pic='-DDLL_EXPORT'
8833 lt_prog_compiler_static='$wl-static'
8838 hpux9* | hpux10* | hpux11*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8847 lt_prog_compiler_pic='+Z'
8850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8851 lt_prog_compiler_static='$wl-a ${wl}archive'
8854 irix5* | irix6* | nonstopux*)
8855 lt_prog_compiler_wl='-Wl,'
8856 # PIC (with -KPIC) is the default.
8857 lt_prog_compiler_static='-non_shared'
8860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8861 case $cc_basename in
8862 # old Intel for x86_64, which still supported -KPIC.
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-static'
8868 # icc used to be incompatible with GCC.
8869 # ICC 10 doesn't accept -KPIC any more.
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-fPIC'
8873 lt_prog_compiler_static='-static'
8875 # Lahey Fortran 8.1.
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='--shared'
8879 lt_prog_compiler_static='--static'
8882 # NAG Fortran compiler
8883 lt_prog_compiler_wl='-Wl,-Wl,,'
8884 lt_prog_compiler_pic='-PIC'
8885 lt_prog_compiler_static='-Bstatic'
8888 # Fabrice Bellard et al's Tiny C Compiler
8889 lt_prog_compiler_wl='-Wl,'
8890 lt_prog_compiler_pic='-fPIC'
8891 lt_prog_compiler_static='-static'
8893 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8894 # Portland Group compilers (*not* the Pentium gcc compiler,
8895 # which looks to be a dead project)
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_pic='-fpic'
8898 lt_prog_compiler_static='-Bstatic'
8901 lt_prog_compiler_wl='-Wl,'
8902 # All Alpha code is PIC.
8903 lt_prog_compiler_static='-non_shared'
8905 xl* | bgxl* | bgf* | mpixl*)
8906 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-qpic'
8909 lt_prog_compiler_static='-qstaticlink'
8912 case `$CC -V 2>&1 | sed 5q` in
8913 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8914 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8915 lt_prog_compiler_pic='-KPIC'
8916 lt_prog_compiler_static='-Bstatic'
8917 lt_prog_compiler_wl=''
8919 *Sun\ F* | *Sun*Fortran*)
8920 lt_prog_compiler_pic='-KPIC'
8921 lt_prog_compiler_static='-Bstatic'
8922 lt_prog_compiler_wl='-Qoption ld '
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 lt_prog_compiler_wl='-Wl,'
8930 *Intel*\ [CF]*Compiler*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-fPIC'
8933 lt_prog_compiler_static='-static'
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_pic='-fpic'
8938 lt_prog_compiler_static='-Bstatic'
8946 lt_prog_compiler_pic='-KPIC'
8947 lt_prog_compiler_static='-Bstatic'
8951 # QNX uses GNU C++, but need to define -shared option too, otherwise
8953 lt_prog_compiler_pic='-fPIC -shared'
8956 osf3* | osf4* | osf5*)
8957 lt_prog_compiler_wl='-Wl,'
8958 # All OSF/1 code is PIC.
8959 lt_prog_compiler_static='-non_shared'
8963 lt_prog_compiler_static='-non_shared'
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8969 case $cc_basename in
8970 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8971 lt_prog_compiler_wl='-Qoption ld ';;
8973 lt_prog_compiler_wl='-Wl,';;
8978 lt_prog_compiler_wl='-Qoption ld '
8979 lt_prog_compiler_pic='-PIC'
8980 lt_prog_compiler_static='-Bstatic'
8983 sysv4 | sysv4.2uw2* | sysv4.3*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8990 if test -d /usr/nec; then
8991 lt_prog_compiler_pic='-Kconform_pic'
8992 lt_prog_compiler_static='-Bstatic'
8996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_can_build_shared=no
9008 lt_prog_compiler_pic='-pic'
9009 lt_prog_compiler_static='-Bstatic'
9013 lt_prog_compiler_can_build_shared=no
9019 # For platforms that do not support PIC, -DPIC is meaningless:
9021 lt_prog_compiler_pic=
9024 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9030 if ${lt_cv_prog_compiler_pic+:} false; then :
9031 $as_echo_n "(cached) " >&6
9033 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9036 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9037 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9040 # Check to make sure the PIC flag actually works.
9042 if test -n "$lt_prog_compiler_pic"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9045 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9046 $as_echo_n "(cached) " >&6
9048 lt_cv_prog_compiler_pic_works=no
9049 ac_outfile=conftest.$ac_objext
9050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9052 # Insert the option either (1) after the last *FLAGS variable, or
9053 # (2) before a word containing "conftest.", or (3) at the end.
9054 # Note that $ac_compile itself does not contain backslashes and begins
9055 # with a dollar sign (not a hyphen), so the echo should work correctly.
9056 # The option is referenced via a variable to avoid confusing sed.
9057 lt_compile=`echo "$ac_compile" | $SED \
9058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9060 -e 's:$: $lt_compiler_flag:'`
9061 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9062 (eval "$lt_compile" 2>conftest.err)
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 if (exit $ac_status) && test -s "$ac_outfile"; then
9067 # The compiler can only warn and ignore the option if not recognized
9068 # So say no if there are warnings other than the usual output.
9069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9072 lt_cv_prog_compiler_pic_works=yes
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9079 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9081 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9082 case $lt_prog_compiler_pic in
9084 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9087 lt_prog_compiler_pic=
9088 lt_prog_compiler_can_build_shared=no
9104 # Check to make sure the static flag actually works.
9106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9108 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9109 if ${lt_cv_prog_compiler_static_works+:} false; then :
9110 $as_echo_n "(cached) " >&6
9112 lt_cv_prog_compiler_static_works=no
9113 save_LDFLAGS=$LDFLAGS
9114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9115 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9117 # The linker can only warn and ignore the option if not recognized
9118 # So say no if there are warnings
9119 if test -s conftest.err; then
9120 # Append any errors to the config.log.
9121 cat conftest.err 1>&5
9122 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9124 if diff conftest.exp conftest.er2 >/dev/null; then
9125 lt_cv_prog_compiler_static_works=yes
9128 lt_cv_prog_compiler_static_works=yes
9132 LDFLAGS=$save_LDFLAGS
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9136 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9138 if test yes = "$lt_cv_prog_compiler_static_works"; then
9141 lt_prog_compiler_static=
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9152 if ${lt_cv_prog_compiler_c_o+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 lt_cv_prog_compiler_c_o=no
9156 $RM -r conftest 2>/dev/null
9160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162 lt_compiler_flag="-o out/conftest2.$ac_objext"
9163 # Insert the option either (1) after the last *FLAGS variable, or
9164 # (2) before a word containing "conftest.", or (3) at the end.
9165 # Note that $ac_compile itself does not contain backslashes and begins
9166 # with a dollar sign (not a hyphen), so the echo should work correctly.
9167 lt_compile=`echo "$ac_compile" | $SED \
9168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9170 -e 's:$: $lt_compiler_flag:'`
9171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9172 (eval "$lt_compile" 2>out/conftest.err)
9174 cat out/conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9178 # The compiler can only warn and ignore the option if not recognized
9179 # So say no if there are warnings
9180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_c_o=yes
9188 # SGI C++ compiler will create directory out/ii_files/ for
9189 # template instantiation
9190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9191 $RM out/* && rmdir out
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9198 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9207 if ${lt_cv_prog_compiler_c_o+:} false; then :
9208 $as_echo_n "(cached) " >&6
9210 lt_cv_prog_compiler_c_o=no
9211 $RM -r conftest 2>/dev/null
9215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9217 lt_compiler_flag="-o out/conftest2.$ac_objext"
9218 # Insert the option either (1) after the last *FLAGS variable, or
9219 # (2) before a word containing "conftest.", or (3) at the end.
9220 # Note that $ac_compile itself does not contain backslashes and begins
9221 # with a dollar sign (not a hyphen), so the echo should work correctly.
9222 lt_compile=`echo "$ac_compile" | $SED \
9223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9225 -e 's:$: $lt_compiler_flag:'`
9226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9227 (eval "$lt_compile" 2>out/conftest.err)
9229 cat out/conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9233 # The compiler can only warn and ignore the option if not recognized
9234 # So say no if there are warnings
9235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9238 lt_cv_prog_compiler_c_o=yes
9243 # SGI C++ compiler will create directory out/ii_files/ for
9244 # template instantiation
9245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9246 $RM out/* && rmdir out
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258 hard_links=nottested
9259 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9260 # do not overwrite the value of need_locks provided by the user
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9262 $as_echo_n "checking if we can lock with hard links... " >&6; }
9265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9267 ln conftest.a conftest.b 2>&5 || hard_links=no
9268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9270 $as_echo "$hard_links" >&6; }
9271 if test no = "$hard_links"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9273 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9286 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9289 allow_undefined_flag=
9290 always_export_symbols=no
9292 archive_expsym_cmds=
9293 compiler_needs_object=no
9294 enable_shared_with_static_runtimes=no
9295 export_dynamic_flag_spec=
9296 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9297 hardcode_automatic=no
9299 hardcode_direct_absolute=no
9300 hardcode_libdir_flag_spec=
9301 hardcode_libdir_separator=
9303 hardcode_shlibpath_var=unsupported
9305 link_all_deplibs=unknown
9308 old_archive_from_new_cmds=
9309 old_archive_from_expsyms_cmds=
9310 thread_safe_flag_spec=
9311 whole_archive_flag_spec=
9312 # include_expsyms should be a list of space-separated symbols to be *always*
9313 # included in the symbol list
9315 # exclude_expsyms can be an extended regexp of symbols to exclude
9316 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9317 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9318 # as well as any symbol that contains 'd'.
9319 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9321 # platforms (ab)use it in PIC code, but their linkers get confused if
9322 # the symbol is explicitly referenced. Since portable code cannot
9323 # rely on this symbol name, it's probably fine to never include it in
9324 # preloaded symbol tables.
9325 # Exclude shared library initialization/finalization symbols.
9326 extract_expsyms_cmds=
9329 cygwin* | mingw* | pw32* | cegcc*)
9330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9331 # When not using gcc, we currently assume that we are using
9332 # Microsoft Visual C++.
9333 if test yes != "$GCC"; then
9338 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 # On some targets, GNU ld is compatible enough with the native linker
9349 # that we're better off using the native interface for both.
9350 lt_use_gnu_ld_interface=no
9351 if test yes = "$with_gnu_ld"; then
9354 # The AIX port of GNU ld has always aspired to compatibility
9355 # with the native linker. However, as the warning in the GNU ld
9356 # block says, versions before 2.19.5* couldn't really create working
9357 # shared libraries, regardless of the interface used.
9358 case `$LD -v 2>&1` in
9359 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9360 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9361 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9363 lt_use_gnu_ld_interface=yes
9368 lt_use_gnu_ld_interface=yes
9373 if test yes = "$lt_use_gnu_ld_interface"; then
9374 # If archive_cmds runs LD, not CC, wlarc should be empty
9377 # Set some defaults for GNU ld with shared library support. These
9378 # are reset later if shared libraries are not supported. Putting them
9379 # here allows them to be overridden if necessary.
9380 runpath_var=LD_RUN_PATH
9381 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9382 export_dynamic_flag_spec='$wl--export-dynamic'
9383 # ancient GNU ld didn't support --whole-archive et. al.
9384 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9385 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9387 whole_archive_flag_spec=
9389 supports_anon_versioning=no
9390 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9391 *GNU\ gold*) supports_anon_versioning=yes ;;
9392 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9393 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9394 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9395 *\ 2.11.*) ;; # other 2.11 versions
9396 *) supports_anon_versioning=yes ;;
9399 # See if GNU ld supports shared libraries.
9402 # On AIX/PPC, the GNU linker is very broken
9403 if test ia64 != "$host_cpu"; then
9407 *** Warning: the GNU linker, at least up to release 2.19, is reported
9408 *** to be unable to reliably create shared libraries on AIX.
9409 *** Therefore, libtool is disabling shared libraries support. If you
9410 *** really care for shared libraries, you may want to install binutils
9411 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9412 *** You will then need to restart the configuration process.
9421 # see comment about AmigaOS4 .so support
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9423 archive_expsym_cmds=''
9426 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)'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_minus_L=yes
9434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9435 allow_undefined_flag=unsupported
9436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9437 # support --undefined. This deserves some investigation. FIXME
9438 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9444 cygwin* | mingw* | pw32* | cegcc*)
9445 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9446 # as there is no search path for DLLs.
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 export_dynamic_flag_spec='$wl--export-all-symbols'
9449 allow_undefined_flag=unsupported
9450 always_export_symbols=no
9451 enable_shared_with_static_runtimes=yes
9452 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'
9453 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9457 # If the export-symbols file already is a .def file, use it as
9458 # is; otherwise, prepend EXPORTS...
9459 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9460 cp $export_symbols $output_objdir/$soname.def;
9462 echo EXPORTS > $output_objdir/$soname.def;
9463 cat $export_symbols >> $output_objdir/$soname.def;
9465 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9473 link_all_deplibs=yes
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_minus_L=yes
9479 allow_undefined_flag=unsupported
9481 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9482 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9483 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9484 $ECHO EXPORTS >> $output_objdir/$libname.def~
9485 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9486 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9487 emximp -o $lib $output_objdir/$libname.def'
9488 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9491 $ECHO EXPORTS >> $output_objdir/$libname.def~
9493 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9494 prefix_cmds="$prefix_cmds -e 1d";
9496 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9497 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9498 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9499 emximp -o $lib $output_objdir/$libname.def'
9500 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9501 enable_shared_with_static_runtimes=yes
9506 hardcode_shlibpath_var=no
9507 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9508 export_dynamic_flag_spec='$wl-E'
9509 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9510 # Instead, shared libraries are loaded at an image base (0x10000000 by
9511 # default) and relocated if they conflict, which is a slow very memory
9512 # consuming and fragmenting process. To avoid this, we pick a random,
9513 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9514 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9516 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'
9519 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9521 if test linux-dietlibc = "$host_os"; then
9522 case $cc_basename in
9523 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9526 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9527 && test no = "$tmp_diet"
9529 tmp_addflag=' $pic_flag'
9530 tmp_sharedflag='-shared'
9531 case $cc_basename,$host_cpu in
9532 pgcc*) # Portland Group C compiler
9533 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'
9534 tmp_addflag=' $pic_flag'
9536 pgf77* | pgf90* | pgf95* | pgfortran*)
9537 # Portland Group f77 and f90 compilers
9538 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'
9539 tmp_addflag=' $pic_flag -Mnomain' ;;
9540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9541 tmp_addflag=' -i_dynamic' ;;
9542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9543 tmp_addflag=' -i_dynamic -nofor_main' ;;
9544 ifc* | ifort*) # Intel Fortran compiler
9545 tmp_addflag=' -nofor_main' ;;
9546 lf95*) # Lahey Fortran 8.1
9547 whole_archive_flag_spec=
9548 tmp_sharedflag='--shared' ;;
9549 nagfor*) # NAGFOR 5.3
9550 tmp_sharedflag='-Wl,-shared' ;;
9551 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9552 tmp_sharedflag='-qmkshrobj'
9554 nvcc*) # Cuda Compiler Driver 2.2
9555 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'
9556 compiler_needs_object=yes
9559 case `$CC -V 2>&1 | sed 5q` in
9560 *Sun\ C*) # Sun C 5.9
9561 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'
9562 compiler_needs_object=yes
9563 tmp_sharedflag='-G' ;;
9564 *Sun\ F*) # Sun Fortran 8.3
9565 tmp_sharedflag='-G' ;;
9567 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9569 if test yes = "$supports_anon_versioning"; then
9570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9572 echo "local: *; };" >> $output_objdir/$libname.ver~
9573 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9576 case $cc_basename in
9578 export_dynamic_flag_spec='-rdynamic'
9580 xlf* | bgf* | bgxlf* | mpixlf*)
9581 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9582 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9584 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9585 if test yes = "$supports_anon_versioning"; then
9586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588 echo "local: *; };" >> $output_objdir/$libname.ver~
9589 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9600 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9609 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9614 *** create shared libraries on Solaris systems. Therefore, libtool
9615 *** is disabling shared libraries support. We urge you to upgrade GNU
9616 *** binutils to release 2.9.1 or newer. Another option is to modify
9617 *** your PATH or compiler configuration so that the native linker is
9618 *** used, and then restart.
9621 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9630 case `$LD -v 2>&1` in
9631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9635 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9636 *** reliably create shared libraries on SCO systems. Therefore, libtool
9637 *** is disabling shared libraries support. We urge you to upgrade GNU
9638 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9639 *** your PATH or compiler configuration so that the native linker is
9640 *** used, and then restart.
9645 # For security reasons, it is highly recommended that you always
9646 # use absolute paths for naming shared libraries, and exclude the
9647 # DT_RUNPATH tag from executables and libraries. But doing so
9648 # requires that you compile everything twice, which is a pain.
9649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_shlibpath_var=no
9668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9677 if test no = "$ld_shlibs"; then
9679 hardcode_libdir_flag_spec=
9680 export_dynamic_flag_spec=
9681 whole_archive_flag_spec=
9684 # PORTME fill in a description of your system's linker (not GNU ld)
9687 allow_undefined_flag=unsupported
9688 always_export_symbols=yes
9689 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'
9690 # Note: this linker hardcodes the directories in LIBPATH if there
9691 # are no directories specified by -L.
9692 hardcode_minus_L=yes
9693 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9694 # Neither direct hardcoding nor static linking is supported with a
9696 hardcode_direct=unsupported
9701 if test ia64 = "$host_cpu"; then
9702 # On IA64, the linker does run time linking by default, so we don't
9703 # have to do anything special.
9704 aix_use_runtimelinking=no
9705 exp_sym_flag='-Bexport'
9708 # If we're using GNU nm, then we don't want the "-C" option.
9709 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9710 # Without the "-l" option, or with the "-B" option, AIX nm treats
9711 # weak defined symbols like other global defined symbols, whereas
9712 # GNU nm marks them as "W".
9713 # While the 'weak' keyword is ignored in the Export File, we need
9714 # it in the Import File for the 'aix-soname' feature, so we have
9715 # to replace the "-B" option with "-P" for AIX nm.
9716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9717 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9719 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9721 aix_use_runtimelinking=no
9723 # Test if we are trying to use run time linking or normal
9724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9725 # have runtime linking enabled, and use it for executables.
9726 # For shared libraries, we enable/disable runtime linking
9727 # depending on the kind of the shared library created -
9728 # when "with_aix_soname,aix_use_runtimelinking" is:
9729 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9730 # "aix,yes" lib.so shared, rtl:yes, for executables
9731 # lib.a static archive
9732 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9733 # lib.a(lib.so.V) shared, rtl:no, for executables
9734 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9735 # lib.a(lib.so.V) shared, rtl:no
9736 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9737 # lib.a static archive
9738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9739 for ld_flag in $LDFLAGS; do
9740 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9741 aix_use_runtimelinking=yes
9745 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9746 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9747 # so we don't have lib.a shared libs to link our executables.
9748 # We have to force runtime linking in this case.
9749 aix_use_runtimelinking=yes
9750 LDFLAGS="$LDFLAGS -Wl,-brtl"
9755 exp_sym_flag='-bexport'
9756 no_entry_flag='-bnoentry'
9759 # When large executables or shared objects are built, AIX ld can
9760 # have problems creating the table of contents. If linking a library
9761 # or program results in "error TOC overflow" add -mminimal-toc to
9762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9767 hardcode_direct_absolute=yes
9768 hardcode_libdir_separator=':'
9769 link_all_deplibs=yes
9770 file_list_spec='$wl-f,'
9771 case $with_aix_soname,$aix_use_runtimelinking in
9772 aix,*) ;; # traditional, no import file
9773 svr4,* | *,yes) # use import file
9774 # The Import File defines what to hardcode.
9776 hardcode_direct_absolute=no
9780 if test yes = "$GCC"; then
9781 case $host_os in aix4.[012]|aix4.[012].*)
9782 # We only want to do this on AIX 4.2 and lower, the check
9783 # below for broken collect2 doesn't work under 4.3+
9784 collect2name=`$CC -print-prog-name=collect2`
9785 if test -f "$collect2name" &&
9786 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9788 # We have reworked collect2
9791 # We have old collect2
9792 hardcode_direct=unsupported
9793 # It fails to find uninstalled libraries when the uninstalled
9794 # path is not listed in the libpath. Setting hardcode_minus_L
9795 # to unsupported forces relinking
9796 hardcode_minus_L=yes
9797 hardcode_libdir_flag_spec='-L$libdir'
9798 hardcode_libdir_separator=
9802 shared_flag='-shared'
9803 if test yes = "$aix_use_runtimelinking"; then
9804 shared_flag="$shared_flag "'$wl-G'
9806 # Need to ensure runtime linking is disabled for the traditional
9807 # shared library, or the linker may eventually find shared libraries
9808 # /with/ Import File - we do not want to mix them.
9809 shared_flag_aix='-shared'
9810 shared_flag_svr4='-shared $wl-G'
9813 if test ia64 = "$host_cpu"; then
9814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9815 # chokes on -Wl,-G. The following line is correct:
9818 if test yes = "$aix_use_runtimelinking"; then
9821 shared_flag='$wl-bM:SRE'
9823 shared_flag_aix='$wl-bM:SRE'
9824 shared_flag_svr4='$wl-G'
9828 export_dynamic_flag_spec='$wl-bexpall'
9829 # It seems that -bexpall does not export symbols beginning with
9830 # underscore (_), so it is better to generate a list of symbols to export.
9831 always_export_symbols=yes
9832 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9833 # Warning - without using the other runtime loading flags (-brtl),
9834 # -berok will link without error, but may produce a broken library.
9835 allow_undefined_flag='-berok'
9836 # Determine the default libpath from the value encoded in an
9838 if test set = "${lt_cv_aix_libpath+set}"; then
9839 aix_libpath=$lt_cv_aix_libpath
9841 if ${lt_cv_aix_libpath_+:} false; then :
9842 $as_echo_n "(cached) " >&6
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9855 if ac_fn_c_try_link "$LINENO"; then :
9857 lt_aix_libpath_sed='
9858 /Import File Strings/,/^$/ {
9860 s/^0 *\([^ ]*\) *$/\1/
9864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865 # Check for a 64-bit object if we didn't find anything.
9866 if test -z "$lt_cv_aix_libpath_"; then
9867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$lt_cv_aix_libpath_"; then
9873 lt_cv_aix_libpath_=/usr/lib:/lib
9878 aix_libpath=$lt_cv_aix_libpath_
9881 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9882 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9884 if test ia64 = "$host_cpu"; then
9885 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9886 allow_undefined_flag="-z nodefs"
9887 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"
9889 # Determine the default libpath from the value encoded in an
9891 if test set = "${lt_cv_aix_libpath+set}"; then
9892 aix_libpath=$lt_cv_aix_libpath
9894 if ${lt_cv_aix_libpath_+:} false; then :
9895 $as_echo_n "(cached) " >&6
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9908 if ac_fn_c_try_link "$LINENO"; then :
9910 lt_aix_libpath_sed='
9911 /Import File Strings/,/^$/ {
9913 s/^0 *\([^ ]*\) *$/\1/
9917 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918 # Check for a 64-bit object if we didn't find anything.
9919 if test -z "$lt_cv_aix_libpath_"; then
9920 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$lt_cv_aix_libpath_"; then
9926 lt_cv_aix_libpath_=/usr/lib:/lib
9931 aix_libpath=$lt_cv_aix_libpath_
9934 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9935 # Warning - without using the other run time loading flags,
9936 # -berok will link without error, but may produce a broken library.
9937 no_undefined_flag=' $wl-bernotok'
9938 allow_undefined_flag=' $wl-berok'
9939 if test yes = "$with_gnu_ld"; then
9940 # We only use this code for GNU lds that support --whole-archive.
9941 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9943 # Exported symbols can be pulled into shared objects from archives
9944 whole_archive_flag_spec='$convenience'
9946 archive_cmds_need_lc=yes
9947 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9948 # -brtl affects multiple linker settings, -berok does not and is overridden later
9949 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9950 if test svr4 != "$with_aix_soname"; then
9951 # This is similar to how AIX traditionally builds its shared libraries.
9952 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9954 if test aix != "$with_aix_soname"; then
9955 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9957 # used by -dlpreopen to get the symbols
9958 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9960 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9968 # see comment about AmigaOS4 .so support
9969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970 archive_expsym_cmds=''
9973 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)'
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_minus_L=yes
9981 export_dynamic_flag_spec=-rdynamic
9984 cygwin* | mingw* | pw32* | cegcc*)
9985 # When not using gcc, we currently assume that we are using
9986 # Microsoft Visual C++.
9987 # hardcode_libdir_flag_spec is actually meaningless, as there is
9988 # no search path for DLLs.
9989 case $cc_basename in
9992 hardcode_libdir_flag_spec=' '
9993 allow_undefined_flag=unsupported
9994 always_export_symbols=yes
9996 # Tell ltmain to make .lib files, not .a files.
9998 # Tell ltmain to make .dll files, not .so files.
10000 # FIXME: Setting linknames here is a bad hack.
10001 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10003 cp "$export_symbols" "$output_objdir/$soname.def";
10004 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10006 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10008 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10010 # The linker will not automatically build a static lib if we build a DLL.
10011 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10012 enable_shared_with_static_runtimes=yes
10013 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10016 old_postinstall_cmds='chmod 644 $oldlib'
10017 postlink_cmds='lt_outputfile="@OUTPUT@"~
10018 lt_tool_outputfile="@TOOL_OUTPUT@"~
10019 case $lt_outputfile in
10022 lt_outputfile=$lt_outputfile.exe
10023 lt_tool_outputfile=$lt_tool_outputfile.exe
10026 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10028 $RM "$lt_outputfile.manifest";
10032 # Assume MSVC wrapper
10033 hardcode_libdir_flag_spec=' '
10034 allow_undefined_flag=unsupported
10035 # Tell ltmain to make .lib files, not .a files.
10037 # Tell ltmain to make .dll files, not .so files.
10039 # FIXME: Setting linknames here is a bad hack.
10040 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10041 # The linker will automatically build a .lib file if we build a DLL.
10042 old_archive_from_new_cmds='true'
10043 # FIXME: Should let the user specify the lib program.
10044 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10045 enable_shared_with_static_runtimes=yes
10050 darwin* | rhapsody*)
10053 archive_cmds_need_lc=no
10055 hardcode_automatic=yes
10056 hardcode_shlibpath_var=unsupported
10057 if test yes = "$lt_cv_ld_force_load"; then
10058 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\"`'
10061 whole_archive_flag_spec=''
10063 link_all_deplibs=yes
10064 allow_undefined_flag=$_lt_dar_allow_undefined
10065 case $cc_basename in
10066 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10067 *) _lt_dar_can_shared=$GCC ;;
10069 if test yes = "$_lt_dar_can_shared"; then
10070 output_verbose_link_cmd=func_echo_all
10071 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10072 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10073 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"
10074 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"
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_shlibpath_var=no
10088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10089 # support. Future versions do this automatically, but an explicit c++rt0.o
10090 # does not break anything, and helps significantly (at the cost of a little
10093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10094 hardcode_libdir_flag_spec='-R$libdir'
10095 hardcode_direct=yes
10096 hardcode_shlibpath_var=no
10099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10108 freebsd* | dragonfly*)
10109 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110 hardcode_libdir_flag_spec='-R$libdir'
10111 hardcode_direct=yes
10112 hardcode_shlibpath_var=no
10116 if test yes = "$GCC"; then
10117 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10119 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10121 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10122 hardcode_libdir_separator=:
10123 hardcode_direct=yes
10125 # hardcode_minus_L: Not really in the search PATH,
10126 # but as the default location of the library.
10127 hardcode_minus_L=yes
10128 export_dynamic_flag_spec='$wl-E'
10132 if test yes,no = "$GCC,$with_gnu_ld"; then
10133 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137 if test no = "$with_gnu_ld"; then
10138 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10139 hardcode_libdir_separator=:
10140 hardcode_direct=yes
10141 hardcode_direct_absolute=yes
10142 export_dynamic_flag_spec='$wl-E'
10143 # hardcode_minus_L: Not really in the search PATH,
10144 # but as the default location of the library.
10145 hardcode_minus_L=yes
10150 if test yes,no = "$GCC,$with_gnu_ld"; then
10153 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 # Older versions of the 11.00 compiler do not understand -b yet
10173 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10175 $as_echo_n "checking if $CC understands -b... " >&6; }
10176 if ${lt_cv_prog_compiler__b+:} false; then :
10177 $as_echo_n "(cached) " >&6
10179 lt_cv_prog_compiler__b=no
10180 save_LDFLAGS=$LDFLAGS
10181 LDFLAGS="$LDFLAGS -b"
10182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10184 # The linker can only warn and ignore the option if not recognized
10185 # So say no if there are warnings
10186 if test -s conftest.err; then
10187 # Append any errors to the config.log.
10188 cat conftest.err 1>&5
10189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10191 if diff conftest.exp conftest.er2 >/dev/null; then
10192 lt_cv_prog_compiler__b=yes
10195 lt_cv_prog_compiler__b=yes
10199 LDFLAGS=$save_LDFLAGS
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10203 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10205 if test yes = "$lt_cv_prog_compiler__b"; then
10206 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10214 if test no = "$with_gnu_ld"; then
10215 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10216 hardcode_libdir_separator=:
10221 hardcode_shlibpath_var=no
10224 hardcode_direct=yes
10225 hardcode_direct_absolute=yes
10226 export_dynamic_flag_spec='$wl-E'
10228 # hardcode_minus_L: Not really in the search PATH,
10229 # but as the default location of the library.
10230 hardcode_minus_L=yes
10236 irix5* | irix6* | nonstopux*)
10237 if test yes = "$GCC"; then
10238 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'
10239 # Try to use the -exported_symbol ld option, if it does not
10240 # work, assume that -exports_file does not work either and
10241 # implicitly export all symbols.
10242 # This should be the same for all languages, so no per-tag cache variable.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10244 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10245 if ${lt_cv_irix_exported_symbol+:} false; then :
10246 $as_echo_n "(cached) " >&6
10248 save_LDFLAGS=$LDFLAGS
10249 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 int foo (void) { return 0; }
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 lt_cv_irix_exported_symbol=yes
10257 lt_cv_irix_exported_symbol=no
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LDFLAGS=$save_LDFLAGS
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10264 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10265 if test yes = "$lt_cv_irix_exported_symbol"; then
10266 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'
10269 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'
10270 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'
10272 archive_cmds_need_lc='no'
10273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274 hardcode_libdir_separator=:
10276 link_all_deplibs=yes
10280 case $cc_basename in
10282 # Fabrice Bellard et al's Tiny C Compiler
10284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10295 hardcode_libdir_flag_spec='-R$libdir'
10296 hardcode_direct=yes
10297 hardcode_shlibpath_var=no
10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=yes
10303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10304 hardcode_libdir_separator=:
10305 hardcode_shlibpath_var=no
10311 openbsd* | bitrig*)
10312 if test -f /usr/libexec/ld.so; then
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10315 hardcode_direct_absolute=yes
10316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10320 export_dynamic_flag_spec='$wl-E'
10322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 hardcode_minus_L=yes
10333 allow_undefined_flag=unsupported
10335 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10338 $ECHO EXPORTS >> $output_objdir/$libname.def~
10339 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10340 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10341 emximp -o $lib $output_objdir/$libname.def'
10342 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10343 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10344 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10345 $ECHO EXPORTS >> $output_objdir/$libname.def~
10346 prefix_cmds="$SED"~
10347 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10348 prefix_cmds="$prefix_cmds -e 1d";
10350 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10351 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10352 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10353 emximp -o $lib $output_objdir/$libname.def'
10354 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10355 enable_shared_with_static_runtimes=yes
10359 if test yes = "$GCC"; then
10360 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10361 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'
10363 allow_undefined_flag=' -expect_unresolved \*'
10364 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'
10366 archive_cmds_need_lc='no'
10367 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10368 hardcode_libdir_separator=:
10371 osf4* | osf5*) # as osf3* with the addition of -msym flag
10372 if test yes = "$GCC"; then
10373 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10374 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'
10375 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377 allow_undefined_flag=' -expect_unresolved \*'
10378 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'
10379 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~
10380 $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'
10382 # Both c and cxx compiler support -rpath directly
10383 hardcode_libdir_flag_spec='-rpath $libdir'
10385 archive_cmds_need_lc='no'
10386 hardcode_libdir_separator=:
10390 no_undefined_flag=' -z defs'
10391 if test yes = "$GCC"; then
10393 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10395 $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'
10397 case `$CC -V 2>&1` in
10400 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10402 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10406 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10408 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10412 hardcode_libdir_flag_spec='-R$libdir'
10413 hardcode_shlibpath_var=no
10415 solaris2.[0-5] | solaris2.[0-5].*) ;;
10417 # The compiler driver will combine and reorder linker options,
10418 # but understands '-z linker_flag'. GCC discards it without '$wl',
10419 # but is careful enough not to reorder.
10420 # Supported since Solaris 2.6 (maybe 2.5.1?)
10421 if test yes = "$GCC"; then
10422 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10424 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10428 link_all_deplibs=yes
10432 if test sequent = "$host_vendor"; then
10433 # Use $CC to link under sequent, because it throws in some extra .o
10434 # files that make .init and .fini sections work.
10435 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_direct=yes
10441 hardcode_minus_L=yes
10442 hardcode_shlibpath_var=no
10446 case $host_vendor in
10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_direct=yes # is this really true???
10452 ## LD is ld it makes a PLAMLIB
10453 ## CC just makes a GrossModule.
10454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10455 reload_cmds='$CC -r -o $output$reload_objs'
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10463 runpath_var='LD_RUN_PATH'
10464 hardcode_shlibpath_var=no
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_shlibpath_var=no
10470 export_dynamic_flag_spec='-Bexport'
10474 if test -d /usr/nec; then
10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_shlibpath_var=no
10477 runpath_var=LD_RUN_PATH
10478 hardcode_runpath_var=yes
10483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10484 no_undefined_flag='$wl-z,text'
10485 archive_cmds_need_lc=no
10486 hardcode_shlibpath_var=no
10487 runpath_var='LD_RUN_PATH'
10489 if test yes = "$GCC"; then
10490 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10494 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 sysv5* | sco3.2v5* | sco5v6*)
10499 # Note: We CANNOT use -z defs as we might desire, because we do not
10500 # link with -lc, and that would cause any symbols used from libc to
10501 # always be unresolved, which means just about no library would
10502 # ever link correctly. If we're not using GNU ld we use -z text
10503 # though, which does catch some bad symbols but isn't as heavy-handed
10505 no_undefined_flag='$wl-z,text'
10506 allow_undefined_flag='$wl-z,nodefs'
10507 archive_cmds_need_lc=no
10508 hardcode_shlibpath_var=no
10509 hardcode_libdir_flag_spec='$wl-R,$libdir'
10510 hardcode_libdir_separator=':'
10511 link_all_deplibs=yes
10512 export_dynamic_flag_spec='$wl-Bexport'
10513 runpath_var='LD_RUN_PATH'
10515 if test yes = "$GCC"; then
10516 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526 hardcode_libdir_flag_spec='-L$libdir'
10527 hardcode_shlibpath_var=no
10535 if test sni = "$host_vendor"; then
10537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10538 export_dynamic_flag_spec='$wl-Blargedynsym'
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10545 $as_echo "$ld_shlibs" >&6; }
10546 test no = "$ld_shlibs" && can_build_shared=no
10548 with_gnu_ld=$with_gnu_ld
10565 # Do we need to explicitly link libc?
10567 case "x$archive_cmds_need_lc" in
10569 # Assume -lc should be added
10570 archive_cmds_need_lc=yes
10572 if test yes,yes = "$GCC,$enable_shared"; then
10573 case $archive_cmds in
10575 # FIXME: we may have to deal with multi-command sequences.
10578 # Test whether the compiler implicitly links with -lc since on some
10579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10580 # to ld, don't add -lc before -lgcc.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10583 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10584 $as_echo_n "(cached) " >&6
10587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10590 (eval $ac_compile) 2>&5
10592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10593 test $ac_status = 0; } 2>conftest.err; then
10596 libobjs=conftest.$ac_objext
10598 wl=$lt_prog_compiler_wl
10599 pic_flag=$lt_prog_compiler_pic
10605 lt_save_allow_undefined_flag=$allow_undefined_flag
10606 allow_undefined_flag=
10607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10608 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10611 test $ac_status = 0; }
10613 lt_cv_archive_cmds_need_lc=no
10615 lt_cv_archive_cmds_need_lc=yes
10617 allow_undefined_flag=$lt_save_allow_undefined_flag
10619 cat conftest.err 1>&5
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10625 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10626 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10785 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10787 if test yes = "$GCC"; then
10789 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10790 *) lt_awk_arg='/^libraries:/' ;;
10793 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10794 *) lt_sed_strip_eq='s|=/|/|g' ;;
10796 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10797 case $lt_search_path_spec in
10799 # if the path contains ";" then we assume it to be the separator
10800 # otherwise default to the standard path separator (i.e. ":") - it is
10801 # assumed that no part of a normal pathname contains ";" but that should
10802 # okay in the real world where ";" in dirpaths is itself problematic.
10803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10806 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10809 # Ok, now we have the path, separated by spaces, we can step through it
10810 # and add multilib dir if necessary...
10811 lt_tmp_lt_search_path_spec=
10812 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10813 # ...but if some path component already ends with the multilib dir we assume
10814 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10815 case "$lt_multi_os_dir; $lt_search_path_spec " in
10816 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10820 for lt_sys_path in $lt_search_path_spec; do
10821 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10822 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10823 elif test -n "$lt_multi_os_dir"; then
10824 test -d "$lt_sys_path" && \
10825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10828 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10829 BEGIN {RS = " "; FS = "/|\n";} {
10832 for (lt_i = NF; lt_i > 0; lt_i--) {
10833 if ($lt_i != "" && $lt_i != ".") {
10834 if ($lt_i == "..") {
10837 if (lt_count == 0) {
10838 lt_foo = "/" $lt_i lt_foo;
10845 if (lt_foo != "") { lt_freq[lt_foo]++; }
10846 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10848 # AWK program above erroneously prepends '/' to C:/dos/paths
10851 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10852 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10854 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10858 library_names_spec=
10859 libname_spec='lib$name'
10863 postuninstall_cmds=
10867 shlibpath_overrides_runpath=unknown
10869 dynamic_linker="$host_os ld.so"
10870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10871 need_lib_prefix=unknown
10872 hardcode_into_libs=no
10874 # when you set need_version to no, make sure it does not cause -set_version
10875 # flags to be left without arguments
10876 need_version=unknown
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10884 shlibpath_var=LIBPATH
10886 # AIX 3 has no versioning support, so we append a major version to the name.
10887 soname_spec='$libname$release$shared_ext$major'
10891 version_type=linux # correct to gnu/linux during the next big refactor
10894 hardcode_into_libs=yes
10895 if test ia64 = "$host_cpu"; then
10896 # AIX 5 supports IA64
10897 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10898 shlibpath_var=LD_LIBRARY_PATH
10900 # With GCC up to 2.95.x, collect2 would create an import file
10901 # for dependence libraries. The import file would start with
10902 # the line '#! .'. This would cause the generated library to
10903 # depend on '.', always an invalid library. This was fixed in
10904 # development snapshots of GCC prior to 3.0.
10906 aix4 | aix4.[01] | aix4.[01].*)
10907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10909 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10912 can_build_shared=no
10916 # Using Import Files as archive members, it is possible to support
10917 # filename-based versioning of shared library archives on AIX. While
10918 # this would work for both with and without runtime linking, it will
10919 # prevent static linking of such archives. So we do filename-based
10920 # shared library versioning with .so extension only, which is used
10921 # when both runtime linking and shared linking is enabled.
10922 # Unfortunately, runtime linking may impact performance, so we do
10923 # not want this to be the default eventually. Also, we use the
10924 # versioned .so libs for executables only if there is the -brtl
10925 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10926 # To allow for filename-based versioning support, we need to create
10927 # libNAME.so.V as an archive file, containing:
10928 # *) an Import File, referring to the versioned filename of the
10929 # archive as well as the shared archive member, telling the
10930 # bitwidth (32 or 64) of that shared object, and providing the
10931 # list of exported symbols of that shared object, eventually
10932 # decorated with the 'weak' keyword
10933 # *) the shared object with the F_LOADONLY flag set, to really avoid
10934 # it being seen by the linker.
10935 # At run time we better use the real file rather than another symlink,
10936 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10938 case $with_aix_soname,$aix_use_runtimelinking in
10939 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10940 # soname into executable. Probably we can add versioning support to
10941 # collect2, so additional links can be useful in future.
10942 aix,yes) # traditional libtool
10943 dynamic_linker='AIX unversionable lib.so'
10944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10945 # instead of lib<name>.a to let people know that these are not
10946 # typical AIX shared libraries.
10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10949 aix,no) # traditional AIX only
10950 dynamic_linker='AIX lib.a(lib.so.V)'
10951 # We preserve .a as extension for shared libraries through AIX4.2
10952 # and later when we are not doing run time linking.
10953 library_names_spec='$libname$release.a $libname.a'
10954 soname_spec='$libname$release$shared_ext$major'
10956 svr4,*) # full svr4 only
10957 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10958 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10959 # We do not specify a path in Import Files, so LIBPATH fires.
10960 shlibpath_overrides_runpath=yes
10962 *,yes) # both, prefer svr4
10963 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10964 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10965 # unpreferred sharedlib libNAME.a needs extra handling
10966 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10967 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10968 # We do not specify a path in Import Files, so LIBPATH fires.
10969 shlibpath_overrides_runpath=yes
10971 *,no) # both, prefer aix
10972 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10973 library_names_spec='$libname$release.a $libname.a'
10974 soname_spec='$libname$release$shared_ext$major'
10975 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10976 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10977 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10980 shlibpath_var=LIBPATH
10987 # Since July 2007 AmigaOS4 officially supports .so libraries.
10988 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10992 library_names_spec='$libname.ixlibrary $libname.a'
10993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10994 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11000 library_names_spec='$libname$shared_ext'
11001 dynamic_linker="$host_os ld.so"
11002 shlibpath_var=LIBRARY_PATH
11006 version_type=linux # correct to gnu/linux during the next big refactor
11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11009 soname_spec='$libname$release$shared_ext$major'
11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11014 # the default ld.so.conf also contains /usr/contrib/lib and
11015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11016 # libtool to hard-code these into programs
11019 cygwin* | mingw* | pw32* | cegcc*)
11020 version_type=windows
11025 case $GCC,$cc_basename in
11028 library_names_spec='$libname.dll.a'
11029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11030 postinstall_cmds='base_file=`basename \$file`~
11031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11032 dldir=$destdir/`dirname \$dlpath`~
11033 test -d \$dldir || mkdir -p \$dldir~
11034 $install_prog $dir/$dlname \$dldir/$dlname~
11035 chmod a+x \$dldir/$dlname~
11036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11040 dlpath=$dir/\$dldll~
11042 shlibpath_overrides_runpath=yes
11046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11047 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11049 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11052 # MinGW DLLs use traditional 'lib' prefix
11053 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11056 # pw32 DLLs use 'pw' prefix rather than 'lib'
11057 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11060 dynamic_linker='Win32 ld.exe'
11065 libname_spec='$name'
11066 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11067 library_names_spec='$libname.dll.lib'
11071 sys_lib_search_path_spec=
11074 for lt_path in $LIB
11077 # Let DOS variable expansion print the short 8.3 style file name.
11078 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11079 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11082 # Convert to MSYS style.
11083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11086 # Convert to unix form, then to dos form, then back to unix form
11087 # but this time dos style (no spaces!) so that the unix form looks
11088 # like /cygdrive/c/PROGRA~1:/cygdr...
11089 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11090 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11091 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11094 sys_lib_search_path_spec=$LIB
11095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11096 # It is most probably a Windows format PATH.
11097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11101 # FIXME: find the short name or the path components, as spaces are
11102 # common. (e.g. "Program Files" -> "PROGRA~1")
11106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107 postinstall_cmds='base_file=`basename \$file`~
11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11109 dldir=$destdir/`dirname \$dlpath`~
11110 test -d \$dldir || mkdir -p \$dldir~
11111 $install_prog $dir/$dlname \$dldir/$dlname'
11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11113 dlpath=$dir/\$dldll~
11115 shlibpath_overrides_runpath=yes
11116 dynamic_linker='Win32 link.exe'
11120 # Assume MSVC wrapper
11121 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11122 dynamic_linker='Win32 ld.exe'
11125 # FIXME: first we should search . and the directory the executable is in
11129 darwin* | rhapsody*)
11130 dynamic_linker="$host_os dyld"
11131 version_type=darwin
11134 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11135 soname_spec='$libname$release$major$shared_ext'
11136 shlibpath_overrides_runpath=yes
11137 shlibpath_var=DYLD_LIBRARY_PATH
11138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11145 version_type=linux # correct to gnu/linux during the next big refactor
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149 soname_spec='$libname$release$shared_ext$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11153 freebsd* | dragonfly*)
11154 # DragonFly does not have aout. When/if they implement a new
11155 # versioning mechanism, adjust this.
11156 if test -x /usr/bin/objformat; then
11157 objformat=`/usr/bin/objformat`
11160 freebsd[23].*) objformat=aout ;;
11161 *) objformat=elf ;;
11164 version_type=freebsd-$objformat
11165 case $version_type in
11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168 soname_spec='$libname$release$shared_ext$major'
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11177 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11182 freebsd3.[01]* | freebsdelf3.[01]*)
11183 shlibpath_overrides_runpath=yes
11184 hardcode_into_libs=yes
11186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11188 shlibpath_overrides_runpath=no
11189 hardcode_into_libs=yes
11191 *) # from 4.6 on, and DragonFly
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11199 version_type=linux # correct to gnu/linux during the next big refactor
11202 dynamic_linker="$host_os runtime_loader"
11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204 soname_spec='$libname$release$shared_ext$major'
11205 shlibpath_var=LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11208 hardcode_into_libs=yes
11211 hpux9* | hpux10* | hpux11*)
11212 # Give a soname corresponding to the major version so that dld.sl refuses to
11213 # link against other versions.
11220 hardcode_into_libs=yes
11221 dynamic_linker="$host_os dld.so"
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 soname_spec='$libname$release$shared_ext$major'
11226 if test 32 = "$HPUX_IA64_MODE"; then
11227 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11228 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11230 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11231 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11236 hardcode_into_libs=yes
11237 dynamic_linker="$host_os dld.sl"
11238 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec='$libname$release$shared_ext$major'
11242 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11247 dynamic_linker="$host_os dld.sl"
11248 shlibpath_var=SHLIB_PATH
11249 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251 soname_spec='$libname$release$shared_ext$major'
11254 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11255 postinstall_cmds='chmod 555 $lib'
11256 # or fails outright, so override atomically:
11257 install_override_mode=555
11261 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265 soname_spec='$libname$release$shared_ext$major'
11266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=no
11269 hardcode_into_libs=yes
11272 irix5* | irix6* | nonstopux*)
11274 nonstopux*) version_type=nonstopux ;;
11276 if test yes = "$lt_cv_prog_gnu_ld"; then
11277 version_type=linux # correct to gnu/linux during the next big refactor
11284 soname_spec='$libname$release$shared_ext$major'
11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11287 irix5* | nonstopux*)
11288 libsuff= shlibsuff=
11291 case $LD in # libtool.m4 will add one of these switches to LD
11292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11293 libsuff= shlibsuff= libmagic=32-bit;;
11294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11295 libsuff=32 shlibsuff=N32 libmagic=N32;;
11296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11298 *) libsuff= shlibsuff= libmagic=never-match;;
11302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11303 shlibpath_overrides_runpath=no
11304 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11305 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11306 hardcode_into_libs=yes
11309 # No shared lib support for Linux oldld, aout, or coff.
11310 linux*oldld* | linux*aout* | linux*coff*)
11315 version_type=none # Android doesn't support versioned libraries.
11318 library_names_spec='$libname$release$shared_ext'
11319 soname_spec='$libname$release$shared_ext'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11324 # This implies no fast_install, which is unacceptable.
11325 # Some rework will be needed to allow for fast_install
11326 # before this can be enabled.
11327 hardcode_into_libs=yes
11329 dynamic_linker='Android linker'
11330 # Don't embed -rpath directories since the linker doesn't support them.
11331 hardcode_libdir_flag_spec='-L$libdir'
11334 # This must be glibc/ELF.
11335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11336 version_type=linux # correct to gnu/linux during the next big refactor
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 soname_spec='$libname$release$shared_ext$major'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11345 # Some binutils ld are patched to set DT_RUNPATH
11346 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11347 $as_echo_n "(cached) " >&6
11349 lt_cv_shlibpath_overrides_runpath=no
11350 save_LDFLAGS=$LDFLAGS
11351 save_libdir=$libdir
11352 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11353 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11367 lt_cv_shlibpath_overrides_runpath=yes
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LDFLAGS=$save_LDFLAGS
11373 libdir=$save_libdir
11377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11379 # This implies no fast_install, which is unacceptable.
11380 # Some rework will be needed to allow for fast_install
11381 # before this can be enabled.
11382 hardcode_into_libs=yes
11384 # Ideally, we could use ldconfig to report *all* directores which are
11385 # searched for libraries, however this is still not possible. Aside from not
11386 # being certain /sbin/ldconfig is available, command
11387 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11388 # even though it is searched at run-time. Try to do the best guess by
11389 # appending ld.so.conf contents (and includes) to the search path.
11390 if test -f /etc/ld.so.conf; then
11391 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' ' '`
11392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11395 # We used to test for /lib/ld.so.1 and disable shared libraries on
11396 # powerpc, because MkLinux only supported shared libraries with the
11397 # GNU dynamic linker. Since this was broken with cross compilers,
11398 # most powerpc-linux boxes support dynamic linking these days and
11399 # people can always --disable-shared, the test was removed, and we
11400 # assume the GNU/Linux dynamic linker is in use.
11401 dynamic_linker='GNU/Linux ld.so'
11408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11411 dynamic_linker='NetBSD (a.out) ld.so'
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414 soname_spec='$libname$release$shared_ext$major'
11415 dynamic_linker='NetBSD ld.elf_so'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=yes
11419 hardcode_into_libs=yes
11423 version_type=linux # correct to gnu/linux during the next big refactor
11424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434 soname_spec='$libname$release$shared_ext$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11438 dynamic_linker='ldqnx.so'
11441 openbsd* | bitrig*)
11443 sys_lib_dlsearch_path_spec=/usr/lib
11445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11457 libname_spec='$name'
11458 version_type=windows
11462 # OS/2 can only load a DLL with a base name of 8 characters or less.
11463 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11464 v=$($ECHO $release$versuffix | tr -d .-);
11465 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11466 $ECHO $n$v`$shared_ext'
11467 library_names_spec='${libname}_dll.$libext'
11468 dynamic_linker='OS/2 ld.exe'
11469 shlibpath_var=BEGINLIBPATH
11470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11472 postinstall_cmds='base_file=`basename \$file`~
11473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11474 dldir=$destdir/`dirname \$dlpath`~
11475 test -d \$dldir || mkdir -p \$dldir~
11476 $install_prog $dir/$dlname \$dldir/$dlname~
11477 chmod a+x \$dldir/$dlname~
11478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11482 dlpath=$dir/\$dldll~
11486 osf3* | osf4* | osf5*)
11490 soname_spec='$libname$release$shared_ext$major'
11491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11502 version_type=linux # correct to gnu/linux during the next big refactor
11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506 soname_spec='$libname$release$shared_ext$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 # ldd complains unless libraries are executable
11511 postinstall_cmds='chmod +x $lib'
11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 if test yes = "$with_gnu_ld"; then
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11529 soname_spec='$libname$release$shared_ext$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 case $host_vendor in
11533 shlibpath_overrides_runpath=no
11535 runpath_var=LD_RUN_PATH
11543 shlibpath_overrides_runpath=no
11544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11550 if test -d /usr/nec; then
11551 version_type=linux # correct to gnu/linux during the next big refactor
11552 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11553 soname_spec='$libname$shared_ext.$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11563 soname_spec='$libname$release$shared_ext$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 hardcode_into_libs=yes
11567 if test yes = "$with_gnu_ld"; then
11568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11577 sys_lib_dlsearch_path_spec='/usr/lib'
11581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11582 version_type=linux # correct to gnu/linux during the next big refactor
11585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11594 soname_spec='$libname$release$shared_ext$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11603 $as_echo "$dynamic_linker" >&6; }
11604 test no = "$dynamic_linker" && can_build_shared=no
11606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11607 if test yes = "$GCC"; then
11608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11611 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11612 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11615 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11616 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11619 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11620 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11622 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11623 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11625 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11626 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728 test -n "$runpath_var" ||
11729 test yes = "$hardcode_automatic"; then
11731 # We can hardcode non-existent directories.
11732 if test no != "$hardcode_direct" &&
11733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734 # have to relink, otherwise we might link with an installed library
11735 # when we should be linking with a yet-to-be-installed one
11736 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11737 test no != "$hardcode_minus_L"; then
11738 # Linking always hardcodes the temporary library directory.
11739 hardcode_action=relink
11741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742 hardcode_action=immediate
11745 # We cannot hardcode anything, or else we can only hardcode existing
11747 hardcode_action=unsupported
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11752 if test relink = "$hardcode_action" ||
11753 test yes = "$inherit_rpath"; then
11754 # Fast installation is not supported
11755 enable_fast_install=no
11756 elif test yes = "$shlibpath_overrides_runpath" ||
11757 test no = "$enable_shared"; then
11758 # Fast installation is not necessary
11759 enable_fast_install=needless
11767 if test yes != "$enable_dlopen"; then
11768 enable_dlopen=unknown
11769 enable_dlopen_self=unknown
11770 enable_dlopen_self_static=unknown
11777 lt_cv_dlopen=load_add_on
11779 lt_cv_dlopen_self=yes
11782 mingw* | pw32* | cegcc*)
11783 lt_cv_dlopen=LoadLibrary
11788 lt_cv_dlopen=dlopen
11793 # if libdl is installed we need to link against it
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if ${ac_cv_lib_dl_dlopen+:} false; then :
11797 $as_echo_n "(cached) " >&6
11799 ac_check_lib_save_LIBS=$LIBS
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11819 if ac_fn_c_try_link "$LINENO"; then :
11820 ac_cv_lib_dl_dlopen=yes
11822 ac_cv_lib_dl_dlopen=no
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_lib_save_LIBS
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11829 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11830 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11831 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11836 lt_cv_dlopen_self=yes
11843 # Don't try to run any link tests for TPF. We know it's impossible
11844 # because TPF is a cross-compiler, and we know how we open DSOs.
11845 lt_cv_dlopen=dlopen
11847 lt_cv_dlopen_self=no
11851 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11852 if test "x$ac_cv_func_shl_load" = xyes; then :
11853 lt_cv_dlopen=shl_load
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11857 if ${ac_cv_lib_dld_shl_load+:} false; then :
11858 $as_echo_n "(cached) " >&6
11860 ac_check_lib_save_LIBS=$LIBS
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11875 return shl_load ();
11880 if ac_fn_c_try_link "$LINENO"; then :
11881 ac_cv_lib_dld_shl_load=yes
11883 ac_cv_lib_dld_shl_load=no
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_check_lib_save_LIBS
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11891 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11892 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11894 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11895 if test "x$ac_cv_func_dlopen" = xyes; then :
11896 lt_cv_dlopen=dlopen
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11900 if ${ac_cv_lib_dl_dlopen+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 ac_check_lib_save_LIBS=$LIBS
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 /* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11923 if ac_fn_c_try_link "$LINENO"; then :
11924 ac_cv_lib_dl_dlopen=yes
11926 ac_cv_lib_dl_dlopen=no
11928 rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11934 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11935 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11939 if ${ac_cv_lib_svld_dlopen+:} false; then :
11940 $as_echo_n "(cached) " >&6
11942 ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-lsvld $LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_lib_svld_dlopen=yes
11965 ac_cv_lib_svld_dlopen=no
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11973 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11974 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11978 if ${ac_cv_lib_dld_dld_link+:} false; then :
11979 $as_echo_n "(cached) " >&6
11981 ac_check_lib_save_LIBS=$LIBS
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11996 return dld_link ();
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_dld_dld_link=yes
12004 ac_cv_lib_dld_dld_link=no
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12012 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12013 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12034 if test no = "$lt_cv_dlopen"; then
12040 case $lt_cv_dlopen in
12042 save_CPPFLAGS=$CPPFLAGS
12043 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12045 save_LDFLAGS=$LDFLAGS
12046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12049 LIBS="$lt_cv_dlopen_libs $LIBS"
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12053 if ${lt_cv_dlopen_self+:} false; then :
12054 $as_echo_n "(cached) " >&6
12056 if test yes = "$cross_compiling"; then :
12057 lt_cv_dlopen_self=cross
12059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12060 lt_status=$lt_dlunknown
12061 cat > conftest.$ac_ext <<_LT_EOF
12062 #line $LINENO "configure"
12063 #include "confdefs.h"
12072 # define LT_DLGLOBAL RTLD_GLOBAL
12075 # define LT_DLGLOBAL DL_GLOBAL
12077 # define LT_DLGLOBAL 0
12081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12082 find out it does not work in some platform. */
12083 #ifndef LT_DLLAZY_OR_NOW
12085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12088 # define LT_DLLAZY_OR_NOW DL_LAZY
12091 # define LT_DLLAZY_OR_NOW RTLD_NOW
12094 # define LT_DLLAZY_OR_NOW DL_NOW
12096 # define LT_DLLAZY_OR_NOW 0
12103 /* When -fvisibility=hidden is used, assume the code has been annotated
12104 correspondingly for the symbols needed. */
12105 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12106 int fnord () __attribute__((visibility("default")));
12109 int fnord () { return 42; }
12112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113 int status = $lt_dlunknown;
12117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12121 else puts (dlerror ());
12123 /* dlclose (self); */
12131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12132 (eval $ac_link) 2>&5
12134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12136 (./conftest; exit; ) >&5 2>/dev/null
12138 case x$lt_status in
12139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12144 # compilation failed
12145 lt_cv_dlopen_self=no
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12153 $as_echo "$lt_cv_dlopen_self" >&6; }
12155 if test yes = "$lt_cv_dlopen_self"; then
12156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12159 if ${lt_cv_dlopen_self_static+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 if test yes = "$cross_compiling"; then :
12163 lt_cv_dlopen_self_static=cross
12165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12166 lt_status=$lt_dlunknown
12167 cat > conftest.$ac_ext <<_LT_EOF
12168 #line $LINENO "configure"
12169 #include "confdefs.h"
12178 # define LT_DLGLOBAL RTLD_GLOBAL
12181 # define LT_DLGLOBAL DL_GLOBAL
12183 # define LT_DLGLOBAL 0
12187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12188 find out it does not work in some platform. */
12189 #ifndef LT_DLLAZY_OR_NOW
12191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12194 # define LT_DLLAZY_OR_NOW DL_LAZY
12197 # define LT_DLLAZY_OR_NOW RTLD_NOW
12200 # define LT_DLLAZY_OR_NOW DL_NOW
12202 # define LT_DLLAZY_OR_NOW 0
12209 /* When -fvisibility=hidden is used, assume the code has been annotated
12210 correspondingly for the symbols needed. */
12211 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12212 int fnord () __attribute__((visibility("default")));
12215 int fnord () { return 42; }
12218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12219 int status = $lt_dlunknown;
12223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12226 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12227 else puts (dlerror ());
12229 /* dlclose (self); */
12237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12238 (eval $ac_link) 2>&5
12240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12242 (./conftest; exit; ) >&5 2>/dev/null
12244 case x$lt_status in
12245 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12246 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12247 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12250 # compilation failed
12251 lt_cv_dlopen_self_static=no
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12262 CPPFLAGS=$save_CPPFLAGS
12263 LDFLAGS=$save_LDFLAGS
12268 case $lt_cv_dlopen_self in
12269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12270 *) enable_dlopen_self=unknown ;;
12273 case $lt_cv_dlopen_self_static in
12274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12275 *) enable_dlopen_self_static=unknown ;;
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12300 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12301 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12305 # FIXME - insert some real tests, host_os isn't really good enough
12308 if test -n "$STRIP"; then
12309 striplib="$STRIP -x"
12310 old_striplib="$STRIP -S"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12312 $as_echo "yes" >&6; }
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12336 # Report what library types will actually be built
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12340 $as_echo "$can_build_shared" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12343 $as_echo_n "checking whether to build shared libraries... " >&6; }
12344 test no = "$can_build_shared" && enable_shared=no
12346 # On AIX, shared libraries and static libraries use the same namespace, and
12347 # are all built from PIC.
12350 test yes = "$enable_shared" && enable_static=no
12351 if test -n "$RANLIB"; then
12352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12353 postinstall_cmds='$RANLIB $lib'
12358 if test ia64 != "$host_cpu"; then
12359 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12360 yes,aix,yes) ;; # shared object as lib.so file only
12361 yes,svr4,*) ;; # shared object as lib.so archive member only
12362 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12368 $as_echo "$enable_shared" >&6; }
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12371 $as_echo_n "checking whether to build static libraries... " >&6; }
12372 # Make sure either enable_shared or enable_static is yes.
12373 test yes = "$enable_shared" || enable_static=yes
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12375 $as_echo "$enable_static" >&6; }
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403 ac_config_commands="$ac_config_commands libtool"
12408 # Only expand once:
12412 if test "X$prefix" = "XNONE"; then
12413 acl_final_prefix="$ac_default_prefix"
12415 acl_final_prefix="$prefix"
12417 if test "X$exec_prefix" = "XNONE"; then
12418 acl_final_exec_prefix='${prefix}'
12420 acl_final_exec_prefix="$exec_prefix"
12422 acl_save_prefix="$prefix"
12423 prefix="$acl_final_prefix"
12424 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12425 prefix="$acl_save_prefix"
12429 # Check whether --with-gnu-ld was given.
12430 if test "${with_gnu_ld+set}" = set; then :
12431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12436 # Prepare PATH_SEPARATOR.
12437 # The user is always right.
12438 if test "${PATH_SEPARATOR+set}" != set; then
12439 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12440 # contains only /bin. Note that ksh looks also at the FPATH variable,
12441 # so we have to set that as well for the test.
12443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12444 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12445 || PATH_SEPARATOR=';'
12450 if test "$GCC" = yes; then
12451 # Check if gcc -print-prog-name=ld gives a path.
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12453 $as_echo_n "checking for ld used by $CC... " >&6; }
12456 # gcc leaves a trailing carriage return which upsets mingw
12457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12462 # Accept absolute paths.
12464 re_direlt='/[^/][^/]*/\.\./'
12465 # Canonicalize the pathname of ld
12466 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12467 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12468 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12470 test -z "$LD" && LD="$ac_prog"
12473 # If it fails, then pretend we aren't using GCC.
12477 # If it is relative, then search for the first ld in PATH.
12478 with_gnu_ld=unknown
12481 elif test "$with_gnu_ld" = yes; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12483 $as_echo_n "checking for GNU ld... " >&6; }
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12486 $as_echo_n "checking for non-GNU ld... " >&6; }
12488 if ${acl_cv_path_LD+:} false; then :
12489 $as_echo_n "(cached) " >&6
12491 if test -z "$LD"; then
12492 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12493 for ac_dir in $PATH; do
12494 IFS="$acl_save_ifs"
12495 test -z "$ac_dir" && ac_dir=.
12496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12497 acl_cv_path_LD="$ac_dir/$ac_prog"
12498 # Check to see if the program is GNU ld. I'd rather use --version,
12499 # but apparently some variants of GNU ld only accept -v.
12500 # Break only if it was the GNU/non-GNU ld that we prefer.
12501 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12502 *GNU* | *'with BFD'*)
12503 test "$with_gnu_ld" != no && break
12506 test "$with_gnu_ld" != yes && break
12511 IFS="$acl_save_ifs"
12513 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12517 LD="$acl_cv_path_LD"
12518 if test -n "$LD"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12520 $as_echo "$LD" >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12525 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12528 if ${acl_cv_prog_gnu_ld+:} false; then :
12529 $as_echo_n "(cached) " >&6
12531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12532 case `$LD -v 2>&1 </dev/null` in
12533 *GNU* | *'with BFD'*)
12534 acl_cv_prog_gnu_ld=yes
12537 acl_cv_prog_gnu_ld=no
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12542 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12543 with_gnu_ld=$acl_cv_prog_gnu_ld
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12549 $as_echo_n "checking for shared library run path origin... " >&6; }
12550 if ${acl_cv_rpath+:} false; then :
12551 $as_echo_n "(cached) " >&6
12554 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12555 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12557 rm -f ./conftest.sh
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12562 $as_echo "$acl_cv_rpath" >&6; }
12564 acl_libext="$acl_cv_libext"
12565 acl_shlibext="$acl_cv_shlibext"
12566 acl_libname_spec="$acl_cv_libname_spec"
12567 acl_library_names_spec="$acl_cv_library_names_spec"
12568 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12569 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12570 acl_hardcode_direct="$acl_cv_hardcode_direct"
12571 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12572 # Check whether --enable-rpath was given.
12573 if test "${enable_rpath+set}" = set; then :
12574 enableval=$enable_rpath; :
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12587 $as_echo_n "checking for 64-bit host... " >&6; }
12588 if ${gl_cv_solaris_64bit+:} false; then :
12589 $as_echo_n "(cached) " >&6
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12600 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12601 gl_cv_solaris_64bit=yes
12603 gl_cv_solaris_64bit=no
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12610 $as_echo "$gl_cv_solaris_64bit" >&6; }
12611 if test $gl_cv_solaris_64bit = yes; then
12612 acl_libdirstem=lib/64
12613 case "$host_cpu" in
12614 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12615 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12620 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12621 if test -n "$searchpath"; then
12622 acl_save_IFS="${IFS= }"; IFS=":"
12623 for searchdir in $searchpath; do
12624 if test -d "$searchdir"; then
12625 case "$searchdir" in
12626 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12628 # Better ignore directories of this form. They are misleading.
12630 *) searchdir=`cd "$searchdir" && pwd`
12631 case "$searchdir" in
12632 */lib64 ) acl_libdirstem=lib64 ;;
12637 IFS="$acl_save_IFS"
12641 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12656 acl_save_prefix="$prefix"
12657 prefix="$acl_final_prefix"
12658 acl_save_exec_prefix="$exec_prefix"
12659 exec_prefix="$acl_final_exec_prefix"
12661 eval additional_includedir=\"$includedir\"
12662 eval additional_libdir=\"$libdir\"
12664 exec_prefix="$acl_save_exec_prefix"
12665 prefix="$acl_save_prefix"
12668 # Check whether --with-libiconv-prefix was given.
12669 if test "${with_libiconv_prefix+set}" = set; then :
12670 withval=$with_libiconv_prefix;
12671 if test "X$withval" = "Xno"; then
12674 if test "X$withval" = "X"; then
12676 acl_save_prefix="$prefix"
12677 prefix="$acl_final_prefix"
12678 acl_save_exec_prefix="$exec_prefix"
12679 exec_prefix="$acl_final_exec_prefix"
12681 eval additional_includedir=\"$includedir\"
12682 eval additional_libdir=\"$libdir\"
12684 exec_prefix="$acl_save_exec_prefix"
12685 prefix="$acl_save_prefix"
12688 additional_includedir="$withval/include"
12689 additional_libdir="$withval/$acl_libdirstem"
12690 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12691 && ! test -d "$withval/$acl_libdirstem"; then
12692 additional_libdir="$withval/$acl_libdirstem2"
12706 names_already_handled=
12707 names_next_round='iconv '
12708 while test -n "$names_next_round"; do
12709 names_this_round="$names_next_round"
12711 for name in $names_this_round; do
12713 for n in $names_already_handled; do
12714 if test "$n" = "$name"; then
12715 already_handled=yes
12719 if test -z "$already_handled"; then
12720 names_already_handled="$names_already_handled $name"
12721 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12722 eval value=\"\$HAVE_LIB$uppername\"
12723 if test -n "$value"; then
12724 if test "$value" = yes; then
12725 eval value=\"\$LIB$uppername\"
12726 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12727 eval value=\"\$LTLIB$uppername\"
12728 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12737 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12738 if test -n "$acl_shlibext"; then
12739 shrext=".$acl_shlibext" # typically: shrext=.so
12743 if test $use_additional = yes; then
12744 dir="$additional_libdir"
12745 if test -n "$acl_shlibext"; then
12746 if test -f "$dir/$libname$shrext"; then
12748 found_so="$dir/$libname$shrext"
12750 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12751 ver=`(cd "$dir" && \
12752 for f in "$libname$shrext".*; do echo "$f"; done \
12753 | sed -e "s,^$libname$shrext\\\\.,," \
12754 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12755 | sed 1q ) 2>/dev/null`
12756 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12758 found_so="$dir/$libname$shrext.$ver"
12761 eval library_names=\"$acl_library_names_spec\"
12762 for f in $library_names; do
12763 if test -f "$dir/$f"; then
12772 if test "X$found_dir" = "X"; then
12773 if test -f "$dir/$libname.$acl_libext"; then
12775 found_a="$dir/$libname.$acl_libext"
12778 if test "X$found_dir" != "X"; then
12779 if test -f "$dir/$libname.la"; then
12780 found_la="$dir/$libname.la"
12784 if test "X$found_dir" = "X"; then
12785 for x in $LDFLAGS $LTLIBICONV; do
12787 acl_save_prefix="$prefix"
12788 prefix="$acl_final_prefix"
12789 acl_save_exec_prefix="$exec_prefix"
12790 exec_prefix="$acl_final_exec_prefix"
12792 exec_prefix="$acl_save_exec_prefix"
12793 prefix="$acl_save_prefix"
12797 dir=`echo "X$x" | sed -e 's/^X-L//'`
12798 if test -n "$acl_shlibext"; then
12799 if test -f "$dir/$libname$shrext"; then
12801 found_so="$dir/$libname$shrext"
12803 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12804 ver=`(cd "$dir" && \
12805 for f in "$libname$shrext".*; do echo "$f"; done \
12806 | sed -e "s,^$libname$shrext\\\\.,," \
12807 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12808 | sed 1q ) 2>/dev/null`
12809 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12811 found_so="$dir/$libname$shrext.$ver"
12814 eval library_names=\"$acl_library_names_spec\"
12815 for f in $library_names; do
12816 if test -f "$dir/$f"; then
12825 if test "X$found_dir" = "X"; then
12826 if test -f "$dir/$libname.$acl_libext"; then
12828 found_a="$dir/$libname.$acl_libext"
12831 if test "X$found_dir" != "X"; then
12832 if test -f "$dir/$libname.la"; then
12833 found_la="$dir/$libname.la"
12838 if test "X$found_dir" != "X"; then
12843 if test "X$found_dir" != "X"; then
12844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12845 if test "X$found_so" != "X"; then
12846 if test "$enable_rpath" = no \
12847 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12848 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12852 for x in $ltrpathdirs; do
12853 if test "X$x" = "X$found_dir"; then
12858 if test -z "$haveit"; then
12859 ltrpathdirs="$ltrpathdirs $found_dir"
12861 if test "$acl_hardcode_direct" = yes; then
12862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12864 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12867 for x in $rpathdirs; do
12868 if test "X$x" = "X$found_dir"; then
12873 if test -z "$haveit"; then
12874 rpathdirs="$rpathdirs $found_dir"
12878 for x in $LDFLAGS $LIBICONV; do
12880 acl_save_prefix="$prefix"
12881 prefix="$acl_final_prefix"
12882 acl_save_exec_prefix="$exec_prefix"
12883 exec_prefix="$acl_final_exec_prefix"
12885 exec_prefix="$acl_save_exec_prefix"
12886 prefix="$acl_save_prefix"
12888 if test "X$x" = "X-L$found_dir"; then
12893 if test -z "$haveit"; then
12894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12896 if test "$acl_hardcode_minus_L" != no; then
12897 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12899 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12905 if test "X$found_a" != "X"; then
12906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12911 additional_includedir=
12912 case "$found_dir" in
12913 */$acl_libdirstem | */$acl_libdirstem/)
12914 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12915 if test "$name" = 'iconv'; then
12916 LIBICONV_PREFIX="$basedir"
12918 additional_includedir="$basedir/include"
12920 */$acl_libdirstem2 | */$acl_libdirstem2/)
12921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12922 if test "$name" = 'iconv'; then
12923 LIBICONV_PREFIX="$basedir"
12925 additional_includedir="$basedir/include"
12928 if test "X$additional_includedir" != "X"; then
12929 if test "X$additional_includedir" != "X/usr/include"; then
12931 if test "X$additional_includedir" = "X/usr/local/include"; then
12932 if test -n "$GCC"; then
12934 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12938 if test -z "$haveit"; then
12939 for x in $CPPFLAGS $INCICONV; do
12941 acl_save_prefix="$prefix"
12942 prefix="$acl_final_prefix"
12943 acl_save_exec_prefix="$exec_prefix"
12944 exec_prefix="$acl_final_exec_prefix"
12946 exec_prefix="$acl_save_exec_prefix"
12947 prefix="$acl_save_prefix"
12949 if test "X$x" = "X-I$additional_includedir"; then
12954 if test -z "$haveit"; then
12955 if test -d "$additional_includedir"; then
12956 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12962 if test -n "$found_la"; then
12963 save_libdir="$libdir"
12964 case "$found_la" in
12965 */* | *\\*) . "$found_la" ;;
12966 *) . "./$found_la" ;;
12968 libdir="$save_libdir"
12969 for dep in $dependency_libs; do
12972 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12973 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12974 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12976 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12977 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12978 if test -n "$GCC"; then
12980 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12984 if test -z "$haveit"; then
12986 for x in $LDFLAGS $LIBICONV; do
12988 acl_save_prefix="$prefix"
12989 prefix="$acl_final_prefix"
12990 acl_save_exec_prefix="$exec_prefix"
12991 exec_prefix="$acl_final_exec_prefix"
12993 exec_prefix="$acl_save_exec_prefix"
12994 prefix="$acl_save_prefix"
12996 if test "X$x" = "X-L$additional_libdir"; then
13001 if test -z "$haveit"; then
13002 if test -d "$additional_libdir"; then
13003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13007 for x in $LDFLAGS $LTLIBICONV; do
13009 acl_save_prefix="$prefix"
13010 prefix="$acl_final_prefix"
13011 acl_save_exec_prefix="$exec_prefix"
13012 exec_prefix="$acl_final_exec_prefix"
13014 exec_prefix="$acl_save_exec_prefix"
13015 prefix="$acl_save_prefix"
13017 if test "X$x" = "X-L$additional_libdir"; then
13022 if test -z "$haveit"; then
13023 if test -d "$additional_libdir"; then
13024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13031 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13032 if test "$enable_rpath" != no; then
13034 for x in $rpathdirs; do
13035 if test "X$x" = "X$dir"; then
13040 if test -z "$haveit"; then
13041 rpathdirs="$rpathdirs $dir"
13044 for x in $ltrpathdirs; do
13045 if test "X$x" = "X$dir"; then
13050 if test -z "$haveit"; then
13051 ltrpathdirs="$ltrpathdirs $dir"
13056 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13059 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13062 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13069 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13076 if test "X$rpathdirs" != "X"; then
13077 if test -n "$acl_hardcode_libdir_separator"; then
13079 for found_dir in $rpathdirs; do
13080 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13082 acl_save_libdir="$libdir"
13084 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13085 libdir="$acl_save_libdir"
13086 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13088 for found_dir in $rpathdirs; do
13089 acl_save_libdir="$libdir"
13090 libdir="$found_dir"
13091 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13092 libdir="$acl_save_libdir"
13093 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13097 if test "X$ltrpathdirs" != "X"; then
13098 for found_dir in $ltrpathdirs; do
13099 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13114 am_save_CPPFLAGS="$CPPFLAGS"
13116 for element in $INCICONV; do
13118 for x in $CPPFLAGS; do
13120 acl_save_prefix="$prefix"
13121 prefix="$acl_final_prefix"
13122 acl_save_exec_prefix="$exec_prefix"
13123 exec_prefix="$acl_final_exec_prefix"
13125 exec_prefix="$acl_save_exec_prefix"
13126 prefix="$acl_save_prefix"
13128 if test "X$x" = "X$element"; then
13133 if test -z "$haveit"; then
13134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13140 $as_echo_n "checking for iconv... " >&6; }
13141 if ${am_cv_func_iconv+:} false; then :
13142 $as_echo_n "(cached) " >&6
13145 am_cv_func_iconv="no, consider installing GNU libiconv"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <stdlib.h>
13154 iconv_t cd = iconv_open("","");
13155 iconv(cd,NULL,NULL,NULL,NULL);
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 am_cv_func_iconv=yes
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 if test "$am_cv_func_iconv" != yes; then
13167 am_save_LIBS="$LIBS"
13168 LIBS="$LIBS $LIBICONV"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <stdlib.h>
13176 iconv_t cd = iconv_open("","");
13177 iconv(cd,NULL,NULL,NULL,NULL);
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 am_cv_lib_iconv=yes
13185 am_cv_func_iconv=yes
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 LIBS="$am_save_LIBS"
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13194 $as_echo "$am_cv_func_iconv" >&6; }
13195 if test "$am_cv_func_iconv" = yes; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13197 $as_echo_n "checking for working iconv... " >&6; }
13198 if ${am_cv_func_iconv_works+:} false; then :
13199 $as_echo_n "(cached) " >&6
13202 am_save_LIBS="$LIBS"
13203 if test $am_cv_lib_iconv = yes; then
13204 LIBS="$LIBS $LIBICONV"
13206 if test "$cross_compiling" = yes; then :
13208 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13209 *) am_cv_func_iconv_works="guessing yes" ;;
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13216 #include <string.h>
13219 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13222 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13223 if (cd_utf8_to_88591 != (iconv_t)(-1))
13225 static const char input[] = "\342\202\254"; /* EURO SIGN */
13227 const char *inptr = input;
13228 size_t inbytesleft = strlen (input);
13229 char *outptr = buf;
13230 size_t outbytesleft = sizeof (buf);
13231 size_t res = iconv (cd_utf8_to_88591,
13232 (char **) &inptr, &inbytesleft,
13233 &outptr, &outbytesleft);
13238 #if 0 /* This bug could be worked around by the caller. */
13239 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13241 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13242 if (cd_88591_to_utf8 != (iconv_t)(-1))
13244 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13246 const char *inptr = input;
13247 size_t inbytesleft = strlen (input);
13248 char *outptr = buf;
13249 size_t outbytesleft = sizeof (buf);
13250 size_t res = iconv (cd_88591_to_utf8,
13251 (char **) &inptr, &inbytesleft,
13252 &outptr, &outbytesleft);
13258 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13260 if (/* Try standardized names. */
13261 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13262 /* Try IRIX, OSF/1 names. */
13263 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13264 /* Try AIX names. */
13265 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13266 /* Try HP-UX names. */
13267 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13272 if ac_fn_c_try_run "$LINENO"; then :
13273 am_cv_func_iconv_works=yes
13275 am_cv_func_iconv_works=no
13277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13278 conftest.$ac_objext conftest.beam conftest.$ac_ext
13281 LIBS="$am_save_LIBS"
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13285 $as_echo "$am_cv_func_iconv_works" >&6; }
13286 case "$am_cv_func_iconv_works" in
13287 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13288 *) am_func_iconv=yes ;;
13291 am_func_iconv=no am_cv_lib_iconv=no
13293 if test "$am_func_iconv" = yes; then
13295 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13298 if test "$am_cv_lib_iconv" = yes; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13300 $as_echo_n "checking how to link with libiconv... " >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13302 $as_echo "$LIBICONV" >&6; }
13304 CPPFLAGS="$am_save_CPPFLAGS"
13311 if test "$am_cv_func_iconv" = yes; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13313 $as_echo_n "checking for iconv declaration... " >&6; }
13314 if ${am_cv_proto_iconv+:} false; then :
13315 $as_echo_n "(cached) " >&6
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13321 #include <stdlib.h>
13327 #if defined(__STDC__) || defined(__cplusplus)
13328 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13341 if ac_fn_c_try_compile "$LINENO"; then :
13342 am_cv_proto_iconv_arg1=""
13344 am_cv_proto_iconv_arg1="const"
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13350 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13352 $am_cv_proto_iconv" >&5
13354 $am_cv_proto_iconv" >&6; }
13356 cat >>confdefs.h <<_ACEOF
13357 #define ICONV_CONST $am_cv_proto_iconv_arg1
13363 # Optionally set install location of udev
13366 # Check whether --with-udev was given.
13367 if test "${with_udev+set}" = set; then :
13368 withval=$with_udev; UDEV="${withval}"
13373 # Optionally set name of udev rules file, default
13374 # priority is 69, to appear before 70-acl.rules which handles
13375 # access control to the devices. We try to let all other userspace
13376 # libusb-based device handlers take precedence since libmtp may
13377 # attempt to autoprobe the devices.
13379 # Later rules can then use the identifiers for its processing.
13380 UDEV_RULES=69-libmtp.rules
13382 # Check whether --with-udev-rules was given.
13383 if test "${with_udev_rules+set}" = set; then :
13384 withval=$with_udev_rules; UDEV_RULES="${withval}"
13389 # Optionally set group for device nodes
13392 # Check whether --with-udev-group was given.
13393 if test "${with_udev_group+set}" = set; then :
13394 withval=$with_udev_group; UDEV_GROUP="-g\"${withval}\""
13399 # Optionally set mode for device nodes
13402 # Check whether --with-udev-mode was given.
13403 if test "${with_udev_mode+set}" = set; then :
13404 withval=$with_udev_mode; UDEV_MODE="-m\"${withval}\""
13409 # Optionally enable and check for doxygen
13410 # Check whether --enable-doxygen was given.
13411 if test "${enable_doxygen+set}" = set; then :
13412 enableval=$enable_doxygen; ac_enable_doxygen=$enableval
13414 ac_enable_doxygen=auto
13417 if test "x$ac_enable_doxygen" != "xno"; then
13418 # Extract the first word of "doxygen", so it can be a program name with args.
13419 set dummy doxygen; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
13423 $as_echo_n "(cached) " >&6
13425 if test -n "$HAVE_DOXYGEN"; then
13426 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_HAVE_DOXYGEN="true"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
13446 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
13447 if test -n "$HAVE_DOXYGEN"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
13449 $as_echo "$HAVE_DOXYGEN" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13456 if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then
13457 as_fn_error $? "*** API documentation explicitly requested but Doxygen not found" "$LINENO" 5
13459 if test "x$HAVE_DOXYGEN" = "xtrue"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will be generated using Doxygen" >&5
13461 $as_echo "$as_me: API documentation will be generated using Doxygen" >&6;}
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will not be generated" >&5
13466 $as_echo "$as_me: API documentation will not be generated" >&6;}
13468 if $HAVE_DOXYGEN; then
13470 HAVE_DOXYGEN_FALSE='#'
13472 HAVE_DOXYGEN_TRUE='#'
13473 HAVE_DOXYGEN_FALSE=
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Darwin" >&5
13479 $as_echo_n "checking if the host operating system is Darwin... " >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483 $as_echo "yes" >&6; }
13484 CFLAGS="$CFLAGS -DUSE_DARWIN"
13485 OSFLAGS="-framework IOKit"
13487 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; } ;;
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Linux" >&5
13493 $as_echo_n "checking if the host operating system is Linux... " >&6; }
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13508 if ac_fn_c_try_compile "$LINENO"; then :
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13510 $as_echo "yes" >&6; }
13513 USE_LINUX_FALSE='#'
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13525 USE_LINUX_FALSE='#'
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 # Check for mingw compiler platform
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5
13537 $as_echo_n "checking For MinGW32... " >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13541 $as_echo "yes" >&6; }
13544 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; } ;;
13547 if test "$mingw_compiler" = "yes"; then
13548 COMPILE_MINGW32_TRUE=
13549 COMPILE_MINGW32_FALSE='#'
13551 COMPILE_MINGW32_TRUE='#'
13552 COMPILE_MINGW32_FALSE=
13556 # Check if Microsoft LIB.EXE is available
13557 if test "$mingw_compiler" = "yes"; then
13558 # Extract the first word of "lib.exe", so it can be a program name with args.
13559 set dummy lib.exe; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_prog_ms_lib_exe+:} false; then :
13563 $as_echo_n "(cached) " >&6
13565 if test -n "$ms_lib_exe"; then
13566 ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test.
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575 ac_cv_prog_ms_lib_exe="yes"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no"
13586 ms_lib_exe=$ac_cv_prog_ms_lib_exe
13587 if test -n "$ms_lib_exe"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_lib_exe" >&5
13589 $as_echo "$ms_lib_exe" >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13597 if test x$ms_lib_exe = xyes; then
13599 MS_LIB_EXE_FALSE='#'
13601 MS_LIB_EXE_TRUE='#'
13606 # Check for libusb-1.0
13614 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13621 $as_echo_n "(cached) " >&6
13623 case $PKG_CONFIG in
13625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13647 if test -n "$PKG_CONFIG"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13649 $as_echo "$PKG_CONFIG" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13657 if test -z "$ac_cv_path_PKG_CONFIG"; then
13658 ac_pt_PKG_CONFIG=$PKG_CONFIG
13659 # Extract the first word of "pkg-config", so it can be a program name with args.
13660 set dummy pkg-config; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13664 $as_echo_n "(cached) " >&6
13666 case $ac_pt_PKG_CONFIG in
13668 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13690 if test -n "$ac_pt_PKG_CONFIG"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13692 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13698 if test "x$ac_pt_PKG_CONFIG" = x; then
13701 case $cross_compiling:$ac_tool_warned in
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13705 ac_tool_warned=yes ;;
13707 PKG_CONFIG=$ac_pt_PKG_CONFIG
13710 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13714 if test -n "$PKG_CONFIG"; then
13715 _pkg_min_version=0.9.0
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13717 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13718 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13720 $as_echo "yes" >&6; }
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13730 $as_echo_n "checking for LIBUSB... " >&6; }
13732 if test -n "$LIBUSB_CFLAGS"; then
13733 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13734 elif test -n "$PKG_CONFIG"; then
13735 if test -n "$PKG_CONFIG" && \
13736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13737 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13740 test $ac_status = 0; }; then
13741 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
13742 test "x$?" != "x0" && pkg_failed=yes
13749 if test -n "$LIBUSB_LIBS"; then
13750 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13751 elif test -n "$PKG_CONFIG"; then
13752 if test -n "$PKG_CONFIG" && \
13753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13754 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; then
13758 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
13759 test "x$?" != "x0" && pkg_failed=yes
13769 if test $pkg_failed = yes; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13774 _pkg_short_errors_supported=yes
13776 _pkg_short_errors_supported=no
13778 if test $_pkg_short_errors_supported = yes; then
13779 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13781 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13783 # Put the nasty error message in config.log where it belongs
13784 echo "$LIBUSB_PKG_ERRORS" >&5
13787 # Check for libopenusb second
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13789 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13790 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13791 $as_echo_n "(cached) " >&6
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-lopenusb $LIBS"
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13804 char openusb_init ();
13808 return openusb_init ();
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_lib_openusb_openusb_init=yes
13816 ac_cv_lib_openusb_openusb_init=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13823 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13824 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13827 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13836 $as_echo_n "checking for LIBUSB... " >&6; }
13838 if test -n "$LIBUSB_CFLAGS"; then
13839 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13840 elif test -n "$PKG_CONFIG"; then
13841 if test -n "$PKG_CONFIG" && \
13842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13843 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; then
13847 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13848 test "x$?" != "x0" && pkg_failed=yes
13855 if test -n "$LIBUSB_LIBS"; then
13856 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13857 elif test -n "$PKG_CONFIG"; then
13858 if test -n "$PKG_CONFIG" && \
13859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13860 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863 test $ac_status = 0; }; then
13864 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13865 test "x$?" != "x0" && pkg_failed=yes
13875 if test $pkg_failed = yes; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13880 _pkg_short_errors_supported=yes
13882 _pkg_short_errors_supported=no
13884 if test $_pkg_short_errors_supported = yes; then
13885 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13887 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13889 # Put the nasty error message in config.log where it belongs
13890 echo "$LIBUSB_PKG_ERRORS" >&5
13893 # Some systems don't use pkg-config for libusb, so double check.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13895 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13896 if ${ac_cv_lib_usb_usb_open+:} false; then :
13897 $as_echo_n "(cached) " >&6
13899 ac_check_lib_save_LIBS=$LIBS
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13904 /* Override any GCC internal prototype to avoid an error.
13905 Use char because int might match the return type of a GCC
13906 builtin and then its argument prototype would still apply. */
13914 return usb_open ();
13919 if ac_fn_c_try_link "$LINENO"; then :
13920 ac_cv_lib_usb_usb_open=yes
13922 ac_cv_lib_usb_usb_open=no
13924 rm -f core conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13929 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13930 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13934 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13936 found_libusb0_pkg=yes
13940 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13945 elif test $pkg_failed = untried; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13949 # Some systems don't use pkg-config for libusb, so double check.
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13951 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13952 if ${ac_cv_lib_usb_usb_open+:} false; then :
13953 $as_echo_n "(cached) " >&6
13955 ac_check_lib_save_LIBS=$LIBS
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13970 return usb_open ();
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_usb_usb_open=yes
13978 ac_cv_lib_usb_usb_open=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13985 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13986 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13990 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13992 found_libusb0_pkg=yes
13996 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
14002 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14003 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005 $as_echo "yes" >&6; }
14007 LIBUSB_VER=`pkg-config --modversion libusb`
14008 LIBUSB_REQUIRES='libusb'
14010 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14012 found_libusb0_pkg=yes
14019 elif test $pkg_failed = untried; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14023 # Check for libopenusb second
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
14025 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
14026 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
14027 $as_echo_n "(cached) " >&6
14029 ac_check_lib_save_LIBS=$LIBS
14030 LIBS="-lopenusb $LIBS"
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14040 char openusb_init ();
14044 return openusb_init ();
14049 if ac_fn_c_try_link "$LINENO"; then :
14050 ac_cv_lib_openusb_openusb_init=yes
14052 ac_cv_lib_openusb_openusb_init=no
14054 rm -f core conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
14059 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
14060 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
14063 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14072 $as_echo_n "checking for LIBUSB... " >&6; }
14074 if test -n "$LIBUSB_CFLAGS"; then
14075 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14076 elif test -n "$PKG_CONFIG"; then
14077 if test -n "$PKG_CONFIG" && \
14078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
14079 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
14081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14082 test $ac_status = 0; }; then
14083 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
14084 test "x$?" != "x0" && pkg_failed=yes
14091 if test -n "$LIBUSB_LIBS"; then
14092 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14093 elif test -n "$PKG_CONFIG"; then
14094 if test -n "$PKG_CONFIG" && \
14095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
14096 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099 test $ac_status = 0; }; then
14100 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
14101 test "x$?" != "x0" && pkg_failed=yes
14111 if test $pkg_failed = yes; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14116 _pkg_short_errors_supported=yes
14118 _pkg_short_errors_supported=no
14120 if test $_pkg_short_errors_supported = yes; then
14121 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
14123 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
14125 # Put the nasty error message in config.log where it belongs
14126 echo "$LIBUSB_PKG_ERRORS" >&5
14129 # Some systems don't use pkg-config for libusb, so double check.
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
14131 $as_echo_n "checking for usb_open in -lusb... " >&6; }
14132 if ${ac_cv_lib_usb_usb_open+:} false; then :
14133 $as_echo_n "(cached) " >&6
14135 ac_check_lib_save_LIBS=$LIBS
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14150 return usb_open ();
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_lib_usb_usb_open=yes
14158 ac_cv_lib_usb_usb_open=no
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
14165 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
14166 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
14170 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14172 found_libusb0_pkg=yes
14176 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
14181 elif test $pkg_failed = untried; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14185 # Some systems don't use pkg-config for libusb, so double check.
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
14187 $as_echo_n "checking for usb_open in -lusb... " >&6; }
14188 if ${ac_cv_lib_usb_usb_open+:} false; then :
14189 $as_echo_n "(cached) " >&6
14191 ac_check_lib_save_LIBS=$LIBS
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14206 return usb_open ();
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 ac_cv_lib_usb_usb_open=yes
14214 ac_cv_lib_usb_usb_open=no
14216 rm -f core conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
14221 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
14222 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
14226 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14228 found_libusb0_pkg=yes
14232 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
14238 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14239 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241 $as_echo "yes" >&6; }
14243 LIBUSB_VER=`pkg-config --modversion libusb`
14244 LIBUSB_REQUIRES='libusb'
14246 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
14248 found_libusb0_pkg=yes
14256 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14257 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14259 $as_echo "yes" >&6; }
14261 LIBUSB_VER=`pkg-config --modversion libusb-1.0`
14262 LIBUSB_REQUIRES='libusb-1.0'
14264 $as_echo "#define HAVE_LIBUSB1 /**/" >>confdefs.h
14266 found_libusb1_pkg=yes
14270 # Optionally disable MTPZ functionality.
14271 # Check whether --enable-mtpz was given.
14272 if test "${enable_mtpz+set}" = set; then :
14273 enableval=$enable_mtpz; use_mtpz=$enableval
14279 # Include MTPZ if not disabled.
14280 if test x"$use_mtpz" = "xyes" ; then
14281 # Check for libgcrypt.
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
14283 $as_echo_n "checking for libgcrypt... " >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
14285 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
14286 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
14287 $as_echo_n "(cached) " >&6
14289 ac_check_lib_save_LIBS=$LIBS
14290 LIBS="-lgcrypt $LIBS"
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14300 char gcry_check_version ();
14304 return gcry_check_version ();
14309 if ac_fn_c_try_link "$LINENO"; then :
14310 ac_cv_lib_gcrypt_gcry_check_version=yes
14312 ac_cv_lib_gcrypt_gcry_check_version=no
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
14319 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
14320 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_LIBGCRYPT 1
14325 LIBS="-lgcrypt $LIBS"
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: *** libgcrypt not found - disabling MTPZ support ***" >&5
14329 $as_echo "$as_me: *** libgcrypt not found - disabling MTPZ support ***" >&6;} ; use_mtpz="no"
14334 if test x"$use_mtpz" = "xyes" ; then
14336 $as_echo "#define USE_MTPZ /**/" >>confdefs.h
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality enabled" >&5
14339 $as_echo "$as_me: MTPZ functionality enabled" >&6;};
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality disable" >&5
14342 $as_echo "$as_me: MTPZ functionality disable" >&6;};
14349 if test x"$use_mtpz" = "xyes"; then
14351 MTPZ_COMPILE_FALSE='#'
14353 MTPZ_COMPILE_TRUE='#'
14354 MTPZ_COMPILE_FALSE=
14357 if test x"$found_libusb1_pkg" = "xyes"; then
14358 LIBUSB1_COMPILE_TRUE=
14359 LIBUSB1_COMPILE_FALSE='#'
14361 LIBUSB1_COMPILE_TRUE='#'
14362 LIBUSB1_COMPILE_FALSE=
14365 if test x"$found_libusb0_pkg" = "xyes"; then
14366 LIBUSB0_COMPILE_TRUE=
14367 LIBUSB0_COMPILE_FALSE='#'
14369 LIBUSB0_COMPILE_TRUE='#'
14370 LIBUSB0_COMPILE_FALSE=
14373 if test x"$ac_cv_lib_openusb_openusb_init" = "xyes"; then
14374 LIBOPENUSB_COMPILE_TRUE=
14375 LIBOPENUSB_COMPILE_FALSE='#'
14377 LIBOPENUSB_COMPILE_TRUE='#'
14378 LIBOPENUSB_COMPILE_FALSE=
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: *** using libusb $LIBUSB_VER ***" >&5
14382 $as_echo "$as_me: *** using libusb $LIBUSB_VER ***" >&6;}
14384 # Checks for header files.
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14386 $as_echo_n "checking for ANSI C header files... " >&6; }
14387 if ${ac_cv_header_stdc+:} false; then :
14388 $as_echo_n "(cached) " >&6
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14392 #include <stdlib.h>
14393 #include <stdarg.h>
14394 #include <string.h>
14405 if ac_fn_c_try_compile "$LINENO"; then :
14406 ac_cv_header_stdc=yes
14408 ac_cv_header_stdc=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 if test $ac_cv_header_stdc = yes; then
14413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 #include <string.h>
14419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14420 $EGREP "memchr" >/dev/null 2>&1; then :
14423 ac_cv_header_stdc=no
14429 if test $ac_cv_header_stdc = yes; then
14430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 #include <stdlib.h>
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437 $EGREP "free" >/dev/null 2>&1; then :
14440 ac_cv_header_stdc=no
14446 if test $ac_cv_header_stdc = yes; then
14447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14448 if test "$cross_compiling" = yes; then :
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14454 #include <stdlib.h>
14455 #if ((' ' & 0x0FF) == 0x020)
14456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14459 # define ISLOWER(c) \
14460 (('a' <= (c) && (c) <= 'i') \
14461 || ('j' <= (c) && (c) <= 'r') \
14462 || ('s' <= (c) && (c) <= 'z'))
14463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14471 for (i = 0; i < 256; i++)
14472 if (XOR (islower (i), ISLOWER (i))
14473 || toupper (i) != TOUPPER (i))
14478 if ac_fn_c_try_run "$LINENO"; then :
14481 ac_cv_header_stdc=no
14483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14484 conftest.$ac_objext conftest.beam conftest.$ac_ext
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14490 $as_echo "$ac_cv_header_stdc" >&6; }
14491 if test $ac_cv_header_stdc = yes; then
14493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14498 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14499 if ${ac_cv_header_time+:} false; then :
14500 $as_echo_n "(cached) " >&6
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 #include <sys/types.h>
14505 #include <sys/time.h>
14511 if ((struct tm *) 0)
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 ac_cv_header_time=yes
14520 ac_cv_header_time=no
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14525 $as_echo "$ac_cv_header_time" >&6; }
14526 if test $ac_cv_header_time = yes; then
14528 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14532 # zlib.h the day we need to decompress firmware
14533 for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \
14534 limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \
14535 langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h
14537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14549 # Checks for typedefs, structures, and compiler characteristics.
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14552 if ${ac_cv_c_const+:} false; then :
14553 $as_echo_n "(cached) " >&6
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14562 #ifndef __cplusplus
14563 /* Ultrix mips cc rejects this sort of thing. */
14564 typedef int charset[2];
14565 const charset cs = { 0, 0 };
14566 /* SunOS 4.1.1 cc rejects this. */
14567 char const *const *pcpcc;
14569 /* NEC SVR4.0.2 mips cc rejects this. */
14570 struct point {int x, y;};
14571 static struct point const zero = {0,0};
14572 /* AIX XL C 1.02.0.0 rejects this.
14573 It does not let you subtract one const X* pointer from another in
14574 an arm of an if-expression whose if-part is not a constant
14576 const char *g = "string";
14577 pcpcc = &g + (g ? g-g : 0);
14578 /* HPUX 7.0 cc rejects these. */
14580 ppc = (char**) pcpcc;
14581 pcpcc = (char const *const *) ppc;
14582 { /* SCO 3.2v4 cc rejects this sort of thing. */
14585 char const *s = 0 ? (char *) 0 : (char const *) 0;
14590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14591 int x[] = {25, 17};
14592 const int *foo = &x[0];
14595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14596 typedef const int *iptr;
14600 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14602 struct s { int j; const int *ap[3]; } bx;
14603 struct s *b = &bx; b->j = 5;
14605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14606 const int foo = 10;
14607 if (!foo) return 0;
14609 return !cs[0] && !zero.x;
14616 if ac_fn_c_try_compile "$LINENO"; then :
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14624 $as_echo "$ac_cv_c_const" >&6; }
14625 if test $ac_cv_c_const = no; then
14627 $as_echo "#define const /**/" >>confdefs.h
14631 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14632 if test "x$ac_cv_type_off_t" = xyes; then :
14636 cat >>confdefs.h <<_ACEOF
14637 #define off_t long int
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14643 $as_echo_n "checking return type of signal handlers... " >&6; }
14644 if ${ac_cv_type_signal+:} false; then :
14645 $as_echo_n "(cached) " >&6
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649 #include <sys/types.h>
14650 #include <signal.h>
14655 return *(signal (0, 0)) (0) == 1;
14660 if ac_fn_c_try_compile "$LINENO"; then :
14661 ac_cv_type_signal=int
14663 ac_cv_type_signal=void
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14668 $as_echo "$ac_cv_type_signal" >&6; }
14670 cat >>confdefs.h <<_ACEOF
14671 #define RETSIGTYPE $ac_cv_type_signal
14675 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14676 if test "x$ac_cv_type_size_t" = xyes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define size_t unsigned int
14686 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14687 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14694 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
14700 # Checks for library functions.
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14702 $as_echo_n "checking for working memcmp... " >&6; }
14703 if ${ac_cv_func_memcmp_working+:} false; then :
14704 $as_echo_n "(cached) " >&6
14706 if test "$cross_compiling" = yes; then :
14707 ac_cv_func_memcmp_working=no
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 $ac_includes_default
14716 /* Some versions of memcmp are not 8-bit clean. */
14717 char c0 = '\100', c1 = '\200', c2 = '\201';
14718 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14721 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14722 or more and with at least one buffer not starting on a 4-byte boundary.
14723 William Lewis provided this test program. */
14728 for (i = 0; i < 4; i++)
14732 strcpy (a, "--------01111111");
14733 strcpy (b, "--------10000000");
14734 if (memcmp (a, b, 16) >= 0)
14744 if ac_fn_c_try_run "$LINENO"; then :
14745 ac_cv_func_memcmp_working=yes
14747 ac_cv_func_memcmp_working=no
14749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750 conftest.$ac_objext conftest.beam conftest.$ac_ext
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14755 $as_echo "$ac_cv_func_memcmp_working" >&6; }
14756 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14757 *" memcmp.$ac_objext "* ) ;;
14758 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14764 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14765 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14766 $as_echo_n "(cached) " >&6
14768 rm -f conftest.sym conftest.file
14769 echo >conftest.file
14770 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14771 if test "$cross_compiling" = yes; then :
14772 ac_cv_func_lstat_dereferences_slashed_symlink=no
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776 $ac_includes_default
14781 /* Linux will dereference the symlink and fail, as required by POSIX.
14782 That is better in the sense that it means we will not
14783 have to compile and use the lstat wrapper. */
14784 return lstat ("conftest.sym/", &sbuf) == 0;
14789 if ac_fn_c_try_run "$LINENO"; then :
14790 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14792 ac_cv_func_lstat_dereferences_slashed_symlink=no
14794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14795 conftest.$ac_objext conftest.beam conftest.$ac_ext
14799 # If the `ln -s' command failed, then we probably don't even
14800 # have an lstat function.
14801 ac_cv_func_lstat_dereferences_slashed_symlink=no
14803 rm -f conftest.sym conftest.file
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14807 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14809 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14811 cat >>confdefs.h <<_ACEOF
14812 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14816 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14817 case " $LIBOBJS " in
14818 *" lstat.$ac_objext "* ) ;;
14819 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14826 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
14827 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
14828 $as_echo_n "(cached) " >&6
14830 if test "$cross_compiling" = yes; then :
14831 ac_cv_func_stat_empty_string_bug=yes
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 $ac_includes_default
14840 return stat ("", &sbuf) == 0;
14845 if ac_fn_c_try_run "$LINENO"; then :
14846 ac_cv_func_stat_empty_string_bug=no
14848 ac_cv_func_stat_empty_string_bug=yes
14850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14851 conftest.$ac_objext conftest.beam conftest.$ac_ext
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14856 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14857 if test $ac_cv_func_stat_empty_string_bug = yes; then
14858 case " $LIBOBJS " in
14859 *" stat.$ac_objext "* ) ;;
14860 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_STAT_EMPTY_STRING_BUG 1
14871 for ac_func in basename memset select strdup strerror strndup strrchr strtoul usleep mkstemp
14873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14876 cat >>confdefs.h <<_ACEOF
14877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14885 # Enable LFS (Large File Support)
14886 # Check whether --enable-largefile was given.
14887 if test "${enable_largefile+set}" = set; then :
14888 enableval=$enable_largefile;
14891 if test "$enable_largefile" != no; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14895 if ${ac_cv_sys_largefile_CC+:} false; then :
14896 $as_echo_n "(cached) " >&6
14898 ac_cv_sys_largefile_CC=no
14899 if test "$GCC" != yes; then
14902 # IRIX 6.2 and later do not support large files by default,
14903 # so use the C compiler's -n32 option if that helps.
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <sys/types.h>
14907 /* Check that off_t can represent 2**63 - 1 correctly.
14908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14909 since some C++ compilers masquerading as C compilers
14910 incorrectly reject 9223372036854775807. */
14911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14913 && LARGE_OFF_T % 2147483647 == 1)
14923 if ac_fn_c_try_compile "$LINENO"; then :
14926 rm -f core conftest.err conftest.$ac_objext
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929 ac_cv_sys_largefile_CC=' -n32'; break
14931 rm -f core conftest.err conftest.$ac_objext
14935 rm -f conftest.$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14940 if test "$ac_cv_sys_largefile_CC" != no; then
14941 CC=$CC$ac_cv_sys_largefile_CC
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14946 if ${ac_cv_sys_file_offset_bits+:} false; then :
14947 $as_echo_n "(cached) " >&6
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <sys/types.h>
14953 /* Check that off_t can represent 2**63 - 1 correctly.
14954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14955 since some C++ compilers masquerading as C compilers
14956 incorrectly reject 9223372036854775807. */
14957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14959 && LARGE_OFF_T % 2147483647 == 1)
14969 if ac_fn_c_try_compile "$LINENO"; then :
14970 ac_cv_sys_file_offset_bits=no; break
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975 #define _FILE_OFFSET_BITS 64
14976 #include <sys/types.h>
14977 /* Check that off_t can represent 2**63 - 1 correctly.
14978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14979 since some C++ compilers masquerading as C compilers
14980 incorrectly reject 9223372036854775807. */
14981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14983 && LARGE_OFF_T % 2147483647 == 1)
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994 ac_cv_sys_file_offset_bits=64; break
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 ac_cv_sys_file_offset_bits=unknown
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15003 case $ac_cv_sys_file_offset_bits in #(
15006 cat >>confdefs.h <<_ACEOF
15007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15012 if test $ac_cv_sys_file_offset_bits = unknown; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15015 if ${ac_cv_sys_large_files+:} false; then :
15016 $as_echo_n "(cached) " >&6
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 #include <sys/types.h>
15022 /* Check that off_t can represent 2**63 - 1 correctly.
15023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15024 since some C++ compilers masquerading as C compilers
15025 incorrectly reject 9223372036854775807. */
15026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15028 && LARGE_OFF_T % 2147483647 == 1)
15038 if ac_fn_c_try_compile "$LINENO"; then :
15039 ac_cv_sys_large_files=no; break
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 #define _LARGE_FILES 1
15045 #include <sys/types.h>
15046 /* Check that off_t can represent 2**63 - 1 correctly.
15047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15048 since some C++ compilers masquerading as C compilers
15049 incorrectly reject 9223372036854775807. */
15050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15052 && LARGE_OFF_T % 2147483647 == 1)
15062 if ac_fn_c_try_compile "$LINENO"; then :
15063 ac_cv_sys_large_files=1; break
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066 ac_cv_sys_large_files=unknown
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15071 $as_echo "$ac_cv_sys_large_files" >&6; }
15072 case $ac_cv_sys_large_files in #(
15075 cat >>confdefs.h <<_ACEOF
15076 #define _LARGE_FILES $ac_cv_sys_large_files
15086 # Stick in "-Werror" if you want to be more aggressive.
15087 # (No need to use AC_SUBST on this default substituted environment variable.)
15088 # Only add these additional CFLAGS if we are using GCC. Other C compilers may
15089 # not support them.
15090 if test x"$GCC" == "xyes" ; then
15091 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
15096 # Create a stdint.h-like file containing size-specific integer definitions
15097 # that will always be available. The <stdint.h> file is required by the
15098 # library, but we provide this anyway because the libptp2 stuff wants this
15101 ac_dir=`$as_dirname -- "src/_stdint.h" ||
15102 $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15103 X"src/_stdint.h" : 'X\(//\)[^/]' \| \
15104 X"src/_stdint.h" : 'X\(//\)$' \| \
15105 X"src/_stdint.h" : 'X\(/\)' \| . 2>/dev/null ||
15106 $as_echo X"src/_stdint.h" |
15107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15111 /^X\(\/\/\)[^/].*/{
15124 if test "$ac_dir" != "src/_stdint.h" && test "$ac_dir" != .; then
15125 # The file is in a subdirectory.
15126 test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
15130 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 #include <stdint.h>
15135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15136 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15137 ac_cv_type_uint8_t=yes
15139 ac_cv_type_uint8_t=no
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15143 $as_echo "$ac_cv_type_uint8_t" >&6; }
15144 if test $ac_cv_type_uint8_t = yes; then
15146 cat > "src/_stdint.h" <<EOF
15147 /* This file is generated automatically by configure */
15148 #include <stdint.h>
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
15152 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15155 #include <inttypes.h>
15157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15158 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15159 ac_cv_type_uint8_t=yes
15161 ac_cv_type_uint8_t=no
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15165 $as_echo "$ac_cv_type_uint8_t" >&6; }
15166 if test $ac_cv_type_uint8_t = yes; then
15167 cat > "src/_stdint.h" <<EOF
15168 /* This file is generated automatically by configure */
15169 #include <inttypes.h>
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
15173 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 #include <sys/types.h>
15178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15179 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15180 ac_cv_type_uint8_t=yes
15182 ac_cv_type_uint8_t=no
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
15186 $as_echo "$ac_cv_type_uint8_t" >&6; }
15187 if test $ac_cv_type_uint8_t = yes; then
15188 cat > "src/_stdint.h" <<EOF
15189 /* This file is generated automatically by configure */
15190 #include <sys/types.h>
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
15194 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #include <sys/types.h>
15199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15200 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15201 ac_cv_type_u_int8_t=yes
15203 ac_cv_type_u_int8_t=no
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
15207 $as_echo "$ac_cv_type_u_int8_t" >&6; }
15208 if test $ac_cv_type_u_int8_t = yes; then
15209 cat > "src/_stdint.h" <<EOF
15210 /* This file is generated automatically by configure */
15213 #include <sys/types.h>
15214 typedef u_int8_t uint8_t;
15215 typedef u_int16_t uint16_t;
15216 typedef u_int32_t uint32_t;
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
15220 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #include <sys/types.h>
15225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15226 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
15227 ac_cv_type_u_int64_t=yes
15229 ac_cv_type_u_int64_t=no
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
15233 $as_echo "$ac_cv_type_u_int64_t" >&6; }
15234 if test $ac_cv_type_u_int64_t = yes; then
15235 cat >> "src/_stdint.h" <<EOF
15236 typedef u_int64_t uint64_t;
15237 #endif /*!__STDINT_H*/
15240 cat >> "src/_stdint.h" <<EOF
15241 /* 64-bit types are not available on this system */
15242 /* typedef u_int64_t uint64_t; */
15243 #endif /*!__STDINT_H*/
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
15251 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
15252 if test -e "src/_stdint.h" ; then
15253 rm -f "src/_stdint.h"
15265 # Create a header file containing NetBSD-style byte swapping macros.
15266 # This m4 macros has caused severe pain, I am considering creating a
15267 # hard-coded byte swapper that will be eternally portable.
15269 ac_dir=`$as_dirname -- "src/gphoto2-endian.h" ||
15270 $as_expr X"src/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15271 X"src/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
15272 X"src/gphoto2-endian.h" : 'X\(//\)$' \| \
15273 X"src/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
15274 $as_echo X"src/gphoto2-endian.h" |
15275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15279 /^X\(\/\/\)[^/].*/{
15292 if test "$ac_dir" != "src/gphoto2-endian.h" && test "$ac_dir" != .; then
15293 # The file is in a subdirectory.
15294 test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
15297 # We're only interested in the target CPU, but it's not always set
15298 effective_target="$target"
15299 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
15300 effective_target="$host"
15304 cat > "src/gphoto2-endian.h" << EOF
15305 /* This file is generated automatically by configure */
15306 /* It is valid only for the system type ${effective_target} */
15308 #ifndef __BYTEORDER_H
15309 #define __BYTEORDER_H
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15314 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15315 if ${ac_cv_c_bigendian+:} false; then :
15316 $as_echo_n "(cached) " >&6
15318 ac_cv_c_bigendian=unknown
15319 # See if we're dealing with a universal compiler.
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #ifndef __APPLE_CC__
15323 not a universal capable compiler
15328 if ac_fn_c_try_compile "$LINENO"; then :
15330 # Check for potential -arch flags. It is not universal unless
15331 # there are at least two -arch flags with different values.
15334 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15335 if test -n "$ac_prev"; then
15337 i?86 | x86_64 | ppc | ppc64)
15338 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15341 ac_cv_c_bigendian=universal
15347 elif test "x$ac_word" = "x-arch"; then
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 if test $ac_cv_c_bigendian = unknown; then
15354 # See if sys/param.h defines the BYTE_ORDER macro.
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #include <sys/types.h>
15358 #include <sys/param.h>
15363 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15364 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15366 bogus endian macros
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374 # It does; now see whether it defined to BIG_ENDIAN or not.
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 #include <sys/types.h>
15378 #include <sys/param.h>
15383 #if BYTE_ORDER != BIG_ENDIAN
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392 ac_cv_c_bigendian=yes
15394 ac_cv_c_bigendian=no
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 if test $ac_cv_c_bigendian = unknown; then
15401 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 #include <limits.h>
15409 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15410 bogus endian macros
15417 if ac_fn_c_try_compile "$LINENO"; then :
15418 # It does; now see whether it defined to _BIG_ENDIAN or not.
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #include <limits.h>
15426 #ifndef _BIG_ENDIAN
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 ac_cv_c_bigendian=yes
15437 ac_cv_c_bigendian=no
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 if test $ac_cv_c_bigendian = unknown; then
15444 # Compile a test program.
15445 if test "$cross_compiling" = yes; then :
15446 # Try to guess by grepping values from an object file.
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 short int ascii_mm[] =
15450 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15451 short int ascii_ii[] =
15452 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15453 int use_ascii (int i) {
15454 return ascii_mm[i] + ascii_ii[i];
15456 short int ebcdic_ii[] =
15457 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15458 short int ebcdic_mm[] =
15459 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15460 int use_ebcdic (int i) {
15461 return ebcdic_mm[i] + ebcdic_ii[i];
15468 return use_ascii (foo) == use_ebcdic (foo);
15473 if ac_fn_c_try_compile "$LINENO"; then :
15474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15475 ac_cv_c_bigendian=yes
15477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15478 if test "$ac_cv_c_bigendian" = unknown; then
15479 ac_cv_c_bigendian=no
15481 # finding both strings is unlikely to happen, but who knows?
15482 ac_cv_c_bigendian=unknown
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 $ac_includes_default
15495 /* Are we little or big endian? From Harbison&Steele. */
15499 char c[sizeof (long int)];
15502 return u.c[sizeof (long int) - 1] == 1;
15508 if ac_fn_c_try_run "$LINENO"; then :
15509 ac_cv_c_bigendian=no
15511 ac_cv_c_bigendian=yes
15513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15514 conftest.$ac_objext conftest.beam conftest.$ac_ext
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15520 $as_echo "$ac_cv_c_bigendian" >&6; }
15521 case $ac_cv_c_bigendian in #(
15523 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15529 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15533 as_fn_error $? "unknown endianness
15534 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
15540 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 #include <machine/endian.h>
15550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15551 $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15555 cat >> "src/gphoto2-endian.h" << EOF
15556 /* extended byte swapping macros are already available */
15557 #include <machine/endian.h>
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563 $as_echo "no" >&6; }
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
15568 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15572 #include <arpa/inet.h>
15578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15579 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15581 $as_echo "yes" >&6; }
15582 cat >> "src/gphoto2-endian.h" << EOF
15583 /* ntohl and relatives live here */
15584 #include <arpa/inet.h>
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
15593 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15597 #include <netinet/in.h>
15603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15604 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15606 $as_echo "yes" >&6; }
15607 cat >> "src/gphoto2-endian.h" << EOF
15608 /* ntohl and relatives live here */
15609 #include <netinet/in.h>
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
15634 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15638 #include <machine/endian.h>
15644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15645 $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15648 cat >> "src/gphoto2-endian.h" << EOF
15649 /* swap32 and swap16 are defined in machine/endian.h */
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655 $as_echo "no" >&6; }
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
15659 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15663 #include <byteswap.h>
15669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15670 $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15672 $as_echo "yes" >&6; }
15673 cat >> "src/gphoto2-endian.h" << EOF
15674 /* Define generic byte swapping functions */
15675 #include <byteswap.h>
15676 #define swap16(x) bswap_16(x)
15677 #define swap32(x) bswap_32(x)
15678 #define swap64(x) bswap_64(x)
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684 $as_echo "no" >&6; }
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
15688 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 #include <machine/endian.h>
15698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15699 $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15702 cat >> "src/gphoto2-endian.h" << EOF
15703 /* Define generic byte swapping functions */
15705 if test "$HAVE_LE32TOH" != "1"; then
15706 echo '#include <machine/endian.h>'>> "src/gphoto2-endian.h"
15708 cat >> "src/gphoto2-endian.h" << EOF
15709 #define swap16(x) bswap16(x)
15710 #define swap32(x) bswap32(x)
15711 #define swap64(x) bswap64(x)
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
15721 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15725 #include <sys/types.h>
15726 #ifdef __byte_swap_long
15731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15732 $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15734 $as_echo "yes" >&6; }
15735 cat >> "src/gphoto2-endian.h" << EOF
15736 /* Define generic byte swapping functions */
15737 #include <sys/types.h>
15738 #define swap16(x) __byte_swap_word(x)
15739 #define swap32(x) __byte_swap_long(x)
15740 /* No optimized 64 bit byte swapping macro is available */
15741 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15742 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15743 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15744 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15745 ((x) >> 8) & 0x00000000ff000000ULL | \\
15746 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15747 ((x) >> 40) & 0x000000000000ff00ULL | \\
15748 ((x) >> 56) & 0x00000000000000ffULL))
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754 $as_echo "no" >&6; }
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
15758 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 #include <machine/byte_order.h>
15768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15769 $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15772 cat >> "src/gphoto2-endian.h" << EOF
15773 /* Define generic byte swapping functions */
15774 #include <machine/byte_order.h>
15775 #define swap16(x) NXSwapShort(x)
15776 #define swap32(x) NXSwapLong(x)
15777 #define swap64(x) NXSwapLongLong(x)
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 $as_echo "no" >&6; }
15785 if test $ac_cv_c_bigendian = yes; then
15786 cat >> "src/gphoto2-endian.h" << EOF
15787 /* No other byte swapping functions are available on this big-endian system */
15788 #define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
15789 #define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
15790 ((uint32_t)(x) << 8) & 0x00ff0000UL | \\
15791 ((x) >> 8) & 0x0000ff00UL | \\
15792 ((x) >> 24) & 0x000000ffUL))
15793 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15794 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15795 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15796 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15797 ((x) >> 8) & 0x00000000ff000000ULL | \\
15798 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15799 ((x) >> 40) & 0x000000000000ff00ULL | \\
15800 ((x) >> 56) & 0x00000000000000ffULL))
15804 cat >> "src/gphoto2-endian.h" << EOF
15805 /* Use these as generic byteswapping macros on this little endian system */
15806 #define swap16(x) ntohs(x)
15807 #define swap32(x) ntohl(x)
15808 /* No optimized 64 bit byte swapping macro is available */
15809 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15810 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15811 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15812 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15813 ((x) >> 8) & 0x00000000ff000000ULL | \\
15814 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15815 ((x) >> 40) & 0x000000000000ff00ULL | \\
15816 ((x) >> 56) & 0x00000000000000ffULL))
15848 if test "$HAVE_LE32TOH" != "1"; then
15849 cat >> "src/gphoto2-endian.h" << EOF
15850 /* The byte swapping macros have the form: */
15851 /* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
15852 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
15853 /* if present, indicates that the endian side is a pointer to an */
15854 /* array of uint8_t bytes instead of an integer of the specified length. */
15855 /* h refers to the host's ordering method. */
15857 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
15858 /* format into a uint32_t usable on this machine, you could use: */
15859 /* uint32_t value = le32atoh(&buf[3]); */
15860 /* To put that value back into the buffer, you could use: */
15861 /* htole32a(&buf[3], value); */
15863 /* Define aliases for the standard byte swapping macros */
15864 /* Arguments to these macros must be properly aligned on natural word */
15865 /* boundaries in order to work properly on all architectures */
15867 # define htobe16(x) htons(x)
15870 # define htobe32(x) htonl(x)
15873 # define be16toh(x) ntohs(x)
15876 # define be32toh(x) ntohl(x)
15879 #define HTOBE16(x) (x) = htobe16(x)
15880 #define HTOBE32(x) (x) = htobe32(x)
15881 #define BE32TOH(x) (x) = be32toh(x)
15882 #define BE16TOH(x) (x) = be16toh(x)
15886 if test $ac_cv_c_bigendian = yes; then
15887 cat >> "src/gphoto2-endian.h" << EOF
15888 /* Define our own extended byte swapping macros for big-endian machines */
15890 # define htole16(x) swap16(x)
15893 # define htole32(x) swap32(x)
15896 # define le16toh(x) swap16(x)
15899 # define le32toh(x) swap32(x)
15902 # define le64toh(x) swap64(x)
15906 # define htobe64(x) (x)
15909 # define be64toh(x) (x)
15912 #define HTOLE16(x) (x) = htole16(x)
15913 #define HTOLE32(x) (x) = htole32(x)
15914 #define LE16TOH(x) (x) = le16toh(x)
15915 #define LE32TOH(x) (x) = le32toh(x)
15916 #define LE64TOH(x) (x) = le64toh(x)
15918 #define HTOBE64(x) (void) (x)
15919 #define BE64TOH(x) (void) (x)
15923 cat >> "src/gphoto2-endian.h" << EOF
15924 /* On little endian machines, these macros are null */
15926 # define htole16(x) (x)
15929 # define htole32(x) (x)
15932 # define htole64(x) (x)
15935 # define le16toh(x) (x)
15938 # define le32toh(x) (x)
15941 # define le64toh(x) (x)
15944 #define HTOLE16(x) (void) (x)
15945 #define HTOLE32(x) (void) (x)
15946 #define HTOLE64(x) (void) (x)
15947 #define LE16TOH(x) (void) (x)
15948 #define LE32TOH(x) (void) (x)
15949 #define LE64TOH(x) (void) (x)
15951 /* These don't have standard aliases */
15953 # define htobe64(x) swap64(x)
15956 # define be64toh(x) swap64(x)
15959 #define HTOBE64(x) (x) = htobe64(x)
15960 #define BE64TOH(x) (x) = be64toh(x)
15966 cat >> "src/gphoto2-endian.h" << EOF
15967 /* Define the C99 standard length-specific integer types */
15968 #include <_stdint.h>
15972 case "${effective_target}" in
15974 cat >> "src/gphoto2-endian.h" << EOF
15975 /* Here are some macros to create integers from a byte array */
15976 /* These are used to get and put integers from/into a uint8_t array */
15977 /* with a specific endianness. This is the most portable way to generate */
15978 /* and read messages to a network or serial device. Each member of a */
15979 /* packet structure must be handled separately. */
15981 /* The i386 and compatibles can handle unaligned memory access, */
15982 /* so use the optimized macros above to do this job */
15984 # define be16atoh(x) be16toh(*(uint16_t*)(x))
15987 # define be32atoh(x) be32toh(*(uint32_t*)(x))
15990 # define be64atoh(x) be64toh(*(uint64_t*)(x))
15993 # define le16atoh(x) le16toh(*(uint16_t*)(x))
15996 # define le32atoh(x) le32toh(*(uint32_t*)(x))
15999 # define le64atoh(x) le64toh(*(uint64_t*)(x))
16003 # define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x)
16006 # define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x)
16009 # define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x)
16012 # define htole16a(a,x) *(uint16_t*)(a) = htole16(x)
16015 # define htole32a(a,x) *(uint32_t*)(a) = htole32(x)
16018 # define htole64a(a,x) *(uint64_t*)(a) = htole64(x)
16025 cat >> "src/gphoto2-endian.h" << EOF
16026 /* Here are some macros to create integers from a byte array */
16027 /* These are used to get and put integers from/into a uint8_t array */
16028 /* with a specific endianness. This is the most portable way to generate */
16029 /* and read messages to a network or serial device. Each member of a */
16030 /* packet structure must be handled separately. */
16032 /* Non-optimized but portable macros */
16033 #define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1]))
16034 #define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
16035 #define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<<shift)
16036 #define be64atoh(x) ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
16037 be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
16038 #define le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0]))
16039 #define le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
16040 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
16041 #define le64atoh(x) ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
16042 le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
16044 #define htobe16a(a,x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
16045 #define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
16046 (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
16047 #define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
16048 (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
16049 (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
16050 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
16051 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16052 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
16053 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16054 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
16055 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
16056 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
16057 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
16064 cat >> "src/gphoto2-endian.h" << EOF
16065 #endif /*__BYTEORDER_H*/
16068 ac_config_files="$ac_config_files src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc"
16070 cat >confcache <<\_ACEOF
16071 # This file is a shell script that caches the results of configure
16072 # tests run on this system so they can be shared between configure
16073 # scripts and configure runs, see configure's option --config-cache.
16074 # It is not useful on other systems. If it contains results you don't
16075 # want to keep, you may remove or edit it.
16077 # config.status only pays attention to the cache file if you give it
16078 # the --recheck option to rerun configure.
16080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16082 # following values.
16086 # The following way of writing the cache mishandles newlines in values,
16087 # but we know of no workaround that is simple, portable, and efficient.
16088 # So, we kill variables containing newlines.
16089 # Ultrix sh set writes to stderr and can't be redirected directly,
16090 # and sets the high bit in the cache file unless we assign to the vars.
16092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16093 eval ac_val=\$$ac_var
16097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16101 _ | IFS | as_nl) ;; #(
16102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16103 *) { eval $ac_var=; unset $ac_var;} ;;
16109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16110 *${as_nl}ac_space=\ *)
16111 # `set' does not quote correctly, so add quotes: double-quote
16112 # substitution turns \\\\ into \\, and sed turns \\ into \.
16115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16118 # `set' quotes correctly as required by POSIX, so do not add quotes.
16119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16133 if test -w "$cache_file"; then
16134 if test "x$cache_file" != "x/dev/null"; then
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16136 $as_echo "$as_me: updating cache $cache_file" >&6;}
16137 if test ! -f "$cache_file" || test -h "$cache_file"; then
16138 cat confcache >"$cache_file"
16140 case $cache_file in #(
16142 mv -f confcache "$cache_file"$$ &&
16143 mv -f "$cache_file"$$ "$cache_file" ;; #(
16145 mv -f confcache "$cache_file" ;;
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16157 # Let make expand exec_prefix.
16158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16160 DEFS=-DHAVE_CONFIG_H
16164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16165 # 1. Remove the extension, and $U if already installed.
16166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16169 # will be set to the directory where LIBOBJS objects are built.
16170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16173 LIBOBJS=$ac_libobjs
16175 LTLIBOBJS=$ac_ltlibobjs
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16179 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16180 if test -n "$am_sleep_pid"; then
16181 # Hide warnings about reused PIDs.
16182 wait $am_sleep_pid 2>/dev/null
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16185 $as_echo "done" >&6; }
16186 if test -n "$EXEEXT"; then
16188 am__EXEEXT_FALSE='#'
16190 am__EXEEXT_TRUE='#'
16194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16195 as_fn_error $? "conditional \"AMDEP\" was never defined.
16196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16199 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16202 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
16203 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
16204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16206 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
16207 as_fn_error $? "conditional \"USE_LINUX\" was never defined.
16208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16210 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
16211 as_fn_error $? "conditional \"USE_LINUX\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16214 if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then
16215 as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16218 if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
16219 as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16222 if test -z "${MTPZ_COMPILE_TRUE}" && test -z "${MTPZ_COMPILE_FALSE}"; then
16223 as_fn_error $? "conditional \"MTPZ_COMPILE\" was never defined.
16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16226 if test -z "${LIBUSB1_COMPILE_TRUE}" && test -z "${LIBUSB1_COMPILE_FALSE}"; then
16227 as_fn_error $? "conditional \"LIBUSB1_COMPILE\" was never defined.
16228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16230 if test -z "${LIBUSB0_COMPILE_TRUE}" && test -z "${LIBUSB0_COMPILE_FALSE}"; then
16231 as_fn_error $? "conditional \"LIBUSB0_COMPILE\" was never defined.
16232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16234 if test -z "${LIBOPENUSB_COMPILE_TRUE}" && test -z "${LIBOPENUSB_COMPILE_FALSE}"; then
16235 as_fn_error $? "conditional \"LIBOPENUSB_COMPILE\" was never defined.
16236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16240 : "${CONFIG_STATUS=./config.status}"
16242 ac_clean_files_save=$ac_clean_files
16243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16249 # Generated by $as_me.
16250 # Run this file to recreate the current configuration.
16251 # Compiler output produced by configure, useful for debugging
16252 # configure, is in config.log if it exists.
16255 ac_cs_recheck=false
16258 SHELL=\${CONFIG_SHELL-$SHELL}
16261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16262 ## -------------------- ##
16263 ## M4sh Initialization. ##
16264 ## -------------------- ##
16266 # Be more Bourne compatible
16267 DUALCASE=1; export DUALCASE # for MKS sh
16268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16272 # is contrary to our usage. Disable this feature.
16273 alias -g '${1+"$@"}'='"$@"'
16274 setopt NO_GLOB_SUBST
16276 case `(set -o) 2>/dev/null` in #(
16288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16292 # Prefer a ksh shell builtin over an external printf program on Solaris,
16293 # but without wasting forks for bash or zsh.
16294 if test -z "$BASH_VERSION$ZSH_VERSION" \
16295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16296 as_echo='print -r --'
16297 as_echo_n='print -rn --'
16298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16299 as_echo='printf %s\n'
16300 as_echo_n='printf %s'
16302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16304 as_echo_n='/usr/ucb/echo -n'
16306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16307 as_echo_n_body='eval
16311 expr "X$arg" : "X\\(.*\\)$as_nl";
16312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16316 export as_echo_n_body
16317 as_echo_n='sh -c $as_echo_n_body as_echo'
16319 export as_echo_body
16320 as_echo='sh -c $as_echo_body as_echo'
16323 # The user is always right.
16324 if test "${PATH_SEPARATOR+set}" != set; then
16326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16334 # We need space, tab and new line, in precisely that order. Quoting is
16335 # there to prevent editors from complaining about space-tab.
16336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16337 # splitting by setting IFS to empty value.)
16340 # Find who we are. Look in the path if we contain no directory separator.
16343 *[\\/]* ) as_myself=$0 ;;
16344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16345 for as_dir in $PATH
16348 test -z "$as_dir" && as_dir=.
16349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16355 # We did not find ourselves, most probably we were run as `sh COMMAND'
16356 # in which case we are not to be found in the path.
16357 if test "x$as_myself" = x; then
16360 if test ! -f "$as_myself"; then
16361 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16365 # Unset variables that we do not need and which cause bugs (e.g. in
16366 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16367 # suppresses any "Segmentation fault" message there. '((' could
16368 # trigger a bug in pdksh 5.2.14.
16369 for as_var in BASH_ENV ENV MAIL MAILPATH
16370 do eval test x\${$as_var+set} = xset \
16371 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16387 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16388 # ----------------------------------------
16389 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16390 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16391 # script with STATUS, using 1 if that was 0.
16394 as_status=$1; test $as_status -eq 0 && as_status=1
16396 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16397 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16399 $as_echo "$as_me: error: $2" >&2
16400 as_fn_exit $as_status
16404 # as_fn_set_status STATUS
16405 # -----------------------
16406 # Set $? to STATUS, without forking.
16407 as_fn_set_status ()
16410 } # as_fn_set_status
16412 # as_fn_exit STATUS
16413 # -----------------
16414 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16418 as_fn_set_status $1
16424 # Portably unset VAR.
16427 { eval $1=; unset $1;}
16429 as_unset=as_fn_unset
16430 # as_fn_append VAR VALUE
16431 # ----------------------
16432 # Append the text in VALUE to the end of the definition contained in VAR. Take
16433 # advantage of any shell optimizations that allow amortized linear growth over
16434 # repeated appends, instead of the typical quadratic growth present in naive
16436 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16437 eval 'as_fn_append ()
16448 # as_fn_arith ARG...
16449 # ------------------
16450 # Perform arithmetic evaluation on the ARGs, and store the result in the
16451 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16452 # must be portable across $(()) and expr.
16453 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16454 eval 'as_fn_arith ()
16461 as_val=`expr "$@" || test $? -eq 1`
16466 if expr a : '\(a\)' >/dev/null 2>&1 &&
16467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16474 as_basename=basename
16479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16485 as_me=`$as_basename -- "$0" ||
16486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16487 X"$0" : 'X\(//\)$' \| \
16488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16490 sed '/^.*\/\([^/][^/]*\)\/*$/{
16504 # Avoid depending upon Character Ranges.
16505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16508 as_cr_digits='0123456789'
16509 as_cr_alnum=$as_cr_Letters$as_cr_digits
16511 ECHO_C= ECHO_N= ECHO_T=
16512 case `echo -n x` in #(((((
16514 case `echo 'xy\c'` in
16515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16524 rm -f conf$$ conf$$.exe conf$$.file
16525 if test -d conf$$.dir; then
16526 rm -f conf$$.dir/conf$$.file
16529 mkdir conf$$.dir 2>/dev/null
16531 if (echo >conf$$.file) 2>/dev/null; then
16532 if ln -s conf$$.file conf$$ 2>/dev/null; then
16534 # ... but there are two gotchas:
16535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16537 # In both cases, we have to default to `cp -pR'.
16538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16540 elif ln conf$$.file conf$$ 2>/dev/null; then
16548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16549 rmdir conf$$.dir 2>/dev/null
16554 # Create "$as_dir" as a directory, including parents if necessary.
16559 -*) as_dir=./$as_dir;;
16561 test -d "$as_dir" || eval $as_mkdir_p || {
16565 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16566 *) as_qdir=$as_dir;;
16568 as_dirs="'$as_qdir' $as_dirs"
16569 as_dir=`$as_dirname -- "$as_dir" ||
16570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16571 X"$as_dir" : 'X\(//\)[^/]' \| \
16572 X"$as_dir" : 'X\(//\)$' \| \
16573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16574 $as_echo X"$as_dir" |
16575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16579 /^X\(\/\/\)[^/].*/{
16592 test -d "$as_dir" && break
16594 test -z "$as_dirs" || eval "mkdir $as_dirs"
16595 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16599 if mkdir -p . 2>/dev/null; then
16600 as_mkdir_p='mkdir -p "$as_dir"'
16602 test -d ./-p && rmdir ./-p
16607 # as_fn_executable_p FILE
16608 # -----------------------
16609 # Test if FILE is an executable regular file.
16610 as_fn_executable_p ()
16612 test -f "$1" && test -x "$1"
16613 } # as_fn_executable_p
16614 as_test_x='test -x'
16615 as_executable_p=as_fn_executable_p
16617 # Sed expression to map a string onto a valid CPP name.
16618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16620 # Sed expression to map a string onto a valid variable name.
16621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16625 ## ----------------------------------- ##
16626 ## Main body of $CONFIG_STATUS script. ##
16627 ## ----------------------------------- ##
16629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632 # Save the log message, to keep $0 and so on meaningful, and to
16633 # report actual input values of CONFIG_FILES etc. instead of their
16634 # values after options handling.
16636 This file was extended by libmtp $as_me 1.1.11, which was
16637 generated by GNU Autoconf 2.69. Invocation command line was
16639 CONFIG_FILES = $CONFIG_FILES
16640 CONFIG_HEADERS = $CONFIG_HEADERS
16641 CONFIG_LINKS = $CONFIG_LINKS
16642 CONFIG_COMMANDS = $CONFIG_COMMANDS
16645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16650 case $ac_config_files in *"
16651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16654 case $ac_config_headers in *"
16655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660 # Files that config.status was made for.
16661 config_files="$ac_config_files"
16662 config_headers="$ac_config_headers"
16663 config_commands="$ac_config_commands"
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16669 \`$as_me' instantiates files and other configuration actions
16670 from templates according to the current configuration. Unless the files
16671 and actions are specified as TAGs, all are instantiated by default.
16673 Usage: $0 [OPTION]... [TAG]...
16675 -h, --help print this help, then exit
16676 -V, --version print version number and configuration settings, then exit
16677 --config print configuration, then exit
16678 -q, --quiet, --silent
16679 do not print progress messages
16680 -d, --debug don't remove temporary files
16681 --recheck update $as_me by reconfiguring in the same conditions
16682 --file=FILE[:TEMPLATE]
16683 instantiate the configuration file FILE
16684 --header=FILE[:TEMPLATE]
16685 instantiate the configuration header FILE
16687 Configuration files:
16690 Configuration headers:
16693 Configuration commands:
16696 Report bugs to <libmtp-discuss@lists.sourceforge.net>."
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16702 libmtp config.status 1.1.11
16703 configured by $0, generated by GNU Autoconf 2.69,
16704 with options \\"\$ac_cs_config\\"
16706 Copyright (C) 2012 Free Software Foundation, Inc.
16707 This config.status script is free software; the Free Software Foundation
16708 gives unlimited permission to copy, distribute and modify it."
16715 test -n "\$AWK" || AWK=awk
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 # The default lists apply if the user does not specify any file.
16725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16742 # Handling of the options.
16743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16746 $as_echo "$ac_cs_version"; exit ;;
16747 --config | --confi | --conf | --con | --co | --c )
16748 $as_echo "$ac_cs_config"; exit ;;
16749 --debug | --debu | --deb | --de | --d | -d )
16751 --file | --fil | --fi | --f )
16754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16755 '') as_fn_error $? "missing file argument" ;;
16757 as_fn_append CONFIG_FILES " '$ac_optarg'"
16758 ac_need_defaults=false;;
16759 --header | --heade | --head | --hea )
16762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16765 ac_need_defaults=false;;
16767 # Conflict between --help and --header
16768 as_fn_error $? "ambiguous option: \`$1'
16769 Try \`$0 --help' for more information.";;
16770 --help | --hel | -h )
16771 $as_echo "$ac_cs_usage"; exit ;;
16772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16776 # This is an error.
16777 -*) as_fn_error $? "unrecognized option: \`$1'
16778 Try \`$0 --help' for more information." ;;
16780 *) as_fn_append ac_config_targets " $1"
16781 ac_need_defaults=false ;;
16787 ac_configure_extra_args=
16789 if $ac_cs_silent; then
16791 ac_configure_extra_args="$ac_configure_extra_args --silent"
16795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16796 if \$ac_cs_recheck; then
16797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16800 CONFIG_SHELL='$SHELL'
16801 export CONFIG_SHELL
16806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16811 ## Running $as_me. ##
16817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16824 # The HP-UX ksh and POSIX shell print the target directory to stdout
16825 # if CDPATH is set.
16826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16828 sed_quote_subst='$sed_quote_subst'
16829 double_quote_subst='$double_quote_subst'
16830 delay_variable_subst='$delay_variable_subst'
16831 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16832 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16833 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16834 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16835 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16836 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16837 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16838 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16839 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16840 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16841 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16842 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16843 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16844 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16845 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16846 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16847 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16848 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16849 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16850 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16851 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16852 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16853 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16854 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16855 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16856 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16857 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16858 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16859 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16860 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16861 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16862 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16863 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16864 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16865 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16866 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16867 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16868 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16869 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16870 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16871 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16872 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16873 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16874 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16875 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16876 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16877 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16878 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16879 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16880 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16881 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16882 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16883 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16884 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16885 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16886 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16887 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16888 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16889 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16890 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"`'
16891 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16892 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16893 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16894 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16895 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16896 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16897 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16898 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16899 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16900 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16901 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16902 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16903 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16904 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16905 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16906 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16907 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16908 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16909 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16910 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16911 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16912 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16913 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16914 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16915 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16916 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16917 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16918 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16919 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16920 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16921 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16922 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16923 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16924 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16925 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16926 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16927 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16928 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16929 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16930 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16931 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16932 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16933 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16934 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16935 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16936 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16937 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16938 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16939 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16940 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16941 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16942 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16943 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16944 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16945 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16946 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16947 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16948 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16949 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16950 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16951 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16952 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16953 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16954 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16955 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16956 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16957 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16958 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16959 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16960 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16961 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16962 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16963 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16964 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16965 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16966 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16969 LTCFLAGS='$LTCFLAGS'
16970 compiler='$compiler_DEFAULT'
16972 # A function that is used when there is no print builtin or printf.
16973 func_fallback_echo ()
16975 eval 'cat <<_LTECHO_EOF
16980 # Quote evaled strings.
16997 deplibs_check_method \
17001 sharedlib_from_linklib_cmd \
17004 archiver_list_spec \
17010 lt_cv_sys_global_symbol_pipe \
17011 lt_cv_sys_global_symbol_to_cdecl \
17012 lt_cv_sys_global_symbol_to_import \
17013 lt_cv_sys_global_symbol_to_c_name_address \
17014 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17015 lt_cv_nm_interface \
17016 nm_file_list_spec \
17017 lt_cv_truncate_bin \
17018 lt_prog_compiler_no_builtin_flag \
17019 lt_prog_compiler_pic \
17020 lt_prog_compiler_wl \
17021 lt_prog_compiler_static \
17022 lt_cv_prog_compiler_c_o \
17031 export_dynamic_flag_spec \
17032 whole_archive_flag_spec \
17033 compiler_needs_object \
17035 allow_undefined_flag \
17036 no_undefined_flag \
17037 hardcode_libdir_flag_spec \
17038 hardcode_libdir_separator \
17042 variables_saved_for_relink \
17044 library_names_spec \
17046 install_override_mode \
17050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17051 *[\\\\\\\`\\"\\\$]*)
17052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17060 # Double-quote double-evaled strings.
17061 for var in reload_cmds \
17062 old_postinstall_cmds \
17063 old_postuninstall_cmds \
17065 extract_expsyms_cmds \
17066 old_archive_from_new_cmds \
17067 old_archive_from_expsyms_cmds \
17069 archive_expsym_cmds \
17071 module_expsym_cmds \
17072 export_symbols_cmds \
17076 postuninstall_cmds \
17078 sys_lib_search_path_spec \
17079 configure_time_dlsearch_path \
17080 configure_time_lt_sys_library_path; do
17081 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17082 *[\\\\\\\`\\"\\\$]*)
17083 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17086 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17091 ac_aux_dir='$ac_aux_dir'
17093 # See if we are running on zsh, and set the options that allow our
17094 # commands through without removal of \ escapes INIT.
17095 if test -n "\${ZSH_VERSION+set}"; then
17096 setopt NO_GLOB_SUBST
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17112 # Handling of arguments.
17113 for ac_config_target in $ac_config_targets
17115 case $ac_config_target in
17116 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17117 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17118 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17119 "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;;
17120 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
17121 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17122 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17123 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17124 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17125 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
17126 "libmtp.sh") CONFIG_FILES="$CONFIG_FILES libmtp.sh" ;;
17127 "hotplug.sh") CONFIG_FILES="$CONFIG_FILES hotplug.sh" ;;
17128 "libmtp.pc") CONFIG_FILES="$CONFIG_FILES libmtp.pc" ;;
17130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17135 # If the user did not use the arguments to specify the items to instantiate,
17136 # then the envvar interface is used. Set only those that are not.
17137 # We use the long form for the default assignment because of an extremely
17138 # bizarre bug on SunOS 4.1.3.
17139 if $ac_need_defaults; then
17140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17145 # Have a temporary directory for convenience. Make it in the build tree
17146 # simply because there is no reason against having it here, and in addition,
17147 # creating and moving files from /tmp can sometimes cause problems.
17148 # Hook for its removal unless debugging.
17149 # Note that there is a small window in which the directory will not be cleaned:
17150 # after its creation but before its name has been assigned to `$tmp'.
17154 trap 'exit_status=$?
17155 : "${ac_tmp:=$tmp}"
17156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17158 trap 'as_fn_exit 1' 1 2 13 15
17160 # Create a (secure) tmp directory for tmp files.
17163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17167 tmp=./conf$$-$RANDOM
17168 (umask 077 && mkdir "$tmp")
17169 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17172 # Set up the scripts for CONFIG_FILES section.
17173 # No need to generate them if there are no CONFIG_FILES.
17174 # This happens for instance with `./config.status config.h'.
17175 if test -n "$CONFIG_FILES"; then
17178 ac_cr=`echo X | tr X '\015'`
17179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17180 # But we know of no other shell where ac_cr would be empty at this
17181 # point, so we can use a bashism as a fallback.
17182 if test "x$ac_cr" = x; then
17183 eval ac_cr=\$\'\\r\'
17185 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17189 ac_cs_awk_cr=$ac_cr
17192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17197 echo "cat >conf$$subs.awk <<_ACEOF" &&
17198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17200 } >conf$$subs.sh ||
17201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17204 for ac_last_try in false false false false false :; do
17205 . ./conf$$subs.sh ||
17206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17209 if test $ac_delim_n = $ac_delim_num; then
17211 elif $ac_last_try; then
17212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17217 rm -f conf$$subs.sh
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17224 s/^/S["/; s/!.*/"]=/
17234 s/\(.\{148\}\)..*/\1/
17236 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17248 s/\(.\{148\}\)..*/\1/
17250 s/["\\]/\\&/g; s/^/"/; s/$/"/
17254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17259 ' <conf$$subs.awk | sed '
17264 ' >>$CONFIG_STATUS || ac_write_fail=1
17265 rm -f conf$$subs.awk
17266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17269 for (key in S) S_is_set[key] = 1
17275 nfields = split(line, field, "@")
17277 len = length(field[1])
17278 for (i = 2; i < nfields; i++) {
17280 keylen = length(key)
17281 if (S_is_set[key]) {
17283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17284 len += length(value) + length(field[++i])
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17306 # trailing colons and then remove the whole line if VPATH becomes empty
17307 # (actually we leave an empty line to preserve line numbers).
17308 if test "x$srcdir" = x.; then
17309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17328 fi # test -n "$CONFIG_FILES"
17330 # Set up the scripts for CONFIG_HEADERS section.
17331 # No need to generate them if there are no CONFIG_HEADERS.
17332 # This happens for instance with `./config.status Makefile'.
17333 if test -n "$CONFIG_HEADERS"; then
17334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17338 # Transform confdefs.h into an awk script `defines.awk', embedded as
17339 # here-document in config.status, that substitutes the proper values into
17340 # config.h.in to produce config.h.
17342 # Create a delimiter string that does not exist in confdefs.h, to ease
17343 # handling of long lines.
17345 for ac_last_try in false false :; do
17346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17347 if test -z "$ac_tt"; then
17349 elif $ac_last_try; then
17350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17356 # For the awk script, D is an array of macro values keyed by name,
17357 # likewise P contains macro parameters if any. Preserve backslash
17358 # newline sequences.
17360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17362 s/.\{148\}/&'"$ac_delim"'/g
17365 s/^[ ]*#[ ]*define[ ][ ]*/ /
17372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17379 D["\1"]=" \3\\\\\\n"\\/p
17381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17386 s/.\{148\}/&'"$ac_delim"'/g
17391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17396 ' <confdefs.h | sed '
17397 s/'"$ac_delim"'/"\\\
17398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17401 for (key in D) D_is_set[key] = 1
17404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17406 split(line, arg, " ")
17407 if (arg[1] == "#") {
17411 defundef = substr(arg[1], 2)
17414 split(mac1, mac2, "(") #)
17416 prefix = substr(line, 1, index(line, defundef) - 1)
17417 if (D_is_set[macro]) {
17418 # Preserve the white space surrounding the "#".
17419 print prefix "define", macro P[macro] D[macro]
17422 # Replace #undef with comments. This is necessary, for example,
17423 # in the case of _POSIX_SOURCE, which is predefined and required
17424 # on some systems where configure will not decide to define it.
17425 if (defundef == "undef") {
17426 print "/*", prefix defundef, macro, "*/"
17434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17436 fi # test -n "$CONFIG_HEADERS"
17439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17444 :[FHLC]) ac_mode=$ac_tag; continue;;
17446 case $ac_mode$ac_tag in
17448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17449 :[FH]-) ac_tag=-:-;;
17450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17467 -) ac_f="$ac_tmp/stdin";;
17468 *) # Look for the file first in the build tree, then in the source tree
17469 # (if the path is not absolute). The absolute path cannot be DOS-style,
17470 # because $ac_f cannot contain `:'.
17474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17479 as_fn_append ac_file_inputs " '$ac_f'"
17482 # Let's still pretend it is `configure' which instantiates (i.e., don't
17483 # use $as_me), people would be surprised to read:
17484 # /* config.h. Generated by config.status. */
17485 configure_input='Generated from '`
17486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17488 if test x"$ac_file" != x-; then
17489 configure_input="$ac_file. $configure_input"
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17491 $as_echo "$as_me: creating $ac_file" >&6;}
17493 # Neutralize special characters interpreted by sed in replacement strings.
17494 case $configure_input in #(
17495 *\&* | *\|* | *\\* )
17496 ac_sed_conf_input=`$as_echo "$configure_input" |
17497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17498 *) ac_sed_conf_input=$configure_input;;
17502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17508 ac_dir=`$as_dirname -- "$ac_file" ||
17509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510 X"$ac_file" : 'X\(//\)[^/]' \| \
17511 X"$ac_file" : 'X\(//\)$' \| \
17512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17513 $as_echo X"$ac_file" |
17514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17518 /^X\(\/\/\)[^/].*/{
17531 as_dir="$ac_dir"; as_fn_mkdir_p
17535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17538 # A ".." for each directory in $ac_dir_suffix.
17539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17540 case $ac_top_builddir_sub in
17541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17545 ac_abs_top_builddir=$ac_pwd
17546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17547 # for backward compatibility:
17548 ac_top_builddir=$ac_top_build_prefix
17551 .) # We are building in place.
17553 ac_top_srcdir=$ac_top_builddir_sub
17554 ac_abs_top_srcdir=$ac_pwd ;;
17555 [\\/]* | ?:[\\/]* ) # Absolute name.
17556 ac_srcdir=$srcdir$ac_dir_suffix;
17557 ac_top_srcdir=$srcdir
17558 ac_abs_top_srcdir=$srcdir ;;
17559 *) # Relative name.
17560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17561 ac_top_srcdir=$ac_top_build_prefix$srcdir
17562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17577 ac_MKDIR_P=$MKDIR_P
17579 [\\/$]* | ?:[\\/]* ) ;;
17580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 # If the template does not know about datarootdir, expand it.
17586 # FIXME: This hack should be removed a few years after 2.60.
17587 ac_datarootdir_hack=; ac_datarootdir_seen=
17598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17599 *datarootdir*) ac_datarootdir_seen=yes;;
17600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17605 ac_datarootdir_hack='
17606 s&@datadir@&$datadir&g
17607 s&@docdir@&$docdir&g
17608 s&@infodir@&$infodir&g
17609 s&@localedir@&$localedir&g
17610 s&@mandir@&$mandir&g
17611 s&\\\${datarootdir}&$datarootdir&g' ;;
17615 # Neutralize VPATH when `$srcdir' = `.'.
17616 # Shell code in configure.ac might set extrasub.
17617 # FIXME: do we really want to maintain this feature?
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 ac_sed_extra="$ac_vpsub
17622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17625 s|@configure_input@|$ac_sed_conf_input|;t t
17626 s&@top_builddir@&$ac_top_builddir_sub&;t t
17627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17628 s&@srcdir@&$ac_srcdir&;t t
17629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17630 s&@top_srcdir@&$ac_top_srcdir&;t t
17631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17632 s&@builddir@&$ac_builddir&;t t
17633 s&@abs_builddir@&$ac_abs_builddir&;t t
17634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17635 s&@INSTALL@&$ac_INSTALL&;t t
17636 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17637 $ac_datarootdir_hack
17639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17647 which seems to be undefined. Please make sure it is defined" >&5
17648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17649 which seems to be undefined. Please make sure it is defined" >&2;}
17651 rm -f "$ac_tmp/stdin"
17653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17662 if test x"$ac_file" != x-; then
17664 $as_echo "/* $configure_input */" \
17665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17666 } >"$ac_tmp/config.h" \
17667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17668 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17670 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17673 mv "$ac_tmp/config.h" "$ac_file" \
17674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17677 $as_echo "/* $configure_input */" \
17678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17679 || as_fn_error $? "could not create -" "$LINENO" 5
17681 # Compute "$ac_file"'s index in $config_headers.
17684 for _am_header in $config_headers :; do
17685 case $_am_header in
17686 $_am_arg | $_am_arg:* )
17689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17694 X"$_am_arg" : 'X\(//\)[^/]' \| \
17695 X"$_am_arg" : 'X\(//\)$' \| \
17696 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17697 $as_echo X"$_am_arg" |
17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17702 /^X\(\/\/\)[^/].*/{
17714 s/.*/./; q'`/stamp-h$_am_stamp_count
17717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17718 $as_echo "$as_me: executing $ac_file commands" >&6;}
17723 case $ac_file$ac_mode in
17724 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17725 # Older Autoconf quotes --file arguments for eval, but not when files
17726 # are listed without --file. Let's play safe and only enable the eval
17727 # if we detect the quoting.
17728 case $CONFIG_FILES in
17729 *\'*) eval set x "$CONFIG_FILES" ;;
17730 *) set x $CONFIG_FILES ;;
17735 # Strip MF so we end up with the name of the file.
17736 mf=`echo "$mf" | sed -e 's/:.*$//'`
17737 # Check whether this is an Automake generated Makefile or not.
17738 # We used to match only the files named 'Makefile.in', but
17739 # some people rename them; so instead we look at the file content.
17740 # Grep'ing the first line is not enough: some people post-process
17741 # each Makefile.in and add a new line on top of each file to say so.
17742 # Grep'ing the whole file is not good either: AIX grep has a line
17743 # limit of 2048, but all sed's we know have understand at least 4000.
17744 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17745 dirpart=`$as_dirname -- "$mf" ||
17746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17747 X"$mf" : 'X\(//\)[^/]' \| \
17748 X"$mf" : 'X\(//\)$' \| \
17749 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17755 /^X\(\/\/\)[^/].*/{
17771 # Extract the definition of DEPDIR, am__include, and am__quote
17772 # from the Makefile without running 'make'.
17773 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17774 test -z "$DEPDIR" && continue
17775 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17776 test -z "$am__include" && continue
17777 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17778 # Find all dependency output files, they are included files with
17779 # $(DEPDIR) in their names. We invoke sed twice because it is the
17780 # simplest approach to changing $(DEPDIR) to its actual value in the
17782 for file in `sed -n "
17783 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17784 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17785 # Make sure the directory exists.
17786 test -f "$dirpart/$file" && continue
17787 fdir=`$as_dirname -- "$file" ||
17788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17789 X"$file" : 'X\(//\)[^/]' \| \
17790 X"$file" : 'X\(//\)$' \| \
17791 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17792 $as_echo X"$file" |
17793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17797 /^X\(\/\/\)[^/].*/{
17810 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17811 # echo "creating $dirpart/$file"
17812 echo '# dummy' > "$dirpart/$file"
17819 # See if we are running on zsh, and set the options that allow our
17820 # commands through without removal of \ escapes.
17821 if test -n "${ZSH_VERSION+set}"; then
17822 setopt NO_GLOB_SUBST
17826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17829 cat <<_LT_EOF >> "$cfgfile"
17831 # Generated automatically by $as_me ($PACKAGE) $VERSION
17832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17834 # Provide generalized library-building support services.
17835 # Written by Gordon Matzigkeit, 1996
17837 # Copyright (C) 2014 Free Software Foundation, Inc.
17838 # This is free software; see the source for copying conditions. There is NO
17839 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17841 # GNU Libtool is free software; you can redistribute it and/or modify
17842 # it under the terms of the GNU General Public License as published by
17843 # the Free Software Foundation; either version 2 of of the License, or
17844 # (at your option) any later version.
17846 # As a special exception to the GNU General Public License, if you
17847 # distribute this file as part of a program or library that is built
17848 # using GNU Libtool, you may include this file under the same
17849 # distribution terms that you use for the rest of that program.
17851 # GNU Libtool is distributed in the hope that it will be useful, but
17852 # WITHOUT ANY WARRANTY; without even the implied warranty of
17853 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17854 # GNU General Public License for more details.
17856 # You should have received a copy of the GNU General Public License
17857 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17860 # The names of the tagged configurations supported by this script.
17863 # Configured defaults for sys_lib_dlsearch_path munging.
17864 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17866 # ### BEGIN LIBTOOL CONFIG
17868 # Assembler program.
17871 # DLL creation program.
17872 DLLTOOL=$lt_DLLTOOL
17874 # Object dumper program.
17875 OBJDUMP=$lt_OBJDUMP
17877 # Which release of libtool.m4 was used?
17878 macro_version=$macro_version
17879 macro_revision=$macro_revision
17881 # Whether or not to build shared libraries.
17882 build_libtool_libs=$enable_shared
17884 # Whether or not to build static libraries.
17885 build_old_libs=$enable_static
17887 # What type of objects to build.
17890 # Whether or not to optimize for fast installation.
17891 fast_install=$enable_fast_install
17893 # Shared archive member basename,for filename based shared library versioning on AIX.
17894 shared_archive_member_spec=$shared_archive_member_spec
17896 # Shell to use when invoking shell scripts.
17899 # An echo program that protects backslashes.
17902 # The PATH separator for the build system.
17903 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17906 host_alias=$host_alias
17910 # The build system.
17911 build_alias=$build_alias
17915 # A sed program that does not truncate output.
17918 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17919 Xsed="\$SED -e 1s/^X//"
17921 # A grep program that handles long lines.
17927 # A literal string matcher.
17930 # A BSD- or MS-compatible name lister.
17933 # Whether we need soft or hard links.
17936 # What is the maximum length of a command?
17937 max_cmd_len=$max_cmd_len
17939 # Object file suffix (normally "o").
17942 # Executable file suffix (normally "").
17945 # whether the shell understands "unset".
17948 # turn spaces into newlines.
17951 # turn newlines into spaces.
17954 # convert \$build file names to \$host format.
17955 to_host_file_cmd=$lt_cv_to_host_file_cmd
17957 # convert \$build files to toolchain format.
17958 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17960 # Method to check whether dependent libraries are shared objects.
17961 deplibs_check_method=$lt_deplibs_check_method
17963 # Command to use when deplibs_check_method = "file_magic".
17964 file_magic_cmd=$lt_file_magic_cmd
17966 # How to find potential files when deplibs_check_method = "file_magic".
17967 file_magic_glob=$lt_file_magic_glob
17969 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17970 want_nocaseglob=$lt_want_nocaseglob
17972 # Command to associate shared and link libraries.
17973 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17978 # Flags to create an archive.
17979 AR_FLAGS=$lt_AR_FLAGS
17981 # How to feed a file listing to the archiver.
17982 archiver_list_spec=$lt_archiver_list_spec
17984 # A symbol stripping program.
17987 # Commands used to install an old-style archive.
17989 old_postinstall_cmds=$lt_old_postinstall_cmds
17990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17992 # Whether to use a lock for old archive extraction.
17993 lock_old_archive_extraction=$lock_old_archive_extraction
17998 # LTCC compiler flags.
17999 LTCFLAGS=$lt_CFLAGS
18001 # Take the output of nm and produce a listing of raw symbols and C names.
18002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18004 # Transform the output of nm in a proper C declaration.
18005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18007 # Transform the output of nm into a list of symbols to manually relocate.
18008 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18010 # Transform the output of nm in a C name address pair.
18011 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18013 # Transform the output of nm in a C name address pair when lib prefix is needed.
18014 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18016 # The name lister interface.
18017 nm_interface=$lt_lt_cv_nm_interface
18019 # Specify filename containing input files for \$NM.
18020 nm_file_list_spec=$lt_nm_file_list_spec
18022 # The root where to search for dependent libraries,and where our libraries should be installed.
18023 lt_sysroot=$lt_sysroot
18025 # Command to truncate a binary pipe.
18026 lt_truncate_bin=$lt_lt_cv_truncate_bin
18028 # The name of the directory that contains temporary libtool files.
18031 # Used to examine libraries when file_magic_cmd begins with "file".
18032 MAGIC_CMD=$MAGIC_CMD
18034 # Must we lock files when doing compilation?
18035 need_locks=$lt_need_locks
18038 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18040 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18041 DSYMUTIL=$lt_DSYMUTIL
18043 # Tool to change global to local symbols on Mac OS X.
18046 # Tool to manipulate fat objects and archives on Mac OS X.
18049 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18052 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18053 OTOOL64=$lt_OTOOL64
18055 # Old archive suffix (normally "a").
18058 # Shared library suffix (normally ".so").
18059 shrext_cmds=$lt_shrext_cmds
18061 # The commands to extract the exported symbol list from a shared archive.
18062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18064 # Variables whose values should be saved in libtool wrapper scripts and
18065 # restored at link time.
18066 variables_saved_for_relink=$lt_variables_saved_for_relink
18068 # Do we need the "lib" prefix for modules?
18069 need_lib_prefix=$need_lib_prefix
18071 # Do we need a version for libraries?
18072 need_version=$need_version
18074 # Library versioning type.
18075 version_type=$version_type
18077 # Shared library runtime path variable.
18078 runpath_var=$runpath_var
18080 # Shared library path variable.
18081 shlibpath_var=$shlibpath_var
18083 # Is shlibpath searched before the hard-coded library search path?
18084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18086 # Format of library name prefix.
18087 libname_spec=$lt_libname_spec
18089 # List of archive names. First name is the real one, the rest are links.
18090 # The last name is the one that the linker finds with -lNAME
18091 library_names_spec=$lt_library_names_spec
18093 # The coded name of the library, if different from the real name.
18094 soname_spec=$lt_soname_spec
18096 # Permission mode override for installation of shared libraries.
18097 install_override_mode=$lt_install_override_mode
18099 # Command to use after installation of a shared archive.
18100 postinstall_cmds=$lt_postinstall_cmds
18102 # Command to use after uninstallation of a shared archive.
18103 postuninstall_cmds=$lt_postuninstall_cmds
18105 # Commands used to finish a libtool library installation in a directory.
18106 finish_cmds=$lt_finish_cmds
18108 # As "finish_cmds", except a single script fragment to be evaled but
18110 finish_eval=$lt_finish_eval
18112 # Whether we should hardcode library paths into libraries.
18113 hardcode_into_libs=$hardcode_into_libs
18115 # Compile-time system search path for libraries.
18116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18118 # Detected run-time system search path for libraries.
18119 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18121 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18122 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18124 # Whether dlopen is supported.
18125 dlopen_support=$enable_dlopen
18127 # Whether dlopen of programs is supported.
18128 dlopen_self=$enable_dlopen_self
18130 # Whether dlopen of statically linked programs is supported.
18131 dlopen_self_static=$enable_dlopen_self_static
18133 # Commands to strip libraries.
18134 old_striplib=$lt_old_striplib
18135 striplib=$lt_striplib
18138 # The linker used to build libraries.
18141 # How to create reloadable object files.
18142 reload_flag=$lt_reload_flag
18143 reload_cmds=$lt_reload_cmds
18145 # Commands used to build an old-style archive.
18146 old_archive_cmds=$lt_old_archive_cmds
18148 # A language specific compiler.
18151 # Is the compiler the GNU compiler?
18154 # Compiler flag to turn off builtin functions.
18155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18157 # Additional compiler flags for building library objects.
18158 pic_flag=$lt_lt_prog_compiler_pic
18160 # How to pass a linker flag through the compiler.
18161 wl=$lt_lt_prog_compiler_wl
18163 # Compiler flag to prevent dynamic linking.
18164 link_static_flag=$lt_lt_prog_compiler_static
18166 # Does compiler simultaneously support -c and -o options?
18167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18169 # Whether or not to add -lc for building shared libraries.
18170 build_libtool_need_lc=$archive_cmds_need_lc
18172 # Whether or not to disallow shared libs when runtime libs are static.
18173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18175 # Compiler flag to allow reflexive dlopens.
18176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18178 # Compiler flag to generate shared objects directly from archives.
18179 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18181 # Whether the compiler copes with passing no objects directly.
18182 compiler_needs_object=$lt_compiler_needs_object
18184 # Create an old-style archive from a shared archive.
18185 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18187 # Create a temporary old-style archive to link instead of a shared archive.
18188 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18190 # Commands used to build a shared archive.
18191 archive_cmds=$lt_archive_cmds
18192 archive_expsym_cmds=$lt_archive_expsym_cmds
18194 # Commands used to build a loadable module if different from building
18195 # a shared archive.
18196 module_cmds=$lt_module_cmds
18197 module_expsym_cmds=$lt_module_expsym_cmds
18199 # Whether we are building with GNU ld or not.
18200 with_gnu_ld=$lt_with_gnu_ld
18202 # Flag that allows shared libraries with undefined symbols to be built.
18203 allow_undefined_flag=$lt_allow_undefined_flag
18205 # Flag that enforces no undefined symbols.
18206 no_undefined_flag=$lt_no_undefined_flag
18208 # Flag to hardcode \$libdir into a binary during linking.
18209 # This must work even if \$libdir does not exist
18210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18212 # Whether we need a single "-rpath" flag with a separated argument.
18213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18215 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18216 # DIR into the resulting binary.
18217 hardcode_direct=$hardcode_direct
18219 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18220 # DIR into the resulting binary and the resulting library dependency is
18221 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18222 # library is relocated.
18223 hardcode_direct_absolute=$hardcode_direct_absolute
18225 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18226 # into the resulting binary.
18227 hardcode_minus_L=$hardcode_minus_L
18229 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18230 # into the resulting binary.
18231 hardcode_shlibpath_var=$hardcode_shlibpath_var
18233 # Set to "yes" if building a shared library automatically hardcodes DIR
18234 # into the library and all subsequent libraries and executables linked
18236 hardcode_automatic=$hardcode_automatic
18238 # Set to yes if linker adds runtime paths of dependent libraries
18239 # to runtime path list.
18240 inherit_rpath=$inherit_rpath
18242 # Whether libtool must link a program against all its dependency libraries.
18243 link_all_deplibs=$link_all_deplibs
18245 # Set to "yes" if exported symbols are required.
18246 always_export_symbols=$always_export_symbols
18248 # The commands to list exported symbols.
18249 export_symbols_cmds=$lt_export_symbols_cmds
18251 # Symbols that should not be listed in the preloaded symbols.
18252 exclude_expsyms=$lt_exclude_expsyms
18254 # Symbols that must always be exported.
18255 include_expsyms=$lt_include_expsyms
18257 # Commands necessary for linking programs (against libraries) with templates.
18258 prelink_cmds=$lt_prelink_cmds
18260 # Commands necessary for finishing linking programs.
18261 postlink_cmds=$lt_postlink_cmds
18263 # Specify filename containing input files.
18264 file_list_spec=$lt_file_list_spec
18266 # How to hardcode a shared library path into an executable.
18267 hardcode_action=$hardcode_action
18269 # ### END LIBTOOL CONFIG
18273 cat <<'_LT_EOF' >> "$cfgfile"
18275 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18277 # func_munge_path_list VARIABLE PATH
18278 # -----------------------------------
18279 # VARIABLE is name of variable containing _space_ separated list of
18280 # directories to be munged by the contents of PATH, which is string
18283 # string "DIR[ DIR]" will be prepended to VARIABLE
18285 # string "DIR[ DIR]" will be appended to VARIABLE
18286 # "DIRP[:DIRP]::[DIRA:]DIRA"
18287 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18288 # "DIRA[ DIRA]" will be appended to VARIABLE
18290 # VARIABLE will be replaced by "DIR[ DIR]"
18291 func_munge_path_list ()
18297 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18300 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18303 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18304 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18307 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18313 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18314 func_cc_basename ()
18316 for cc_temp in $*""; do
18318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18324 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18328 # ### END FUNCTIONS SHARED WITH CONFIGURE
18334 cat <<\_LT_EOF >> "$cfgfile"
18335 # AIX sometimes has problems with the GCC collect2 program. For some
18336 # reason, if we set the COLLECT_NAMES environment variable, the problems
18337 # vanish in a puff of smoke.
18338 if test set != "${COLLECT_NAMES+set}"; then
18340 export COLLECT_NAMES
18347 ltmain=$ac_aux_dir/ltmain.sh
18350 # We use sed instead of cat because bash on DJGPP gets confused if
18351 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18352 # text mode, it properly converts lines to CR/LF. This bash problem
18353 # is reportedly fixed, but why not run on old versions too?
18354 sed '$q' "$ltmain" >> "$cfgfile" \
18355 || (rm -f "$cfgfile"; exit 1)
18357 mv -f "$cfgfile" "$ofile" ||
18358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18369 ac_clean_files=$ac_clean_files_save
18371 test $ac_write_fail = 0 ||
18372 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18375 # configure is writing to config.log, and then calls config.status.
18376 # config.status does its own redirection, appending to config.log.
18377 # Unfortunately, on DOS this fails, as config.log is still kept open
18378 # by configure, so config.status won't be able to write to it; its
18379 # output is simply discarded. So we exec the FD to /dev/null,
18380 # effectively closing config.log, so it can be properly (re)opened and
18381 # appended to by config.status. When coming back to configure, we
18382 # need to make the FD available again.
18383 if test "$no_create" != yes; then
18385 ac_config_status_args=
18386 test "$silent" = yes &&
18387 ac_config_status_args="$ac_config_status_args --quiet"
18389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18392 # would make configure fail if this is the last instruction.
18393 $ac_cs_success || as_fn_exit 1
18395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18400 chmod +x hotplug.sh