2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ccid 1.4.33.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='ccid'
590 PACKAGE_VERSION='1.4.33'
591 PACKAGE_STRING='ccid 1.4.33'
595 ac_unique_file="src/ifdhandler.c"
596 ac_default_prefix=/usr/local
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
633 ac_subst_vars='am__EXEEXT_FALSE
647 WITH_TWIN_SERIAL_FALSE
648 WITH_TWIN_SERIAL_TRUE
709 MAINTAINER_MODE_FALSE
731 INSTALL_STRIP_PROGRAM
774 program_transform_name
788 enable_option_checking
790 enable_maintainer_mode
791 enable_dependency_tracking
801 enable_composite_as_multislot
815 ac_precious_vars='build_alias
834 # Initialize some variables set by options.
836 ac_init_version=false
837 ac_unrecognized_opts=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 runstatedir='${localstatedir}/run'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
993 -help | --help | --hel | --he | -h)
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1123 -runstatedir | --runstatedir | --runstatedi | --runstated \
1124 | --runstate | --runstat | --runsta | --runst | --runs \
1125 | --run | --ru | --r)
1126 ac_prev=runstatedir ;;
1127 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129 | --run=* | --ru=* | --r=*)
1130 runstatedir=$ac_optarg ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures ccid 1.4.33 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/ccid]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of ccid 1.4.33:";;
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-static[=PKGS] build static libraries [default=no]
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-libusb do not use libusb
1476 --enable-composite-as-multislot
1477 composite device are seen as multi-slots
1478 --disable-multi-thread disable multi threading
1479 --enable-bundle=NAME bundle directory name (default ifd-ccid.bundle)
1480 --enable-usbdropdir=DIR directory containing USB drivers (default to pcscd
1481 config or $(prefix)/pcsc/drivers)
1482 --enable-twinserial also compile and install the serial Twin driver
1483 --enable-ccidtwindir=DIR
1484 directory to install the serial Twin driver (default
1485 to pcscd config or $(prefix)/pcsc/drivers/serial)
1486 --enable-serialconfdir=dir
1487 directory containing serial drivers (default to
1489 --disable-pcsclite do not use pcsc-lite debug support
1490 --enable-syslog use syslog(3) instead of printf() for debug
1492 --enable-oslog use os_log(3) instead of printf() for debug (Sierra
1494 --disable-class remove the CCIDCLASSDRIVER from Info.plist
1495 --enable-embedded limit RAM and CPU ressources by disabling features
1497 --enable-zlp enable the Zero Length Packet patch for some Gemalto
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1521 PKG_CONFIG path to pkg-config utility
1523 directories to add to pkg-config's search path
1525 path overriding pkg-config's built-in search path
1526 PCSC_CFLAGS C compiler flags for PCSC, overriding pkg-config
1527 PCSC_LIBS linker flags for PCSC, overriding pkg-config
1529 User-defined run-time library search path.
1531 C compiler flags for LIBUSB, overriding pkg-config
1532 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to the package provider.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 ccid configure 1.4.33
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_link
1735 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738 # the include files in INCLUDES and setting the cache variable VAR
1740 ac_fn_c_check_header_mongrel ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if eval \${$3+:} false; then :
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1753 # Is the header compilable?
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755 $as_echo_n "checking $2 usability... " >&6; }
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762 ac_header_compiler=yes
1764 ac_header_compiler=no
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768 $as_echo "$ac_header_compiler" >&6; }
1770 # Is the header present?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772 $as_echo_n "checking $2 presence... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1777 if ac_fn_c_try_cpp "$LINENO"; then :
1778 ac_header_preproc=yes
1780 ac_header_preproc=no
1782 rm -f conftest.err conftest.i conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784 $as_echo "$ac_header_preproc" >&6; }
1786 # So? What about this header?
1787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1798 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1802 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 eval "$3=\$ac_header_compiler"
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile "$LINENO"; then :
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1918 # include <limits.h>
1920 # include <assert.h>
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1947 if ac_fn_c_try_link "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_func
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_type
2015 cat >config.log <<_ACEOF
2016 This file contains any messages produced by compilers while
2017 running configure, to aid debugging if configure makes a mistake.
2019 It was created by ccid $as_me 1.4.33, which was
2020 generated by GNU Autoconf 2.69. Invocation command line was
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 $as_echo "PATH: $as_dir"
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2080 ac_must_keep_next=false
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2096 as_fn_append ac_configure_args1 " '$ac_arg'"
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 -* ) ac_must_keep_next=true ;;
2112 as_fn_append ac_configure_args " '$ac_arg'"
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log. We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2130 $as_echo "## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##"
2134 # The following way of writing the cache mishandles newlines in values,
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
2155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166 $as_echo "## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##"
2170 for ac_var in $ac_subst_vars
2172 eval ac_val=\$$ac_var
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 $as_echo "$ac_var='\''$ac_val'\''"
2180 if test -n "$ac_subst_files"; then
2181 $as_echo "## ------------------- ##
2182 ## File substitutions. ##
2183 ## ------------------- ##"
2185 for ac_var in $ac_subst_files
2187 eval ac_val=\$$ac_var
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 $as_echo "$ac_var='\''$ac_val'\''"
2196 if test -s confdefs.h; then
2197 $as_echo "## ----------- ##
2204 test "$ac_signal" != 0 &&
2205 $as_echo "$as_me: caught signal $ac_signal"
2206 $as_echo "$as_me: exit $exit_status"
2208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 for ac_signal in 1 2 13 15; do
2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2220 $as_echo "/* confdefs.h */" > confdefs.h
2222 # Predefined preprocessor variables.
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_NAME "$PACKAGE_NAME"
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_STRING "$PACKAGE_STRING"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_URL "$PACKAGE_URL"
2249 # Let the site file select an alternate cache file if it wants to.
2250 # Prefer an explicitly selected file to automatically selected ones.
2253 if test -n "$CONFIG_SITE"; then
2254 # We do not want a PATH search for config.site.
2255 case $CONFIG_SITE in #((
2256 -*) ac_site_file1=./$CONFIG_SITE;;
2257 */*) ac_site_file1=$CONFIG_SITE;;
2258 *) ac_site_file1=./$CONFIG_SITE;;
2260 elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269 test "x$ac_site_file" = xNONE && continue
2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273 sed 's/^/| /' "$ac_site_file" >&5
2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 as_fn_error $? "failed to load site script $ac_site_file
2278 See \`config.log' for more details" "$LINENO" 5; }
2282 if test -r "$cache_file"; then
2283 # Some versions of bash will fail to source /dev/null (special files
2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
2289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290 *) . "./$cache_file";;
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
2299 # Check that the precious variables saved in the cache have kept the same
2301 ac_cache_corrupted=false
2302 for ac_var in $ac_precious_vars; do
2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2304 eval ac_new_set=\$ac_env_${ac_var}_set
2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2306 eval ac_new_val=\$ac_env_${ac_var}_value
2307 case $ac_old_set,$ac_new_set in
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2314 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2315 ac_cache_corrupted=: ;;
2318 if test "x$ac_old_val" != "x$ac_new_val"; then
2319 # differences in whitespace do not lead to failure.
2320 ac_old_val_w=`echo x $ac_old_val`
2321 ac_new_val_w=`echo x $ac_new_val`
2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2324 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2325 ac_cache_corrupted=:
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2328 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2329 eval $ac_var=\$ac_old_val
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2332 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2334 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 # Pass precious variables to config.status.
2338 if test "$ac_new_set" = set; then
2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 *) ac_arg=$ac_var=$ac_new_val ;;
2343 case " $ac_configure_args " in
2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2349 if $ac_cache_corrupted; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2353 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2356 ## -------------------- ##
2357 ## Main body of script. ##
2358 ## -------------------- ##
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 for ac_dir in . "$srcdir"/.; do
2370 if test -f "$ac_dir/install-sh"; then
2372 ac_install_sh="$ac_aux_dir/install-sh -c"
2374 elif test -f "$ac_dir/install.sh"; then
2376 ac_install_sh="$ac_aux_dir/install.sh -c"
2378 elif test -f "$ac_dir/shtool"; then
2380 ac_install_sh="$ac_aux_dir/shtool install -c"
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2397 am__api_version='1.16'
2399 # Find a good install program. We prefer a C program (faster),
2400 # so one script is as good as another. But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # OS/2's system install, which has a completely different semantic
2411 # ./install, which can be erroneously created by make from ./install.sh.
2412 # Reject install programs that cannot install multiple files.
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2415 if test -z "$INSTALL"; then
2416 if ${ac_cv_path_install+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 # Account for people who put trailing slashes in PATH elements.
2425 case $as_dir/ in #((
2426 ./ | .// | /[cC]/* | \
2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2431 # OSF1 and SCO ODT 3.0 have their own names for install.
2432 # Don't use installbsd from OSF since it installs stuff as root
2434 for ac_prog in ginstall scoinst install; do
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2437 if test $ac_prog = install &&
2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439 # AIX install. It has an incompatible calling convention.
2441 elif test $ac_prog = install &&
2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # program-specific install script used by HP pwplus--don't use.
2446 rm -rf conftest.one conftest.two conftest.dir
2447 echo one > conftest.one
2448 echo two > conftest.two
2450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2451 test -s conftest.one && test -s conftest.two &&
2452 test -s conftest.dir/conftest.one &&
2453 test -s conftest.dir/conftest.two
2455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2468 rm -rf conftest.one conftest.two conftest.dir
2471 if test "${ac_cv_path_install+set}" = set; then
2472 INSTALL=$ac_cv_path_install
2474 # As a last resort, use the slow shell script. Don't cache a
2475 # value for INSTALL within a source directory, because that will
2476 # break other packages using the cache if that directory is
2477 # removed, or if the value is a relative name.
2478 INSTALL=$ac_install_sh
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2482 $as_echo "$INSTALL" >&6; }
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2493 $as_echo_n "checking whether build environment is sane... " >&6; }
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name. Accept space and tab only in the latter.
2499 *[\\\"\#\$\&\'\`$am_lf]*)
2500 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2503 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2504 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2507 # Do 'set' in a subshell so we don't clobber the current shell's
2508 # arguments. Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2514 for am_try in 1 2; do
2515 echo "timestamp, slept: $am_has_slept" > conftest.file
2516 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2517 if test "$*" = "X"; then
2519 set X `ls -t "$srcdir/configure" conftest.file`
2521 if test "$*" != "X $srcdir/configure conftest.file" \
2522 && test "$*" != "X conftest.file $srcdir/configure"; then
2524 # If neither matched, then we have a broken ls. This can happen
2525 # if, for instance, CONFIG_SHELL is bash and it inherits a
2526 # broken ls alias from the environment. This has actually
2527 # happened. Such a system could not be considered "sane".
2528 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2529 alias in your environment" "$LINENO" 5
2531 if test "$2" = conftest.file || test $am_try -eq 2; then
2538 test "$2" = conftest.file
2544 as_fn_error $? "newly created file is older than distributed files!
2545 Check your system clock" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 # If we didn't sleep, we still need to ensure time stamps of config.status and
2550 # generated files are strictly newer.
2552 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2559 test "$program_prefix" != NONE &&
2560 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2561 # Use a double $ so make ignores it.
2562 test "$program_suffix" != NONE &&
2563 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2564 # Double any \ or $.
2565 # By default was `s,x,x', remove it if useless.
2566 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2567 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2569 # Expand $ac_aux_dir to an absolute path.
2570 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2572 if test x"${MISSING+set}" != xset; then
2575 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2577 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2580 # Use eval to expand $SHELL
2581 if eval "$MISSING --is-lightweight"; then
2582 am_missing_run="$MISSING "
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2586 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2589 if test x"${install_sh+set}" != xset; then
2592 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2594 install_sh="\${SHELL} $am_aux_dir/install-sh"
2598 # Installed binaries are usually stripped using 'strip' when the user
2599 # run "make install-strip". However 'strip' might not be the right
2600 # tool to use in cross-compilation environments, therefore Automake
2601 # will honor the 'STRIP' environment variable to overrule this program.
2602 if test "$cross_compiling" != no; then
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}strip; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_STRIP+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$STRIP"; then
2612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 STRIP=$ac_cv_prog_STRIP
2632 if test -n "$STRIP"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2634 $as_echo "$STRIP" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2642 if test -z "$ac_cv_prog_STRIP"; then
2644 # Extract the first word of "strip", so it can be a program name with args.
2645 set dummy strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$ac_ct_STRIP"; then
2652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_STRIP="strip"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2672 if test -n "$ac_ct_STRIP"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2674 $as_echo "$ac_ct_STRIP" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2680 if test "x$ac_ct_STRIP" = x; then
2683 case $cross_compiling:$ac_tool_warned in
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2692 STRIP="$ac_cv_prog_STRIP"
2696 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2699 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2700 if test -z "$MKDIR_P"; then
2701 if ${ac_cv_path_mkdir+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2708 test -z "$as_dir" && as_dir=.
2709 for ac_prog in mkdir gmkdir; do
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2712 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2713 'mkdir (GNU coreutils) '* | \
2714 'mkdir (coreutils) '* | \
2715 'mkdir (fileutils) '4.1*)
2716 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2726 test -d ./--version && rmdir ./--version
2727 if test "${ac_cv_path_mkdir+set}" = set; then
2728 MKDIR_P="$ac_cv_path_mkdir -p"
2730 # As a last resort, use the slow shell script. Don't cache a
2731 # value for MKDIR_P within a source directory, because that will
2732 # break other packages using the cache if that directory is
2733 # removed, or if the value is a relative name.
2734 MKDIR_P="$ac_install_sh -d"
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2738 $as_echo "$MKDIR_P" >&6; }
2740 for ac_prog in gawk mawk nawk awk
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_AWK+:} false; then :
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$AWK"; then
2750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_AWK="$ac_prog"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$AWK"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2772 $as_echo "$AWK" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2779 test -n "$AWK" && break
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2783 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2785 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2786 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 cat >conftest.make <<\_ACEOF
2792 @echo '@@@%%%=$(MAKE)=@@@%%%'
2794 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2797 eval ac_cv_prog_make_${ac_make}_set=yes;;
2799 eval ac_cv_prog_make_${ac_make}_set=no;;
2803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2805 $as_echo "yes" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 SET_MAKE="MAKE=${MAKE-make}"
2813 rm -rf .tst 2>/dev/null
2814 mkdir .tst 2>/dev/null
2815 if test -d .tst; then
2820 rmdir .tst 2>/dev/null
2822 # Check whether --enable-silent-rules was given.
2823 if test "${enable_silent_rules+set}" = set; then :
2824 enableval=$enable_silent_rules;
2827 case $enable_silent_rules in # (((
2828 yes) AM_DEFAULT_VERBOSITY=0;;
2829 no) AM_DEFAULT_VERBOSITY=1;;
2830 *) AM_DEFAULT_VERBOSITY=1;;
2832 am_make=${MAKE-make}
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2834 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2835 if ${am_cv_make_support_nested_variables+:} false; then :
2836 $as_echo_n "(cached) " >&6
2838 if $as_echo 'TRUE=$(BAR$(V))
2844 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2845 am_cv_make_support_nested_variables=yes
2847 am_cv_make_support_nested_variables=no
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2851 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2852 if test $am_cv_make_support_nested_variables = yes; then
2854 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2856 AM_V=$AM_DEFAULT_VERBOSITY
2857 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2881 # Define the identity of the package.
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE "$PACKAGE"
2891 cat >>confdefs.h <<_ACEOF
2892 #define VERSION "$VERSION"
2895 # Some tools Automake needs.
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2911 # For better backward compatibility. To be removed once Automake 1.9.x
2912 # dies out for good. For more background, see:
2913 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2914 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2915 mkdir_p='$(MKDIR_P)'
2917 # We need awk for the "check" target (and possibly the TAP driver). The
2918 # system "awk" is bad on some platforms.
2919 # Always define AMTAR for backward compatibility. Yes, it's still used
2920 # in the wild :-( We should find a proper way to deprecate it ...
2924 # We'll loop over all known methods to create a tar archive until one works.
2925 _am_tools='gnutar pax cpio none'
2927 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2934 # POSIX will say in a future version that running "rm -f" with no argument
2935 # is OK; and we want to be able to make that assumption in our Makefile
2936 # recipes. So use an aggressive probe to check that the usage we want is
2937 # actually supported "in the wild" to an acceptable degree.
2938 # See automake bug#10828.
2939 # To make any issue more visible, cause the running configure to be aborted
2940 # by default if the 'rm' program in use doesn't match our expectations; the
2941 # user can still override this though.
2942 if rm -f && rm -fr && rm -rf; then : OK; else
2946 Your 'rm' program seems unable to run without file operands specified
2947 on the command line, even when the '-f' option is present. This is contrary
2948 to the behaviour of most rm programs out there, and not conforming with
2949 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2951 Please tell bug-automake@gnu.org about your system, including the value
2952 of your $PATH and any error possibly output before this message. This
2953 can help us improve future automake versions.
2956 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2957 echo 'Configuration will proceed anyway, since you have set the' >&2
2958 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2962 Aborting the configuration process, to ensure you take notice of the issue.
2964 You can download and install GNU coreutils to get an 'rm' implementation
2965 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2967 If you want to complete the configuration process using your problematic
2968 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2969 to "yes", and re-run configure.
2972 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2978 # silent build by default
2979 # Check whether --enable-silent-rules was given.
2980 if test "${enable_silent_rules+set}" = set; then :
2981 enableval=$enable_silent_rules;
2984 case $enable_silent_rules in # (((
2985 yes) AM_DEFAULT_VERBOSITY=0;;
2986 no) AM_DEFAULT_VERBOSITY=1;;
2987 *) AM_DEFAULT_VERBOSITY=0;;
2989 am_make=${MAKE-make}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2991 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2992 if ${am_cv_make_support_nested_variables+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if $as_echo 'TRUE=$(BAR$(V))
3001 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3002 am_cv_make_support_nested_variables=yes
3004 am_cv_make_support_nested_variables=no
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3008 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3009 if test $am_cv_make_support_nested_variables = yes; then
3011 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3013 AM_V=$AM_DEFAULT_VERBOSITY
3014 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3019 # Default install dir
3022 # Automake boilerplate.
3023 # Make sure we can run config.sub.
3024 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3025 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3028 $as_echo_n "checking build system type... " >&6; }
3029 if ${ac_cv_build+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 ac_build_alias=$build_alias
3033 test "x$ac_build_alias" = x &&
3034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3035 test "x$ac_build_alias" = x &&
3036 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3038 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3042 $as_echo "$ac_cv_build" >&6; }
3043 case $ac_cv_build in
3045 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3048 ac_save_IFS=$IFS; IFS='-'
3054 # Remember, the first character of IFS is used to create $*,
3055 # except with old shells:
3058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3062 $as_echo_n "checking host system type... " >&6; }
3063 if ${ac_cv_host+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 if test "x$host_alias" = x; then
3067 ac_cv_host=$ac_cv_build
3069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3070 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3075 $as_echo "$ac_cv_host" >&6; }
3078 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3081 ac_save_IFS=$IFS; IFS='-'
3087 # Remember, the first character of IFS is used to create $*,
3088 # except with old shells:
3091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3095 # create a config.h file (Automake will add -DHAVE_CONFIG_H)
3096 ac_config_headers="$ac_config_headers config.h"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3102 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3103 # Check whether --enable-maintainer-mode was given.
3104 if test "${enable_maintainer_mode+set}" = set; then :
3105 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3107 USE_MAINTAINER_MODE=no
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3111 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3112 if test $USE_MAINTAINER_MODE = yes; then
3113 MAINTAINER_MODE_TRUE=
3114 MAINTAINER_MODE_FALSE='#'
3116 MAINTAINER_MODE_TRUE='#'
3117 MAINTAINER_MODE_FALSE=
3120 MAINT=$MAINTAINER_MODE_TRUE
3124 # Checks for programs.
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_CC"; then
3171 # Extract the first word of "gcc", so it can be a program name with args.
3172 set dummy gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$ac_ct_CC"; then
3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_CC="gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201 $as_echo "$ac_ct_CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_CC" = x; then
3210 case $cross_compiling:$ac_tool_warned in
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="${ac_tool_prefix}cc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3263 if test -z "$CC"; then
3264 # Extract the first word of "cc", so it can be a program name with args.
3265 set dummy cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3283 ac_prog_rejected=yes
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test $ac_prog_rejected = yes; then
3295 # We found a bogon in the path, so make sure we never use it.
3296 set dummy $ac_cv_prog_CC
3298 if test $# != 0; then
3299 # We chose a different compiler from the bogus one.
3300 # However, it has the same basename, so the bogon will be chosen
3301 # first if we set CC to just the basename; use the full file name.
3303 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 for ac_prog in cl.exe
3323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_CC+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3360 test -n "$CC" && break
3363 if test -z "$CC"; then
3365 for ac_prog in cl.exe
3367 # Extract the first word of "$ac_prog", so it can be a program name with args.
3368 set dummy $ac_prog; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="$ac_prog"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3404 test -n "$ac_ct_CC" && break
3407 if test "x$ac_ct_CC" = x; then
3410 case $cross_compiling:$ac_tool_warned in
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3423 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "no acceptable C compiler found in \$PATH
3426 See \`config.log' for more details" "$LINENO" 5; }
3428 # Provide some information about the compiler.
3429 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3432 for ac_option in --version -v -V -qversion; do
3433 { { ac_try="$ac_compiler $ac_option >&5"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3442 if test -s conftest.err; then
3444 ... rest of stderr output deleted ...
3445 10q' conftest.err >conftest.er1
3446 cat conftest.er1 >&5
3448 rm -f conftest.er1 conftest.err
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 ac_clean_files_save=$ac_clean_files
3465 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3466 # Try to create an executable without -o first, disregard a.out.
3467 # It will help us diagnose broken compilers, and finding out an intuition
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3473 # The possible output files:
3474 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3477 for ac_file in $ac_files
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3486 if { { ac_try="$ac_link_default"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link_default") 2>&5
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3499 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3500 # so that the user can short-circuit this test for compilers unknown to
3502 for ac_file in $ac_files ''
3504 test -f "$ac_file" || continue
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3509 # We found the default executable, but exeext='' is most
3513 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3515 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517 # We set ac_cv_exeext here because the later test for it is not
3518 # safe: cross compilers may not add the suffix if given an `-o'
3519 # argument, so we may need to know it at that point already.
3520 # Even if this section looks crufty: it has the advantage of
3527 test "$ac_cv_exeext" = no && ac_cv_exeext=
3532 if test -z "$ac_file"; then :
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error 77 "C compiler cannot create executables
3541 See \`config.log' for more details" "$LINENO" 5; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 $as_echo "yes" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547 $as_echo_n "checking for C compiler default output file name... " >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549 $as_echo "$ac_file" >&6; }
3550 ac_exeext=$ac_cv_exeext
3552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555 $as_echo_n "checking for suffix of executables... " >&6; }
3556 if { { ac_try="$ac_link"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3569 # work properly (i.e., refer to `conftest.exe'), while it won't with
3571 for ac_file in conftest.exe conftest conftest.*; do
3572 test -f "$ac_file" || continue
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3584 See \`config.log' for more details" "$LINENO" 5; }
3586 rm -f conftest conftest$ac_cv_exeext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588 $as_echo "$ac_cv_exeext" >&6; }
3590 rm -f conftest.$ac_ext
3591 EXEEXT=$ac_cv_exeext
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3599 FILE *f = fopen ("conftest.out", "w");
3600 return ferror (f) || fclose (f) != 0;
3606 ac_clean_files="$ac_clean_files conftest.out"
3607 # Check that the compiler produces executables we can run. If not, either
3608 # the compiler is broken, or we cross compile.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3610 $as_echo_n "checking whether we are cross compiling... " >&6; }
3611 if test "$cross_compiling" != yes; then
3612 { { ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623 if { ac_try='./conftest$ac_cv_exeext'
3624 { { case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_try") 2>&5
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }; }; then
3636 if test "$cross_compiling" = maybe; then
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot run C compiled programs.
3642 If you meant to cross compile, use \`--host'.
3643 See \`config.log' for more details" "$LINENO" 5; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3648 $as_echo "$cross_compiling" >&6; }
3650 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3651 ac_clean_files=$ac_clean_files_save
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653 $as_echo_n "checking for suffix of object files... " >&6; }
3654 if ${ac_cv_objext+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 rm -f conftest.o conftest.obj
3669 if { { ac_try="$ac_compile"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compile") 2>&5
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }; then :
3680 for ac_file in conftest.o conftest.obj conftest.*; do
3681 test -f "$ac_file" || continue;
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details" "$LINENO" 5; }
3697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700 $as_echo "$ac_cv_objext" >&6; }
3701 OBJEXT=$ac_cv_objext
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705 if ${ac_cv_c_compiler_gnu+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if ${ac_cv_prog_cc_g+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 ac_save_c_werror_flag=$ac_c_werror_flag
3746 ac_c_werror_flag=yes
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_c_try_compile "$LINENO"; then :
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 if ac_fn_c_try_compile "$LINENO"; then :
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802 $as_echo "$ac_cv_prog_cc_g" >&6; }
3803 if test "$ac_test_CFLAGS" = set; then
3804 CFLAGS=$ac_save_CFLAGS
3805 elif test $ac_cv_prog_cc_g = yes; then
3806 if test "$GCC" = yes; then
3812 if test "$GCC" = yes; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820 if ${ac_cv_prog_cc_c89+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 ac_cv_prog_cc_c89=no
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3844 s = g (p, va_arg (v,int));
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3850 function prototypes and stuff, but not '\xHH' hex character constants.
3851 These don't provoke an error unfortunately, instead are silently treated
3852 as 'x'. The following induces an error, until -std is added to get
3853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3854 array size at least. It's necessary to write '\x00'==0 to get something
3855 that's true only with -std. */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859 inside strings and character constants. */
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c89=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887 rm -f conftest.$ac_ext
3892 case "x$ac_cv_prog_cc_c89" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c89"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3920 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3921 if ${am_cv_prog_cc_c_o+:} false; then :
3922 $as_echo_n "(cached) " >&6
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 # Make sure it works both with $CC and with simple cc.
3936 # Following AC_PROG_CC_C_O, we do the test twice because some
3937 # compilers refuse to overwrite an existing .o file with -o,
3938 # though they will create one.
3939 am_cv_prog_cc_c_o=yes
3941 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3942 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } \
3946 && test -f conftest2.$ac_objext; then
3949 am_cv_prog_cc_c_o=no
3953 rm -f core conftest*
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3957 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3958 if test "$am_cv_prog_cc_c_o" != yes; then
3959 # Losing compiler, so override with the script.
3960 # FIXME: It is wrong to rewrite CC.
3961 # But if we don't then we get into trouble of one sort or another.
3962 # A longer-term fix would be to have automake use am__CC in this case,
3963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3964 CC="$am_aux_dir/compile $CC"
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 DEPDIR="${am__leading_dot}deps"
3974 ac_config_commands="$ac_config_commands depfiles"
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3977 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3978 cat > confinc.mk << 'END'
3980 @echo this is the am__doit target >confinc.out
3985 # BSD make does it like this.
3986 echo '.include "confinc.mk" # ignored' > confmf.BSD
3987 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3988 echo 'include confinc.mk # ignored' > confmf.GNU
3990 for s in GNU BSD; do
3991 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3992 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 case $?:`cat confinc.out 2>/dev/null` in #(
3997 '0:this is the am__doit target') :
4000 am__include='.include' am__quote='"' ;; #(
4002 am__include='include' am__quote='' ;;
4007 if test "$am__include" != "#"; then
4008 _am_result="yes ($s style)"
4012 rm -f confinc.* confmf.*
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4014 $as_echo "${_am_result}" >&6; }
4016 # Check whether --enable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then :
4018 enableval=$enable_dependency_tracking;
4021 if test "x$enable_dependency_tracking" != xno; then
4022 am_depcomp="$ac_aux_dir/depcomp"
4026 if test "x$enable_dependency_tracking" != xno; then
4036 depcc="$CC" am_compiler_list=
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4039 $as_echo_n "checking dependency style of $depcc... " >&6; }
4040 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4044 # We make a subdir and do the tests there. Otherwise we can end up
4045 # making bogus files that we don't know about and never remove. For
4046 # instance it was reported that on HP-UX the gcc test will end up
4047 # making a dummy file named 'D' -- because '-MD' means "put the output
4051 # Copy depcomp to subdir because otherwise we won't find it if we're
4052 # using a relative directory.
4053 cp "$am_depcomp" conftest.dir
4055 # We will build objects and dependencies in a subdirectory because
4056 # it helps to detect inapplicable dependency modes. For instance
4057 # both Tru64's cc and ICC support -MD to output dependencies as a
4058 # side effect of compilation, but ICC will put the dependencies in
4059 # the current directory while Tru64 will put them in the object
4063 am_cv_CC_dependencies_compiler_type=none
4064 if test "$am_compiler_list" = ""; then
4065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 case " $depcc " in #(
4069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072 for depmode in $am_compiler_list; do
4073 # Setup a source with many dependencies, because some compilers
4074 # like to wrap large dependency lists on column 80 (with \), and
4075 # we should not choose a depcomp mode which is confused by this.
4077 # We need to recreate these files for each test, as the compiler may
4078 # overwrite some of them when testing with obscure command lines.
4079 # This happens at least with the AIX C compiler.
4081 for i in 1 2 3 4 5 6; do
4082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4084 # Solaris 10 /bin/sh.
4085 echo '/* dummy */' > sub/conftst$i.h
4087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4090 # mode. It turns out that the SunPro C++ compiler does not properly
4091 # handle '-M -o', and we need to detect this. Also, some Intel
4092 # versions had trouble with output in subdirs.
4093 am__obj=sub/conftest.${OBJEXT-o}
4094 am__minus_obj="-o $am__obj"
4097 # This depmode causes a compiler race in universal mode.
4098 test "$am__universal" = false || continue
4101 # After this tag, mechanisms are not by side-effect, so they'll
4102 # only be used when explicitly requested.
4103 if test "x$enable_dependency_tracking" = xyes; then
4109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4110 # This compiler won't grok '-c -o', but also, the minuso test has
4111 # not run yet. These depmodes are late enough in the game, and
4112 # so weak that their functioning should not be impacted.
4113 am__obj=conftest.${OBJEXT-o}
4118 if depmode=$depmode \
4119 source=sub/conftest.c object=$am__obj \
4120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122 >/dev/null 2>conftest.err &&
4123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127 # icc doesn't choke on unknown options, it will just issue warnings
4128 # or remarks (even with -Werror). So we grep stderr for any message
4129 # that says an option was ignored or not supported.
4130 # When given -MP, icc 7.0 and 7.1 complain thusly:
4131 # icc: Command line warning: ignoring option '-M'; no argument required
4132 # The diagnosis changed in icc 8.0:
4133 # icc: Command line remark: option '-MP' not supported
4134 if (grep 'ignoring option' conftest.err ||
4135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136 am_cv_CC_dependencies_compiler_type=$depmode
4145 am_cv_CC_dependencies_compiler_type=none
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154 test "x$enable_dependency_tracking" != xno \
4155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4157 am__fastdepCC_FALSE='#'
4159 am__fastdepCC_TRUE='#'
4160 am__fastdepCC_FALSE=
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4176 if test -z "$CPP"; then
4177 if ${ac_cv_prog_CPP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4180 # Double quotes because CPP needs to be expanded
4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4195 # include <limits.h>
4197 # include <assert.h>
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4204 # Broken: fails on valid input.
4207 rm -f conftest.err conftest.i conftest.$ac_ext
4209 # OK, works on sane cases. Now check whether nonexistent headers
4210 # can be detected and how.
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <ac_nonexistent.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216 # Broken: success on invalid input.
4219 # Passes both tests.
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.i conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241 $as_echo "$CPP" >&6; }
4243 for ac_c_preproc_warn_flag in '' yes
4245 # Use a header file that comes with gcc, so configuring glibc
4246 # with a fresh cross-compiler works.
4247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248 # <limits.h> exists even on freestanding compilers.
4249 # On the NeXT, cc -E runs the code through the compiler's parser,
4250 # not just through cpp. "Syntax error" is here to catch this case.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4263 # Broken: fails on valid input.
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4268 # OK, works on sane cases. Now check whether nonexistent headers
4269 # can be detected and how.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275 # Broken: success on invalid input.
4278 # Passes both tests.
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.i conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then :
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details" "$LINENO" 5; }
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4304 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4306 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4307 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 cat >conftest.make <<\_ACEOF
4313 @echo '@@@%%%=$(MAKE)=@@@%%%'
4315 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4316 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4318 eval ac_cv_prog_make_${ac_make}_set=yes;;
4320 eval ac_cv_prog_make_${ac_make}_set=no;;
4324 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 $as_echo "yes" >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331 SET_MAKE="MAKE=${MAKE-make}"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4335 $as_echo_n "checking whether ln -s works... " >&6; }
4337 if test "$LN_S" = "ln -s"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4342 $as_echo "no, using $LN_S" >&6; }
4346 for ac_prog in flex lex
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_LEX+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test -n "$LEX"; then
4356 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_LEX="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 if test -n "$LEX"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4378 $as_echo "$LEX" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$LEX" && break
4387 test -n "$LEX" || LEX=":"
4389 if test "x$LEX" != "x:"; then
4390 cat >conftest.l <<_ACEOF
4396 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4397 yyless ((input () != 0)); }
4398 f { unput (yytext[0]); }
4399 . { BEGIN INITIAL; }
4401 #ifdef YYTEXT_POINTER
4402 extern char *yytext;
4407 return ! yylex () + ! yywrap ();
4410 { { ac_try="$LEX conftest.l"
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$LEX conftest.l") 2>&5
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4422 $as_echo_n "checking lex output file root... " >&6; }
4423 if ${ac_cv_prog_lex_root+:} false; then :
4424 $as_echo_n "(cached) " >&6
4427 if test -f lex.yy.c; then
4428 ac_cv_prog_lex_root=lex.yy
4429 elif test -f lexyy.c; then
4430 ac_cv_prog_lex_root=lexyy
4432 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4436 $as_echo "$ac_cv_prog_lex_root" >&6; }
4437 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4439 if test -z "${LEXLIB+set}"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4441 $as_echo_n "checking lex library... " >&6; }
4442 if ${ac_cv_lib_lex+:} false; then :
4443 $as_echo_n "(cached) " >&6
4447 ac_cv_lib_lex='none needed'
4448 for ac_lib in '' -lfl -ll; do
4449 LIBS="$ac_lib $ac_save_LIBS"
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 `cat $LEX_OUTPUT_ROOT.c`
4454 if ac_fn_c_try_link "$LINENO"; then :
4455 ac_cv_lib_lex=$ac_lib
4457 rm -f core conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext
4459 test "$ac_cv_lib_lex" != 'none needed' && break
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4465 $as_echo "$ac_cv_lib_lex" >&6; }
4466 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4471 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4472 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 # POSIX says lex can declare yytext either as a pointer or an array; the
4476 # default is implementation-dependent. Figure out which it is, since
4477 # not all implementations provide the %pointer and %array declarations.
4478 ac_cv_prog_lex_yytext_pointer=no
4480 LIBS="$LEXLIB $ac_save_LIBS"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4484 #define YYTEXT_POINTER 1
4485 `cat $LEX_OUTPUT_ROOT.c`
4487 if ac_fn_c_try_link "$LINENO"; then :
4488 ac_cv_prog_lex_yytext_pointer=yes
4490 rm -f core conftest.err conftest.$ac_objext \
4491 conftest$ac_exeext conftest.$ac_ext
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4496 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4497 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4499 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4502 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4505 if test "$LEX" = :; then
4506 LEX=${am_missing_run}flex
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in ar lib "link -lib"
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_AR+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$AR"; then
4519 ac_cv_prog_AR="$AR" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 if test -n "$AR"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4541 $as_echo "$AR" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$AR" && break
4551 if test -z "$AR"; then
4553 for ac_prog in ar lib "link -lib"
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$ac_ct_AR"; then
4563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_ac_ct_AR="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4583 if test -n "$ac_ct_AR"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4585 $as_echo "$ac_ct_AR" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$ac_ct_AR" && break
4595 if test "x$ac_ct_AR" = x; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4611 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4612 if ${am_cv_ar_interface+:} false; then :
4613 $as_echo_n "(cached) " >&6
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 am_cv_ar_interface=ar
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 int some_variable = 0;
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4629 (eval $am_ar_try) 2>&5
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if test "$ac_status" -eq 0; then
4634 am_cv_ar_interface=ar
4636 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4638 (eval $am_ar_try) 2>&5
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }
4642 if test "$ac_status" -eq 0; then
4643 am_cv_ar_interface=lib
4645 am_cv_ar_interface=unknown
4648 rm -f conftest.lib libconftest.a
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4660 $as_echo "$am_cv_ar_interface" >&6; }
4662 case $am_cv_ar_interface in
4666 # Microsoft lib, so override with the ar-lib wrapper script.
4667 # FIXME: It is wrong to rewrite AR.
4668 # But if we don't then we get into trouble of one sort or another.
4669 # A longer-term fix would be to have automake use am__AR in this case,
4670 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4672 AR="$am_aux_dir/ar-lib $AR"
4675 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4686 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4693 $as_echo_n "(cached) " >&6
4697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4719 if test -n "$PKG_CONFIG"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4721 $as_echo "$PKG_CONFIG" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_path_PKG_CONFIG"; then
4730 ac_pt_PKG_CONFIG=$PKG_CONFIG
4731 # Extract the first word of "pkg-config", so it can be a program name with args.
4732 set dummy pkg-config; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 case $ac_pt_PKG_CONFIG in
4740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4762 if test -n "$ac_pt_PKG_CONFIG"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4764 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4770 if test "x$ac_pt_PKG_CONFIG" = x; then
4773 case $cross_compiling:$ac_tool_warned in
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4779 PKG_CONFIG=$ac_pt_PKG_CONFIG
4782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4786 if test -n "$PKG_CONFIG"; then
4787 _pkg_min_version=0.9.0
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4789 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4792 $as_echo "yes" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4800 # check pcsc-lite version
4801 PCSC_NEEDED_VERSION="1.8.3"
4802 if test -n "$PKG_CONFIG" && \
4803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
4804 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcsclite >= $PCSC_NEEDED_VERSION" >&5
4811 $as_echo_n "checking for libpcsclite >= $PCSC_NEEDED_VERSION... " >&6; }
4813 if test -n "$PCSC_CFLAGS"; then
4814 pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS"
4815 elif test -n "$PKG_CONFIG"; then
4816 if test -n "$PKG_CONFIG" && \
4817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5
4818 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5
4820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }; then
4822 pkg_cv_PCSC_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null`
4823 test "x$?" != "x0" && pkg_failed=yes
4830 if test -n "$PCSC_LIBS"; then
4831 pkg_cv_PCSC_LIBS="$PCSC_LIBS"
4832 elif test -n "$PKG_CONFIG"; then
4833 if test -n "$PKG_CONFIG" && \
4834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5
4835 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5
4837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838 test $ac_status = 0; }; then
4839 pkg_cv_PCSC_LIBS=`$PKG_CONFIG --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null`
4840 test "x$?" != "x0" && pkg_failed=yes
4850 if test $pkg_failed = yes; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4855 _pkg_short_errors_supported=yes
4857 _pkg_short_errors_supported=no
4859 if test $_pkg_short_errors_supported = yes; then
4860 PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1`
4862 PCSC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1`
4864 # Put the nasty error message in config.log where it belongs
4865 echo "$PCSC_PKG_ERRORS" >&5
4868 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
4869 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5
4872 $as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;}
4875 elif test $pkg_failed = untried; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4879 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
4880 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5
4883 $as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;}
4887 PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS
4888 PCSC_LIBS=$pkg_cv_PCSC_LIBS
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpcsclite not found by pkg-config" >&5
4895 $as_echo "$as_me: WARNING: libpcsclite not found by pkg-config" >&2;}
4899 saved_CPPFLAGS="$CPPFLAGS"
4900 CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS"
4901 PCSC_ERROR_MSG="install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..."
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4904 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4905 if ${ac_cv_path_GREP+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -z "$GREP"; then
4909 ac_path_GREP_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in grep ggrep; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_GREP" || continue
4920 # Check for GNU ac_path_GREP and select it if it is found.
4921 # Check for GNU $ac_path_GREP
4922 case `"$ac_path_GREP" --version 2>&1` in
4924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4927 $as_echo_n 0123456789 >"conftest.in"
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo 'GREP' >> "conftest.nl"
4934 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_GREP="$ac_path_GREP"
4940 ac_path_GREP_max=$ac_count
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 $ac_path_GREP_found && break 3
4953 if test -z "$ac_cv_path_GREP"; then
4954 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 ac_cv_path_GREP=$GREP
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4962 $as_echo "$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4967 $as_echo_n "checking for egrep... " >&6; }
4968 if ${ac_cv_path_EGREP+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4974 if test -z "$EGREP"; then
4975 ac_path_EGREP_found=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 test -z "$as_dir" && as_dir=.
4982 for ac_prog in egrep; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4985 as_fn_executable_p "$ac_path_EGREP" || continue
4986 # Check for GNU ac_path_EGREP and select it if it is found.
4987 # Check for GNU $ac_path_EGREP
4988 case `"$ac_path_EGREP" --version 2>&1` in
4990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4993 $as_echo_n 0123456789 >"conftest.in"
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'EGREP' >> "conftest.nl"
5000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 as_fn_arith $ac_count + 1 && ac_count=$as_val
5003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_EGREP="$ac_path_EGREP"
5006 ac_path_EGREP_max=$ac_count
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 $ac_path_EGREP_found && break 3
5019 if test -z "$ac_cv_path_EGREP"; then
5020 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023 ac_cv_path_EGREP=$EGREP
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5029 $as_echo "$ac_cv_path_EGREP" >&6; }
5030 EGREP="$ac_cv_path_EGREP"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5034 $as_echo_n "checking for ANSI C header files... " >&6; }
5035 if ${ac_cv_header_stdc+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054 ac_cv_header_stdc=yes
5056 ac_cv_header_stdc=no
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 if test $ac_cv_header_stdc = yes; then
5061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068 $EGREP "memchr" >/dev/null 2>&1; then :
5071 ac_cv_header_stdc=no
5077 if test $ac_cv_header_stdc = yes; then
5078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "free" >/dev/null 2>&1; then :
5088 ac_cv_header_stdc=no
5094 if test $ac_cv_header_stdc = yes; then
5095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096 if test "$cross_compiling" = yes; then :
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5107 # define ISLOWER(c) \
5108 (('a' <= (c) && (c) <= 'i') \
5109 || ('j' <= (c) && (c) <= 'r') \
5110 || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5119 for (i = 0; i < 256; i++)
5120 if (XOR (islower (i), ISLOWER (i))
5121 || toupper (i) != TOUPPER (i))
5126 if ac_fn_c_try_run "$LINENO"; then :
5129 ac_cv_header_stdc=no
5131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5132 conftest.$ac_objext conftest.beam conftest.$ac_ext
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5138 $as_echo "$ac_cv_header_stdc" >&6; }
5139 if test $ac_cv_header_stdc = yes; then
5141 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5145 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5146 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5147 inttypes.h stdint.h unistd.h
5149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5153 cat >>confdefs.h <<_ACEOF
5154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5162 ac_fn_c_check_header_mongrel "$LINENO" "ifdhandler.h" "ac_cv_header_ifdhandler_h" "$ac_includes_default"
5163 if test "x$ac_cv_header_ifdhandler_h" = xyes; then :
5166 as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5
5170 ac_fn_c_check_header_mongrel "$LINENO" "reader.h" "ac_cv_header_reader_h" "$ac_includes_default"
5171 if test "x$ac_cv_header_reader_h" = xyes; then :
5174 as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5
5178 CPPFLAGS="$saved_CPPFLAGS"
5180 # Add libtool support.
5181 # Static lib is disabled by default. Use --enable-static if needed
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5185 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5190 macro_version='2.4.6'
5191 macro_revision='2.4.6'
5205 ltmain=$ac_aux_dir/ltmain.sh
5207 # Backslashify metacharacters that are still active within
5208 # double-quoted strings.
5209 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5211 # Same as above, but do not quote variable references.
5212 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5214 # Sed substitution to delay expansion of an escaped shell variable in a
5215 # double_quote_subst'ed string.
5216 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5218 # Sed substitution to delay expansion of an escaped single quote.
5219 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5221 # Sed substitution to avoid accidental globbing in evaled expressions
5222 no_glob_subst='s/\*/\\\*/g'
5224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5229 $as_echo_n "checking how to print strings... " >&6; }
5230 # Test print first, because it will be a builtin if present.
5231 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5232 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5234 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5237 # Use this function as a fallback that always works.
5238 func_fallback_echo ()
5240 eval 'cat <<_LTECHO_EOF
5244 ECHO='func_fallback_echo'
5247 # func_echo_all arg...
5248 # Invoke $ECHO with all args, space-separated.
5255 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5256 $as_echo "printf" >&6; } ;;
5257 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5258 $as_echo "print -r" >&6; } ;;
5259 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5260 $as_echo "cat" >&6; } ;;
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278 if ${ac_cv_path_SED+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282 for ac_i in 1 2 3 4 5 6 7; do
5283 ac_script="$ac_script$as_nl$ac_script"
5285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286 { ac_script=; unset ac_script;}
5287 if test -z "$SED"; then
5288 ac_path_SED_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in sed gsed; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298 as_fn_executable_p "$ac_path_SED" || continue
5299 # Check for GNU ac_path_SED and select it if it is found.
5300 # Check for GNU $ac_path_SED
5301 case `"$ac_path_SED" --version 2>&1` in
5303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5306 $as_echo_n 0123456789 >"conftest.in"
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo '' >> "conftest.nl"
5313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_SED_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_SED="$ac_path_SED"
5319 ac_path_SED_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327 $ac_path_SED_found && break 3
5332 if test -z "$ac_cv_path_SED"; then
5333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341 $as_echo "$ac_cv_path_SED" >&6; }
5342 SED="$ac_cv_path_SED"
5345 test -z "$SED" && SED=sed
5346 Xsed="$SED -e 1s/^X//"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359 $as_echo_n "checking for fgrep... " >&6; }
5360 if ${ac_cv_path_FGREP+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364 then ac_cv_path_FGREP="$GREP -F"
5366 if test -z "$FGREP"; then
5367 ac_path_FGREP_found=false
5368 # Loop through the user's path and test for each of PROGNAME-LIST
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5373 test -z "$as_dir" && as_dir=.
5374 for ac_prog in fgrep; do
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377 as_fn_executable_p "$ac_path_FGREP" || continue
5378 # Check for GNU ac_path_FGREP and select it if it is found.
5379 # Check for GNU $ac_path_FGREP
5380 case `"$ac_path_FGREP" --version 2>&1` in
5382 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5385 $as_echo_n 0123456789 >"conftest.in"
5388 cat "conftest.in" "conftest.in" >"conftest.tmp"
5389 mv "conftest.tmp" "conftest.in"
5390 cp "conftest.in" "conftest.nl"
5391 $as_echo 'FGREP' >> "conftest.nl"
5392 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394 as_fn_arith $ac_count + 1 && ac_count=$as_val
5395 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396 # Best one so far, save it but keep looking for a better one
5397 ac_cv_path_FGREP="$ac_path_FGREP"
5398 ac_path_FGREP_max=$ac_count
5400 # 10*(2^10) chars as input seems more than enough
5401 test $ac_count -gt 10 && break
5403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 $ac_path_FGREP_found && break 3
5411 if test -z "$ac_cv_path_FGREP"; then
5412 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5415 ac_cv_path_FGREP=$FGREP
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421 $as_echo "$ac_cv_path_FGREP" >&6; }
5422 FGREP="$ac_cv_path_FGREP"
5425 test -z "$GREP" && GREP=grep
5445 # Check whether --with-gnu-ld was given.
5446 if test "${with_gnu_ld+set}" = set; then :
5447 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5453 if test yes = "$GCC"; then
5454 # Check if gcc -print-prog-name=ld gives a path.
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456 $as_echo_n "checking for ld used by $CC... " >&6; }
5459 # gcc leaves a trailing carriage return, which upsets mingw
5460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5465 # Accept absolute paths.
5467 re_direlt='/[^/][^/]*/\.\./'
5468 # Canonicalize the pathname of ld
5469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5473 test -z "$LD" && LD=$ac_prog
5476 # If it fails, then pretend we aren't using GCC.
5480 # If it is relative, then search for the first ld in PATH.
5484 elif test yes = "$with_gnu_ld"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486 $as_echo_n "checking for GNU ld... " >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489 $as_echo_n "checking for non-GNU ld... " >&6; }
5491 if ${lt_cv_path_LD+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -z "$LD"; then
5495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5496 for ac_dir in $PATH; do
5498 test -z "$ac_dir" && ac_dir=.
5499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500 lt_cv_path_LD=$ac_dir/$ac_prog
5501 # Check to see if the program is GNU ld. I'd rather use --version,
5502 # but apparently some variants of GNU ld only accept -v.
5503 # Break only if it was the GNU/non-GNU ld that we prefer.
5504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505 *GNU* | *'with BFD'*)
5506 test no != "$with_gnu_ld" && break
5509 test yes != "$with_gnu_ld" && break
5516 lt_cv_path_LD=$LD # Let the user override the test with a path.
5521 if test -n "$LD"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523 $as_echo "$LD" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531 if ${lt_cv_prog_gnu_ld+:} false; then :
5532 $as_echo_n "(cached) " >&6
5534 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535 case `$LD -v 2>&1 </dev/null` in
5536 *GNU* | *'with BFD'*)
5537 lt_cv_prog_gnu_ld=yes
5540 lt_cv_prog_gnu_ld=no
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546 with_gnu_ld=$lt_cv_prog_gnu_ld
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558 if ${lt_cv_path_NM+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -n "$NM"; then
5562 # Let the user override the test.
5565 lt_nm_to_check=${ac_tool_prefix}nm
5566 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567 lt_nm_to_check="$lt_nm_to_check nm"
5569 for lt_tmp_nm in $lt_nm_to_check; do
5570 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5571 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5573 test -z "$ac_dir" && ac_dir=.
5574 tmp_nm=$ac_dir/$lt_tmp_nm
5575 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5576 # Check to see if the nm accepts a BSD-compat flag.
5577 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5578 # nm: unknown option "B" ignored
5579 # Tru64's nm complains that /dev/null is an invalid object file
5580 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5582 mingw*) lt_bad_file=conftest.nm/nofile ;;
5583 *) lt_bad_file=/dev/null ;;
5585 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5586 *$lt_bad_file* | *'Invalid file or object type'*)
5587 lt_cv_path_NM="$tmp_nm -B"
5591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 lt_cv_path_NM="$tmp_nm -p"
5597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5598 continue # so that we can try to find one that supports BSD flags
5607 : ${lt_cv_path_NM=no}
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5611 $as_echo "$lt_cv_path_NM" >&6; }
5612 if test no != "$lt_cv_path_NM"; then
5615 # Didn't find any BSD compatible name lister, look for dumpbin.
5616 if test -n "$DUMPBIN"; then :
5617 # Let the user override the test.
5619 if test -n "$ac_tool_prefix"; then
5620 for ac_prog in dumpbin "link -dump"
5622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_DUMPBIN+:} false; then :
5627 $as_echo_n "(cached) " >&6
5629 if test -n "$DUMPBIN"; then
5630 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 DUMPBIN=$ac_cv_prog_DUMPBIN
5650 if test -n "$DUMPBIN"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5652 $as_echo "$DUMPBIN" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5659 test -n "$DUMPBIN" && break
5662 if test -z "$DUMPBIN"; then
5663 ac_ct_DUMPBIN=$DUMPBIN
5664 for ac_prog in dumpbin "link -dump"
5666 # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5671 $as_echo_n "(cached) " >&6
5673 if test -n "$ac_ct_DUMPBIN"; then
5674 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5694 if test -n "$ac_ct_DUMPBIN"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5696 $as_echo "$ac_ct_DUMPBIN" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5703 test -n "$ac_ct_DUMPBIN" && break
5706 if test "x$ac_ct_DUMPBIN" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5715 DUMPBIN=$ac_ct_DUMPBIN
5719 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5721 DUMPBIN="$DUMPBIN -symbols -headers"
5729 if test : != "$DUMPBIN"; then
5733 test -z "$NM" && NM=nm
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5741 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5742 if ${lt_cv_nm_interface+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 lt_cv_nm_interface="BSD nm"
5746 echo "int some_variable = 0;" > conftest.$ac_ext
5747 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5748 (eval "$ac_compile" 2>conftest.err)
5749 cat conftest.err >&5
5750 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5751 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5752 cat conftest.err >&5
5753 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5754 cat conftest.out >&5
5755 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5756 lt_cv_nm_interface="MS dumpbin"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5761 $as_echo "$lt_cv_nm_interface" >&6; }
5763 # find the maximum length of command line arguments
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5765 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5766 if ${lt_cv_sys_max_cmd_len+:} false; then :
5767 $as_echo_n "(cached) " >&6
5774 # On DJGPP, this test can blow up pretty badly due to problems in libc
5775 # (any single argument exceeding 2000 bytes causes a buffer overrun
5776 # during glob expansion). Even if it were fixed, the result of this
5777 # check would be larger than it should be.
5778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5782 # Under GNU Hurd, this test is not required because there is
5783 # no limit to the length of command line arguments.
5784 # Libtool will interpret -1 as no limit whatsoever
5785 lt_cv_sys_max_cmd_len=-1;
5788 cygwin* | mingw* | cegcc*)
5789 # On Win9x/ME, this test blows up -- it succeeds, but takes
5790 # about 5 minutes as the teststring grows exponentially.
5791 # Worse, since 9x/ME are not pre-emptively multitasking,
5792 # you end up with a "frozen" computer, even though with patience
5793 # the test eventually succeeds (with a max line length of 256k).
5794 # Instead, let's just punt: use the minimum linelength reported by
5795 # all of the supported platforms: 8192 (on NT/2K/XP).
5796 lt_cv_sys_max_cmd_len=8192;
5800 # On MiNT this can take a long time and run out of memory.
5801 lt_cv_sys_max_cmd_len=8192;
5805 # On AmigaOS with pdksh, this test takes hours, literally.
5806 # So we just punt and use a minimum line length of 8192.
5807 lt_cv_sys_max_cmd_len=8192;
5810 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5811 # This has been around since 386BSD, at least. Likely further.
5812 if test -x /sbin/sysctl; then
5813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5814 elif test -x /usr/sbin/sysctl; then
5815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5819 # And add a safety zone
5820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5826 lt_cv_sys_max_cmd_len=196608
5830 # The test takes a long time on OS/2.
5831 lt_cv_sys_max_cmd_len=8192
5835 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5836 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5837 # nice to cause kernel panics so lets avoid the loop below.
5838 # First set a reasonable default.
5839 lt_cv_sys_max_cmd_len=16384
5841 if test -x /sbin/sysconfig; then
5842 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5843 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5848 lt_cv_sys_max_cmd_len=102400
5850 sysv5* | sco5v6* | sysv4.2uw2*)
5851 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5852 if test -n "$kargmax"; then
5853 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5855 lt_cv_sys_max_cmd_len=32768
5859 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5860 if test -n "$lt_cv_sys_max_cmd_len" && \
5861 test undefined != "$lt_cv_sys_max_cmd_len"; then
5862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5865 # Make teststring a little bigger before we do anything with it.
5866 # a 1K string should be a reasonable start.
5867 for i in 1 2 3 4 5 6 7 8; do
5868 teststring=$teststring$teststring
5870 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5871 # If test is not a shell built-in, we'll probably end up computing a
5872 # maximum length that is only half of the actual maximum length, but
5874 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5875 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5876 test 17 != "$i" # 1/2 MB should be enough
5879 teststring=$teststring$teststring
5881 # Only check the string length outside the loop.
5882 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5884 # Add a significant safety factor because C++ compilers can tack on
5885 # massive amounts of additional arguments before passing them to the
5886 # linker. It appears as though 1/2 is a usable value.
5887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5894 if test -n "$lt_cv_sys_max_cmd_len"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5896 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5899 $as_echo "none" >&6; }
5901 max_cmd_len=$lt_cv_sys_max_cmd_len
5912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5922 # test EBCDIC or ASCII
5923 case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5944 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5945 if ${lt_cv_to_host_file_cmd+:} false; then :
5946 $as_echo_n "(cached) " >&6
5951 *-*-mingw* ) # actually msys
5952 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5955 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5957 * ) # otherwise, assume *nix
5958 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5964 *-*-mingw* ) # actually msys
5965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5968 lt_cv_to_host_file_cmd=func_convert_file_noop
5970 * ) # otherwise, assume *nix
5971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5975 * ) # unhandled hosts (and "normal" native builds)
5976 lt_cv_to_host_file_cmd=func_convert_file_noop
5982 to_host_file_cmd=$lt_cv_to_host_file_cmd
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5984 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5991 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5992 if ${lt_cv_to_tool_file_cmd+:} false; then :
5993 $as_echo_n "(cached) " >&6
5995 #assume ordinary cross tools, or native build.
5996 lt_cv_to_tool_file_cmd=func_convert_file_noop
6000 *-*-mingw* ) # actually msys
6001 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6009 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6011 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6018 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6019 if ${lt_cv_ld_reload_flag+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 lt_cv_ld_reload_flag='-r'
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6025 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6026 reload_flag=$lt_cv_ld_reload_flag
6027 case $reload_flag in
6029 *) reload_flag=" $reload_flag" ;;
6031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6033 cygwin* | mingw* | pw32* | cegcc*)
6034 if test yes != "$GCC"; then
6039 if test yes = "$GCC"; then
6040 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 if test -n "$ac_tool_prefix"; then
6056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6057 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_OBJDUMP+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$OBJDUMP"; then
6064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 OBJDUMP=$ac_cv_prog_OBJDUMP
6084 if test -n "$OBJDUMP"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6086 $as_echo "$OBJDUMP" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test -z "$ac_cv_prog_OBJDUMP"; then
6095 ac_ct_OBJDUMP=$OBJDUMP
6096 # Extract the first word of "objdump", so it can be a program name with args.
6097 set dummy objdump; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6126 $as_echo "$ac_ct_OBJDUMP" >&6; }
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6132 if test "x$ac_ct_OBJDUMP" = x; then
6135 case $cross_compiling:$ac_tool_warned in
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6141 OBJDUMP=$ac_ct_OBJDUMP
6144 OBJDUMP="$ac_cv_prog_OBJDUMP"
6147 test -z "$OBJDUMP" && OBJDUMP=objdump
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6158 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6159 if ${lt_cv_deplibs_check_method+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 lt_cv_file_magic_cmd='$MAGIC_CMD'
6163 lt_cv_file_magic_test_file=
6164 lt_cv_deplibs_check_method='unknown'
6165 # Need to set the preceding variable on all platforms that support
6166 # interlibrary dependencies.
6167 # 'none' -- dependencies not supported.
6168 # 'unknown' -- same as none, but documents that we really don't know.
6169 # 'pass_all' -- all dependencies passed with no checks.
6170 # 'test_compile' -- check by making test program.
6171 # 'file_magic [[regex]]' -- check by looking for files in library path
6172 # that responds to the $file_magic_cmd with a given extended regex.
6173 # If you have 'file' or equivalent on your system and you're not sure
6174 # whether 'pass_all' will *always* work, you probably want this one.
6178 lt_cv_deplibs_check_method=pass_all
6182 lt_cv_deplibs_check_method=pass_all
6186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6187 lt_cv_file_magic_cmd='/usr/bin/file -L'
6188 lt_cv_file_magic_test_file=/shlib/libc.so
6192 # func_win32_libid is a shell function defined in ltmain.sh
6193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6194 lt_cv_file_magic_cmd='func_win32_libid'
6198 # Base MSYS/MinGW do not provide the 'file' command needed by
6199 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6200 # unless we find 'file', for example because we are cross-compiling.
6201 if ( file / ) >/dev/null 2>&1; then
6202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6203 lt_cv_file_magic_cmd='func_win32_libid'
6205 # Keep this pattern in sync with the one in func_win32_libid.
6206 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6207 lt_cv_file_magic_cmd='$OBJDUMP -f'
6212 # use the weaker test based on 'objdump'. See mingw*.
6213 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6214 lt_cv_file_magic_cmd='$OBJDUMP -f'
6217 darwin* | rhapsody*)
6218 lt_cv_deplibs_check_method=pass_all
6221 freebsd* | dragonfly*)
6222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6225 # Not sure whether the presence of OpenBSD here was a mistake.
6226 # Let's accept both of them until this is cleared up.
6227 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6228 lt_cv_file_magic_cmd=/usr/bin/file
6229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6233 lt_cv_deplibs_check_method=pass_all
6238 lt_cv_deplibs_check_method=pass_all
6241 hpux10.20* | hpux11*)
6242 lt_cv_file_magic_cmd=/usr/bin/file
6245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6246 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6249 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]'
6250 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6254 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6260 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6264 irix5* | irix6* | nonstopux*)
6266 *-32|*"-32 ") libmagic=32-bit;;
6267 *-n32|*"-n32 ") libmagic=N32;;
6268 *-64|*"-64 ") libmagic=64-bit;;
6269 *) libmagic=never-match;;
6271 lt_cv_deplibs_check_method=pass_all
6274 # This must be glibc/ELF.
6275 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6276 lt_cv_deplibs_check_method=pass_all
6279 netbsd* | netbsdelf*-gnu)
6280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6289 lt_cv_file_magic_cmd=/usr/bin/file
6290 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6294 lt_cv_deplibs_check_method=pass_all
6298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6305 osf3* | osf4* | osf5*)
6306 lt_cv_deplibs_check_method=pass_all
6310 lt_cv_deplibs_check_method=pass_all
6314 lt_cv_deplibs_check_method=pass_all
6317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6318 lt_cv_deplibs_check_method=pass_all
6322 case $host_vendor in
6324 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]'
6325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6328 lt_cv_deplibs_check_method=pass_all
6331 lt_cv_file_magic_cmd='/bin/file'
6332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6335 lt_cv_file_magic_cmd='/bin/file'
6336 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6337 lt_cv_file_magic_test_file=/lib/libc.so
6340 lt_cv_deplibs_check_method=pass_all
6343 lt_cv_deplibs_check_method=pass_all
6349 lt_cv_deplibs_check_method=pass_all
6352 lt_cv_deplibs_check_method=pass_all
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6358 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6362 if test "$build" = "$host"; then
6365 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6368 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6374 file_magic_cmd=$lt_cv_file_magic_cmd
6375 deplibs_check_method=$lt_cv_deplibs_check_method
6376 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_DLLTOOL+:} false; then :
6405 $as_echo_n "(cached) " >&6
6407 if test -n "$DLLTOOL"; then
6408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 DLLTOOL=$ac_cv_prog_DLLTOOL
6428 if test -n "$DLLTOOL"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6430 $as_echo "$DLLTOOL" >&6; }
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_DLLTOOL"; then
6439 ac_ct_DLLTOOL=$DLLTOOL
6440 # Extract the first word of "dlltool", so it can be a program name with args.
6441 set dummy dlltool; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_DLLTOOL"; then
6448 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6468 if test -n "$ac_ct_DLLTOOL"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6470 $as_echo "$ac_ct_DLLTOOL" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_DLLTOOL" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6485 DLLTOOL=$ac_ct_DLLTOOL
6488 DLLTOOL="$ac_cv_prog_DLLTOOL"
6491 test -z "$DLLTOOL" && DLLTOOL=dlltool
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6503 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6504 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 lt_cv_sharedlib_from_linklib_cmd='unknown'
6510 cygwin* | mingw* | pw32* | cegcc*)
6511 # two different shell functions defined in ltmain.sh;
6512 # decide which one to use based on capabilities of $DLLTOOL
6513 case `$DLLTOOL --help 2>&1` in
6514 *--identify-strict*)
6515 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6518 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6523 # fallback: assume linklib IS sharedlib
6524 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6530 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6531 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6532 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6540 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_AR+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$AR"; then
6551 ac_cv_prog_AR="$AR" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 if test -n "$AR"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6573 $as_echo "$AR" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6580 test -n "$AR" && break
6583 if test -z "$AR"; then
6587 # Extract the first word of "$ac_prog", so it can be a program name with args.
6588 set dummy $ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 if test -n "$ac_ct_AR"; then
6595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_ac_ct_AR="$ac_prog"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6617 $as_echo "$ac_ct_AR" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6624 test -n "$ac_ct_AR" && break
6627 if test "x$ac_ct_AR" = x; then
6630 case $cross_compiling:$ac_tool_warned in
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6654 $as_echo_n "checking for archiver @FILE support... " >&6; }
6655 if ${lt_cv_ar_at_file+:} false; then :
6656 $as_echo_n "(cached) " >&6
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 echo conftest.$ac_objext > conftest.lst
6672 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6674 (eval $lt_ar_try) 2>&5
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }
6678 if test 0 -eq "$ac_status"; then
6679 # Ensure the archiver fails upon bogus file names.
6680 rm -f conftest.$ac_objext libconftest.a
6681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682 (eval $lt_ar_try) 2>&5
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }
6686 if test 0 -ne "$ac_status"; then
6690 rm -f conftest.* libconftest.a
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6697 $as_echo "$lt_cv_ar_at_file" >&6; }
6699 if test no = "$lt_cv_ar_at_file"; then
6702 archiver_list_spec=$lt_cv_ar_at_file
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}strip; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_STRIP+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$STRIP"; then
6720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6742 $as_echo "$STRIP" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6750 if test -z "$ac_cv_prog_STRIP"; then
6752 # Extract the first word of "strip", so it can be a program name with args.
6753 set dummy strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 if test -n "$ac_ct_STRIP"; then
6760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_STRIP="strip"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6780 if test -n "$ac_ct_STRIP"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6782 $as_echo "$ac_ct_STRIP" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6788 if test "x$ac_ct_STRIP" = x; then
6791 case $cross_compiling:$ac_tool_warned in
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6800 STRIP="$ac_cv_prog_STRIP"
6803 test -z "$STRIP" && STRIP=:
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_RANLIB+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 if test -n "$RANLIB"; then
6819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6841 $as_echo "$RANLIB" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6849 if test -z "$ac_cv_prog_RANLIB"; then
6850 ac_ct_RANLIB=$RANLIB
6851 # Extract the first word of "ranlib", so it can be a program name with args.
6852 set dummy ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 if test -n "$ac_ct_RANLIB"; then
6859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_RANLIB="ranlib"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6879 if test -n "$ac_ct_RANLIB"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6881 $as_echo "$ac_ct_RANLIB" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6887 if test "x$ac_ct_RANLIB" = x; then
6890 case $cross_compiling:$ac_tool_warned in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6896 RANLIB=$ac_ct_RANLIB
6899 RANLIB="$ac_cv_prog_RANLIB"
6902 test -z "$RANLIB" && RANLIB=:
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6914 if test -n "$RANLIB"; then
6917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6928 lock_old_archive_extraction=yes ;;
6930 lock_old_archive_extraction=no ;;
6971 # If no C compiler was specified, use CC.
6974 # If no C compiler flags were specified, use CFLAGS.
6975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6977 # Allow CC to be a program name with arguments.
6981 # Check for command to grab the raw symbol name followed by C symbol from nm.
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6984 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6985 $as_echo_n "(cached) " >&6
6988 # These are sane defaults that work on at least a few old systems.
6989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6991 # Character class describing NM global symbol codes.
6992 symcode='[BCDEGRST]'
6994 # Regexp to match symbols that can be accessed directly from C.
6995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6997 # Define system-specific variables.
7002 cygwin* | mingw* | pw32* | cegcc*)
7003 symcode='[ABCDGISTW]'
7006 if test ia64 = "$host_cpu"; then
7007 symcode='[ABCDEGRST]'
7011 symcode='[BCDEGRST]'
7014 symcode='[BCDEGQRST]'
7025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7033 # If we're using GNU nm, then use its standard symbol codes.
7034 case `$NM -V 2>&1` in
7035 *GNU* | *'with BFD'*)
7036 symcode='[ABCDGIRSTW]' ;;
7039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040 # Gets list of data symbols to import.
7041 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7042 # Adjust the below global symbol transforms to fixup imported variables.
7043 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7044 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7045 lt_c_name_lib_hook="\
7046 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7047 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7049 # Disable hooks by default.
7050 lt_cv_sys_global_symbol_to_import=
7056 # Transform an extracted symbol line into a proper C declaration.
7057 # Some systems (esp. on ia64) link data and code symbols differently,
7058 # so use this general approach.
7059 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7061 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7062 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7064 # Transform an extracted symbol line into symbol name and symbol address
7065 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7067 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7068 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7070 # Transform an extracted symbol line into symbol name with lib prefix and
7072 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7073 $lt_c_name_lib_hook\
7074 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7075 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7076 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7078 # Handle CRLF in mingw tool chain
7082 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7086 # Try without a prefix underscore, then with it.
7087 for ac_symprfx in "" "_"; do
7089 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7090 symxfrm="\\1 $ac_symprfx\\2 \\2"
7092 # Write the raw and C identifiers.
7093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7094 # Fake it for dumpbin and say T for any non-static function,
7095 # D for any global variable and I for any imported variable.
7096 # Also find C++ and __fastcall symbols from MSVC++,
7097 # which start with @ or ?.
7098 lt_cv_sys_global_symbol_pipe="$AWK '"\
7099 " {last_section=section; section=\$ 3};"\
7100 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7101 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7102 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7103 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7104 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7105 " \$ 0!~/External *\|/{next};"\
7106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7107 " {if(hide[section]) next};"\
7108 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7109 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7110 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7111 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7112 " ' prfx=^$ac_symprfx"
7114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7116 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7118 # Check to see that the pipe works correctly.
7122 cat > conftest.$ac_ext <<_LT_EOF
7127 void nm_test_func(void);
7128 void nm_test_func(void){}
7132 int main(){nm_test_var='a';nm_test_func();return(0);}
7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136 (eval $ac_compile) 2>&5
7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139 test $ac_status = 0; }; then
7140 # Now try to grab the symbols.
7142 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7143 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7144 # Try sorting and uniquifying the output.
7145 if sort "$nlist" | uniq > "$nlist"T; then
7146 mv -f "$nlist"T "$nlist"
7151 # Make sure that we snagged all the symbols we need.
7152 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7153 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7154 cat <<_LT_EOF > conftest.$ac_ext
7155 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7156 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7157 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7158 relocations are performed -- see ld's documentation on pseudo-relocs. */
7159 # define LT_DLSYM_CONST
7160 #elif defined __osf__
7161 /* This system does not cope well with relocations in const data. */
7162 # define LT_DLSYM_CONST
7164 # define LT_DLSYM_CONST const
7172 # Now generate the symbol file.
7173 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7175 cat <<_LT_EOF >> conftest.$ac_ext
7177 /* The mapping between symbol names and symbols. */
7178 LT_DLSYM_CONST struct {
7182 lt__PROGRAM__LTX_preloaded_symbols[] =
7184 { "@PROGRAM@", (void *) 0 },
7186 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7187 cat <<\_LT_EOF >> conftest.$ac_ext
7191 /* This works around a problem in FreeBSD linker */
7192 #ifdef FREEBSD_WORKAROUND
7193 static const void *lt_preloaded_setup() {
7194 return lt__PROGRAM__LTX_preloaded_symbols;
7202 # Now try linking the two files.
7203 mv conftest.$ac_objext conftstm.$ac_objext
7204 lt_globsym_save_LIBS=$LIBS
7205 lt_globsym_save_CFLAGS=$CFLAGS
7206 LIBS=conftstm.$ac_objext
7207 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7209 (eval $ac_link) 2>&5
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7215 LIBS=$lt_globsym_save_LIBS
7216 CFLAGS=$lt_globsym_save_CFLAGS
7218 echo "cannot find nm_test_func in $nlist" >&5
7221 echo "cannot find nm_test_var in $nlist" >&5
7224 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7227 echo "$progname: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7230 rm -rf conftest* conftst*
7232 # Do not use the global_symbol_pipe unless it works.
7233 if test yes = "$pipe_works"; then
7236 lt_cv_sys_global_symbol_pipe=
7242 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7243 lt_cv_sys_global_symbol_to_cdecl=
7245 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7247 $as_echo "failed" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7250 $as_echo "ok" >&6; }
7253 # Response file support.
7254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7255 nm_file_list_spec='@'
7256 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7257 nm_file_list_spec='@'
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7297 $as_echo_n "checking for sysroot... " >&6; }
7299 # Check whether --with-sysroot was given.
7300 if test "${with_sysroot+set}" = set; then :
7301 withval=$with_sysroot;
7308 case $with_sysroot in #(
7310 if test yes = "$GCC"; then
7311 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7315 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7321 $as_echo "$with_sysroot" >&6; }
7322 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7327 $as_echo "${lt_sysroot:-no}" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7334 $as_echo_n "checking for a working dd... " >&6; }
7335 if ${ac_cv_path_lt_DD+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 printf 0123456789abcdef0123456789abcdef >conftest.i
7339 cat conftest.i conftest.i >conftest2.i
7341 if test -z "$lt_DD"; then
7342 ac_path_lt_DD_found=false
7343 # Loop through the user's path and test for each of PROGNAME-LIST
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_prog in dd; do
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7352 as_fn_executable_p "$ac_path_lt_DD" || continue
7353 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7354 cmp -s conftest.i conftest.out \
7355 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7357 $ac_path_lt_DD_found && break 3
7362 if test -z "$ac_cv_path_lt_DD"; then
7366 ac_cv_path_lt_DD=$lt_DD
7369 rm -f conftest.i conftest2.i conftest.out
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7372 $as_echo "$ac_cv_path_lt_DD" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7376 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7377 if ${lt_cv_truncate_bin+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 printf 0123456789abcdef0123456789abcdef >conftest.i
7381 cat conftest.i conftest.i >conftest2.i
7383 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7384 cmp -s conftest.i conftest.out \
7385 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7387 rm -f conftest.i conftest2.i conftest.out
7388 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7391 $as_echo "$lt_cv_truncate_bin" >&6; }
7399 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7402 for cc_temp in $*""; do
7404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7410 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7413 # Check whether --enable-libtool-lock was given.
7414 if test "${enable_libtool_lock+set}" = set; then :
7415 enableval=$enable_libtool_lock;
7418 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7420 # Some flags need to be propagated to the compiler or linker for good
7424 # Find out what ABI is being produced by ac_compile, and set mode
7425 # options accordingly.
7426 echo 'int i;' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 case `/usr/bin/file conftest.$ac_objext` in
7444 # Find out what ABI is being produced by ac_compile, and set linker
7445 # options accordingly.
7446 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7448 (eval $ac_compile) 2>&5
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; }; then
7452 if test yes = "$lt_cv_prog_gnu_ld"; then
7453 case `/usr/bin/file conftest.$ac_objext` in
7455 LD="${LD-ld} -melf32bsmip"
7458 LD="${LD-ld} -melf32bmipn32"
7461 LD="${LD-ld} -melf64bmip"
7465 case `/usr/bin/file conftest.$ac_objext` in
7482 # Find out what ABI is being produced by ac_compile, and set linker
7483 # options accordingly.
7484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7486 (eval $ac_compile) 2>&5
7488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; }; then
7491 case `/usr/bin/file conftest.$ac_objext` in
7499 case `/usr/bin/file conftest.$ac_objext` in
7501 emul="${emul}btsmip"
7504 emul="${emul}ltsmip"
7507 case `/usr/bin/file conftest.$ac_objext` in
7512 LD="${LD-ld} -m $emul"
7517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7518 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7519 # Find out what ABI is being produced by ac_compile, and set linker
7520 # options accordingly. Note that the listed cases only cover the
7521 # situations where additional linker options are needed (such as when
7522 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7523 # vice versa); the common cases where no linker options are needed do
7524 # not appear in the list.
7525 echo 'int i;' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 case `/usr/bin/file conftest.o` in
7534 x86_64-*kfreebsd*-gnu)
7535 LD="${LD-ld} -m elf_i386_fbsd"
7538 case `/usr/bin/file conftest.o` in
7540 LD="${LD-ld} -m elf32_x86_64"
7543 LD="${LD-ld} -m elf_i386"
7547 powerpc64le-*linux*)
7548 LD="${LD-ld} -m elf32lppclinux"
7551 LD="${LD-ld} -m elf32ppclinux"
7554 LD="${LD-ld} -m elf_s390"
7557 LD="${LD-ld} -m elf32_sparc"
7563 x86_64-*kfreebsd*-gnu)
7564 LD="${LD-ld} -m elf_x86_64_fbsd"
7567 LD="${LD-ld} -m elf_x86_64"
7570 LD="${LD-ld} -m elf64lppc"
7573 LD="${LD-ld} -m elf64ppc"
7575 s390*-*linux*|s390*-*tpf*)
7576 LD="${LD-ld} -m elf64_s390"
7579 LD="${LD-ld} -m elf64_sparc"
7589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 CFLAGS="$CFLAGS -belf"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7593 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7594 if ${lt_cv_cc_needs_belf+:} false; then :
7595 $as_echo_n "(cached) " >&6
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 lt_cv_cc_needs_belf=yes
7617 lt_cv_cc_needs_belf=no
7619 rm -f core conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7630 if test yes != "$lt_cv_cc_needs_belf"; then
7631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7636 # Find out what ABI is being produced by ac_compile, and set linker
7637 # options accordingly.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7646 case $lt_cv_prog_gnu_ld in
7649 i?86-*-solaris*|x86_64-*-solaris*)
7650 LD="${LD-ld} -m elf_x86_64"
7653 LD="${LD-ld} -m elf64_sparc"
7656 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7657 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7674 need_locks=$enable_libtool_lock
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}mt; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$MANIFEST_TOOL"; then
7685 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7705 if test -n "$MANIFEST_TOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7707 $as_echo "$MANIFEST_TOOL" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7715 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7716 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7717 # Extract the first word of "mt", so it can be a program name with args.
7718 set dummy mt; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$ac_ct_MANIFEST_TOOL"; then
7725 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7745 if test -n "$ac_ct_MANIFEST_TOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7747 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7753 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7756 case $cross_compiling:$ac_tool_warned in
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7762 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7765 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7768 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7770 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7771 if ${lt_cv_path_mainfest_tool+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 lt_cv_path_mainfest_tool=no
7775 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7776 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7777 cat conftest.err >&5
7778 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7779 lt_cv_path_mainfest_tool=yes
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7784 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7785 if test yes != "$lt_cv_path_mainfest_tool"; then
7795 rhapsody* | darwin*)
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$DSYMUTIL"; then
7805 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7825 if test -n "$DSYMUTIL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7827 $as_echo "$DSYMUTIL" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 if test -z "$ac_cv_prog_DSYMUTIL"; then
7836 ac_ct_DSYMUTIL=$DSYMUTIL
7837 # Extract the first word of "dsymutil", so it can be a program name with args.
7838 set dummy dsymutil; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$ac_ct_DSYMUTIL"; then
7845 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7865 if test -n "$ac_ct_DSYMUTIL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7867 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7873 if test "x$ac_ct_DSYMUTIL" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7882 DSYMUTIL=$ac_ct_DSYMUTIL
7885 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7888 if test -n "$ac_tool_prefix"; then
7889 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_NMEDIT+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$NMEDIT"; then
7897 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 NMEDIT=$ac_cv_prog_NMEDIT
7917 if test -n "$NMEDIT"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7919 $as_echo "$NMEDIT" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7927 if test -z "$ac_cv_prog_NMEDIT"; then
7928 ac_ct_NMEDIT=$NMEDIT
7929 # Extract the first word of "nmedit", so it can be a program name with args.
7930 set dummy nmedit; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7934 $as_echo_n "(cached) " >&6
7936 if test -n "$ac_ct_NMEDIT"; then
7937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7957 if test -n "$ac_ct_NMEDIT"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7959 $as_echo "$ac_ct_NMEDIT" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7965 if test "x$ac_ct_NMEDIT" = x; then
7968 case $cross_compiling:$ac_tool_warned in
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7974 NMEDIT=$ac_ct_NMEDIT
7977 NMEDIT="$ac_cv_prog_NMEDIT"
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_LIPO+:} false; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$LIPO"; then
7989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 LIPO=$ac_cv_prog_LIPO
8009 if test -n "$LIPO"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8011 $as_echo "$LIPO" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8019 if test -z "$ac_cv_prog_LIPO"; then
8021 # Extract the first word of "lipo", so it can be a program name with args.
8022 set dummy lipo; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8026 $as_echo_n "(cached) " >&6
8028 if test -n "$ac_ct_LIPO"; then
8029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_LIPO="lipo"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8049 if test -n "$ac_ct_LIPO"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8051 $as_echo "$ac_ct_LIPO" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8057 if test "x$ac_ct_LIPO" = x; then
8060 case $cross_compiling:$ac_tool_warned in
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8069 LIPO="$ac_cv_prog_LIPO"
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}otool; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_OTOOL+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 if test -n "$OTOOL"; then
8081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 OTOOL=$ac_cv_prog_OTOOL
8101 if test -n "$OTOOL"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8103 $as_echo "$OTOOL" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test -z "$ac_cv_prog_OTOOL"; then
8113 # Extract the first word of "otool", so it can be a program name with args.
8114 set dummy otool; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8118 $as_echo_n "(cached) " >&6
8120 if test -n "$ac_ct_OTOOL"; then
8121 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_OTOOL="otool"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8141 if test -n "$ac_ct_OTOOL"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8143 $as_echo "$ac_ct_OTOOL" >&6; }
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8149 if test "x$ac_ct_OTOOL" = x; then
8152 case $cross_compiling:$ac_tool_warned in
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8161 OTOOL="$ac_cv_prog_OTOOL"
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_OTOOL64+:} false; then :
8170 $as_echo_n "(cached) " >&6
8172 if test -n "$OTOOL64"; then
8173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 OTOOL64=$ac_cv_prog_OTOOL64
8193 if test -n "$OTOOL64"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8195 $as_echo "$OTOOL64" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8203 if test -z "$ac_cv_prog_OTOOL64"; then
8204 ac_ct_OTOOL64=$OTOOL64
8205 # Extract the first word of "otool64", so it can be a program name with args.
8206 set dummy otool64; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 if test -n "$ac_ct_OTOOL64"; then
8213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_OTOOL64="otool64"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8233 if test -n "$ac_ct_OTOOL64"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8235 $as_echo "$ac_ct_OTOOL64" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 if test "x$ac_ct_OTOOL64" = x; then
8244 case $cross_compiling:$ac_tool_warned in
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8250 OTOOL64=$ac_ct_OTOOL64
8253 OTOOL64="$ac_cv_prog_OTOOL64"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8283 $as_echo_n "checking for -single_module linker flag... " >&6; }
8284 if ${lt_cv_apple_cc_single_mod+:} false; then :
8285 $as_echo_n "(cached) " >&6
8287 lt_cv_apple_cc_single_mod=no
8288 if test -z "$LT_MULTI_MODULE"; then
8289 # By default we will add the -single_module flag. You can override
8290 # by either setting the environment variable LT_MULTI_MODULE
8291 # non-empty at configure time, or by adding -multi_module to the
8293 rm -rf libconftest.dylib*
8294 echo "int foo(void){return 1;}" > conftest.c
8295 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8296 -dynamiclib -Wl,-single_module conftest.c" >&5
8297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8298 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8300 # If there is a non-empty error log, and "single_module"
8301 # appears in it, assume the flag caused a linker warning
8302 if test -s conftest.err && $GREP single_module conftest.err; then
8303 cat conftest.err >&5
8304 # Otherwise, if the output was created with a 0 exit code from
8305 # the compiler, it worked.
8306 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8307 lt_cv_apple_cc_single_mod=yes
8309 cat conftest.err >&5
8311 rm -rf libconftest.dylib*
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8316 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8319 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8320 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8321 $as_echo_n "(cached) " >&6
8323 lt_cv_ld_exported_symbols_list=no
8324 save_LDFLAGS=$LDFLAGS
8325 echo "_main" > conftest.sym
8326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 lt_cv_ld_exported_symbols_list=yes
8341 lt_cv_ld_exported_symbols_list=no
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 LDFLAGS=$save_LDFLAGS
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8349 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8352 $as_echo_n "checking for -force_load linker flag... " >&6; }
8353 if ${lt_cv_ld_force_load+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 lt_cv_ld_force_load=no
8357 cat > conftest.c << _LT_EOF
8358 int forced_loaded() { return 2;}
8360 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8361 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8362 echo "$AR cr libconftest.a conftest.o" >&5
8363 $AR cr libconftest.a conftest.o 2>&5
8364 echo "$RANLIB libconftest.a" >&5
8365 $RANLIB libconftest.a 2>&5
8366 cat > conftest.c << _LT_EOF
8367 int main() { return 0;}
8369 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8370 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8372 if test -s conftest.err && $GREP force_load conftest.err; then
8373 cat conftest.err >&5
8374 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8375 lt_cv_ld_force_load=yes
8377 cat conftest.err >&5
8379 rm -f conftest.err libconftest.a conftest conftest.c
8380 rm -rf conftest.dSYM
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8384 $as_echo "$lt_cv_ld_force_load" >&6; }
8386 rhapsody* | darwin1.[012])
8387 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8389 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8390 darwin*) # darwin 5.x on
8391 # if running on 10.5 or later, the deployment target defaults
8392 # to the OS version, if on x86, and 10.4, the deployment
8393 # target defaults to 10.4. Don't you love it?
8394 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8395 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8396 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8398 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8404 if test yes = "$lt_cv_apple_cc_single_mod"; then
8405 _lt_dar_single_mod='$single_module'
8407 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8408 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8410 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8412 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8413 _lt_dsymutil='~$DSYMUTIL $lib || :'
8420 # func_munge_path_list VARIABLE PATH
8421 # -----------------------------------
8422 # VARIABLE is name of variable containing _space_ separated list of
8423 # directories to be munged by the contents of PATH, which is string
8426 # string "DIR[ DIR]" will be prepended to VARIABLE
8428 # string "DIR[ DIR]" will be appended to VARIABLE
8429 # "DIRP[:DIRP]::[DIRA:]DIRA"
8430 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8431 # "DIRA[ DIRA]" will be appended to VARIABLE
8433 # VARIABLE will be replaced by "DIR[ DIR]"
8434 func_munge_path_list ()
8440 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8443 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8446 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8447 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8450 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8455 for ac_header in dlfcn.h
8457 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8459 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DLFCN_H 1
8473 # Check whether --enable-static was given.
8474 if test "${enable_static+set}" = set; then :
8475 enableval=$enable_static; p=${PACKAGE-default}
8477 yes) enable_static=yes ;;
8478 no) enable_static=no ;;
8481 # Look at the argument we got. We use all the common list separators.
8482 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8483 for pkg in $enableval; do
8485 if test "X$pkg" = "X$p"; then
8511 # Check whether --enable-shared was given.
8512 if test "${enable_shared+set}" = set; then :
8513 enableval=$enable_shared; p=${PACKAGE-default}
8515 yes) enable_shared=yes ;;
8516 no) enable_shared=no ;;
8519 # Look at the argument we got. We use all the common list separators.
8520 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8521 for pkg in $enableval; do
8523 if test "X$pkg" = "X$p"; then
8544 # Check whether --with-pic was given.
8545 if test "${with_pic+set}" = set; then :
8546 withval=$with_pic; lt_p=${PACKAGE-default}
8548 yes|no) pic_mode=$withval ;;
8551 # Look at the argument we got. We use all the common list separators.
8552 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8553 for lt_pkg in $withval; do
8555 if test "X$lt_pkg" = "X$lt_p"; then
8573 # Check whether --enable-fast-install was given.
8574 if test "${enable_fast_install+set}" = set; then :
8575 enableval=$enable_fast_install; p=${PACKAGE-default}
8577 yes) enable_fast_install=yes ;;
8578 no) enable_fast_install=no ;;
8580 enable_fast_install=no
8581 # Look at the argument we got. We use all the common list separators.
8582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8583 for pkg in $enableval; do
8585 if test "X$pkg" = "X$p"; then
8586 enable_fast_install=yes
8593 enable_fast_install=yes
8603 shared_archive_member_spec=
8604 case $host,$enable_shared in
8605 power*-*-aix[5-9]*,yes)
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8607 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8609 # Check whether --with-aix-soname was given.
8610 if test "${with_aix_soname+set}" = set; then :
8611 withval=$with_aix_soname; case $withval in
8615 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8618 lt_cv_with_aix_soname=$with_aix_soname
8620 if ${lt_cv_with_aix_soname+:} false; then :
8621 $as_echo_n "(cached) " >&6
8623 lt_cv_with_aix_soname=aix
8626 with_aix_soname=$lt_cv_with_aix_soname
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8630 $as_echo "$with_aix_soname" >&6; }
8631 if test aix != "$with_aix_soname"; then
8632 # For the AIX way of multilib, we name the shared archive member
8633 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8634 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8635 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8636 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8637 if test 64 = "${OBJECT_MODE-32}"; then
8638 shared_archive_member_spec=shr_64
8640 shared_archive_member_spec=shr
8658 # This can be used to rebuild libtool when needed
8659 LIBTOOL_DEPS=$ltmain
8661 # Always use our own libtool.
8662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8693 test -z "$LN_S" && LN_S="ln -s"
8708 if test -n "${ZSH_VERSION+set}"; then
8709 setopt NO_GLOB_SUBST
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8713 $as_echo_n "checking for objdir... " >&6; }
8714 if ${lt_cv_objdir+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 rm -f .libs 2>/dev/null
8718 mkdir .libs 2>/dev/null
8719 if test -d .libs; then
8722 # MS-DOS does not allow filenames that begin with a dot.
8725 rmdir .libs 2>/dev/null
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8728 $as_echo "$lt_cv_objdir" >&6; }
8729 objdir=$lt_cv_objdir
8735 cat >>confdefs.h <<_ACEOF
8736 #define LT_OBJDIR "$lt_cv_objdir/"
8744 # AIX sometimes has problems with the GCC collect2 program. For some
8745 # reason, if we set the COLLECT_NAMES environment variable, the problems
8746 # vanish in a puff of smoke.
8747 if test set != "${COLLECT_NAMES+set}"; then
8749 export COLLECT_NAMES
8756 can_build_shared=yes
8758 # All known linkers require a '.a' archive for static linking (except MSVC,
8759 # which needs '.lib').
8762 with_gnu_ld=$lt_cv_prog_gnu_ld
8767 # Set sane defaults for various variables
8768 test -z "$CC" && CC=cc
8769 test -z "$LTCC" && LTCC=$CC
8770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8771 test -z "$LD" && LD=ld
8772 test -z "$ac_objext" && ac_objext=o
8774 func_cc_basename $compiler
8775 cc_basename=$func_cc_basename_result
8778 # Only perform the check for file, if the check method requires it
8779 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8780 case $deplibs_check_method in
8782 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8784 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8786 $as_echo_n "(cached) " >&6
8790 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8793 lt_save_MAGIC_CMD=$MAGIC_CMD
8794 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8796 for ac_dir in $ac_dummy; do
8798 test -z "$ac_dir" && ac_dir=.
8799 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8800 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8801 if test -n "$file_magic_test_file"; then
8802 case $deplibs_check_method in
8804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8805 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8807 $EGREP "$file_magic_regex" > /dev/null; then
8812 *** Warning: the command libtool uses to detect shared libraries,
8813 *** $file_magic_cmd, produces output that libtool cannot recognize.
8814 *** The result is that libtool may fail to recognize shared libraries
8815 *** as such. This will affect the creation of libtool libraries that
8816 *** depend on shared libraries, but programs linked with such libtool
8817 *** libraries will work regardless of this problem. Nevertheless, you
8818 *** may want to report the problem to your system manager and/or to
8819 *** bug-libtool@gnu.org
8829 MAGIC_CMD=$lt_save_MAGIC_CMD
8834 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8835 if test -n "$MAGIC_CMD"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8837 $as_echo "$MAGIC_CMD" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8847 if test -z "$lt_cv_path_MAGIC_CMD"; then
8848 if test -n "$ac_tool_prefix"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8850 $as_echo_n "checking for file... " >&6; }
8851 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8852 $as_echo_n "(cached) " >&6
8856 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8859 lt_save_MAGIC_CMD=$MAGIC_CMD
8860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862 for ac_dir in $ac_dummy; do
8864 test -z "$ac_dir" && ac_dir=.
8865 if test -f "$ac_dir/file"; then
8866 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8867 if test -n "$file_magic_test_file"; then
8868 case $deplibs_check_method in
8870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873 $EGREP "$file_magic_regex" > /dev/null; then
8878 *** Warning: the command libtool uses to detect shared libraries,
8879 *** $file_magic_cmd, produces output that libtool cannot recognize.
8880 *** The result is that libtool may fail to recognize shared libraries
8881 *** as such. This will affect the creation of libtool libraries that
8882 *** depend on shared libraries, but programs linked with such libtool
8883 *** libraries will work regardless of this problem. Nevertheless, you
8884 *** may want to report the problem to your system manager and/or to
8885 *** bug-libtool@gnu.org
8895 MAGIC_CMD=$lt_save_MAGIC_CMD
8900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8901 if test -n "$MAGIC_CMD"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903 $as_echo "$MAGIC_CMD" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8919 # Use C for the default configuration in the libtool script
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929 # Source file extension for C test sources.
8932 # Object file extension for compiled C test sources.
8936 # Code to be used in simple compile tests
8937 lt_simple_compile_test_code="int some_variable = 0;"
8939 # Code to be used in simple link tests
8940 lt_simple_link_test_code='int main(){return(0);}'
8948 # If no C compiler was specified, use CC.
8951 # If no C compiler flags were specified, use CFLAGS.
8952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8954 # Allow CC to be a program name with arguments.
8957 # Save the default compiler, since it gets overwritten when the other
8958 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8959 compiler_DEFAULT=$CC
8961 # save warnings/boilerplate of simple test code
8962 ac_outfile=conftest.$ac_objext
8963 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8965 _lt_compiler_boilerplate=`cat conftest.err`
8968 ac_outfile=conftest.$ac_objext
8969 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8971 _lt_linker_boilerplate=`cat conftest.err`
8976 ## There is no encapsulation within the following macros, do not change
8977 ## the running order or otherwise move them around unless you know exactly
8978 ## what you are doing...
8979 if test -n "$compiler"; then
8981 lt_prog_compiler_no_builtin_flag=
8983 if test yes = "$GCC"; then
8984 case $cc_basename in
8986 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8988 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8992 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8993 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8994 $as_echo_n "(cached) " >&6
8996 lt_cv_prog_compiler_rtti_exceptions=no
8997 ac_outfile=conftest.$ac_objext
8998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9000 # Insert the option either (1) after the last *FLAGS variable, or
9001 # (2) before a word containing "conftest.", or (3) at the end.
9002 # Note that $ac_compile itself does not contain backslashes and begins
9003 # with a dollar sign (not a hyphen), so the echo should work correctly.
9004 # The option is referenced via a variable to avoid confusing sed.
9005 lt_compile=`echo "$ac_compile" | $SED \
9006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008 -e 's:$: $lt_compiler_flag:'`
9009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010 (eval "$lt_compile" 2>conftest.err)
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 if (exit $ac_status) && test -s "$ac_outfile"; then
9015 # The compiler can only warn and ignore the option if not recognized
9016 # So say no if there are warnings other than the usual output.
9017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9020 lt_cv_prog_compiler_rtti_exceptions=yes
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9027 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9029 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9042 lt_prog_compiler_wl=
9043 lt_prog_compiler_pic=
9044 lt_prog_compiler_static=
9047 if test yes = "$GCC"; then
9048 lt_prog_compiler_wl='-Wl,'
9049 lt_prog_compiler_static='-static'
9053 # All AIX code is PIC.
9054 if test ia64 = "$host_cpu"; then
9055 # AIX 5 now supports IA64 processor
9056 lt_prog_compiler_static='-Bstatic'
9058 lt_prog_compiler_pic='-fPIC'
9064 # see comment about AmigaOS4 .so support
9065 lt_prog_compiler_pic='-fPIC'
9068 # FIXME: we need at least 68020 code to build shared libraries, but
9069 # adding the '-m68020' flag to GCC prevents building anything better,
9071 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9076 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9077 # PIC is the default for these OSes.
9080 mingw* | cygwin* | pw32* | os2* | cegcc*)
9081 # This hack is so that the source file can tell whether it is being
9082 # built for inclusion in a dll (and should export symbols for example).
9083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9084 # (--disable-auto-import) libraries
9085 lt_prog_compiler_pic='-DDLL_EXPORT'
9088 lt_prog_compiler_static='$wl-static'
9093 darwin* | rhapsody*)
9094 # PIC is the default on this platform
9095 # Common symbols not allowed in MH_DYLIB files
9096 lt_prog_compiler_pic='-fno-common'
9100 # PIC is the default for Haiku.
9101 # The "-static" flag exists, but is broken.
9102 lt_prog_compiler_static=
9106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9108 # sets the default TLS model and affects inlining.
9114 lt_prog_compiler_pic='-fPIC'
9120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9121 # Instead, we relocate shared libraries at runtime.
9125 # Just because we use GCC doesn't mean we suddenly get shared libraries
9126 # on systems that don't support them.
9127 lt_prog_compiler_can_build_shared=no
9132 # QNX uses GNU C++, but need to define -shared option too, otherwise
9134 lt_prog_compiler_pic='-fPIC -shared'
9138 if test -d /usr/nec; then
9139 lt_prog_compiler_pic=-Kconform_pic
9144 lt_prog_compiler_pic='-fPIC'
9148 case $cc_basename in
9149 nvcc*) # Cuda Compiler Driver 2.2
9150 lt_prog_compiler_wl='-Xlinker '
9151 if test -n "$lt_prog_compiler_pic"; then
9152 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9157 # PORTME Check for flag to pass linker flags through the system compiler.
9160 lt_prog_compiler_wl='-Wl,'
9161 if test ia64 = "$host_cpu"; then
9162 # AIX 5 now supports IA64 processor
9163 lt_prog_compiler_static='-Bstatic'
9165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9169 darwin* | rhapsody*)
9170 # PIC is the default on this platform
9171 # Common symbols not allowed in MH_DYLIB files
9172 lt_prog_compiler_pic='-fno-common'
9173 case $cc_basename in
9175 # NAG Fortran compiler
9176 lt_prog_compiler_wl='-Wl,-Wl,,'
9177 lt_prog_compiler_pic='-PIC'
9178 lt_prog_compiler_static='-Bstatic'
9183 mingw* | cygwin* | pw32* | os2* | cegcc*)
9184 # This hack is so that the source file can tell whether it is being
9185 # built for inclusion in a dll (and should export symbols for example).
9186 lt_prog_compiler_pic='-DDLL_EXPORT'
9189 lt_prog_compiler_static='$wl-static'
9194 hpux9* | hpux10* | hpux11*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9203 lt_prog_compiler_pic='+Z'
9206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9207 lt_prog_compiler_static='$wl-a ${wl}archive'
9210 irix5* | irix6* | nonstopux*)
9211 lt_prog_compiler_wl='-Wl,'
9212 # PIC (with -KPIC) is the default.
9213 lt_prog_compiler_static='-non_shared'
9216 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9217 case $cc_basename in
9218 # old Intel for x86_64, which still supported -KPIC.
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-static'
9224 # flang / f18. f95 an alias for gfortran or flang on Debian
9225 flang* | f18* | f95*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_pic='-fPIC'
9228 lt_prog_compiler_static='-static'
9230 # icc used to be incompatible with GCC.
9231 # ICC 10 doesn't accept -KPIC any more.
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-fPIC'
9235 lt_prog_compiler_static='-static'
9237 # Lahey Fortran 8.1.
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='--shared'
9241 lt_prog_compiler_static='--static'
9244 # NAG Fortran compiler
9245 lt_prog_compiler_wl='-Wl,-Wl,,'
9246 lt_prog_compiler_pic='-PIC'
9247 lt_prog_compiler_static='-Bstatic'
9250 # Fabrice Bellard et al's Tiny C Compiler
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-fPIC'
9253 lt_prog_compiler_static='-static'
9255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9256 # Portland Group compilers (*not* the Pentium gcc compiler,
9257 # which looks to be a dead project)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fpic'
9260 lt_prog_compiler_static='-Bstatic'
9263 lt_prog_compiler_wl='-Wl,'
9264 # All Alpha code is PIC.
9265 lt_prog_compiler_static='-non_shared'
9267 xl* | bgxl* | bgf* | mpixl*)
9268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-qpic'
9271 lt_prog_compiler_static='-qstaticlink'
9274 case `$CC -V 2>&1 | sed 5q` in
9275 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 lt_prog_compiler_wl=''
9281 *Sun\ F* | *Sun*Fortran*)
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 lt_prog_compiler_wl='-Qoption ld '
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_wl='-Wl,'
9292 *Intel*\ [CF]*Compiler*)
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-fPIC'
9295 lt_prog_compiler_static='-static'
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fpic'
9300 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9313 # QNX uses GNU C++, but need to define -shared option too, otherwise
9315 lt_prog_compiler_pic='-fPIC -shared'
9318 osf3* | osf4* | osf5*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # All OSF/1 code is PIC.
9321 lt_prog_compiler_static='-non_shared'
9325 lt_prog_compiler_static='-non_shared'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9331 case $cc_basename in
9332 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9333 lt_prog_compiler_wl='-Qoption ld ';;
9335 lt_prog_compiler_wl='-Wl,';;
9340 lt_prog_compiler_wl='-Qoption ld '
9341 lt_prog_compiler_pic='-PIC'
9342 lt_prog_compiler_static='-Bstatic'
9345 sysv4 | sysv4.2uw2* | sysv4.3*)
9346 lt_prog_compiler_wl='-Wl,'
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9352 if test -d /usr/nec; then
9353 lt_prog_compiler_pic='-Kconform_pic'
9354 lt_prog_compiler_static='-Bstatic'
9358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_can_build_shared=no
9370 lt_prog_compiler_pic='-pic'
9371 lt_prog_compiler_static='-Bstatic'
9375 lt_prog_compiler_can_build_shared=no
9381 # For platforms that do not support PIC, -DPIC is meaningless:
9383 lt_prog_compiler_pic=
9386 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9391 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9392 if ${lt_cv_prog_compiler_pic+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9398 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9399 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9402 # Check to make sure the PIC flag actually works.
9404 if test -n "$lt_prog_compiler_pic"; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9406 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9407 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9408 $as_echo_n "(cached) " >&6
9410 lt_cv_prog_compiler_pic_works=no
9411 ac_outfile=conftest.$ac_objext
9412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9413 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9414 # Insert the option either (1) after the last *FLAGS variable, or
9415 # (2) before a word containing "conftest.", or (3) at the end.
9416 # Note that $ac_compile itself does not contain backslashes and begins
9417 # with a dollar sign (not a hyphen), so the echo should work correctly.
9418 # The option is referenced via a variable to avoid confusing sed.
9419 lt_compile=`echo "$ac_compile" | $SED \
9420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422 -e 's:$: $lt_compiler_flag:'`
9423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9424 (eval "$lt_compile" 2>conftest.err)
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 if (exit $ac_status) && test -s "$ac_outfile"; then
9429 # The compiler can only warn and ignore the option if not recognized
9430 # So say no if there are warnings other than the usual output.
9431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler_pic_works=yes
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9441 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9443 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9444 case $lt_prog_compiler_pic in
9446 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9449 lt_prog_compiler_pic=
9450 lt_prog_compiler_can_build_shared=no
9466 # Check to make sure the static flag actually works.
9468 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9470 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9471 if ${lt_cv_prog_compiler_static_works+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 lt_cv_prog_compiler_static_works=no
9475 save_LDFLAGS=$LDFLAGS
9476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9479 # The linker can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 if test -s conftest.err; then
9482 # Append any errors to the config.log.
9483 cat conftest.err 1>&5
9484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9486 if diff conftest.exp conftest.er2 >/dev/null; then
9487 lt_cv_prog_compiler_static_works=yes
9490 lt_cv_prog_compiler_static_works=yes
9494 LDFLAGS=$save_LDFLAGS
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9498 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9500 if test yes = "$lt_cv_prog_compiler_static_works"; then
9503 lt_prog_compiler_static=
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9514 if ${lt_cv_prog_compiler_c_o+:} false; then :
9515 $as_echo_n "(cached) " >&6
9517 lt_cv_prog_compiler_c_o=no
9518 $RM -r conftest 2>/dev/null
9522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524 lt_compiler_flag="-o out/conftest2.$ac_objext"
9525 # Insert the option either (1) after the last *FLAGS variable, or
9526 # (2) before a word containing "conftest.", or (3) at the end.
9527 # Note that $ac_compile itself does not contain backslashes and begins
9528 # with a dollar sign (not a hyphen), so the echo should work correctly.
9529 lt_compile=`echo "$ac_compile" | $SED \
9530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532 -e 's:$: $lt_compiler_flag:'`
9533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534 (eval "$lt_compile" 2>out/conftest.err)
9536 cat out/conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9540 # The compiler can only warn and ignore the option if not recognized
9541 # So say no if there are warnings
9542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9545 lt_cv_prog_compiler_c_o=yes
9550 # SGI C++ compiler will create directory out/ii_files/ for
9551 # template instantiation
9552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9553 $RM out/* && rmdir out
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9569 if ${lt_cv_prog_compiler_c_o+:} false; then :
9570 $as_echo_n "(cached) " >&6
9572 lt_cv_prog_compiler_c_o=no
9573 $RM -r conftest 2>/dev/null
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579 lt_compiler_flag="-o out/conftest2.$ac_objext"
9580 # Insert the option either (1) after the last *FLAGS variable, or
9581 # (2) before a word containing "conftest.", or (3) at the end.
9582 # Note that $ac_compile itself does not contain backslashes and begins
9583 # with a dollar sign (not a hyphen), so the echo should work correctly.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>out/conftest.err)
9591 cat out/conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9595 # The compiler can only warn and ignore the option if not recognized
9596 # So say no if there are warnings
9597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9600 lt_cv_prog_compiler_c_o=yes
9605 # SGI C++ compiler will create directory out/ii_files/ for
9606 # template instantiation
9607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9608 $RM out/* && rmdir out
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9615 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9620 hard_links=nottested
9621 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9622 # do not overwrite the value of need_locks provided by the user
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9624 $as_echo_n "checking if we can lock with hard links... " >&6; }
9627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629 ln conftest.a conftest.b 2>&5 || hard_links=no
9630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9632 $as_echo "$hard_links" >&6; }
9633 if test no = "$hard_links"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9635 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9651 allow_undefined_flag=
9652 always_export_symbols=no
9654 archive_expsym_cmds=
9655 compiler_needs_object=no
9656 enable_shared_with_static_runtimes=no
9657 export_dynamic_flag_spec=
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9659 hardcode_automatic=no
9661 hardcode_direct_absolute=no
9662 hardcode_libdir_flag_spec=
9663 hardcode_libdir_separator=
9665 hardcode_shlibpath_var=unsupported
9667 link_all_deplibs=unknown
9670 old_archive_from_new_cmds=
9671 old_archive_from_expsyms_cmds=
9672 thread_safe_flag_spec=
9673 whole_archive_flag_spec=
9674 # include_expsyms should be a list of space-separated symbols to be *always*
9675 # included in the symbol list
9677 # exclude_expsyms can be an extended regexp of symbols to exclude
9678 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9679 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9680 # as well as any symbol that contains 'd'.
9681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683 # platforms (ab)use it in PIC code, but their linkers get confused if
9684 # the symbol is explicitly referenced. Since portable code cannot
9685 # rely on this symbol name, it's probably fine to never include it in
9686 # preloaded symbol tables.
9687 # Exclude shared library initialization/finalization symbols.
9688 extract_expsyms_cmds=
9691 cygwin* | mingw* | pw32* | cegcc*)
9692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693 # When not using gcc, we currently assume that we are using
9694 # Microsoft Visual C++.
9695 if test yes != "$GCC"; then
9700 # we just hope/assume this is gcc and not c89 (= MSVC++)
9706 linux* | k*bsd*-gnu | gnu*)
9713 # On some targets, GNU ld is compatible enough with the native linker
9714 # that we're better off using the native interface for both.
9715 lt_use_gnu_ld_interface=no
9716 if test yes = "$with_gnu_ld"; then
9719 # The AIX port of GNU ld has always aspired to compatibility
9720 # with the native linker. However, as the warning in the GNU ld
9721 # block says, versions before 2.19.5* couldn't really create working
9722 # shared libraries, regardless of the interface used.
9723 case `$LD -v 2>&1` in
9724 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9725 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9726 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9728 lt_use_gnu_ld_interface=yes
9733 lt_use_gnu_ld_interface=yes
9738 if test yes = "$lt_use_gnu_ld_interface"; then
9739 # If archive_cmds runs LD, not CC, wlarc should be empty
9742 # Set some defaults for GNU ld with shared library support. These
9743 # are reset later if shared libraries are not supported. Putting them
9744 # here allows them to be overridden if necessary.
9745 runpath_var=LD_RUN_PATH
9746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9747 export_dynamic_flag_spec='$wl--export-dynamic'
9748 # ancient GNU ld didn't support --whole-archive et. al.
9749 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9750 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9752 whole_archive_flag_spec=
9754 supports_anon_versioning=no
9755 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9756 *GNU\ gold*) supports_anon_versioning=yes ;;
9757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9760 *\ 2.11.*) ;; # other 2.11 versions
9761 *) supports_anon_versioning=yes ;;
9764 # See if GNU ld supports shared libraries.
9767 # On AIX/PPC, the GNU linker is very broken
9768 if test ia64 != "$host_cpu"; then
9772 *** Warning: the GNU linker, at least up to release 2.19, is reported
9773 *** to be unable to reliably create shared libraries on AIX.
9774 *** Therefore, libtool is disabling shared libraries support. If you
9775 *** really care for shared libraries, you may want to install binutils
9776 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9777 *** You will then need to restart the configuration process.
9786 # see comment about AmigaOS4 .so support
9787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9788 archive_expsym_cmds=''
9791 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)'
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_minus_L=yes
9799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 allow_undefined_flag=unsupported
9801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9802 # support --undefined. This deserves some investigation. FIXME
9803 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9809 cygwin* | mingw* | pw32* | cegcc*)
9810 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9811 # as there is no search path for DLLs.
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 export_dynamic_flag_spec='$wl--export-all-symbols'
9814 allow_undefined_flag=unsupported
9815 always_export_symbols=no
9816 enable_shared_with_static_runtimes=yes
9817 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'
9818 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9820 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9822 # If the export-symbols file already is a .def file, use it as
9823 # is; otherwise, prepend EXPORTS...
9824 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9825 cp $export_symbols $output_objdir/$soname.def;
9827 echo EXPORTS > $output_objdir/$soname.def;
9828 cat $export_symbols >> $output_objdir/$soname.def;
9830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9838 link_all_deplibs=yes
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_minus_L=yes
9844 allow_undefined_flag=unsupported
9846 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9847 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9848 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9849 $ECHO EXPORTS >> $output_objdir/$libname.def~
9850 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9851 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9852 emximp -o $lib $output_objdir/$libname.def'
9853 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9856 $ECHO EXPORTS >> $output_objdir/$libname.def~
9858 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9859 prefix_cmds="$prefix_cmds -e 1d";
9861 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9862 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9864 emximp -o $lib $output_objdir/$libname.def'
9865 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9866 enable_shared_with_static_runtimes=yes
9871 hardcode_shlibpath_var=no
9872 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9873 export_dynamic_flag_spec='$wl-E'
9874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9875 # Instead, shared libraries are loaded at an image base (0x10000000 by
9876 # default) and relocated if they conflict, which is a slow very memory
9877 # consuming and fragmenting process. To avoid this, we pick a random,
9878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9881 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'
9884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9886 if test linux-dietlibc = "$host_os"; then
9887 case $cc_basename in
9888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9892 && test no = "$tmp_diet"
9894 tmp_addflag=' $pic_flag'
9895 tmp_sharedflag='-shared'
9896 case $cc_basename,$host_cpu in
9897 pgcc*) # Portland Group C compiler
9898 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'
9899 tmp_addflag=' $pic_flag'
9901 pgf77* | pgf90* | pgf95* | pgfortran*)
9902 # Portland Group f77 and f90 compilers
9903 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'
9904 tmp_addflag=' $pic_flag -Mnomain' ;;
9905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9906 tmp_addflag=' -i_dynamic' ;;
9907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9908 tmp_addflag=' -i_dynamic -nofor_main' ;;
9909 ifc* | ifort*) # Intel Fortran compiler
9910 tmp_addflag=' -nofor_main' ;;
9911 lf95*) # Lahey Fortran 8.1
9912 whole_archive_flag_spec=
9913 tmp_sharedflag='--shared' ;;
9914 nagfor*) # NAGFOR 5.3
9915 tmp_sharedflag='-Wl,-shared' ;;
9916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9917 tmp_sharedflag='-qmkshrobj'
9919 nvcc*) # Cuda Compiler Driver 2.2
9920 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'
9921 compiler_needs_object=yes
9924 case `$CC -V 2>&1 | sed 5q` in
9925 *Sun\ C*) # Sun C 5.9
9926 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'
9927 compiler_needs_object=yes
9928 tmp_sharedflag='-G' ;;
9929 *Sun\ F*) # Sun Fortran 8.3
9930 tmp_sharedflag='-G' ;;
9932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934 if test yes = "$supports_anon_versioning"; then
9935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9937 echo "local: *; };" >> $output_objdir/$libname.ver~
9938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9941 case $cc_basename in
9943 export_dynamic_flag_spec='-rdynamic'
9945 xlf* | bgf* | bgxlf* | mpixlf*)
9946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9948 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9949 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9950 if test yes = "$supports_anon_versioning"; then
9951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9953 echo "local: *; };" >> $output_objdir/$libname.ver~
9954 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9963 netbsd* | netbsdelf*-gnu)
9964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9979 *** create shared libraries on Solaris systems. Therefore, libtool
9980 *** is disabling shared libraries support. We urge you to upgrade GNU
9981 *** binutils to release 2.9.1 or newer. Another option is to modify
9982 *** your PATH or compiler configuration so that the native linker is
9983 *** used, and then restart.
9986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9995 case `$LD -v 2>&1` in
9996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10000 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10001 *** reliably create shared libraries on SCO systems. Therefore, libtool
10002 *** is disabling shared libraries support. We urge you to upgrade GNU
10003 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10004 *** your PATH or compiler configuration so that the native linker is
10005 *** used, and then restart.
10010 # For security reasons, it is highly recommended that you always
10011 # use absolute paths for naming shared libraries, and exclude the
10012 # DT_RUNPATH tag from executables and libraries. But doing so
10013 # requires that you compile everything twice, which is a pain.
10014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10035 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10042 if test no = "$ld_shlibs"; then
10044 hardcode_libdir_flag_spec=
10045 export_dynamic_flag_spec=
10046 whole_archive_flag_spec=
10049 # PORTME fill in a description of your system's linker (not GNU ld)
10052 allow_undefined_flag=unsupported
10053 always_export_symbols=yes
10054 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'
10055 # Note: this linker hardcodes the directories in LIBPATH if there
10056 # are no directories specified by -L.
10057 hardcode_minus_L=yes
10058 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10059 # Neither direct hardcoding nor static linking is supported with a
10061 hardcode_direct=unsupported
10066 if test ia64 = "$host_cpu"; then
10067 # On IA64, the linker does run time linking by default, so we don't
10068 # have to do anything special.
10069 aix_use_runtimelinking=no
10070 exp_sym_flag='-Bexport'
10073 # If we're using GNU nm, then we don't want the "-C" option.
10074 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10075 # Without the "-l" option, or with the "-B" option, AIX nm treats
10076 # weak defined symbols like other global defined symbols, whereas
10077 # GNU nm marks them as "W".
10078 # While the 'weak' keyword is ignored in the Export File, we need
10079 # it in the Import File for the 'aix-soname' feature, so we have
10080 # to replace the "-B" option with "-P" for AIX nm.
10081 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10082 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'
10084 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'
10086 aix_use_runtimelinking=no
10088 # Test if we are trying to use run time linking or normal
10089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10090 # have runtime linking enabled, and use it for executables.
10091 # For shared libraries, we enable/disable runtime linking
10092 # depending on the kind of the shared library created -
10093 # when "with_aix_soname,aix_use_runtimelinking" is:
10094 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10095 # "aix,yes" lib.so shared, rtl:yes, for executables
10096 # lib.a static archive
10097 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10098 # lib.a(lib.so.V) shared, rtl:no, for executables
10099 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10100 # lib.a(lib.so.V) shared, rtl:no
10101 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10102 # lib.a static archive
10103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10104 for ld_flag in $LDFLAGS; do
10105 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10106 aix_use_runtimelinking=yes
10110 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10111 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10112 # so we don't have lib.a shared libs to link our executables.
10113 # We have to force runtime linking in this case.
10114 aix_use_runtimelinking=yes
10115 LDFLAGS="$LDFLAGS -Wl,-brtl"
10120 exp_sym_flag='-bexport'
10121 no_entry_flag='-bnoentry'
10124 # When large executables or shared objects are built, AIX ld can
10125 # have problems creating the table of contents. If linking a library
10126 # or program results in "error TOC overflow" add -mminimal-toc to
10127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10131 hardcode_direct=yes
10132 hardcode_direct_absolute=yes
10133 hardcode_libdir_separator=':'
10134 link_all_deplibs=yes
10135 file_list_spec='$wl-f,'
10136 case $with_aix_soname,$aix_use_runtimelinking in
10137 aix,*) ;; # traditional, no import file
10138 svr4,* | *,yes) # use import file
10139 # The Import File defines what to hardcode.
10141 hardcode_direct_absolute=no
10145 if test yes = "$GCC"; then
10146 case $host_os in aix4.[012]|aix4.[012].*)
10147 # We only want to do this on AIX 4.2 and lower, the check
10148 # below for broken collect2 doesn't work under 4.3+
10149 collect2name=`$CC -print-prog-name=collect2`
10150 if test -f "$collect2name" &&
10151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10153 # We have reworked collect2
10156 # We have old collect2
10157 hardcode_direct=unsupported
10158 # It fails to find uninstalled libraries when the uninstalled
10159 # path is not listed in the libpath. Setting hardcode_minus_L
10160 # to unsupported forces relinking
10161 hardcode_minus_L=yes
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_libdir_separator=
10167 shared_flag='-shared'
10168 if test yes = "$aix_use_runtimelinking"; then
10169 shared_flag="$shared_flag "'$wl-G'
10171 # Need to ensure runtime linking is disabled for the traditional
10172 # shared library, or the linker may eventually find shared libraries
10173 # /with/ Import File - we do not want to mix them.
10174 shared_flag_aix='-shared'
10175 shared_flag_svr4='-shared $wl-G'
10178 if test ia64 = "$host_cpu"; then
10179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180 # chokes on -Wl,-G. The following line is correct:
10183 if test yes = "$aix_use_runtimelinking"; then
10184 shared_flag='$wl-G'
10186 shared_flag='$wl-bM:SRE'
10188 shared_flag_aix='$wl-bM:SRE'
10189 shared_flag_svr4='$wl-G'
10193 export_dynamic_flag_spec='$wl-bexpall'
10194 # It seems that -bexpall does not export symbols beginning with
10195 # underscore (_), so it is better to generate a list of symbols to export.
10196 always_export_symbols=yes
10197 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10198 # Warning - without using the other runtime loading flags (-brtl),
10199 # -berok will link without error, but may produce a broken library.
10200 allow_undefined_flag='-berok'
10201 # Determine the default libpath from the value encoded in an
10202 # empty executable.
10203 if test set = "${lt_cv_aix_libpath+set}"; then
10204 aix_libpath=$lt_cv_aix_libpath
10206 if ${lt_cv_aix_libpath_+:} false; then :
10207 $as_echo_n "(cached) " >&6
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10220 if ac_fn_c_try_link "$LINENO"; then :
10222 lt_aix_libpath_sed='
10223 /Import File Strings/,/^$/ {
10225 s/^0 *\([^ ]*\) *$/\1/
10229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230 # Check for a 64-bit object if we didn't find anything.
10231 if test -z "$lt_cv_aix_libpath_"; then
10232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 if test -z "$lt_cv_aix_libpath_"; then
10238 lt_cv_aix_libpath_=/usr/lib:/lib
10243 aix_libpath=$lt_cv_aix_libpath_
10246 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10247 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
10249 if test ia64 = "$host_cpu"; then
10250 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10251 allow_undefined_flag="-z nodefs"
10252 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"
10254 # Determine the default libpath from the value encoded in an
10255 # empty executable.
10256 if test set = "${lt_cv_aix_libpath+set}"; then
10257 aix_libpath=$lt_cv_aix_libpath
10259 if ${lt_cv_aix_libpath_+:} false; then :
10260 $as_echo_n "(cached) " >&6
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10273 if ac_fn_c_try_link "$LINENO"; then :
10275 lt_aix_libpath_sed='
10276 /Import File Strings/,/^$/ {
10278 s/^0 *\([^ ]*\) *$/\1/
10282 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10283 # Check for a 64-bit object if we didn't find anything.
10284 if test -z "$lt_cv_aix_libpath_"; then
10285 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10288 rm -f core conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290 if test -z "$lt_cv_aix_libpath_"; then
10291 lt_cv_aix_libpath_=/usr/lib:/lib
10296 aix_libpath=$lt_cv_aix_libpath_
10299 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10300 # Warning - without using the other run time loading flags,
10301 # -berok will link without error, but may produce a broken library.
10302 no_undefined_flag=' $wl-bernotok'
10303 allow_undefined_flag=' $wl-berok'
10304 if test yes = "$with_gnu_ld"; then
10305 # We only use this code for GNU lds that support --whole-archive.
10306 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10308 # Exported symbols can be pulled into shared objects from archives
10309 whole_archive_flag_spec='$convenience'
10311 archive_cmds_need_lc=yes
10312 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10313 # -brtl affects multiple linker settings, -berok does not and is overridden later
10314 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10315 if test svr4 != "$with_aix_soname"; then
10316 # This is similar to how AIX traditionally builds its shared libraries.
10317 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'
10319 if test aix != "$with_aix_soname"; then
10320 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'
10322 # used by -dlpreopen to get the symbols
10323 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10325 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10333 # see comment about AmigaOS4 .so support
10334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10335 archive_expsym_cmds=''
10338 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)'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_minus_L=yes
10346 export_dynamic_flag_spec=-rdynamic
10349 cygwin* | mingw* | pw32* | cegcc*)
10350 # When not using gcc, we currently assume that we are using
10351 # Microsoft Visual C++.
10352 # hardcode_libdir_flag_spec is actually meaningless, as there is
10353 # no search path for DLLs.
10354 case $cc_basename in
10357 hardcode_libdir_flag_spec=' '
10358 allow_undefined_flag=unsupported
10359 always_export_symbols=yes
10361 # Tell ltmain to make .lib files, not .a files.
10363 # Tell ltmain to make .dll files, not .so files.
10365 # FIXME: Setting linknames here is a bad hack.
10366 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10367 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10368 cp "$export_symbols" "$output_objdir/$soname.def";
10369 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10371 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10375 # The linker will not automatically build a static lib if we build a DLL.
10376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10377 enable_shared_with_static_runtimes=yes
10378 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10381 old_postinstall_cmds='chmod 644 $oldlib'
10382 postlink_cmds='lt_outputfile="@OUTPUT@"~
10383 lt_tool_outputfile="@TOOL_OUTPUT@"~
10384 case $lt_outputfile in
10387 lt_outputfile=$lt_outputfile.exe
10388 lt_tool_outputfile=$lt_tool_outputfile.exe
10391 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10393 $RM "$lt_outputfile.manifest";
10397 # Assume MSVC wrapper
10398 hardcode_libdir_flag_spec=' '
10399 allow_undefined_flag=unsupported
10400 # Tell ltmain to make .lib files, not .a files.
10402 # Tell ltmain to make .dll files, not .so files.
10404 # FIXME: Setting linknames here is a bad hack.
10405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10406 # The linker will automatically build a .lib file if we build a DLL.
10407 old_archive_from_new_cmds='true'
10408 # FIXME: Should let the user specify the lib program.
10409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10410 enable_shared_with_static_runtimes=yes
10415 darwin* | rhapsody*)
10418 archive_cmds_need_lc=no
10420 hardcode_automatic=yes
10421 hardcode_shlibpath_var=unsupported
10422 if test yes = "$lt_cv_ld_force_load"; then
10423 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\"`'
10426 whole_archive_flag_spec=''
10428 link_all_deplibs=yes
10429 allow_undefined_flag=$_lt_dar_allow_undefined
10430 case $cc_basename in
10431 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10432 *) _lt_dar_can_shared=$GCC ;;
10434 if test yes = "$_lt_dar_can_shared"; then
10435 output_verbose_link_cmd=func_echo_all
10436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10438 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"
10439 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"
10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 hardcode_shlibpath_var=no
10453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10454 # support. Future versions do this automatically, but an explicit c++rt0.o
10455 # does not break anything, and helps significantly (at the cost of a little
10458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10459 hardcode_libdir_flag_spec='-R$libdir'
10460 hardcode_direct=yes
10461 hardcode_shlibpath_var=no
10464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_direct=yes
10468 hardcode_minus_L=yes
10469 hardcode_shlibpath_var=no
10472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10473 freebsd* | dragonfly*)
10474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475 hardcode_libdir_flag_spec='-R$libdir'
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10481 if test yes = "$GCC"; then
10482 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'
10484 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'
10486 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10487 hardcode_libdir_separator=:
10488 hardcode_direct=yes
10490 # hardcode_minus_L: Not really in the search PATH,
10491 # but as the default location of the library.
10492 hardcode_minus_L=yes
10493 export_dynamic_flag_spec='$wl-E'
10497 if test yes,no = "$GCC,$with_gnu_ld"; then
10498 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10502 if test no = "$with_gnu_ld"; then
10503 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10504 hardcode_libdir_separator=:
10505 hardcode_direct=yes
10506 hardcode_direct_absolute=yes
10507 export_dynamic_flag_spec='$wl-E'
10508 # hardcode_minus_L: Not really in the search PATH,
10509 # but as the default location of the library.
10510 hardcode_minus_L=yes
10515 if test yes,no = "$GCC,$with_gnu_ld"; then
10518 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10537 # Older versions of the 11.00 compiler do not understand -b yet
10538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10540 $as_echo_n "checking if $CC understands -b... " >&6; }
10541 if ${lt_cv_prog_compiler__b+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 lt_cv_prog_compiler__b=no
10545 save_LDFLAGS=$LDFLAGS
10546 LDFLAGS="$LDFLAGS -b"
10547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10549 # The linker can only warn and ignore the option if not recognized
10550 # So say no if there are warnings
10551 if test -s conftest.err; then
10552 # Append any errors to the config.log.
10553 cat conftest.err 1>&5
10554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10556 if diff conftest.exp conftest.er2 >/dev/null; then
10557 lt_cv_prog_compiler__b=yes
10560 lt_cv_prog_compiler__b=yes
10564 LDFLAGS=$save_LDFLAGS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10568 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10570 if test yes = "$lt_cv_prog_compiler__b"; then
10571 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10579 if test no = "$with_gnu_ld"; then
10580 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10581 hardcode_libdir_separator=:
10586 hardcode_shlibpath_var=no
10589 hardcode_direct=yes
10590 hardcode_direct_absolute=yes
10591 export_dynamic_flag_spec='$wl-E'
10593 # hardcode_minus_L: Not really in the search PATH,
10594 # but as the default location of the library.
10595 hardcode_minus_L=yes
10601 irix5* | irix6* | nonstopux*)
10602 if test yes = "$GCC"; then
10603 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'
10604 # Try to use the -exported_symbol ld option, if it does not
10605 # work, assume that -exports_file does not work either and
10606 # implicitly export all symbols.
10607 # This should be the same for all languages, so no per-tag cache variable.
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10609 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10610 if ${lt_cv_irix_exported_symbol+:} false; then :
10611 $as_echo_n "(cached) " >&6
10613 save_LDFLAGS=$LDFLAGS
10614 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 int foo (void) { return 0; }
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 lt_cv_irix_exported_symbol=yes
10622 lt_cv_irix_exported_symbol=no
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LDFLAGS=$save_LDFLAGS
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10629 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10630 if test yes = "$lt_cv_irix_exported_symbol"; then
10631 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'
10633 link_all_deplibs=no
10635 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'
10636 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'
10638 archive_cmds_need_lc='no'
10639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640 hardcode_libdir_separator=:
10642 link_all_deplibs=yes
10646 case $cc_basename in
10648 # Fabrice Bellard et al's Tiny C Compiler
10650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10655 netbsd* | netbsdelf*-gnu)
10656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10659 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10661 hardcode_libdir_flag_spec='-R$libdir'
10662 hardcode_direct=yes
10663 hardcode_shlibpath_var=no
10667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668 hardcode_direct=yes
10669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10670 hardcode_libdir_separator=:
10671 hardcode_shlibpath_var=no
10677 openbsd* | bitrig*)
10678 if test -f /usr/libexec/ld.so; then
10679 hardcode_direct=yes
10680 hardcode_shlibpath_var=no
10681 hardcode_direct_absolute=yes
10682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10685 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10686 export_dynamic_flag_spec='$wl-E'
10688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10689 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10697 hardcode_libdir_flag_spec='-L$libdir'
10698 hardcode_minus_L=yes
10699 allow_undefined_flag=unsupported
10701 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10702 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10703 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10704 $ECHO EXPORTS >> $output_objdir/$libname.def~
10705 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10706 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10707 emximp -o $lib $output_objdir/$libname.def'
10708 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10711 $ECHO EXPORTS >> $output_objdir/$libname.def~
10712 prefix_cmds="$SED"~
10713 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10714 prefix_cmds="$prefix_cmds -e 1d";
10716 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10717 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10718 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10719 emximp -o $lib $output_objdir/$libname.def'
10720 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10721 enable_shared_with_static_runtimes=yes
10725 if test yes = "$GCC"; then
10726 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10727 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'
10729 allow_undefined_flag=' -expect_unresolved \*'
10730 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'
10732 archive_cmds_need_lc='no'
10733 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10734 hardcode_libdir_separator=:
10737 osf4* | osf5*) # as osf3* with the addition of -msym flag
10738 if test yes = "$GCC"; then
10739 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10740 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'
10741 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10743 allow_undefined_flag=' -expect_unresolved \*'
10744 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'
10745 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~
10746 $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'
10748 # Both c and cxx compiler support -rpath directly
10749 hardcode_libdir_flag_spec='-rpath $libdir'
10751 archive_cmds_need_lc='no'
10752 hardcode_libdir_separator=:
10756 no_undefined_flag=' -z defs'
10757 if test yes = "$GCC"; then
10759 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761 $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'
10763 case `$CC -V 2>&1` in
10766 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10768 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10772 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10774 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10778 hardcode_libdir_flag_spec='-R$libdir'
10779 hardcode_shlibpath_var=no
10781 solaris2.[0-5] | solaris2.[0-5].*) ;;
10783 # The compiler driver will combine and reorder linker options,
10784 # but understands '-z linker_flag'. GCC discards it without '$wl',
10785 # but is careful enough not to reorder.
10786 # Supported since Solaris 2.6 (maybe 2.5.1?)
10787 if test yes = "$GCC"; then
10788 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10790 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10794 link_all_deplibs=yes
10798 if test sequent = "$host_vendor"; then
10799 # Use $CC to link under sequent, because it throws in some extra .o
10800 # files that make .init and .fini sections work.
10801 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10803 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_direct=yes
10807 hardcode_minus_L=yes
10808 hardcode_shlibpath_var=no
10812 case $host_vendor in
10814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815 hardcode_direct=yes # is this really true???
10818 ## LD is ld it makes a PLAMLIB
10819 ## CC just makes a GrossModule.
10820 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10821 reload_cmds='$CC -r -o $output$reload_objs'
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10829 runpath_var='LD_RUN_PATH'
10830 hardcode_shlibpath_var=no
10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 hardcode_shlibpath_var=no
10836 export_dynamic_flag_spec='-Bexport'
10840 if test -d /usr/nec; then
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_shlibpath_var=no
10843 runpath_var=LD_RUN_PATH
10844 hardcode_runpath_var=yes
10849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10850 no_undefined_flag='$wl-z,text'
10851 archive_cmds_need_lc=no
10852 hardcode_shlibpath_var=no
10853 runpath_var='LD_RUN_PATH'
10855 if test yes = "$GCC"; then
10856 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10864 sysv5* | sco3.2v5* | sco5v6*)
10865 # Note: We CANNOT use -z defs as we might desire, because we do not
10866 # link with -lc, and that would cause any symbols used from libc to
10867 # always be unresolved, which means just about no library would
10868 # ever link correctly. If we're not using GNU ld we use -z text
10869 # though, which does catch some bad symbols but isn't as heavy-handed
10871 no_undefined_flag='$wl-z,text'
10872 allow_undefined_flag='$wl-z,nodefs'
10873 archive_cmds_need_lc=no
10874 hardcode_shlibpath_var=no
10875 hardcode_libdir_flag_spec='$wl-R,$libdir'
10876 hardcode_libdir_separator=':'
10877 link_all_deplibs=yes
10878 export_dynamic_flag_spec='$wl-Bexport'
10879 runpath_var='LD_RUN_PATH'
10881 if test yes = "$GCC"; then
10882 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_libdir_flag_spec='-L$libdir'
10893 hardcode_shlibpath_var=no
10901 if test sni = "$host_vendor"; then
10903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10904 export_dynamic_flag_spec='$wl-Blargedynsym'
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10911 $as_echo "$ld_shlibs" >&6; }
10912 test no = "$ld_shlibs" && can_build_shared=no
10914 with_gnu_ld=$with_gnu_ld
10931 # Do we need to explicitly link libc?
10933 case "x$archive_cmds_need_lc" in
10935 # Assume -lc should be added
10936 archive_cmds_need_lc=yes
10938 if test yes,yes = "$GCC,$enable_shared"; then
10939 case $archive_cmds in
10941 # FIXME: we may have to deal with multi-command sequences.
10944 # Test whether the compiler implicitly links with -lc since on some
10945 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10946 # to ld, don't add -lc before -lgcc.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10948 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10949 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10950 $as_echo_n "(cached) " >&6
10953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10956 (eval $ac_compile) 2>&5
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } 2>conftest.err; then
10962 libobjs=conftest.$ac_objext
10964 wl=$lt_prog_compiler_wl
10965 pic_flag=$lt_prog_compiler_pic
10971 lt_save_allow_undefined_flag=$allow_undefined_flag
10972 allow_undefined_flag=
10973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10974 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977 test $ac_status = 0; }
10979 lt_cv_archive_cmds_need_lc=no
10981 lt_cv_archive_cmds_need_lc=yes
10983 allow_undefined_flag=$lt_save_allow_undefined_flag
10985 cat conftest.err 1>&5
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10991 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10992 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11151 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11153 if test yes = "$GCC"; then
11155 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11156 *) lt_awk_arg='/^libraries:/' ;;
11159 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11160 *) lt_sed_strip_eq='s|=/|/|g' ;;
11162 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11163 case $lt_search_path_spec in
11165 # if the path contains ";" then we assume it to be the separator
11166 # otherwise default to the standard path separator (i.e. ":") - it is
11167 # assumed that no part of a normal pathname contains ";" but that should
11168 # okay in the real world where ";" in dirpaths is itself problematic.
11169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11175 # Ok, now we have the path, separated by spaces, we can step through it
11176 # and add multilib dir if necessary...
11177 lt_tmp_lt_search_path_spec=
11178 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11179 # ...but if some path component already ends with the multilib dir we assume
11180 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11181 case "$lt_multi_os_dir; $lt_search_path_spec " in
11182 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11186 for lt_sys_path in $lt_search_path_spec; do
11187 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11188 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11189 elif test -n "$lt_multi_os_dir"; then
11190 test -d "$lt_sys_path" && \
11191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11194 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11195 BEGIN {RS = " "; FS = "/|\n";} {
11198 for (lt_i = NF; lt_i > 0; lt_i--) {
11199 if ($lt_i != "" && $lt_i != ".") {
11200 if ($lt_i == "..") {
11203 if (lt_count == 0) {
11204 lt_foo = "/" $lt_i lt_foo;
11211 if (lt_foo != "") { lt_freq[lt_foo]++; }
11212 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11214 # AWK program above erroneously prepends '/' to C:/dos/paths
11217 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11218 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11220 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11224 library_names_spec=
11225 libname_spec='lib$name'
11229 postuninstall_cmds=
11233 shlibpath_overrides_runpath=unknown
11235 dynamic_linker="$host_os ld.so"
11236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11237 need_lib_prefix=unknown
11238 hardcode_into_libs=no
11240 # when you set need_version to no, make sure it does not cause -set_version
11241 # flags to be left without arguments
11242 need_version=unknown
11248 version_type=linux # correct to gnu/linux during the next big refactor
11249 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11250 shlibpath_var=LIBPATH
11252 # AIX 3 has no versioning support, so we append a major version to the name.
11253 soname_spec='$libname$release$shared_ext$major'
11257 version_type=linux # correct to gnu/linux during the next big refactor
11260 hardcode_into_libs=yes
11261 if test ia64 = "$host_cpu"; then
11262 # AIX 5 supports IA64
11263 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11264 shlibpath_var=LD_LIBRARY_PATH
11266 # With GCC up to 2.95.x, collect2 would create an import file
11267 # for dependence libraries. The import file would start with
11268 # the line '#! .'. This would cause the generated library to
11269 # depend on '.', always an invalid library. This was fixed in
11270 # development snapshots of GCC prior to 3.0.
11272 aix4 | aix4.[01] | aix4.[01].*)
11273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11275 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11278 can_build_shared=no
11282 # Using Import Files as archive members, it is possible to support
11283 # filename-based versioning of shared library archives on AIX. While
11284 # this would work for both with and without runtime linking, it will
11285 # prevent static linking of such archives. So we do filename-based
11286 # shared library versioning with .so extension only, which is used
11287 # when both runtime linking and shared linking is enabled.
11288 # Unfortunately, runtime linking may impact performance, so we do
11289 # not want this to be the default eventually. Also, we use the
11290 # versioned .so libs for executables only if there is the -brtl
11291 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11292 # To allow for filename-based versioning support, we need to create
11293 # libNAME.so.V as an archive file, containing:
11294 # *) an Import File, referring to the versioned filename of the
11295 # archive as well as the shared archive member, telling the
11296 # bitwidth (32 or 64) of that shared object, and providing the
11297 # list of exported symbols of that shared object, eventually
11298 # decorated with the 'weak' keyword
11299 # *) the shared object with the F_LOADONLY flag set, to really avoid
11300 # it being seen by the linker.
11301 # At run time we better use the real file rather than another symlink,
11302 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11304 case $with_aix_soname,$aix_use_runtimelinking in
11305 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11306 # soname into executable. Probably we can add versioning support to
11307 # collect2, so additional links can be useful in future.
11308 aix,yes) # traditional libtool
11309 dynamic_linker='AIX unversionable lib.so'
11310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11311 # instead of lib<name>.a to let people know that these are not
11312 # typical AIX shared libraries.
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 aix,no) # traditional AIX only
11316 dynamic_linker='AIX lib.a(lib.so.V)'
11317 # We preserve .a as extension for shared libraries through AIX4.2
11318 # and later when we are not doing run time linking.
11319 library_names_spec='$libname$release.a $libname.a'
11320 soname_spec='$libname$release$shared_ext$major'
11322 svr4,*) # full svr4 only
11323 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11324 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11325 # We do not specify a path in Import Files, so LIBPATH fires.
11326 shlibpath_overrides_runpath=yes
11328 *,yes) # both, prefer svr4
11329 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11330 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11331 # unpreferred sharedlib libNAME.a needs extra handling
11332 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"'
11333 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"'
11334 # We do not specify a path in Import Files, so LIBPATH fires.
11335 shlibpath_overrides_runpath=yes
11337 *,no) # both, prefer aix
11338 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11339 library_names_spec='$libname$release.a $libname.a'
11340 soname_spec='$libname$release$shared_ext$major'
11341 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11342 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)'
11343 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"'
11346 shlibpath_var=LIBPATH
11353 # Since July 2007 AmigaOS4 officially supports .so libraries.
11354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358 library_names_spec='$libname.ixlibrary $libname.a'
11359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11360 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'
11366 library_names_spec='$libname$shared_ext'
11367 dynamic_linker="$host_os ld.so"
11368 shlibpath_var=LIBRARY_PATH
11372 version_type=linux # correct to gnu/linux during the next big refactor
11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375 soname_spec='$libname$release$shared_ext$major'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11380 # the default ld.so.conf also contains /usr/contrib/lib and
11381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11382 # libtool to hard-code these into programs
11385 cygwin* | mingw* | pw32* | cegcc*)
11386 version_type=windows
11391 case $GCC,$cc_basename in
11394 library_names_spec='$libname.dll.a'
11395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11396 postinstall_cmds='base_file=`basename \$file`~
11397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11398 dldir=$destdir/`dirname \$dlpath`~
11399 test -d \$dldir || mkdir -p \$dldir~
11400 $install_prog $dir/$dlname \$dldir/$dlname~
11401 chmod a+x \$dldir/$dlname~
11402 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11403 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11406 dlpath=$dir/\$dldll~
11408 shlibpath_overrides_runpath=yes
11412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11413 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11415 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11418 # MinGW DLLs use traditional 'lib' prefix
11419 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11422 # pw32 DLLs use 'pw' prefix rather than 'lib'
11423 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11426 dynamic_linker='Win32 ld.exe'
11431 libname_spec='$name'
11432 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11433 library_names_spec='$libname.dll.lib'
11437 sys_lib_search_path_spec=
11440 for lt_path in $LIB
11443 # Let DOS variable expansion print the short 8.3 style file name.
11444 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11445 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11448 # Convert to MSYS style.
11449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11452 # Convert to unix form, then to dos form, then back to unix form
11453 # but this time dos style (no spaces!) so that the unix form looks
11454 # like /cygdrive/c/PROGRA~1:/cygdr...
11455 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11456 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11457 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11460 sys_lib_search_path_spec=$LIB
11461 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11462 # It is most probably a Windows format PATH.
11463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11467 # FIXME: find the short name or the path components, as spaces are
11468 # common. (e.g. "Program Files" -> "PROGRA~1")
11472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473 postinstall_cmds='base_file=`basename \$file`~
11474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11475 dldir=$destdir/`dirname \$dlpath`~
11476 test -d \$dldir || mkdir -p \$dldir~
11477 $install_prog $dir/$dlname \$dldir/$dlname'
11478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479 dlpath=$dir/\$dldll~
11481 shlibpath_overrides_runpath=yes
11482 dynamic_linker='Win32 link.exe'
11486 # Assume MSVC wrapper
11487 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11488 dynamic_linker='Win32 ld.exe'
11491 # FIXME: first we should search . and the directory the executable is in
11495 darwin* | rhapsody*)
11496 dynamic_linker="$host_os dyld"
11497 version_type=darwin
11500 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11501 soname_spec='$libname$release$major$shared_ext'
11502 shlibpath_overrides_runpath=yes
11503 shlibpath_var=DYLD_LIBRARY_PATH
11504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11506 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11511 version_type=linux # correct to gnu/linux during the next big refactor
11514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515 soname_spec='$libname$release$shared_ext$major'
11516 shlibpath_var=LD_LIBRARY_PATH
11519 freebsd* | dragonfly*)
11520 # DragonFly does not have aout. When/if they implement a new
11521 # versioning mechanism, adjust this.
11522 if test -x /usr/bin/objformat; then
11523 objformat=`/usr/bin/objformat`
11526 freebsd[23].*) objformat=aout ;;
11527 *) objformat=elf ;;
11530 version_type=freebsd-$objformat
11531 case $version_type in
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 soname_spec='$libname$release$shared_ext$major'
11539 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11543 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11548 freebsd3.[01]* | freebsdelf3.[01]*)
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11554 shlibpath_overrides_runpath=no
11555 hardcode_into_libs=yes
11557 *) # from 4.6 on, and DragonFly
11558 shlibpath_overrides_runpath=yes
11559 hardcode_into_libs=yes
11565 version_type=linux # correct to gnu/linux during the next big refactor
11568 dynamic_linker="$host_os runtime_loader"
11569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570 soname_spec='$libname$release$shared_ext$major'
11571 shlibpath_var=LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11574 hardcode_into_libs=yes
11577 hpux9* | hpux10* | hpux11*)
11578 # Give a soname corresponding to the major version so that dld.sl refuses to
11579 # link against other versions.
11586 hardcode_into_libs=yes
11587 dynamic_linker="$host_os dld.so"
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 soname_spec='$libname$release$shared_ext$major'
11592 if test 32 = "$HPUX_IA64_MODE"; then
11593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11594 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11597 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11602 hardcode_into_libs=yes
11603 dynamic_linker="$host_os dld.sl"
11604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607 soname_spec='$libname$release$shared_ext$major'
11608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11613 dynamic_linker="$host_os dld.sl"
11614 shlibpath_var=SHLIB_PATH
11615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617 soname_spec='$libname$release$shared_ext$major'
11620 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11621 postinstall_cmds='chmod 555 $lib'
11622 # or fails outright, so override atomically:
11623 install_override_mode=555
11627 version_type=linux # correct to gnu/linux during the next big refactor
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631 soname_spec='$libname$release$shared_ext$major'
11632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=no
11635 hardcode_into_libs=yes
11638 irix5* | irix6* | nonstopux*)
11640 nonstopux*) version_type=nonstopux ;;
11642 if test yes = "$lt_cv_prog_gnu_ld"; then
11643 version_type=linux # correct to gnu/linux during the next big refactor
11650 soname_spec='$libname$release$shared_ext$major'
11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11653 irix5* | nonstopux*)
11654 libsuff= shlibsuff=
11657 case $LD in # libtool.m4 will add one of these switches to LD
11658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11659 libsuff= shlibsuff= libmagic=32-bit;;
11660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11661 libsuff=32 shlibsuff=N32 libmagic=N32;;
11662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11664 *) libsuff= shlibsuff= libmagic=never-match;;
11668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11669 shlibpath_overrides_runpath=no
11670 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11671 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11672 hardcode_into_libs=yes
11675 # No shared lib support for Linux oldld, aout, or coff.
11676 linux*oldld* | linux*aout* | linux*coff*)
11681 version_type=none # Android doesn't support versioned libraries.
11684 library_names_spec='$libname$release$shared_ext'
11685 soname_spec='$libname$release$shared_ext'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=yes
11690 # This implies no fast_install, which is unacceptable.
11691 # Some rework will be needed to allow for fast_install
11692 # before this can be enabled.
11693 hardcode_into_libs=yes
11695 dynamic_linker='Android linker'
11696 # Don't embed -rpath directories since the linker doesn't support them.
11697 hardcode_libdir_flag_spec='-L$libdir'
11700 # This must be glibc/ELF.
11701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11702 version_type=linux # correct to gnu/linux during the next big refactor
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=no
11711 # Some binutils ld are patched to set DT_RUNPATH
11712 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11713 $as_echo_n "(cached) " >&6
11715 lt_cv_shlibpath_overrides_runpath=no
11716 save_LDFLAGS=$LDFLAGS
11717 save_libdir=$libdir
11718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11733 lt_cv_shlibpath_overrides_runpath=yes
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LDFLAGS=$save_LDFLAGS
11739 libdir=$save_libdir
11743 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11745 # This implies no fast_install, which is unacceptable.
11746 # Some rework will be needed to allow for fast_install
11747 # before this can be enabled.
11748 hardcode_into_libs=yes
11750 # Ideally, we could use ldconfig to report *all* directores which are
11751 # searched for libraries, however this is still not possible. Aside from not
11752 # being certain /sbin/ldconfig is available, command
11753 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11754 # even though it is searched at run-time. Try to do the best guess by
11755 # appending ld.so.conf contents (and includes) to the search path.
11756 if test -f /etc/ld.so.conf; then
11757 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' ' '`
11758 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11761 # We used to test for /lib/ld.so.1 and disable shared libraries on
11762 # powerpc, because MkLinux only supported shared libraries with the
11763 # GNU dynamic linker. Since this was broken with cross compilers,
11764 # most powerpc-linux boxes support dynamic linking these days and
11765 # people can always --disable-shared, the test was removed, and we
11766 # assume the GNU/Linux dynamic linker is in use.
11767 dynamic_linker='GNU/Linux ld.so'
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11775 soname_spec='${libname}${release}${shared_ext}$major'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=no
11778 hardcode_into_libs=yes
11779 dynamic_linker='NetBSD ld.elf_so'
11786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11789 dynamic_linker='NetBSD (a.out) ld.so'
11791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11792 soname_spec='$libname$release$shared_ext$major'
11793 dynamic_linker='NetBSD ld.elf_so'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11801 version_type=linux # correct to gnu/linux during the next big refactor
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=yes
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 soname_spec='$libname$release$shared_ext$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=no
11815 hardcode_into_libs=yes
11816 dynamic_linker='ldqnx.so'
11819 openbsd* | bitrig*)
11821 sys_lib_dlsearch_path_spec=/usr/lib
11823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11835 libname_spec='$name'
11836 version_type=windows
11840 # OS/2 can only load a DLL with a base name of 8 characters or less.
11841 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11842 v=$($ECHO $release$versuffix | tr -d .-);
11843 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11844 $ECHO $n$v`$shared_ext'
11845 library_names_spec='${libname}_dll.$libext'
11846 dynamic_linker='OS/2 ld.exe'
11847 shlibpath_var=BEGINLIBPATH
11848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11850 postinstall_cmds='base_file=`basename \$file`~
11851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11852 dldir=$destdir/`dirname \$dlpath`~
11853 test -d \$dldir || mkdir -p \$dldir~
11854 $install_prog $dir/$dlname \$dldir/$dlname~
11855 chmod a+x \$dldir/$dlname~
11856 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11857 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11860 dlpath=$dir/\$dldll~
11864 osf3* | osf4* | osf5*)
11868 soname_spec='$libname$release$shared_ext$major'
11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11880 version_type=linux # correct to gnu/linux during the next big refactor
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11884 soname_spec='$libname$release$shared_ext$major'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 hardcode_into_libs=yes
11888 # ldd complains unless libraries are executable
11889 postinstall_cmds='chmod +x $lib'
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=yes
11898 if test yes = "$with_gnu_ld"; then
11905 version_type=linux # correct to gnu/linux during the next big refactor
11906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11907 soname_spec='$libname$release$shared_ext$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 case $host_vendor in
11911 shlibpath_overrides_runpath=no
11913 runpath_var=LD_RUN_PATH
11921 shlibpath_overrides_runpath=no
11922 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11928 if test -d /usr/nec; then
11929 version_type=linux # correct to gnu/linux during the next big refactor
11930 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11931 soname_spec='$libname$shared_ext.$major'
11932 shlibpath_var=LD_LIBRARY_PATH
11936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11941 soname_spec='$libname$release$shared_ext$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=yes
11944 hardcode_into_libs=yes
11945 if test yes = "$with_gnu_ld"; then
11946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11948 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11955 sys_lib_dlsearch_path_spec='/usr/lib'
11959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11960 version_type=linux # correct to gnu/linux during the next big refactor
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=no
11966 hardcode_into_libs=yes
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11981 $as_echo "$dynamic_linker" >&6; }
11982 test no = "$dynamic_linker" && can_build_shared=no
11984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11985 if test yes = "$GCC"; then
11986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11989 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11990 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11993 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11994 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11997 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11998 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12000 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12001 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12003 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12004 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12105 if test -n "$hardcode_libdir_flag_spec" ||
12106 test -n "$runpath_var" ||
12107 test yes = "$hardcode_automatic"; then
12109 # We can hardcode non-existent directories.
12110 if test no != "$hardcode_direct" &&
12111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12112 # have to relink, otherwise we might link with an installed library
12113 # when we should be linking with a yet-to-be-installed one
12114 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12115 test no != "$hardcode_minus_L"; then
12116 # Linking always hardcodes the temporary library directory.
12117 hardcode_action=relink
12119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12120 hardcode_action=immediate
12123 # We cannot hardcode anything, or else we can only hardcode existing
12125 hardcode_action=unsupported
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12128 $as_echo "$hardcode_action" >&6; }
12130 if test relink = "$hardcode_action" ||
12131 test yes = "$inherit_rpath"; then
12132 # Fast installation is not supported
12133 enable_fast_install=no
12134 elif test yes = "$shlibpath_overrides_runpath" ||
12135 test no = "$enable_shared"; then
12136 # Fast installation is not necessary
12137 enable_fast_install=needless
12145 if test yes != "$enable_dlopen"; then
12146 enable_dlopen=unknown
12147 enable_dlopen_self=unknown
12148 enable_dlopen_self_static=unknown
12155 lt_cv_dlopen=load_add_on
12157 lt_cv_dlopen_self=yes
12160 mingw* | pw32* | cegcc*)
12161 lt_cv_dlopen=LoadLibrary
12166 lt_cv_dlopen=dlopen
12171 # if libdl is installed we need to link against it
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12173 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12174 if ${ac_cv_lib_dl_dlopen+:} false; then :
12175 $as_echo_n "(cached) " >&6
12177 ac_check_lib_save_LIBS=$LIBS
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12182 /* Override any GCC internal prototype to avoid an error.
12183 Use char because int might match the return type of a GCC
12184 builtin and then its argument prototype would still apply. */
12197 if ac_fn_c_try_link "$LINENO"; then :
12198 ac_cv_lib_dl_dlopen=yes
12200 ac_cv_lib_dl_dlopen=no
12202 rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12208 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12209 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12214 lt_cv_dlopen_self=yes
12221 # Don't try to run any link tests for TPF. We know it's impossible
12222 # because TPF is a cross-compiler, and we know how we open DSOs.
12223 lt_cv_dlopen=dlopen
12225 lt_cv_dlopen_self=no
12229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12230 if test "x$ac_cv_func_shl_load" = xyes; then :
12231 lt_cv_dlopen=shl_load
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12234 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12235 if ${ac_cv_lib_dld_shl_load+:} false; then :
12236 $as_echo_n "(cached) " >&6
12238 ac_check_lib_save_LIBS=$LIBS
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12253 return shl_load ();
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 ac_cv_lib_dld_shl_load=yes
12261 ac_cv_lib_dld_shl_load=no
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12268 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12269 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12270 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12272 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12273 if test "x$ac_cv_func_dlopen" = xyes; then :
12274 lt_cv_dlopen=dlopen
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12278 if ${ac_cv_lib_dl_dlopen+:} false; then :
12279 $as_echo_n "(cached) " >&6
12281 ac_check_lib_save_LIBS=$LIBS
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12301 if ac_fn_c_try_link "$LINENO"; then :
12302 ac_cv_lib_dl_dlopen=yes
12304 ac_cv_lib_dl_dlopen=no
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12312 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12313 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12316 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12317 if ${ac_cv_lib_svld_dlopen+:} false; then :
12318 $as_echo_n "(cached) " >&6
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lsvld $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_lib_svld_dlopen=yes
12343 ac_cv_lib_svld_dlopen=no
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12350 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12351 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12352 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12355 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12356 if ${ac_cv_lib_dld_dld_link+:} false; then :
12357 $as_echo_n "(cached) " >&6
12359 ac_check_lib_save_LIBS=$LIBS
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12374 return dld_link ();
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_lib_dld_dld_link=yes
12382 ac_cv_lib_dld_dld_link=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12390 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12391 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12412 if test no = "$lt_cv_dlopen"; then
12418 case $lt_cv_dlopen in
12420 save_CPPFLAGS=$CPPFLAGS
12421 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12423 save_LDFLAGS=$LDFLAGS
12424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12427 LIBS="$lt_cv_dlopen_libs $LIBS"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12431 if ${lt_cv_dlopen_self+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 if test yes = "$cross_compiling"; then :
12435 lt_cv_dlopen_self=cross
12437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438 lt_status=$lt_dlunknown
12439 cat > conftest.$ac_ext <<_LT_EOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12450 # define LT_DLGLOBAL RTLD_GLOBAL
12453 # define LT_DLGLOBAL DL_GLOBAL
12455 # define LT_DLGLOBAL 0
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460 find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12466 # define LT_DLLAZY_OR_NOW DL_LAZY
12469 # define LT_DLLAZY_OR_NOW RTLD_NOW
12472 # define LT_DLLAZY_OR_NOW DL_NOW
12474 # define LT_DLLAZY_OR_NOW 0
12481 /* When -fvisibility=hidden is used, assume the code has been annotated
12482 correspondingly for the symbols needed. */
12483 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 int fnord () __attribute__((visibility("default")));
12487 int fnord () { return 42; }
12490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491 int status = $lt_dlunknown;
12495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12499 else puts (dlerror ());
12501 /* dlclose (self); */
12509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510 (eval $ac_link) 2>&5
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514 (./conftest; exit; ) >&5 2>/dev/null
12516 case x$lt_status in
12517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12519 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12522 # compilation failed
12523 lt_cv_dlopen_self=no
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12531 $as_echo "$lt_cv_dlopen_self" >&6; }
12533 if test yes = "$lt_cv_dlopen_self"; then
12534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12536 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12537 if ${lt_cv_dlopen_self_static+:} false; then :
12538 $as_echo_n "(cached) " >&6
12540 if test yes = "$cross_compiling"; then :
12541 lt_cv_dlopen_self_static=cross
12543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12544 lt_status=$lt_dlunknown
12545 cat > conftest.$ac_ext <<_LT_EOF
12546 #line $LINENO "configure"
12547 #include "confdefs.h"
12556 # define LT_DLGLOBAL RTLD_GLOBAL
12559 # define LT_DLGLOBAL DL_GLOBAL
12561 # define LT_DLGLOBAL 0
12565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12566 find out it does not work in some platform. */
12567 #ifndef LT_DLLAZY_OR_NOW
12569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12572 # define LT_DLLAZY_OR_NOW DL_LAZY
12575 # define LT_DLLAZY_OR_NOW RTLD_NOW
12578 # define LT_DLLAZY_OR_NOW DL_NOW
12580 # define LT_DLLAZY_OR_NOW 0
12587 /* When -fvisibility=hidden is used, assume the code has been annotated
12588 correspondingly for the symbols needed. */
12589 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12590 int fnord () __attribute__((visibility("default")));
12593 int fnord () { return 42; }
12596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12597 int status = $lt_dlunknown;
12601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12604 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12605 else puts (dlerror ());
12607 /* dlclose (self); */
12615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12616 (eval $ac_link) 2>&5
12618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12619 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12620 (./conftest; exit; ) >&5 2>/dev/null
12622 case x$lt_status in
12623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12628 # compilation failed
12629 lt_cv_dlopen_self_static=no
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12640 CPPFLAGS=$save_CPPFLAGS
12641 LDFLAGS=$save_LDFLAGS
12646 case $lt_cv_dlopen_self in
12647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12648 *) enable_dlopen_self=unknown ;;
12651 case $lt_cv_dlopen_self_static in
12652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12653 *) enable_dlopen_self_static=unknown ;;
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12676 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12677 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681 $as_echo "yes" >&6; }
12683 # FIXME - insert some real tests, host_os isn't really good enough
12686 if test -n "$STRIP"; then
12687 striplib="$STRIP -x"
12688 old_striplib="$STRIP -S"
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12690 $as_echo "yes" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12714 # Report what library types will actually be built
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12718 $as_echo "$can_build_shared" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12721 $as_echo_n "checking whether to build shared libraries... " >&6; }
12722 test no = "$can_build_shared" && enable_shared=no
12724 # On AIX, shared libraries and static libraries use the same namespace, and
12725 # are all built from PIC.
12728 test yes = "$enable_shared" && enable_static=no
12729 if test -n "$RANLIB"; then
12730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12731 postinstall_cmds='$RANLIB $lib'
12736 if test ia64 != "$host_cpu"; then
12737 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12738 yes,aix,yes) ;; # shared object as lib.so file only
12739 yes,svr4,*) ;; # shared object as lib.so archive member only
12740 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12746 $as_echo "$enable_shared" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12749 $as_echo_n "checking whether to build static libraries... " >&6; }
12750 # Make sure either enable_shared or enable_static is yes.
12751 test yes = "$enable_shared" || enable_static=yes
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12753 $as_echo "$enable_static" >&6; }
12760 ac_cpp='$CPP $CPPFLAGS'
12761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781 ac_config_commands="$ac_config_commands libtool"
12786 # Only expand once:
12791 # Automatically update the libtool script if it becomes out-of-date.
12794 # Checks for header files.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12796 $as_echo_n "checking for ANSI C header files... " >&6; }
12797 if ${ac_cv_header_stdc+:} false; then :
12798 $as_echo_n "(cached) " >&6
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12802 #include <stdlib.h>
12803 #include <stdarg.h>
12804 #include <string.h>
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816 ac_cv_header_stdc=yes
12818 ac_cv_header_stdc=no
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 if test $ac_cv_header_stdc = yes; then
12823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <string.h>
12829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12830 $EGREP "memchr" >/dev/null 2>&1; then :
12833 ac_cv_header_stdc=no
12839 if test $ac_cv_header_stdc = yes; then
12840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #include <stdlib.h>
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847 $EGREP "free" >/dev/null 2>&1; then :
12850 ac_cv_header_stdc=no
12856 if test $ac_cv_header_stdc = yes; then
12857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12858 if test "$cross_compiling" = yes; then :
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12864 #include <stdlib.h>
12865 #if ((' ' & 0x0FF) == 0x020)
12866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12869 # define ISLOWER(c) \
12870 (('a' <= (c) && (c) <= 'i') \
12871 || ('j' <= (c) && (c) <= 'r') \
12872 || ('s' <= (c) && (c) <= 'z'))
12873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12881 for (i = 0; i < 256; i++)
12882 if (XOR (islower (i), ISLOWER (i))
12883 || toupper (i) != TOUPPER (i))
12888 if ac_fn_c_try_run "$LINENO"; then :
12891 ac_cv_header_stdc=no
12893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12894 conftest.$ac_objext conftest.beam conftest.$ac_ext
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12900 $as_echo "$ac_cv_header_stdc" >&6; }
12901 if test $ac_cv_header_stdc = yes; then
12903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12907 for ac_header in errno.h fcntl.h stdlib.h unistd.h termios.h string.h sys/time.h sys/types.h stdarg.h arpa/inet.h stdio.h
12909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12917 as_fn_error $? "some header files not found" "$LINENO" 5
12923 # Checks for typedefs, structures, and compiler characteristics.
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12925 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12926 if ${ac_cv_c_const+:} false; then :
12927 $as_echo_n "(cached) " >&6
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12936 #ifndef __cplusplus
12937 /* Ultrix mips cc rejects this sort of thing. */
12938 typedef int charset[2];
12939 const charset cs = { 0, 0 };
12940 /* SunOS 4.1.1 cc rejects this. */
12941 char const *const *pcpcc;
12943 /* NEC SVR4.0.2 mips cc rejects this. */
12944 struct point {int x, y;};
12945 static struct point const zero = {0,0};
12946 /* AIX XL C 1.02.0.0 rejects this.
12947 It does not let you subtract one const X* pointer from another in
12948 an arm of an if-expression whose if-part is not a constant
12950 const char *g = "string";
12951 pcpcc = &g + (g ? g-g : 0);
12952 /* HPUX 7.0 cc rejects these. */
12954 ppc = (char**) pcpcc;
12955 pcpcc = (char const *const *) ppc;
12956 { /* SCO 3.2v4 cc rejects this sort of thing. */
12959 char const *s = 0 ? (char *) 0 : (char const *) 0;
12964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12965 int x[] = {25, 17};
12966 const int *foo = &x[0];
12969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12970 typedef const int *iptr;
12974 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12976 struct s { int j; const int *ap[3]; } bx;
12977 struct s *b = &bx; b->j = 5;
12979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12980 const int foo = 10;
12981 if (!foo) return 0;
12983 return !cs[0] && !zero.x;
12990 if ac_fn_c_try_compile "$LINENO"; then :
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12998 $as_echo "$ac_cv_c_const" >&6; }
12999 if test $ac_cv_c_const = no; then
13001 $as_echo "#define const /**/" >>confdefs.h
13005 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13006 if test "x$ac_cv_type_size_t" = xyes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define size_t unsigned int
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13017 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13018 if ${ac_cv_header_time+:} false; then :
13019 $as_echo_n "(cached) " >&6
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 #include <sys/types.h>
13024 #include <sys/time.h>
13030 if ((struct tm *) 0)
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037 ac_cv_header_time=yes
13039 ac_cv_header_time=no
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13044 $as_echo "$ac_cv_header_time" >&6; }
13045 if test $ac_cv_header_time = yes; then
13047 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13052 # Checks for library functions.
13053 for ac_func in select strerror strncpy memcpy strlcpy strlcat
13055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13057 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13066 # Select OS specific versions of source files.
13069 BUNDLE_HOST=`uname | sed -e s,/,_,`
13071 case "$BUNDLE_HOST" in
13074 DYN_LIB_EXT="dylib"
13077 BUNDLE_HOST=Solaris
13082 # Check whether --enable-libusb was given.
13083 if test "${enable_libusb+set}" = set; then :
13084 enableval=$enable_libusb; use_libusb="${enableval}"
13090 # check if libusb is used
13091 LIBUSB_NEEDED_VERSION="1.0.9"
13092 if test "x$use_libusb" != xno ; then
13093 if test -n "$PKG_CONFIG" && \
13094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13095 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13098 test $ac_status = 0; }; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0 >= $LIBUSB_NEEDED_VERSION" >&5
13103 $as_echo_n "checking for libusb-1.0 >= $LIBUSB_NEEDED_VERSION... " >&6; }
13105 if test -n "$LIBUSB_CFLAGS"; then
13106 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13107 elif test -n "$PKG_CONFIG"; then
13108 if test -n "$PKG_CONFIG" && \
13109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5
13110 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; then
13114 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null`
13115 test "x$?" != "x0" && pkg_failed=yes
13122 if test -n "$LIBUSB_LIBS"; then
13123 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13124 elif test -n "$PKG_CONFIG"; then
13125 if test -n "$PKG_CONFIG" && \
13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5
13127 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5
13129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130 test $ac_status = 0; }; then
13131 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null`
13132 test "x$?" != "x0" && pkg_failed=yes
13142 if test $pkg_failed = yes; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13147 _pkg_short_errors_supported=yes
13149 _pkg_short_errors_supported=no
13151 if test $_pkg_short_errors_supported = yes; then
13152 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1`
13154 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1`
13156 # Put the nasty error message in config.log where it belongs
13157 echo "$LIBUSB_PKG_ERRORS" >&5
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5
13161 $as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;}
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
13165 $as_echo_n "checking for libusb-1.0... " >&6; }
13167 if test -n "$LIBUSB_CFLAGS"; then
13168 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13169 elif test -n "$PKG_CONFIG"; then
13170 if test -n "$PKG_CONFIG" && \
13171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13172 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }; then
13176 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13177 test "x$?" != "x0" && pkg_failed=yes
13184 if test -n "$LIBUSB_LIBS"; then
13185 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13186 elif test -n "$PKG_CONFIG"; then
13187 if test -n "$PKG_CONFIG" && \
13188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13189 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; }; then
13193 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13194 test "x$?" != "x0" && pkg_failed=yes
13204 if test $pkg_failed = yes; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13209 _pkg_short_errors_supported=yes
13211 _pkg_short_errors_supported=no
13213 if test $_pkg_short_errors_supported = yes; then
13214 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13216 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13218 # Put the nasty error message in config.log where it belongs
13219 echo "$LIBUSB_PKG_ERRORS" >&5
13221 as_fn_error $? "Package requirements (libusb-1.0) were not met:
13225 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13226 installed software in a non-standard prefix.
13228 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13229 and LIBUSB_LIBS to avoid the need to call pkg-config.
13230 See the pkg-config man page for more details." "$LINENO" 5
13231 elif test $pkg_failed = untried; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13237 is in your PATH or set the PKG_CONFIG environment variable to the full
13238 path to pkg-config.
13240 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13241 and LIBUSB_LIBS to avoid the need to call pkg-config.
13242 See the pkg-config man page for more details.
13244 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13245 See \`config.log' for more details" "$LINENO" 5; }
13247 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13248 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13250 $as_echo "yes" >&6; }
13254 elif test $pkg_failed = untried; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5
13259 $as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;}
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
13263 $as_echo_n "checking for libusb-1.0... " >&6; }
13265 if test -n "$LIBUSB_CFLAGS"; then
13266 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13267 elif test -n "$PKG_CONFIG"; then
13268 if test -n "$PKG_CONFIG" && \
13269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13270 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273 test $ac_status = 0; }; then
13274 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13275 test "x$?" != "x0" && pkg_failed=yes
13282 if test -n "$LIBUSB_LIBS"; then
13283 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13284 elif test -n "$PKG_CONFIG"; then
13285 if test -n "$PKG_CONFIG" && \
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13287 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; }; then
13291 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13292 test "x$?" != "x0" && pkg_failed=yes
13302 if test $pkg_failed = yes; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13307 _pkg_short_errors_supported=yes
13309 _pkg_short_errors_supported=no
13311 if test $_pkg_short_errors_supported = yes; then
13312 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13314 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13316 # Put the nasty error message in config.log where it belongs
13317 echo "$LIBUSB_PKG_ERRORS" >&5
13319 as_fn_error $? "Package requirements (libusb-1.0) were not met:
13323 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13324 installed software in a non-standard prefix.
13326 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13327 and LIBUSB_LIBS to avoid the need to call pkg-config.
13328 See the pkg-config man page for more details." "$LINENO" 5
13329 elif test $pkg_failed = untried; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13334 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13335 is in your PATH or set the PKG_CONFIG environment variable to the full
13336 path to pkg-config.
13338 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13339 and LIBUSB_LIBS to avoid the need to call pkg-config.
13340 See the pkg-config man page for more details.
13342 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13343 See \`config.log' for more details" "$LINENO" 5; }
13345 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13346 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13353 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13354 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13362 saved_CPPFLAGS="$CPPFLAGS"
13365 CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS"
13366 LIBS="$LDFLAGS $LIBUSB_LIBS"
13368 for ac_header in libusb.h
13370 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
13371 if test "x$ac_cv_header_libusb_h" = xyes; then :
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_LIBUSB_H 1
13377 as_fn_error $? "libusb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=..." "$LINENO" 5
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init" >&5
13384 $as_echo_n "checking for libusb_init... " >&6; }
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13394 char libusb_init ();
13398 return libusb_init ();
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13407 as_fn_error $? "libusb not found, use ./configure LIBUSB_LIBS=..." "$LINENO" 5
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13412 CPPFLAGS="$saved_CPPFLAGS"
13419 if test "${use_libusb}" != "no"; then
13421 WITH_LIBUSB_FALSE='#'
13423 WITH_LIBUSB_TRUE='#'
13428 # --enable-composite-as-multislot
13429 use_composite_as_multislot=no
13430 # Check whether --enable-composite-as-multislot was given.
13431 if test "${enable_composite_as_multislot+set}" = set; then :
13432 enableval=$enable_composite_as_multislot; use_composite_as_multislot="${enableval}"
13436 if test "x$use_composite_as_multislot" = xyes; then
13438 $as_echo "#define USE_COMPOSITE_AS_MULTISLOT 1" >>confdefs.h
13442 # check if the compiler support -fvisibility=hidden (GCC >= 4)
13443 saved_CFLAGS="$CFLAGS"
13444 CFLAGS="$CFLAGS -fvisibility=hidden"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden" >&5
13446 $as_echo_n "checking for -fvisibility=hidden... " >&6; }
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454 SYMBOL_VISIBILITY="-fvisibility=hidden"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 CFLAGS="$saved_CFLAGS"
13463 # --disable-multi-thread
13464 # Check whether --enable-multi-thread was given.
13465 if test "${enable_multi_thread+set}" = set; then :
13466 enableval=$enable_multi_thread; multithread="${enableval}"
13472 if test "${multithread}" != no ; then
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13483 # We used to check for pthread.h first, but this fails if pthread.h
13484 # requires special compiler flags (e.g. on True64 or Sequent).
13485 # It gets checked for in the link test anyway.
13487 # First of all, check if the user has set any of the PTHREAD_LIBS,
13488 # etcetera environment variables, and if threads linking works using
13490 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13491 save_CFLAGS="$CFLAGS"
13492 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13494 LIBS="$PTHREAD_LIBS $LIBS"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13496 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13506 char pthread_join ();
13510 return pthread_join ();
13515 if ac_fn_c_try_link "$LINENO"; then :
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13521 $as_echo "$ax_pthread_ok" >&6; }
13522 if test x"$ax_pthread_ok" = xno; then
13527 CFLAGS="$save_CFLAGS"
13530 # We must check for the threads library under a number of different
13531 # names; the ordering is very important because some systems
13532 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13533 # libraries is broken (non-POSIX).
13535 # Create a list of thread flags to try. Items starting with a "-" are
13536 # C compiler flags, and other items are library names, except for "none"
13537 # which indicates that we try without any flags at all, and "pthread-config"
13538 # which is a program returning the flags for the Pth emulation library.
13540 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13542 # The ordering *is* (sometimes) important. Some notes on the
13543 # individual items follow:
13545 # pthreads: AIX (must check this before -lpthread)
13546 # none: in case threads are in libc; should be tried before -Kthread and
13547 # other compiler flags to prevent continual compiler warnings
13548 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13549 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13550 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13551 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13552 # -pthreads: Solaris/gcc
13553 # -mthreads: Mingw32/gcc, Lynx/gcc
13554 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13555 # doesn't hurt to check since this sometimes defines pthreads too;
13556 # also defines -D_REENTRANT)
13557 # ... -mt is also the pthreads flag for HP/aCC
13558 # pthread: Linux, etcetera
13559 # --thread-safe: KAI C++
13560 # pthread-config: use pthread-config program (for GNU Pth library)
13565 # On Solaris (at least, for some versions), libc contains stubbed
13566 # (non-functional) versions of the pthreads routines, so link-based
13567 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
13568 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13569 # a function called by this macro, so we could check for that, but
13570 # who knows whether they'll stub that too in a future libc.) So,
13571 # we'll just look for -pthreads and -lpthread first:
13573 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
13577 ax_pthread_flags="-pthread $ax_pthread_flags"
13581 if test x"$ax_pthread_ok" = xno; then
13582 for flag in $ax_pthread_flags; do
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13587 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13592 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
13593 PTHREAD_CFLAGS="$flag"
13597 # Extract the first word of "pthread-config", so it can be a program name with args.
13598 set dummy pthread-config; ac_word=$2
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600 $as_echo_n "checking for $ac_word... " >&6; }
13601 if ${ac_cv_prog_ax_pthread_config+:} false; then :
13602 $as_echo_n "(cached) " >&6
13604 if test -n "$ax_pthread_config"; then
13605 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608 for as_dir in $PATH
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13614 ac_cv_prog_ax_pthread_config="yes"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13625 ax_pthread_config=$ac_cv_prog_ax_pthread_config
13626 if test -n "$ax_pthread_config"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13628 $as_echo "$ax_pthread_config" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13635 if test x"$ax_pthread_config" = xno; then continue; fi
13636 PTHREAD_CFLAGS="`pthread-config --cflags`"
13637 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13642 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13643 PTHREAD_LIBS="-l$flag"
13648 save_CFLAGS="$CFLAGS"
13649 LIBS="$PTHREAD_LIBS $LIBS"
13650 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13652 # Check for various functions. We must include pthread.h,
13653 # since some functions may be macros. (On the Sequent, we
13654 # need a special flag -Kthread to make this header compile.)
13655 # We check for pthread_join because it is in -lpthread on IRIX
13656 # while pthread_create is in libc. We check for pthread_attr_init
13657 # due to DEC craziness with -lpthreads. We check for
13658 # pthread_cleanup_push because it is one of the few pthread
13659 # functions on Solaris that doesn't have a non-functional libc stub.
13660 # We try pthread_create on general principles.
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 #include <pthread.h>
13664 static void routine(void *a) { a = 0; }
13665 static void *start_routine(void *a) { return a; }
13669 pthread_t th; pthread_attr_t attr;
13670 pthread_create(&th, 0, start_routine, 0);
13671 pthread_join(th, 0);
13672 pthread_attr_init(&attr);
13673 pthread_cleanup_push(routine, 0);
13674 pthread_cleanup_pop(0) /* ; */
13679 if ac_fn_c_try_link "$LINENO"; then :
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext conftest.$ac_ext
13686 CFLAGS="$save_CFLAGS"
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13689 $as_echo "$ax_pthread_ok" >&6; }
13690 if test "x$ax_pthread_ok" = xyes; then
13699 # Various other checks:
13700 if test "x$ax_pthread_ok" = xyes; then
13702 LIBS="$PTHREAD_LIBS $LIBS"
13703 save_CFLAGS="$CFLAGS"
13704 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13706 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13708 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13710 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 #include <pthread.h>
13717 int attr = $attr; return attr /* ; */
13722 if ac_fn_c_try_link "$LINENO"; then :
13723 attr_name=$attr; break
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13729 $as_echo "$attr_name" >&6; }
13730 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13732 cat >>confdefs.h <<_ACEOF
13733 #define PTHREAD_CREATE_JOINABLE $attr_name
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13739 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13742 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
13743 osf* | hpux*) flag="-D_REENTRANT";;
13745 if test "$GCC" = "yes"; then
13746 flag="-D_REENTRANT"
13748 flag="-mt -D_REENTRANT"
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13753 $as_echo "${flag}" >&6; }
13754 if test "x$flag" != xno; then
13755 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13759 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13760 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
13761 $as_echo_n "(cached) " >&6
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 #include <pthread.h>
13771 int i = PTHREAD_PRIO_INHERIT;
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 ax_cv_PTHREAD_PRIO_INHERIT=yes
13779 ax_cv_PTHREAD_PRIO_INHERIT=no
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13786 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13787 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
13789 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13794 CFLAGS="$save_CFLAGS"
13796 # More AIX lossage: must compile with xlc_r or cc_r
13797 if test x"$GCC" != xyes; then
13798 for ac_prog in xlc_r cc_r
13800 # Extract the first word of "$ac_prog", so it can be a program name with args.
13801 set dummy $ac_prog; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13805 $as_echo_n "(cached) " >&6
13807 if test -n "$PTHREAD_CC"; then
13808 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_prog_PTHREAD_CC="$ac_prog"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13828 if test -n "$PTHREAD_CC"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13830 $as_echo "$PTHREAD_CC" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13837 test -n "$PTHREAD_CC" && break
13839 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13852 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13853 if test x"$ax_pthread_ok" = xyes; then
13855 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13861 as_fn_error $? "POSIX thread support required" "$LINENO" 5
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13874 # --enable-bundle=NAME
13875 # Check whether --enable-bundle was given.
13876 if test "${enable_bundle+set}" = set; then :
13877 enableval=$enable_bundle; bundle="${enableval}"
13882 if test "${bundle}" = false ; then
13883 bundle="ifd-ccid.bundle"
13886 cat >>confdefs.h <<_ACEOF
13887 #define BUNDLE "$bundle"
13891 # --enable-usbdropdir=DIR
13892 # Check whether --enable-usbdropdir was given.
13893 if test "${enable_usbdropdir+set}" = set; then :
13894 enableval=$enable_usbdropdir; usbdropdir="${enableval}"
13899 if test "${usbdropdir}" = false ; then
13900 usbdropdir=`$PKG_CONFIG libpcsclite --variable=usbdropdir`
13903 cat >>confdefs.h <<_ACEOF
13904 #define PCSCLITE_HP_DROPDIR "$usbdropdir"
13907 if test "${usbdropdir}" = "" ; then
13908 as_fn_error $? "use --enable-usbdropdir=DIR" "$LINENO" 5
13911 # --enable-twinserial
13912 # Check whether --enable-twinserial was given.
13913 if test "${enable_twinserial+set}" = set; then :
13914 enableval=$enable_twinserial; twinserial="${enableval}"
13919 if test "${twinserial}" != "no"; then
13920 WITH_TWIN_SERIAL_TRUE=
13921 WITH_TWIN_SERIAL_FALSE='#'
13923 WITH_TWIN_SERIAL_TRUE='#'
13924 WITH_TWIN_SERIAL_FALSE=
13928 # --enable-ccidtwindir=DIR
13929 # Check whether --enable-ccidtwindir was given.
13930 if test "${enable_ccidtwindir+set}" = set; then :
13931 enableval=$enable_ccidtwindir; ccidtwindir="${enableval}"
13936 if test "${ccidtwindir}" = false ; then
13937 ccidtwindir=$usbdropdir/serial
13940 # --enable-serialconfdir=DIR
13941 # Check whether --enable-serialconfdir was given.
13942 if test "${enable_serialconfdir+set}" = set; then :
13943 enableval=$enable_serialconfdir; serialconfdir="${enableval}"
13945 serialconfdir=false
13948 if test "${serialconfdir}" = false ; then
13949 serialconfdir=`$PKG_CONFIG libpcsclite --variable=serialconfdir`
13952 # --disable-pcsclite
13953 # Check whether --enable-pcsclite was given.
13954 if test "${enable_pcsclite+set}" = set; then :
13955 enableval=$enable_pcsclite; pcsclite="${enableval}"
13961 if test "${pcsclite}" != no ; then
13962 # check that pcsc-lite is installed
13964 OLD_CFLAGS="$CFLAGS"
13965 LIBS="$LIBS $PCSC_LIBS"
13966 CFLAGS="$CFLAGS $PCSC_CFLAGS"
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCardEstablishContext" >&5
13968 $as_echo_n "checking for SCardEstablishContext... " >&6; }
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13978 char SCardEstablishContext ();
13982 return SCardEstablishContext ();
13987 if ac_fn_c_try_link "$LINENO"; then :
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13989 $as_echo "yes" >&6; }
13991 as_fn_error $? "SCardEstablishContext() not found, install pcsc-lite, or use PCSC_LIBS=... ./configure" "$LINENO" 5
13993 rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13996 CFLAGS="$OLD_CFLAGS"
14000 if test "${pcsclite}" != "yes"; then
14002 WITHOUT_PCSC_FALSE='#'
14004 WITHOUT_PCSC_TRUE='#'
14005 WITHOUT_PCSC_FALSE=
14012 # Check whether --enable-syslog was given.
14013 if test "${enable_syslog+set}" = set; then :
14014 enableval=$enable_syslog; use_syslog="${enableval}"
14020 if test x$use_syslog = xyes; then
14022 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14027 # Check whether --enable-oslog was given.
14028 if test "${enable_oslog+set}" = set; then :
14029 enableval=$enable_oslog; use_oslog="${enableval}"
14035 if test x$use_oslog = xyes; then
14037 $as_echo "#define USE_OS_LOG 1" >>confdefs.h
14043 # Check whether --enable-class was given.
14044 if test "${enable_class+set}" = set; then :
14045 enableval=$enable_class; class="${enableval}"
14050 if test "${class}" != yes ; then
14051 NOCLASS="--no-class"
14055 # --enable-embedded
14056 # Check whether --enable-embedded was given.
14057 if test "${enable_embedded+set}" = set; then :
14058 enableval=$enable_embedded; use_embedded="${enableval}"
14062 if test x$use_embedded = xyes; then
14064 $as_echo "#define NO_LOG 1" >>confdefs.h
14069 # Check whether --enable-zlp was given.
14070 if test "${enable_zlp+set}" = set; then :
14071 enableval=$enable_zlp; use_zlp="${enableval}"
14075 if test x$use_zlp = xyes; then
14077 $as_echo "#define ENABLE_ZLP 1" >>confdefs.h
14091 prefix_save=$prefix
14092 exec_prefix_save=$exec_prefix
14094 if test "x$prefix" = "xNONE"; then
14095 prefix="$ac_default_prefix"
14097 if test "x$exec_prefix" = "xNONE"; then
14098 exec_prefix=$prefix
14101 full_var="$FROM_VAR"
14103 new_full_var="`eval echo $full_var`"
14104 if test "x$new_full_var" = "x$full_var"; then break; fi
14105 full_var=$new_full_var
14108 full_var=$new_full_var
14109 bindir_exp="$full_var"
14112 prefix=$prefix_save
14113 exec_prefix=$exec_prefix_save
14116 EXP_VAR=sysconfdir_exp
14117 FROM_VAR=$sysconfdir
14119 prefix_save=$prefix
14120 exec_prefix_save=$exec_prefix
14122 if test "x$prefix" = "xNONE"; then
14123 prefix="$ac_default_prefix"
14125 if test "x$exec_prefix" = "xNONE"; then
14126 exec_prefix=$prefix
14129 full_var="$FROM_VAR"
14131 new_full_var="`eval echo $full_var`"
14132 if test "x$new_full_var" = "x$full_var"; then break; fi
14133 full_var=$new_full_var
14136 full_var=$new_full_var
14137 sysconfdir_exp="$full_var"
14140 prefix=$prefix_save
14141 exec_prefix=$exec_prefix_save
14146 libccid has been configured with following options:
14148 Version: ${PACKAGE_VERSION}
14149 User binaries: $(eval eval eval echo "${bindir_exp}")
14150 Configuration files: $(eval eval eval echo "${sysconfdir_exp}")
14155 Preprocessor flags: ${CPPFLAGS}
14156 Compiler flags: ${CFLAGS}
14157 Preprocessor flags: ${CPPFLAGS}
14158 Linker flags: ${LDFLAGS}
14161 PCSC_CFLAGS: ${PCSC_CFLAGS}
14162 PCSC_LIBS: ${PCSC_LIBS}
14163 PTHREAD_CFLAGS: ${PTHREAD_CFLAGS}
14164 PTHREAD_LIBS: ${PTHREAD_LIBS}
14165 BUNDLE_HOST: ${BUNDLE_HOST}
14166 DYN_LIB_EXT: ${DYN_LIB_EXT}
14167 LIBUSB_CFLAGS: ${LIBUSB_CFLAGS}
14168 LIBUSB_LIBS: ${LIBUSB_LIBS}
14169 SYMBOL_VISIBILITY: ${SYMBOL_VISIBILITY}
14170 NOCLASS: ${NOCLASS}
14172 libusb support: ${use_libusb}
14173 composite as multislot: ${use_composite_as_multislot}
14174 multi threading: ${multithread}
14175 bundle directory name: ${bundle}
14176 USB drop directory: ${usbdropdir}
14177 serial Twin support: ${twinserial}
14178 serial twin install dir: ${ccidtwindir}
14179 serial config directory: ${serialconfdir}
14180 compiled for pcsc-lite: ${pcsclite}
14181 syslog debug: ${use_syslog}
14182 os_log debug: ${use_oslog}
14183 class driver: ${class}
14188 ac_config_files="$ac_config_files Makefile src/Makefile readers/Makefile contrib/Makefile contrib/Kobil_mIDentity_switch/Makefile contrib/RSA_SecurID/Makefile examples/Makefile"
14191 cat >confcache <<\_ACEOF
14192 # This file is a shell script that caches the results of configure
14193 # tests run on this system so they can be shared between configure
14194 # scripts and configure runs, see configure's option --config-cache.
14195 # It is not useful on other systems. If it contains results you don't
14196 # want to keep, you may remove or edit it.
14198 # config.status only pays attention to the cache file if you give it
14199 # the --recheck option to rerun configure.
14201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14203 # following values.
14207 # The following way of writing the cache mishandles newlines in values,
14208 # but we know of no workaround that is simple, portable, and efficient.
14209 # So, we kill variables containing newlines.
14210 # Ultrix sh set writes to stderr and can't be redirected directly,
14211 # and sets the high bit in the cache file unless we assign to the vars.
14213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14214 eval ac_val=\$$ac_var
14218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14222 _ | IFS | as_nl) ;; #(
14223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14224 *) { eval $ac_var=; unset $ac_var;} ;;
14230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14231 *${as_nl}ac_space=\ *)
14232 # `set' does not quote correctly, so add quotes: double-quote
14233 # substitution turns \\\\ into \\, and sed turns \\ into \.
14236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14239 # `set' quotes correctly as required by POSIX, so do not add quotes.
14240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14254 if test -w "$cache_file"; then
14255 if test "x$cache_file" != "x/dev/null"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14257 $as_echo "$as_me: updating cache $cache_file" >&6;}
14258 if test ! -f "$cache_file" || test -h "$cache_file"; then
14259 cat confcache >"$cache_file"
14261 case $cache_file in #(
14263 mv -f confcache "$cache_file"$$ &&
14264 mv -f "$cache_file"$$ "$cache_file" ;; #(
14266 mv -f confcache "$cache_file" ;;
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14278 # Let make expand exec_prefix.
14279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14281 DEFS=-DHAVE_CONFIG_H
14286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14287 # 1. Remove the extension, and $U if already installed.
14288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14291 # will be set to the directory where LIBOBJS objects are built.
14292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14295 LIBOBJS=$ac_libobjs
14297 LTLIBOBJS=$ac_ltlibobjs
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14301 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14302 if test -n "$am_sleep_pid"; then
14303 # Hide warnings about reused PIDs.
14304 wait $am_sleep_pid 2>/dev/null
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14307 $as_echo "done" >&6; }
14308 if test -n "$EXEEXT"; then
14310 am__EXEEXT_FALSE='#'
14312 am__EXEEXT_TRUE='#'
14316 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14317 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14321 as_fn_error $? "conditional \"AMDEP\" was never defined.
14322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14328 if test -z "${WITH_LIBUSB_TRUE}" && test -z "${WITH_LIBUSB_FALSE}"; then
14329 as_fn_error $? "conditional \"WITH_LIBUSB\" was never defined.
14330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14332 if test -z "${WITH_TWIN_SERIAL_TRUE}" && test -z "${WITH_TWIN_SERIAL_FALSE}"; then
14333 as_fn_error $? "conditional \"WITH_TWIN_SERIAL\" was never defined.
14334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14336 if test -z "${WITHOUT_PCSC_TRUE}" && test -z "${WITHOUT_PCSC_FALSE}"; then
14337 as_fn_error $? "conditional \"WITHOUT_PCSC\" was never defined.
14338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14341 : "${CONFIG_STATUS=./config.status}"
14343 ac_clean_files_save=$ac_clean_files
14344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14346 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14348 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14350 # Generated by $as_me.
14351 # Run this file to recreate the current configuration.
14352 # Compiler output produced by configure, useful for debugging
14353 # configure, is in config.log if it exists.
14356 ac_cs_recheck=false
14359 SHELL=\${CONFIG_SHELL-$SHELL}
14362 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14363 ## -------------------- ##
14364 ## M4sh Initialization. ##
14365 ## -------------------- ##
14367 # Be more Bourne compatible
14368 DUALCASE=1; export DUALCASE # for MKS sh
14369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14372 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14373 # is contrary to our usage. Disable this feature.
14374 alias -g '${1+"$@"}'='"$@"'
14375 setopt NO_GLOB_SUBST
14377 case `(set -o) 2>/dev/null` in #(
14389 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14390 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14393 # Prefer a ksh shell builtin over an external printf program on Solaris,
14394 # but without wasting forks for bash or zsh.
14395 if test -z "$BASH_VERSION$ZSH_VERSION" \
14396 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14397 as_echo='print -r --'
14398 as_echo_n='print -rn --'
14399 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14400 as_echo='printf %s\n'
14401 as_echo_n='printf %s'
14403 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14404 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14405 as_echo_n='/usr/ucb/echo -n'
14407 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14408 as_echo_n_body='eval
14412 expr "X$arg" : "X\\(.*\\)$as_nl";
14413 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14415 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14417 export as_echo_n_body
14418 as_echo_n='sh -c $as_echo_n_body as_echo'
14420 export as_echo_body
14421 as_echo='sh -c $as_echo_body as_echo'
14424 # The user is always right.
14425 if test "${PATH_SEPARATOR+set}" != set; then
14427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14428 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14435 # We need space, tab and new line, in precisely that order. Quoting is
14436 # there to prevent editors from complaining about space-tab.
14437 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14438 # splitting by setting IFS to empty value.)
14441 # Find who we are. Look in the path if we contain no directory separator.
14444 *[\\/]* ) as_myself=$0 ;;
14445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14449 test -z "$as_dir" && as_dir=.
14450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14456 # We did not find ourselves, most probably we were run as `sh COMMAND'
14457 # in which case we are not to be found in the path.
14458 if test "x$as_myself" = x; then
14461 if test ! -f "$as_myself"; then
14462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14466 # Unset variables that we do not need and which cause bugs (e.g. in
14467 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14468 # suppresses any "Segmentation fault" message there. '((' could
14469 # trigger a bug in pdksh 5.2.14.
14470 for as_var in BASH_ENV ENV MAIL MAILPATH
14471 do eval test x\${$as_var+set} = xset \
14472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14489 # ----------------------------------------
14490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14492 # script with STATUS, using 1 if that was 0.
14495 as_status=$1; test $as_status -eq 0 && as_status=1
14497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14500 $as_echo "$as_me: error: $2" >&2
14501 as_fn_exit $as_status
14505 # as_fn_set_status STATUS
14506 # -----------------------
14507 # Set $? to STATUS, without forking.
14508 as_fn_set_status ()
14511 } # as_fn_set_status
14513 # as_fn_exit STATUS
14514 # -----------------
14515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14519 as_fn_set_status $1
14525 # Portably unset VAR.
14528 { eval $1=; unset $1;}
14530 as_unset=as_fn_unset
14531 # as_fn_append VAR VALUE
14532 # ----------------------
14533 # Append the text in VALUE to the end of the definition contained in VAR. Take
14534 # advantage of any shell optimizations that allow amortized linear growth over
14535 # repeated appends, instead of the typical quadratic growth present in naive
14537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14538 eval 'as_fn_append ()
14549 # as_fn_arith ARG...
14550 # ------------------
14551 # Perform arithmetic evaluation on the ARGs, and store the result in the
14552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14553 # must be portable across $(()) and expr.
14554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14555 eval 'as_fn_arith ()
14562 as_val=`expr "$@" || test $? -eq 1`
14567 if expr a : '\(a\)' >/dev/null 2>&1 &&
14568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14575 as_basename=basename
14580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14586 as_me=`$as_basename -- "$0" ||
14587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14588 X"$0" : 'X\(//\)$' \| \
14589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14591 sed '/^.*\/\([^/][^/]*\)\/*$/{
14605 # Avoid depending upon Character Ranges.
14606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14609 as_cr_digits='0123456789'
14610 as_cr_alnum=$as_cr_Letters$as_cr_digits
14612 ECHO_C= ECHO_N= ECHO_T=
14613 case `echo -n x` in #(((((
14615 case `echo 'xy\c'` in
14616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14625 rm -f conf$$ conf$$.exe conf$$.file
14626 if test -d conf$$.dir; then
14627 rm -f conf$$.dir/conf$$.file
14630 mkdir conf$$.dir 2>/dev/null
14632 if (echo >conf$$.file) 2>/dev/null; then
14633 if ln -s conf$$.file conf$$ 2>/dev/null; then
14635 # ... but there are two gotchas:
14636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14638 # In both cases, we have to default to `cp -pR'.
14639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14641 elif ln conf$$.file conf$$ 2>/dev/null; then
14649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14650 rmdir conf$$.dir 2>/dev/null
14655 # Create "$as_dir" as a directory, including parents if necessary.
14660 -*) as_dir=./$as_dir;;
14662 test -d "$as_dir" || eval $as_mkdir_p || {
14666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14667 *) as_qdir=$as_dir;;
14669 as_dirs="'$as_qdir' $as_dirs"
14670 as_dir=`$as_dirname -- "$as_dir" ||
14671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14672 X"$as_dir" : 'X\(//\)[^/]' \| \
14673 X"$as_dir" : 'X\(//\)$' \| \
14674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14675 $as_echo X"$as_dir" |
14676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14680 /^X\(\/\/\)[^/].*/{
14693 test -d "$as_dir" && break
14695 test -z "$as_dirs" || eval "mkdir $as_dirs"
14696 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14700 if mkdir -p . 2>/dev/null; then
14701 as_mkdir_p='mkdir -p "$as_dir"'
14703 test -d ./-p && rmdir ./-p
14708 # as_fn_executable_p FILE
14709 # -----------------------
14710 # Test if FILE is an executable regular file.
14711 as_fn_executable_p ()
14713 test -f "$1" && test -x "$1"
14714 } # as_fn_executable_p
14715 as_test_x='test -x'
14716 as_executable_p=as_fn_executable_p
14718 # Sed expression to map a string onto a valid CPP name.
14719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14721 # Sed expression to map a string onto a valid variable name.
14722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14726 ## ----------------------------------- ##
14727 ## Main body of $CONFIG_STATUS script. ##
14728 ## ----------------------------------- ##
14730 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14733 # Save the log message, to keep $0 and so on meaningful, and to
14734 # report actual input values of CONFIG_FILES etc. instead of their
14735 # values after options handling.
14737 This file was extended by ccid $as_me 1.4.33, which was
14738 generated by GNU Autoconf 2.69. Invocation command line was
14740 CONFIG_FILES = $CONFIG_FILES
14741 CONFIG_HEADERS = $CONFIG_HEADERS
14742 CONFIG_LINKS = $CONFIG_LINKS
14743 CONFIG_COMMANDS = $CONFIG_COMMANDS
14746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14751 case $ac_config_files in *"
14752 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14755 case $ac_config_headers in *"
14756 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14761 # Files that config.status was made for.
14762 config_files="$ac_config_files"
14763 config_headers="$ac_config_headers"
14764 config_commands="$ac_config_commands"
14768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14770 \`$as_me' instantiates files and other configuration actions
14771 from templates according to the current configuration. Unless the files
14772 and actions are specified as TAGs, all are instantiated by default.
14774 Usage: $0 [OPTION]... [TAG]...
14776 -h, --help print this help, then exit
14777 -V, --version print version number and configuration settings, then exit
14778 --config print configuration, then exit
14779 -q, --quiet, --silent
14780 do not print progress messages
14781 -d, --debug don't remove temporary files
14782 --recheck update $as_me by reconfiguring in the same conditions
14783 --file=FILE[:TEMPLATE]
14784 instantiate the configuration file FILE
14785 --header=FILE[:TEMPLATE]
14786 instantiate the configuration header FILE
14788 Configuration files:
14791 Configuration headers:
14794 Configuration commands:
14797 Report bugs to the package provider."
14800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14801 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14803 ccid config.status 1.4.33
14804 configured by $0, generated by GNU Autoconf 2.69,
14805 with options \\"\$ac_cs_config\\"
14807 Copyright (C) 2012 Free Software Foundation, Inc.
14808 This config.status script is free software; the Free Software Foundation
14809 gives unlimited permission to copy, distribute and modify it."
14816 test -n "\$AWK" || AWK=awk
14819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14820 # The default lists apply if the user does not specify any file.
14826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14843 # Handling of the options.
14844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14846 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14847 $as_echo "$ac_cs_version"; exit ;;
14848 --config | --confi | --conf | --con | --co | --c )
14849 $as_echo "$ac_cs_config"; exit ;;
14850 --debug | --debu | --deb | --de | --d | -d )
14852 --file | --fil | --fi | --f )
14855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14856 '') as_fn_error $? "missing file argument" ;;
14858 as_fn_append CONFIG_FILES " '$ac_optarg'"
14859 ac_need_defaults=false;;
14860 --header | --heade | --head | --hea )
14863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14865 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14866 ac_need_defaults=false;;
14868 # Conflict between --help and --header
14869 as_fn_error $? "ambiguous option: \`$1'
14870 Try \`$0 --help' for more information.";;
14871 --help | --hel | -h )
14872 $as_echo "$ac_cs_usage"; exit ;;
14873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14874 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14877 # This is an error.
14878 -*) as_fn_error $? "unrecognized option: \`$1'
14879 Try \`$0 --help' for more information." ;;
14881 *) as_fn_append ac_config_targets " $1"
14882 ac_need_defaults=false ;;
14888 ac_configure_extra_args=
14890 if $ac_cs_silent; then
14892 ac_configure_extra_args="$ac_configure_extra_args --silent"
14896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897 if \$ac_cs_recheck; then
14898 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14900 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14901 CONFIG_SHELL='$SHELL'
14902 export CONFIG_SHELL
14907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14912 ## Running $as_me. ##
14918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14922 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14925 # The HP-UX ksh and POSIX shell print the target directory to stdout
14926 # if CDPATH is set.
14927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14929 sed_quote_subst='$sed_quote_subst'
14930 double_quote_subst='$double_quote_subst'
14931 delay_variable_subst='$delay_variable_subst'
14932 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14933 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14934 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14935 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14936 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14937 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14938 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14939 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14940 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14941 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14942 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14943 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14944 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14945 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14946 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14947 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14948 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14949 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14950 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14951 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14952 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14953 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14954 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14955 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14956 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14957 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14958 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14959 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14960 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14961 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14962 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14963 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14964 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14965 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14966 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14967 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14968 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14969 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14970 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14971 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14972 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14973 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14974 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14975 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14976 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14977 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14978 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14979 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14980 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14981 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14982 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14983 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14984 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14985 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14986 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14987 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14988 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14989 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14990 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"`'
14991 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14992 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14993 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14994 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14995 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14996 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14997 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14998 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14999 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15000 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15001 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15002 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15003 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15004 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15005 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15006 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15007 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15008 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15009 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15010 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15011 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15012 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15013 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15014 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15015 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15016 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15017 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15018 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15019 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15020 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15021 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15022 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15023 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15024 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15025 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15026 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15035 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15036 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15037 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15038 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15039 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15040 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15059 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15060 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15061 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15062 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15063 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15064 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15065 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15066 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15069 LTCFLAGS='$LTCFLAGS'
15070 compiler='$compiler_DEFAULT'
15072 # A function that is used when there is no print builtin or printf.
15073 func_fallback_echo ()
15075 eval 'cat <<_LTECHO_EOF
15080 # Quote evaled strings.
15095 deplibs_check_method \
15100 sharedlib_from_linklib_cmd \
15103 archiver_list_spec \
15109 lt_cv_sys_global_symbol_pipe \
15110 lt_cv_sys_global_symbol_to_cdecl \
15111 lt_cv_sys_global_symbol_to_import \
15112 lt_cv_sys_global_symbol_to_c_name_address \
15113 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15114 lt_cv_nm_interface \
15115 nm_file_list_spec \
15116 lt_cv_truncate_bin \
15117 lt_prog_compiler_no_builtin_flag \
15118 lt_prog_compiler_pic \
15119 lt_prog_compiler_wl \
15120 lt_prog_compiler_static \
15121 lt_cv_prog_compiler_c_o \
15130 export_dynamic_flag_spec \
15131 whole_archive_flag_spec \
15132 compiler_needs_object \
15134 allow_undefined_flag \
15135 no_undefined_flag \
15136 hardcode_libdir_flag_spec \
15137 hardcode_libdir_separator \
15141 variables_saved_for_relink \
15143 library_names_spec \
15145 install_override_mode \
15149 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15150 *[\\\\\\\`\\"\\\$]*)
15151 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15154 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15159 # Double-quote double-evaled strings.
15160 for var in reload_cmds \
15161 old_postinstall_cmds \
15162 old_postuninstall_cmds \
15164 extract_expsyms_cmds \
15165 old_archive_from_new_cmds \
15166 old_archive_from_expsyms_cmds \
15168 archive_expsym_cmds \
15170 module_expsym_cmds \
15171 export_symbols_cmds \
15175 postuninstall_cmds \
15177 sys_lib_search_path_spec \
15178 configure_time_dlsearch_path \
15179 configure_time_lt_sys_library_path; do
15180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15181 *[\\\\\\\`\\"\\\$]*)
15182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15190 ac_aux_dir='$ac_aux_dir'
15192 # See if we are running on zsh, and set the options that allow our
15193 # commands through without removal of \ escapes INIT.
15194 if test -n "\${ZSH_VERSION+set}"; then
15195 setopt NO_GLOB_SUBST
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15211 # Handling of arguments.
15212 for ac_config_target in $ac_config_targets
15214 case $ac_config_target in
15215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15217 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15219 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15220 "readers/Makefile") CONFIG_FILES="$CONFIG_FILES readers/Makefile" ;;
15221 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15222 "contrib/Kobil_mIDentity_switch/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Kobil_mIDentity_switch/Makefile" ;;
15223 "contrib/RSA_SecurID/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/RSA_SecurID/Makefile" ;;
15224 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15226 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15231 # If the user did not use the arguments to specify the items to instantiate,
15232 # then the envvar interface is used. Set only those that are not.
15233 # We use the long form for the default assignment because of an extremely
15234 # bizarre bug on SunOS 4.1.3.
15235 if $ac_need_defaults; then
15236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15241 # Have a temporary directory for convenience. Make it in the build tree
15242 # simply because there is no reason against having it here, and in addition,
15243 # creating and moving files from /tmp can sometimes cause problems.
15244 # Hook for its removal unless debugging.
15245 # Note that there is a small window in which the directory will not be cleaned:
15246 # after its creation but before its name has been assigned to `$tmp'.
15250 trap 'exit_status=$?
15251 : "${ac_tmp:=$tmp}"
15252 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15254 trap 'as_fn_exit 1' 1 2 13 15
15256 # Create a (secure) tmp directory for tmp files.
15259 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15263 tmp=./conf$$-$RANDOM
15264 (umask 077 && mkdir "$tmp")
15265 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15268 # Set up the scripts for CONFIG_FILES section.
15269 # No need to generate them if there are no CONFIG_FILES.
15270 # This happens for instance with `./config.status config.h'.
15271 if test -n "$CONFIG_FILES"; then
15274 ac_cr=`echo X | tr X '\015'`
15275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15276 # But we know of no other shell where ac_cr would be empty at this
15277 # point, so we can use a bashism as a fallback.
15278 if test "x$ac_cr" = x; then
15279 eval ac_cr=\$\'\\r\'
15281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15285 ac_cs_awk_cr=$ac_cr
15288 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15293 echo "cat >conf$$subs.awk <<_ACEOF" &&
15294 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15296 } >conf$$subs.sh ||
15297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15300 for ac_last_try in false false false false false :; do
15301 . ./conf$$subs.sh ||
15302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15304 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15305 if test $ac_delim_n = $ac_delim_num; then
15307 elif $ac_last_try; then
15308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15313 rm -f conf$$subs.sh
15315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15320 s/^/S["/; s/!.*/"]=/
15330 s/\(.\{148\}\)..*/\1/
15332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15344 s/\(.\{148\}\)..*/\1/
15346 s/["\\]/\\&/g; s/^/"/; s/$/"/
15350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15355 ' <conf$$subs.awk | sed '
15360 ' >>$CONFIG_STATUS || ac_write_fail=1
15361 rm -f conf$$subs.awk
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15364 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15365 for (key in S) S_is_set[key] = 1
15371 nfields = split(line, field, "@")
15373 len = length(field[1])
15374 for (i = 2; i < nfields; i++) {
15376 keylen = length(key)
15377 if (S_is_set[key]) {
15379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15380 len += length(value) + length(field[++i])
15391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15396 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15397 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15400 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15401 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15402 # trailing colons and then remove the whole line if VPATH becomes empty
15403 # (actually we leave an empty line to preserve line numbers).
15404 if test "x$srcdir" = x.; then
15405 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424 fi # test -n "$CONFIG_FILES"
15426 # Set up the scripts for CONFIG_HEADERS section.
15427 # No need to generate them if there are no CONFIG_HEADERS.
15428 # This happens for instance with `./config.status Makefile'.
15429 if test -n "$CONFIG_HEADERS"; then
15430 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15434 # Transform confdefs.h into an awk script `defines.awk', embedded as
15435 # here-document in config.status, that substitutes the proper values into
15436 # config.h.in to produce config.h.
15438 # Create a delimiter string that does not exist in confdefs.h, to ease
15439 # handling of long lines.
15441 for ac_last_try in false false :; do
15442 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15443 if test -z "$ac_tt"; then
15445 elif $ac_last_try; then
15446 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15452 # For the awk script, D is an array of macro values keyed by name,
15453 # likewise P contains macro parameters if any. Preserve backslash
15454 # newline sequences.
15456 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15458 s/.\{148\}/&'"$ac_delim"'/g
15461 s/^[ ]*#[ ]*define[ ][ ]*/ /
15468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15475 D["\1"]=" \3\\\\\\n"\\/p
15477 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15482 s/.\{148\}/&'"$ac_delim"'/g
15487 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15490 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15492 ' <confdefs.h | sed '
15493 s/'"$ac_delim"'/"\\\
15494 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 for (key in D) D_is_set[key] = 1
15500 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15502 split(line, arg, " ")
15503 if (arg[1] == "#") {
15507 defundef = substr(arg[1], 2)
15510 split(mac1, mac2, "(") #)
15512 prefix = substr(line, 1, index(line, defundef) - 1)
15513 if (D_is_set[macro]) {
15514 # Preserve the white space surrounding the "#".
15515 print prefix "define", macro P[macro] D[macro]
15518 # Replace #undef with comments. This is necessary, for example,
15519 # in the case of _POSIX_SOURCE, which is predefined and required
15520 # on some systems where configure will not decide to define it.
15521 if (defundef == "undef") {
15522 print "/*", prefix defundef, macro, "*/"
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15532 fi # test -n "$CONFIG_HEADERS"
15535 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15540 :[FHLC]) ac_mode=$ac_tag; continue;;
15542 case $ac_mode$ac_tag in
15544 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15545 :[FH]-) ac_tag=-:-;;
15546 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15563 -) ac_f="$ac_tmp/stdin";;
15564 *) # Look for the file first in the build tree, then in the source tree
15565 # (if the path is not absolute). The absolute path cannot be DOS-style,
15566 # because $ac_f cannot contain `:'.
15570 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15572 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15574 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15575 as_fn_append ac_file_inputs " '$ac_f'"
15578 # Let's still pretend it is `configure' which instantiates (i.e., don't
15579 # use $as_me), people would be surprised to read:
15580 # /* config.h. Generated by config.status. */
15581 configure_input='Generated from '`
15582 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15584 if test x"$ac_file" != x-; then
15585 configure_input="$ac_file. $configure_input"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15587 $as_echo "$as_me: creating $ac_file" >&6;}
15589 # Neutralize special characters interpreted by sed in replacement strings.
15590 case $configure_input in #(
15591 *\&* | *\|* | *\\* )
15592 ac_sed_conf_input=`$as_echo "$configure_input" |
15593 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15594 *) ac_sed_conf_input=$configure_input;;
15598 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15604 ac_dir=`$as_dirname -- "$ac_file" ||
15605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15606 X"$ac_file" : 'X\(//\)[^/]' \| \
15607 X"$ac_file" : 'X\(//\)$' \| \
15608 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15609 $as_echo X"$ac_file" |
15610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15614 /^X\(\/\/\)[^/].*/{
15627 as_dir="$ac_dir"; as_fn_mkdir_p
15631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15634 # A ".." for each directory in $ac_dir_suffix.
15635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15636 case $ac_top_builddir_sub in
15637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15641 ac_abs_top_builddir=$ac_pwd
15642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15643 # for backward compatibility:
15644 ac_top_builddir=$ac_top_build_prefix
15647 .) # We are building in place.
15649 ac_top_srcdir=$ac_top_builddir_sub
15650 ac_abs_top_srcdir=$ac_pwd ;;
15651 [\\/]* | ?:[\\/]* ) # Absolute name.
15652 ac_srcdir=$srcdir$ac_dir_suffix;
15653 ac_top_srcdir=$srcdir
15654 ac_abs_top_srcdir=$srcdir ;;
15655 *) # Relative name.
15656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15657 ac_top_srcdir=$ac_top_build_prefix$srcdir
15658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15671 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15673 ac_MKDIR_P=$MKDIR_P
15675 [\\/$]* | ?:[\\/]* ) ;;
15676 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 # If the template does not know about datarootdir, expand it.
15682 # FIXME: This hack should be removed a few years after 2.60.
15683 ac_datarootdir_hack=; ac_datarootdir_seen=
15694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15695 *datarootdir*) ac_datarootdir_seen=yes;;
15696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701 ac_datarootdir_hack='
15702 s&@datadir@&$datadir&g
15703 s&@docdir@&$docdir&g
15704 s&@infodir@&$infodir&g
15705 s&@localedir@&$localedir&g
15706 s&@mandir@&$mandir&g
15707 s&\\\${datarootdir}&$datarootdir&g' ;;
15711 # Neutralize VPATH when `$srcdir' = `.'.
15712 # Shell code in configure.ac might set extrasub.
15713 # FIXME: do we really want to maintain this feature?
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 ac_sed_extra="$ac_vpsub
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15721 s|@configure_input@|$ac_sed_conf_input|;t t
15722 s&@top_builddir@&$ac_top_builddir_sub&;t t
15723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15724 s&@srcdir@&$ac_srcdir&;t t
15725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15726 s&@top_srcdir@&$ac_top_srcdir&;t t
15727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15728 s&@builddir@&$ac_builddir&;t t
15729 s&@abs_builddir@&$ac_abs_builddir&;t t
15730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15731 s&@INSTALL@&$ac_INSTALL&;t t
15732 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15733 $ac_datarootdir_hack
15735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15736 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15738 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15739 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15740 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15741 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15743 which seems to be undefined. Please make sure it is defined" >&5
15744 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15745 which seems to be undefined. Please make sure it is defined" >&2;}
15747 rm -f "$ac_tmp/stdin"
15749 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15750 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15758 if test x"$ac_file" != x-; then
15760 $as_echo "/* $configure_input */" \
15761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15762 } >"$ac_tmp/config.h" \
15763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15764 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15766 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15769 mv "$ac_tmp/config.h" "$ac_file" \
15770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15773 $as_echo "/* $configure_input */" \
15774 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15775 || as_fn_error $? "could not create -" "$LINENO" 5
15777 # Compute "$ac_file"'s index in $config_headers.
15780 for _am_header in $config_headers :; do
15781 case $_am_header in
15782 $_am_arg | $_am_arg:* )
15785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15788 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15789 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15790 X"$_am_arg" : 'X\(//\)[^/]' \| \
15791 X"$_am_arg" : 'X\(//\)$' \| \
15792 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15793 $as_echo X"$_am_arg" |
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15798 /^X\(\/\/\)[^/].*/{
15810 s/.*/./; q'`/stamp-h$_am_stamp_count
15813 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15814 $as_echo "$as_me: executing $ac_file commands" >&6;}
15819 case $ac_file$ac_mode in
15820 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15821 # Older Autoconf quotes --file arguments for eval, but not when files
15822 # are listed without --file. Let's play safe and only enable the eval
15823 # if we detect the quoting.
15824 # TODO: see whether this extra hack can be removed once we start
15825 # requiring Autoconf 2.70 or later.
15826 case $CONFIG_FILES in #(
15828 eval set x "$CONFIG_FILES" ;; #(
15830 set x $CONFIG_FILES ;; #(
15835 # Used to flag and report bootstrapping failures.
15839 # Strip MF so we end up with the name of the file.
15840 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15841 # Check whether this is an Automake generated Makefile which includes
15842 # dependency-tracking related rules and includes.
15843 # Grep'ing the whole file directly is not great: AIX grep has a line
15844 # limit of 2048, but all sed's we know have understand at least 4000.
15845 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15847 am_dirpart=`$as_dirname -- "$am_mf" ||
15848 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15849 X"$am_mf" : 'X\(//\)[^/]' \| \
15850 X"$am_mf" : 'X\(//\)$' \| \
15851 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15852 $as_echo X"$am_mf" |
15853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15857 /^X\(\/\/\)[^/].*/{
15870 am_filepart=`$as_basename -- "$am_mf" ||
15871 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15872 X"$am_mf" : 'X\(//\)$' \| \
15873 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15874 $as_echo X/"$am_mf" |
15875 sed '/^.*\/\([^/][^/]*\)\/*$/{
15888 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15889 && sed -e '/# am--include-marker/d' "$am_filepart" \
15890 | $MAKE -f - am--depfiles" >&5
15891 (cd "$am_dirpart" \
15892 && sed -e '/# am--include-marker/d' "$am_filepart" \
15893 | $MAKE -f - am--depfiles) >&5 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } || am_rc=$?
15898 if test $am_rc -ne 0; then
15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15901 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15902 for automatic dependency tracking. If GNU make was not used, consider
15903 re-running the configure script with MAKE=\"gmake\" (or whatever is
15904 necessary). You can also try re-running configure with the
15905 '--disable-dependency-tracking' option to at least be able to build
15906 the package (albeit without support for automatic dependency tracking).
15907 See \`config.log' for more details" "$LINENO" 5; }
15909 { am_dirpart=; unset am_dirpart;}
15910 { am_filepart=; unset am_filepart;}
15911 { am_mf=; unset am_mf;}
15912 { am_rc=; unset am_rc;}
15913 rm -f conftest-deps.mk
15918 # See if we are running on zsh, and set the options that allow our
15919 # commands through without removal of \ escapes.
15920 if test -n "${ZSH_VERSION+set}"; then
15921 setopt NO_GLOB_SUBST
15925 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15928 cat <<_LT_EOF >> "$cfgfile"
15930 # Generated automatically by $as_me ($PACKAGE) $VERSION
15931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15933 # Provide generalized library-building support services.
15934 # Written by Gordon Matzigkeit, 1996
15936 # Copyright (C) 2014 Free Software Foundation, Inc.
15937 # This is free software; see the source for copying conditions. There is NO
15938 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15940 # GNU Libtool is free software; you can redistribute it and/or modify
15941 # it under the terms of the GNU General Public License as published by
15942 # the Free Software Foundation; either version 2 of of the License, or
15943 # (at your option) any later version.
15945 # As a special exception to the GNU General Public License, if you
15946 # distribute this file as part of a program or library that is built
15947 # using GNU Libtool, you may include this file under the same
15948 # distribution terms that you use for the rest of that program.
15950 # GNU Libtool is distributed in the hope that it will be useful, but
15951 # WITHOUT ANY WARRANTY; without even the implied warranty of
15952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15953 # GNU General Public License for more details.
15955 # You should have received a copy of the GNU General Public License
15956 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15959 # The names of the tagged configurations supported by this script.
15962 # Configured defaults for sys_lib_dlsearch_path munging.
15963 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15965 # ### BEGIN LIBTOOL CONFIG
15967 # Which release of libtool.m4 was used?
15968 macro_version=$macro_version
15969 macro_revision=$macro_revision
15971 # Whether or not to build static libraries.
15972 build_old_libs=$enable_static
15974 # Whether or not to build shared libraries.
15975 build_libtool_libs=$enable_shared
15977 # What type of objects to build.
15980 # Whether or not to optimize for fast installation.
15981 fast_install=$enable_fast_install
15983 # Shared archive member basename,for filename based shared library versioning on AIX.
15984 shared_archive_member_spec=$shared_archive_member_spec
15986 # Shell to use when invoking shell scripts.
15989 # An echo program that protects backslashes.
15992 # The PATH separator for the build system.
15993 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15996 host_alias=$host_alias
16000 # The build system.
16001 build_alias=$build_alias
16005 # A sed program that does not truncate output.
16008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16009 Xsed="\$SED -e 1s/^X//"
16011 # A grep program that handles long lines.
16017 # A literal string matcher.
16020 # A BSD- or MS-compatible name lister.
16023 # Whether we need soft or hard links.
16026 # What is the maximum length of a command?
16027 max_cmd_len=$max_cmd_len
16029 # Object file suffix (normally "o").
16032 # Executable file suffix (normally "").
16035 # whether the shell understands "unset".
16038 # turn spaces into newlines.
16041 # turn newlines into spaces.
16044 # convert \$build file names to \$host format.
16045 to_host_file_cmd=$lt_cv_to_host_file_cmd
16047 # convert \$build files to toolchain format.
16048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16050 # An object symbol dumper.
16051 OBJDUMP=$lt_OBJDUMP
16053 # Method to check whether dependent libraries are shared objects.
16054 deplibs_check_method=$lt_deplibs_check_method
16056 # Command to use when deplibs_check_method = "file_magic".
16057 file_magic_cmd=$lt_file_magic_cmd
16059 # How to find potential files when deplibs_check_method = "file_magic".
16060 file_magic_glob=$lt_file_magic_glob
16062 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16063 want_nocaseglob=$lt_want_nocaseglob
16065 # DLL creation program.
16066 DLLTOOL=$lt_DLLTOOL
16068 # Command to associate shared and link libraries.
16069 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16074 # Flags to create an archive.
16075 AR_FLAGS=$lt_AR_FLAGS
16077 # How to feed a file listing to the archiver.
16078 archiver_list_spec=$lt_archiver_list_spec
16080 # A symbol stripping program.
16083 # Commands used to install an old-style archive.
16085 old_postinstall_cmds=$lt_old_postinstall_cmds
16086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16088 # Whether to use a lock for old archive extraction.
16089 lock_old_archive_extraction=$lock_old_archive_extraction
16094 # LTCC compiler flags.
16095 LTCFLAGS=$lt_CFLAGS
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100 # Transform the output of nm in a proper C declaration.
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103 # Transform the output of nm into a list of symbols to manually relocate.
16104 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16106 # Transform the output of nm in a C name address pair.
16107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16109 # Transform the output of nm in a C name address pair when lib prefix is needed.
16110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16112 # The name lister interface.
16113 nm_interface=$lt_lt_cv_nm_interface
16115 # Specify filename containing input files for \$NM.
16116 nm_file_list_spec=$lt_nm_file_list_spec
16118 # The root where to search for dependent libraries,and where our libraries should be installed.
16119 lt_sysroot=$lt_sysroot
16121 # Command to truncate a binary pipe.
16122 lt_truncate_bin=$lt_lt_cv_truncate_bin
16124 # The name of the directory that contains temporary libtool files.
16127 # Used to examine libraries when file_magic_cmd begins with "file".
16128 MAGIC_CMD=$MAGIC_CMD
16130 # Must we lock files when doing compilation?
16131 need_locks=$lt_need_locks
16134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16137 DSYMUTIL=$lt_DSYMUTIL
16139 # Tool to change global to local symbols on Mac OS X.
16142 # Tool to manipulate fat objects and archives on Mac OS X.
16145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16149 OTOOL64=$lt_OTOOL64
16151 # Old archive suffix (normally "a").
16154 # Shared library suffix (normally ".so").
16155 shrext_cmds=$lt_shrext_cmds
16157 # The commands to extract the exported symbol list from a shared archive.
16158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16160 # Variables whose values should be saved in libtool wrapper scripts and
16161 # restored at link time.
16162 variables_saved_for_relink=$lt_variables_saved_for_relink
16164 # Do we need the "lib" prefix for modules?
16165 need_lib_prefix=$need_lib_prefix
16167 # Do we need a version for libraries?
16168 need_version=$need_version
16170 # Library versioning type.
16171 version_type=$version_type
16173 # Shared library runtime path variable.
16174 runpath_var=$runpath_var
16176 # Shared library path variable.
16177 shlibpath_var=$shlibpath_var
16179 # Is shlibpath searched before the hard-coded library search path?
16180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16182 # Format of library name prefix.
16183 libname_spec=$lt_libname_spec
16185 # List of archive names. First name is the real one, the rest are links.
16186 # The last name is the one that the linker finds with -lNAME
16187 library_names_spec=$lt_library_names_spec
16189 # The coded name of the library, if different from the real name.
16190 soname_spec=$lt_soname_spec
16192 # Permission mode override for installation of shared libraries.
16193 install_override_mode=$lt_install_override_mode
16195 # Command to use after installation of a shared archive.
16196 postinstall_cmds=$lt_postinstall_cmds
16198 # Command to use after uninstallation of a shared archive.
16199 postuninstall_cmds=$lt_postuninstall_cmds
16201 # Commands used to finish a libtool library installation in a directory.
16202 finish_cmds=$lt_finish_cmds
16204 # As "finish_cmds", except a single script fragment to be evaled but
16206 finish_eval=$lt_finish_eval
16208 # Whether we should hardcode library paths into libraries.
16209 hardcode_into_libs=$hardcode_into_libs
16211 # Compile-time system search path for libraries.
16212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16214 # Detected run-time system search path for libraries.
16215 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16217 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16218 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16220 # Whether dlopen is supported.
16221 dlopen_support=$enable_dlopen
16223 # Whether dlopen of programs is supported.
16224 dlopen_self=$enable_dlopen_self
16226 # Whether dlopen of statically linked programs is supported.
16227 dlopen_self_static=$enable_dlopen_self_static
16229 # Commands to strip libraries.
16230 old_striplib=$lt_old_striplib
16231 striplib=$lt_striplib
16234 # The linker used to build libraries.
16237 # How to create reloadable object files.
16238 reload_flag=$lt_reload_flag
16239 reload_cmds=$lt_reload_cmds
16241 # Commands used to build an old-style archive.
16242 old_archive_cmds=$lt_old_archive_cmds
16244 # A language specific compiler.
16247 # Is the compiler the GNU compiler?
16250 # Compiler flag to turn off builtin functions.
16251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16253 # Additional compiler flags for building library objects.
16254 pic_flag=$lt_lt_prog_compiler_pic
16256 # How to pass a linker flag through the compiler.
16257 wl=$lt_lt_prog_compiler_wl
16259 # Compiler flag to prevent dynamic linking.
16260 link_static_flag=$lt_lt_prog_compiler_static
16262 # Does compiler simultaneously support -c and -o options?
16263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16265 # Whether or not to add -lc for building shared libraries.
16266 build_libtool_need_lc=$archive_cmds_need_lc
16268 # Whether or not to disallow shared libs when runtime libs are static.
16269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16271 # Compiler flag to allow reflexive dlopens.
16272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16274 # Compiler flag to generate shared objects directly from archives.
16275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16277 # Whether the compiler copes with passing no objects directly.
16278 compiler_needs_object=$lt_compiler_needs_object
16280 # Create an old-style archive from a shared archive.
16281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16283 # Create a temporary old-style archive to link instead of a shared archive.
16284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16286 # Commands used to build a shared archive.
16287 archive_cmds=$lt_archive_cmds
16288 archive_expsym_cmds=$lt_archive_expsym_cmds
16290 # Commands used to build a loadable module if different from building
16291 # a shared archive.
16292 module_cmds=$lt_module_cmds
16293 module_expsym_cmds=$lt_module_expsym_cmds
16295 # Whether we are building with GNU ld or not.
16296 with_gnu_ld=$lt_with_gnu_ld
16298 # Flag that allows shared libraries with undefined symbols to be built.
16299 allow_undefined_flag=$lt_allow_undefined_flag
16301 # Flag that enforces no undefined symbols.
16302 no_undefined_flag=$lt_no_undefined_flag
16304 # Flag to hardcode \$libdir into a binary during linking.
16305 # This must work even if \$libdir does not exist
16306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16308 # Whether we need a single "-rpath" flag with a separated argument.
16309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16312 # DIR into the resulting binary.
16313 hardcode_direct=$hardcode_direct
16315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16316 # DIR into the resulting binary and the resulting library dependency is
16317 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16318 # library is relocated.
16319 hardcode_direct_absolute=$hardcode_direct_absolute
16321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16322 # into the resulting binary.
16323 hardcode_minus_L=$hardcode_minus_L
16325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16326 # into the resulting binary.
16327 hardcode_shlibpath_var=$hardcode_shlibpath_var
16329 # Set to "yes" if building a shared library automatically hardcodes DIR
16330 # into the library and all subsequent libraries and executables linked
16332 hardcode_automatic=$hardcode_automatic
16334 # Set to yes if linker adds runtime paths of dependent libraries
16335 # to runtime path list.
16336 inherit_rpath=$inherit_rpath
16338 # Whether libtool must link a program against all its dependency libraries.
16339 link_all_deplibs=$link_all_deplibs
16341 # Set to "yes" if exported symbols are required.
16342 always_export_symbols=$always_export_symbols
16344 # The commands to list exported symbols.
16345 export_symbols_cmds=$lt_export_symbols_cmds
16347 # Symbols that should not be listed in the preloaded symbols.
16348 exclude_expsyms=$lt_exclude_expsyms
16350 # Symbols that must always be exported.
16351 include_expsyms=$lt_include_expsyms
16353 # Commands necessary for linking programs (against libraries) with templates.
16354 prelink_cmds=$lt_prelink_cmds
16356 # Commands necessary for finishing linking programs.
16357 postlink_cmds=$lt_postlink_cmds
16359 # Specify filename containing input files.
16360 file_list_spec=$lt_file_list_spec
16362 # How to hardcode a shared library path into an executable.
16363 hardcode_action=$hardcode_action
16365 # ### END LIBTOOL CONFIG
16369 cat <<'_LT_EOF' >> "$cfgfile"
16371 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16373 # func_munge_path_list VARIABLE PATH
16374 # -----------------------------------
16375 # VARIABLE is name of variable containing _space_ separated list of
16376 # directories to be munged by the contents of PATH, which is string
16379 # string "DIR[ DIR]" will be prepended to VARIABLE
16381 # string "DIR[ DIR]" will be appended to VARIABLE
16382 # "DIRP[:DIRP]::[DIRA:]DIRA"
16383 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16384 # "DIRA[ DIRA]" will be appended to VARIABLE
16386 # VARIABLE will be replaced by "DIR[ DIR]"
16387 func_munge_path_list ()
16393 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16396 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16399 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16400 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16409 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16410 func_cc_basename ()
16412 for cc_temp in $*""; do
16414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16420 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16424 # ### END FUNCTIONS SHARED WITH CONFIGURE
16430 cat <<\_LT_EOF >> "$cfgfile"
16431 # AIX sometimes has problems with the GCC collect2 program. For some
16432 # reason, if we set the COLLECT_NAMES environment variable, the problems
16433 # vanish in a puff of smoke.
16434 if test set != "${COLLECT_NAMES+set}"; then
16436 export COLLECT_NAMES
16443 ltmain=$ac_aux_dir/ltmain.sh
16446 # We use sed instead of cat because bash on DJGPP gets confused if
16447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16448 # text mode, it properly converts lines to CR/LF. This bash problem
16449 # is reportedly fixed, but why not run on old versions too?
16450 sed '$q' "$ltmain" >> "$cfgfile" \
16451 || (rm -f "$cfgfile"; exit 1)
16453 mv -f "$cfgfile" "$ofile" ||
16454 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16465 ac_clean_files=$ac_clean_files_save
16467 test $ac_write_fail = 0 ||
16468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16471 # configure is writing to config.log, and then calls config.status.
16472 # config.status does its own redirection, appending to config.log.
16473 # Unfortunately, on DOS this fails, as config.log is still kept open
16474 # by configure, so config.status won't be able to write to it; its
16475 # output is simply discarded. So we exec the FD to /dev/null,
16476 # effectively closing config.log, so it can be properly (re)opened and
16477 # appended to by config.status. When coming back to configure, we
16478 # need to make the FD available again.
16479 if test "$no_create" != yes; then
16481 ac_config_status_args=
16482 test "$silent" = yes &&
16483 ac_config_status_args="$ac_config_status_args --quiet"
16485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16488 # would make configure fail if this is the last instruction.
16489 $ac_cs_success || as_fn_exit 1
16491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}