2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpinyin 1.0.0.
5 # Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/libpinyin/libpinyin/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libpinyin'
592 PACKAGE_TARNAME='libpinyin'
593 PACKAGE_VERSION='1.0.0'
594 PACKAGE_STRING='libpinyin 1.0.0'
595 PACKAGE_BUGREPORT='https://github.com/libpinyin/libpinyin/issues/new'
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
645 LIBTOOL_EXPORT_OPTIONS
701 LIBPINYIN_BINARY_VERSION
715 INSTALL_STRIP_PROGRAM
757 program_transform_name
770 enable_option_checking
772 enable_dependency_tracking
781 ac_precious_vars='build_alias
801 # Initialize some variables set by options.
803 ac_init_version=false
804 ac_unrecognized_opts=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name=s,x,x,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1164 eval with_$ac_useropt=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1235 # Be sure to have absolute directory names.
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1339 \`configure' configures libpinyin 1.0.0 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libpinyin]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of libpinyin 1.0.0:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-static[=PKGS] build static libraries [default=yes]
1425 --enable-fast-install[=PKGS]
1426 optimize for fast installation [default=yes]
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 --with-sysroot=DIR Search for dependent libraries within DIR
1436 (or the compiler's sysroot if not specified).
1438 Some influential environment variables:
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CC C compiler command
1447 CFLAGS C compiler flags
1449 CXXCPP C++ preprocessor
1450 PKG_CONFIG path to pkg-config utility
1452 directories to add to pkg-config's search path
1454 path overriding pkg-config's built-in search path
1456 C compiler flags for GLIB2, overriding pkg-config
1457 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 libpinyin configure 1.0.0
1526 generated by GNU Autoconf 2.69
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_cxx_try_compile LINENO
1540 # ----------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_cxx_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_cxx_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_cxx_try_compile
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
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
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1657 ac_fn_c_check_header_mongrel ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1681 ac_header_compiler=no
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1697 ac_header_preproc=no
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ---------------------------------------------------------------- ##
1723 ## Report this to https://github.com/libpinyin/libpinyin/issues/new ##
1724 ## ---------------------------------------------------------------- ##"
1725 ) | sed "s/^/$as_me: WARNING: /" >&2
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 eval "$3=\$ac_header_compiler"
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1802 if ac_fn_c_try_compile "$LINENO"; then :
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_cxx_try_cpp LINENO
1930 # ------------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_cpp ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } > conftest.i && {
1951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_cxx_try_cpp
1966 # ac_fn_cxx_try_link LINENO
1967 # -------------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_link ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 rm -f conftest.$ac_objext conftest$ac_exeext
1973 if { { ac_try="$ac_link"
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>conftest.err
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && {
1989 test -z "$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 } && test -s conftest$ac_exeext && {
1992 test "$cross_compiling" = yes ||
1993 test -x conftest$ac_exeext
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2003 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2004 # interfere with the next link command; also delete a directory that is
2005 # left behind by Apple's compiler. We do this before executing the actions.
2006 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_cxx_try_link
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2050 if ac_fn_c_try_compile "$LINENO"; then :
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_type
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2069 It was created by libpinyin $as_me 1.0.0, which was
2070 generated by GNU Autoconf 2.69. Invocation command line was
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_must_keep_next=false
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 -* ) ac_must_keep_next=true ;;
2162 as_fn_append ac_configure_args " '$ac_arg'"
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2184 # The following way of writing the cache mishandles newlines in values,
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2220 for ac_var in $ac_subst_vars
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2235 for ac_var in $ac_subst_files
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2349 as_fn_append ac_header_list " stdlib.h"
2350 as_fn_append ac_header_list " unistd.h"
2351 as_fn_append ac_header_list " sys/param.h"
2352 # Check that the precious variables saved in the cache have kept the same
2354 ac_cache_corrupted=false
2355 for ac_var in $ac_precious_vars; do
2356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357 eval ac_new_set=\$ac_env_${ac_var}_set
2358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359 eval ac_new_val=\$ac_env_${ac_var}_value
2360 case $ac_old_set,$ac_new_set in
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2371 if test "x$ac_old_val" != "x$ac_new_val"; then
2372 # differences in whitespace do not lead to failure.
2373 ac_old_val_w=`echo x $ac_old_val`
2374 ac_new_val_w=`echo x $ac_new_val`
2375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378 ac_cache_corrupted=:
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382 eval $ac_var=\$ac_old_val
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2385 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2387 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2390 # Pass precious variables to config.status.
2391 if test "$ac_new_set" = set; then
2393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2394 *) ac_arg=$ac_var=$ac_new_val ;;
2396 case " $ac_configure_args " in
2397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2402 if $ac_cache_corrupted; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2407 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2409 ## -------------------- ##
2410 ## Main body of script. ##
2411 ## -------------------- ##
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420 am__api_version='1.13'
2423 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2424 if test -f "$ac_dir/install-sh"; then
2426 ac_install_sh="$ac_aux_dir/install-sh -c"
2428 elif test -f "$ac_dir/install.sh"; then
2430 ac_install_sh="$ac_aux_dir/install.sh -c"
2432 elif test -f "$ac_dir/shtool"; then
2434 ac_install_sh="$ac_aux_dir/shtool install -c"
2438 if test -z "$ac_aux_dir"; then
2439 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2447 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2448 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2451 # Find a good install program. We prefer a C program (faster),
2452 # so one script is as good as another. But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if ${ac_cv_path_install+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478 ./ | .// | /[cC]/* | \
2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2483 # OSF1 and SCO ODT 3.0 have their own names for install.
2484 # Don't use installbsd from OSF since it installs stuff as root
2486 for ac_prog in ginstall scoinst install; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2493 elif test $ac_prog = install &&
2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2498 rm -rf conftest.one conftest.two conftest.dir
2499 echo one > conftest.one
2500 echo two > conftest.two
2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503 test -s conftest.one && test -s conftest.two &&
2504 test -s conftest.dir/conftest.one &&
2505 test -s conftest.dir/conftest.two
2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2520 rm -rf conftest.one conftest.two conftest.dir
2523 if test "${ac_cv_path_install+set}" = set; then
2524 INSTALL=$ac_cv_path_install
2526 # As a last resort, use the slow shell script. Don't cache a
2527 # value for INSTALL within a source directory, because that will
2528 # break other packages using the cache if that directory is
2529 # removed, or if the value is a relative name.
2530 INSTALL=$ac_install_sh
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2545 $as_echo_n "checking whether build environment is sane... " >&6; }
2546 # Reject unsafe characters in $srcdir or the absolute working directory
2547 # name. Accept space and tab only in the latter.
2551 *[\\\"\#\$\&\'\`$am_lf]*)
2552 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2555 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2556 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2559 # Do 'set' in a subshell so we don't clobber the current shell's
2560 # arguments. Must try -L first in case configure is actually a
2561 # symlink; some systems play weird games with the mod time of symlinks
2562 # (eg FreeBSD returns the mod time of the symlink's containing
2566 for am_try in 1 2; do
2567 echo "timestamp, slept: $am_has_slept" > conftest.file
2568 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2569 if test "$*" = "X"; then
2571 set X `ls -t "$srcdir/configure" conftest.file`
2573 if test "$*" != "X $srcdir/configure conftest.file" \
2574 && test "$*" != "X conftest.file $srcdir/configure"; then
2576 # If neither matched, then we have a broken ls. This can happen
2577 # if, for instance, CONFIG_SHELL is bash and it inherits a
2578 # broken ls alias from the environment. This has actually
2579 # happened. Such a system could not be considered "sane".
2580 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2581 alias in your environment" "$LINENO" 5
2583 if test "$2" = conftest.file || test $am_try -eq 2; then
2590 test "$2" = conftest.file
2596 as_fn_error $? "newly created file is older than distributed files!
2597 Check your system clock" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 # If we didn't sleep, we still need to ensure time stamps of config.status and
2602 # generated files are strictly newer.
2604 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2611 test "$program_prefix" != NONE &&
2612 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2616 # Double any \ or $.
2617 # By default was `s,x,x', remove it if useless.
2618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2624 if test x"${MISSING+set}" != xset; then
2627 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --is-lightweight"; then
2634 am_missing_run="$MISSING "
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2638 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2641 if test x"${install_sh}" != xset; then
2644 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646 install_sh="\${SHELL} $am_aux_dir/install-sh"
2650 # Installed binaries are usually stripped using 'strip' when the user
2651 # run "make install-strip". However 'strip' might not be the right
2652 # tool to use in cross-compilation environments, therefore Automake
2653 # will honor the 'STRIP' environment variable to overrule this program.
2654 if test "$cross_compiling" != no; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_STRIP+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$STRIP"; then
2664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 STRIP=$ac_cv_prog_STRIP
2684 if test -n "$STRIP"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2686 $as_echo "$STRIP" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2694 if test -z "$ac_cv_prog_STRIP"; then
2696 # Extract the first word of "strip", so it can be a program name with args.
2697 set dummy strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$ac_ct_STRIP"; then
2704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_STRIP="strip"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2724 if test -n "$ac_ct_STRIP"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2726 $as_echo "$ac_ct_STRIP" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2732 if test "x$ac_ct_STRIP" = x; then
2735 case $cross_compiling:$ac_tool_warned in
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2744 STRIP="$ac_cv_prog_STRIP"
2748 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2751 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2752 if test -z "$MKDIR_P"; then
2753 if ${ac_cv_path_mkdir+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2760 test -z "$as_dir" && as_dir=.
2761 for ac_prog in mkdir gmkdir; do
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2764 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2765 'mkdir (GNU coreutils) '* | \
2766 'mkdir (coreutils) '* | \
2767 'mkdir (fileutils) '4.1*)
2768 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2778 test -d ./--version && rmdir ./--version
2779 if test "${ac_cv_path_mkdir+set}" = set; then
2780 MKDIR_P="$ac_cv_path_mkdir -p"
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for MKDIR_P within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 MKDIR_P="$ac_install_sh -d"
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2790 $as_echo "$MKDIR_P" >&6; }
2792 for ac_prog in gawk mawk nawk awk
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_AWK+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$AWK"; then
2802 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_AWK="$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$AWK"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2824 $as_echo "$AWK" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$AWK" && break
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2838 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 cat >conftest.make <<\_ACEOF
2844 @echo '@@@%%%=$(MAKE)=@@@%%%'
2846 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2849 eval ac_cv_prog_make_${ac_make}_set=yes;;
2851 eval ac_cv_prog_make_${ac_make}_set=no;;
2855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857 $as_echo "yes" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 SET_MAKE="MAKE=${MAKE-make}"
2865 rm -rf .tst 2>/dev/null
2866 mkdir .tst 2>/dev/null
2867 if test -d .tst; then
2872 rmdir .tst 2>/dev/null
2874 # Check whether --enable-silent-rules was given.
2875 if test "${enable_silent_rules+set}" = set; then :
2876 enableval=$enable_silent_rules;
2879 case $enable_silent_rules in # (((
2880 yes) AM_DEFAULT_VERBOSITY=0;;
2881 no) AM_DEFAULT_VERBOSITY=1;;
2882 *) AM_DEFAULT_VERBOSITY=1;;
2884 am_make=${MAKE-make}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2886 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2887 if ${am_cv_make_support_nested_variables+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 if $as_echo 'TRUE=$(BAR$(V))
2896 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2897 am_cv_make_support_nested_variables=yes
2899 am_cv_make_support_nested_variables=no
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2903 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2904 if test $am_cv_make_support_nested_variables = yes; then
2906 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2908 AM_V=$AM_DEFAULT_VERBOSITY
2909 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2913 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2914 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2915 # is not polluted with repeated "-I."
2916 am__isrc=' -I$(srcdir)'
2917 # test to see if srcdir already configured
2918 if test -f $srcdir/config.status; then
2919 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2923 # test whether we have cygpath
2924 if test -z "$CYGPATH_W"; then
2925 if (cygpath --version) >/dev/null 2>/dev/null; then
2926 CYGPATH_W='cygpath -w'
2933 # Define the identity of the package.
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE "$PACKAGE"
2943 cat >>confdefs.h <<_ACEOF
2944 #define VERSION "$VERSION"
2947 # Some tools Automake needs.
2949 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2952 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2955 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2958 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2961 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2963 # For better backward compatibility. To be removed once Automake 1.9.x
2964 # dies out for good. For more background, see:
2965 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2966 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2967 mkdir_p='$(MKDIR_P)'
2969 # We need awk for the "check" target. The system "awk" is bad on
2971 # Always define AMTAR for backward compatibility. Yes, it's still used
2972 # in the wild :-( We should find a proper way to deprecate it ...
2976 # We'll loop over all known methods to create a tar archive until one works.
2977 _am_tools='gnutar pax cpio none'
2979 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2987 ac_config_headers="$ac_config_headers config.h"
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval=$enable_silent_rules;
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY=0;;
2996 no) AM_DEFAULT_VERBOSITY=1;;
2997 *) AM_DEFAULT_VERBOSITY=0;;
2999 am_make=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 if $as_echo 'TRUE=$(BAR$(V))
3011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012 am_cv_make_support_nested_variables=yes
3014 am_cv_make_support_nested_variables=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3021 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3023 AM_V=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3029 # Define a string for binary compatibility
3032 LT_VERSION_INFO="4:0"
3035 LIBPINYIN_BINARY_VERSION="4.0"
3038 # Checks for programs.
3040 ac_cpp='$CXXCPP $CPPFLAGS'
3041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3044 if test -z "$CXX"; then
3045 if test -n "$CCC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CXX+:} false; then :
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CXX"; then
3059 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CXX"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3081 $as_echo "$CXX" >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3088 test -n "$CXX" && break
3091 if test -z "$CXX"; then
3093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$ac_ct_CXX"; then
3103 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_ac_ct_CXX="$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3123 if test -n "$ac_ct_CXX"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3125 $as_echo "$ac_ct_CXX" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$ac_ct_CXX" && break
3135 if test "x$ac_ct_CXX" = x; then
3138 case $cross_compiling:$ac_tool_warned in
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3150 # Provide some information about the compiler.
3151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3154 for ac_option in --version -v -V -qversion; do
3155 { { ac_try="$ac_compiler $ac_option >&5"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164 if test -s conftest.err; then
3166 ... rest of stderr output deleted ...
3167 10q' conftest.err >conftest.er1
3168 cat conftest.er1 >&5
3170 rm -f conftest.er1 conftest.err
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3186 ac_clean_files_save=$ac_clean_files
3187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3188 # Try to create an executable without -o first, disregard a.out.
3189 # It will help us diagnose broken compilers, and finding out an intuition
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3192 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195 # The possible output files:
3196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199 for ac_file in $ac_files
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3208 if { { ac_try="$ac_link_default"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link_default") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3221 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3222 # so that the user can short-circuit this test for compilers unknown to
3224 for ac_file in $ac_files ''
3226 test -f "$ac_file" || continue
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231 # We found the default executable, but exeext='' is most
3235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 # We set ac_cv_exeext here because the later test for it is not
3240 # safe: cross compilers may not add the suffix if given an `-o'
3241 # argument, so we may need to know it at that point already.
3242 # Even if this section looks crufty: it has the advantage of
3249 test "$ac_cv_exeext" = no && ac_cv_exeext=
3254 if test -z "$ac_file"; then :
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error 77 "C++ compiler cannot create executables
3263 See \`config.log' for more details" "$LINENO" 5; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3269 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3271 $as_echo "$ac_file" >&6; }
3272 ac_exeext=$ac_cv_exeext
3274 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3277 $as_echo_n "checking for suffix of executables... " >&6; }
3278 if { { ac_try="$ac_link"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_link") 2>&5
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; then :
3289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3291 # work properly (i.e., refer to `conftest.exe'), while it won't with
3293 for ac_file in conftest.exe conftest conftest.*; do
3294 test -f "$ac_file" || continue
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3306 See \`config.log' for more details" "$LINENO" 5; }
3308 rm -f conftest conftest$ac_cv_exeext
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3310 $as_echo "$ac_cv_exeext" >&6; }
3312 rm -f conftest.$ac_ext
3313 EXEEXT=$ac_cv_exeext
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3321 FILE *f = fopen ("conftest.out", "w");
3322 return ferror (f) || fclose (f) != 0;
3328 ac_clean_files="$ac_clean_files conftest.out"
3329 # Check that the compiler produces executables we can run. If not, either
3330 # the compiler is broken, or we cross compile.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3332 $as_echo_n "checking whether we are cross compiling... " >&6; }
3333 if test "$cross_compiling" != yes; then
3334 { { ac_try="$ac_link"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3345 if { ac_try='./conftest$ac_cv_exeext'
3346 { { case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_try") 2>&5
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }; }; then
3358 if test "$cross_compiling" = maybe; then
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $? "cannot run C++ compiled programs.
3364 If you meant to cross compile, use \`--host'.
3365 See \`config.log' for more details" "$LINENO" 5; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3370 $as_echo "$cross_compiling" >&6; }
3372 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3373 ac_clean_files=$ac_clean_files_save
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3375 $as_echo_n "checking for suffix of object files... " >&6; }
3376 if ${ac_cv_objext+:} false; then :
3377 $as_echo_n "(cached) " >&6
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 rm -f conftest.o conftest.obj
3391 if { { ac_try="$ac_compile"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_compile") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 for ac_file in conftest.o conftest.obj conftest.*; do
3403 test -f "$ac_file" || continue;
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot compute suffix of object files: cannot compile
3417 See \`config.log' for more details" "$LINENO" 5; }
3419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3422 $as_echo "$ac_cv_objext" >&6; }
3423 OBJEXT=$ac_cv_objext
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3426 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3427 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3428 $as_echo_n "(cached) " >&6
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3444 if ac_fn_cxx_try_compile "$LINENO"; then :
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3454 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3455 if test $ac_compiler_gnu = yes; then
3460 ac_test_CXXFLAGS=${CXXFLAGS+set}
3461 ac_save_CXXFLAGS=$CXXFLAGS
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3463 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3464 if ${ac_cv_prog_cxx_g+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3468 ac_cxx_werror_flag=yes
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 if ac_fn_cxx_try_compile "$LINENO"; then :
3483 ac_cv_prog_cxx_g=yes
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_cxx_try_compile "$LINENO"; then :
3500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3514 ac_cv_prog_cxx_g=yes
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3524 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3525 if test "$ac_test_CXXFLAGS" = set; then
3526 CXXFLAGS=$ac_save_CXXFLAGS
3527 elif test $ac_cv_prog_cxx_g = yes; then
3528 if test "$GXX" = yes; then
3534 if test "$GXX" = yes; then
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 DEPDIR="${am__leading_dot}deps"
3547 ac_config_commands="$ac_config_commands depfiles"
3550 am_make=${MAKE-make}
3551 cat > confinc << 'END'
3553 @echo this is the am__doit target
3556 # If we don't find an include directive, just comment out the code.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3562 # First try GNU make style include.
3563 echo "include confinc" > confmf
3564 # Ignore all kinds of additional output from 'make'.
3565 case `$am_make -s -f confmf 2> /dev/null` in #(
3566 *the\ am__doit\ target*)
3572 # Now try BSD make style include.
3573 if test "$am__include" = "#"; then
3574 echo '.include "confinc"' > confmf
3575 case `$am_make -s -f confmf 2> /dev/null` in #(
3576 *the\ am__doit\ target*)
3577 am__include=.include
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586 $as_echo "$_am_result" >&6; }
3587 rm -f confinc confmf
3589 # Check whether --enable-dependency-tracking was given.
3590 if test "${enable_dependency_tracking+set}" = set; then :
3591 enableval=$enable_dependency_tracking;
3594 if test "x$enable_dependency_tracking" != xno; then
3595 am_depcomp="$ac_aux_dir/depcomp"
3599 if test "x$enable_dependency_tracking" != xno; then
3609 depcc="$CXX" am_compiler_list=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3612 $as_echo_n "checking dependency style of $depcc... " >&6; }
3613 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3614 $as_echo_n "(cached) " >&6
3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617 # We make a subdir and do the tests there. Otherwise we can end up
3618 # making bogus files that we don't know about and never remove. For
3619 # instance it was reported that on HP-UX the gcc test will end up
3620 # making a dummy file named 'D' -- because '-MD' means "put the output
3624 # Copy depcomp to subdir because otherwise we won't find it if we're
3625 # using a relative directory.
3626 cp "$am_depcomp" conftest.dir
3628 # We will build objects and dependencies in a subdirectory because
3629 # it helps to detect inapplicable dependency modes. For instance
3630 # both Tru64's cc and ICC support -MD to output dependencies as a
3631 # side effect of compilation, but ICC will put the dependencies in
3632 # the current directory while Tru64 will put them in the object
3636 am_cv_CXX_dependencies_compiler_type=none
3637 if test "$am_compiler_list" = ""; then
3638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641 case " $depcc " in #(
3642 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3645 for depmode in $am_compiler_list; do
3646 # Setup a source with many dependencies, because some compilers
3647 # like to wrap large dependency lists on column 80 (with \), and
3648 # we should not choose a depcomp mode which is confused by this.
3650 # We need to recreate these files for each test, as the compiler may
3651 # overwrite some of them when testing with obscure command lines.
3652 # This happens at least with the AIX C compiler.
3654 for i in 1 2 3 4 5 6; do
3655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3657 # Solaris 10 /bin/sh.
3658 echo '/* dummy */' > sub/conftst$i.h
3660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3662 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3663 # mode. It turns out that the SunPro C++ compiler does not properly
3664 # handle '-M -o', and we need to detect this. Also, some Intel
3665 # versions had trouble with output in subdirs.
3666 am__obj=sub/conftest.${OBJEXT-o}
3667 am__minus_obj="-o $am__obj"
3670 # This depmode causes a compiler race in universal mode.
3671 test "$am__universal" = false || continue
3674 # After this tag, mechanisms are not by side-effect, so they'll
3675 # only be used when explicitly requested.
3676 if test "x$enable_dependency_tracking" = xyes; then
3682 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3683 # This compiler won't grok '-c -o', but also, the minuso test has
3684 # not run yet. These depmodes are late enough in the game, and
3685 # so weak that their functioning should not be impacted.
3686 am__obj=conftest.${OBJEXT-o}
3691 if depmode=$depmode \
3692 source=sub/conftest.c object=$am__obj \
3693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3695 >/dev/null 2>conftest.err &&
3696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3700 # icc doesn't choke on unknown options, it will just issue warnings
3701 # or remarks (even with -Werror). So we grep stderr for any message
3702 # that says an option was ignored or not supported.
3703 # When given -MP, icc 7.0 and 7.1 complain thusly:
3704 # icc: Command line warning: ignoring option '-M'; no argument required
3705 # The diagnosis changed in icc 8.0:
3706 # icc: Command line remark: option '-MP' not supported
3707 if (grep 'ignoring option' conftest.err ||
3708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3709 am_cv_CXX_dependencies_compiler_type=$depmode
3718 am_cv_CXX_dependencies_compiler_type=none
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3723 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3724 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3727 test "x$enable_dependency_tracking" != xno \
3728 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3729 am__fastdepCXX_TRUE=
3730 am__fastdepCXX_FALSE='#'
3732 am__fastdepCXX_TRUE='#'
3733 am__fastdepCXX_FALSE=
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3975 if test -z "$CC"; then
3977 for ac_prog in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4019 if test "x$ac_ct_CC" = x; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error $? "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details" "$LINENO" 5; }
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044 for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4054 if test -s conftest.err; then
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4060 rm -f conftest.er1 conftest.err
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if ${ac_cv_c_compiler_gnu+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4084 if ac_fn_c_try_compile "$LINENO"; then :
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if ${ac_cv_prog_cc_g+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4174 if test "$GCC" = yes; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if ${ac_cv_prog_cc_c89+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 ac_cv_prog_cc_c89=no
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4201 static char *f (char * (*g) (char **, int), char **p, ...)
4206 s = g (p, va_arg (v,int));
4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4212 function prototypes and stuff, but not '\xHH' hex character constants.
4213 These don't provoke an error unfortunately, instead are silently treated
4214 as 'x'. The following induces an error, until -std is added to get
4215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4216 array size at least. It's necessary to write '\x00'==0 to get something
4217 that's true only with -std. */
4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221 inside strings and character constants. */
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4246 rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 rm -f conftest.$ac_ext
4254 case "x$ac_cv_prog_cc_c89" in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 $as_echo "none needed" >&6; } ;;
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 $as_echo "unsupported" >&6; } ;;
4262 CC="$CC $ac_cv_prog_cc_c89"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 depcc="$CC" am_compiler_list=
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4279 $as_echo_n "checking dependency style of $depcc... " >&6; }
4280 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4284 # We make a subdir and do the tests there. Otherwise we can end up
4285 # making bogus files that we don't know about and never remove. For
4286 # instance it was reported that on HP-UX the gcc test will end up
4287 # making a dummy file named 'D' -- because '-MD' means "put the output
4291 # Copy depcomp to subdir because otherwise we won't find it if we're
4292 # using a relative directory.
4293 cp "$am_depcomp" conftest.dir
4295 # We will build objects and dependencies in a subdirectory because
4296 # it helps to detect inapplicable dependency modes. For instance
4297 # both Tru64's cc and ICC support -MD to output dependencies as a
4298 # side effect of compilation, but ICC will put the dependencies in
4299 # the current directory while Tru64 will put them in the object
4303 am_cv_CC_dependencies_compiler_type=none
4304 if test "$am_compiler_list" = ""; then
4305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4308 case " $depcc " in #(
4309 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4312 for depmode in $am_compiler_list; do
4313 # Setup a source with many dependencies, because some compilers
4314 # like to wrap large dependency lists on column 80 (with \), and
4315 # we should not choose a depcomp mode which is confused by this.
4317 # We need to recreate these files for each test, as the compiler may
4318 # overwrite some of them when testing with obscure command lines.
4319 # This happens at least with the AIX C compiler.
4321 for i in 1 2 3 4 5 6; do
4322 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4323 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4324 # Solaris 10 /bin/sh.
4325 echo '/* dummy */' > sub/conftst$i.h
4327 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4329 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4330 # mode. It turns out that the SunPro C++ compiler does not properly
4331 # handle '-M -o', and we need to detect this. Also, some Intel
4332 # versions had trouble with output in subdirs.
4333 am__obj=sub/conftest.${OBJEXT-o}
4334 am__minus_obj="-o $am__obj"
4337 # This depmode causes a compiler race in universal mode.
4338 test "$am__universal" = false || continue
4341 # After this tag, mechanisms are not by side-effect, so they'll
4342 # only be used when explicitly requested.
4343 if test "x$enable_dependency_tracking" = xyes; then
4349 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4350 # This compiler won't grok '-c -o', but also, the minuso test has
4351 # not run yet. These depmodes are late enough in the game, and
4352 # so weak that their functioning should not be impacted.
4353 am__obj=conftest.${OBJEXT-o}
4358 if depmode=$depmode \
4359 source=sub/conftest.c object=$am__obj \
4360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4362 >/dev/null 2>conftest.err &&
4363 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4364 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4365 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4366 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4367 # icc doesn't choke on unknown options, it will just issue warnings
4368 # or remarks (even with -Werror). So we grep stderr for any message
4369 # that says an option was ignored or not supported.
4370 # When given -MP, icc 7.0 and 7.1 complain thusly:
4371 # icc: Command line warning: ignoring option '-M'; no argument required
4372 # The diagnosis changed in icc 8.0:
4373 # icc: Command line remark: option '-MP' not supported
4374 if (grep 'ignoring option' conftest.err ||
4375 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4376 am_cv_CC_dependencies_compiler_type=$depmode
4385 am_cv_CC_dependencies_compiler_type=none
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4390 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4391 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4394 test "x$enable_dependency_tracking" != xno \
4395 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4397 am__fastdepCC_FALSE='#'
4399 am__fastdepCC_TRUE='#'
4400 am__fastdepCC_FALSE=
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4411 # On Suns, sometimes $CPP names a directory.
4412 if test -n "$CPP" && test -d "$CPP"; then
4415 if test -z "$CPP"; then
4416 if ${ac_cv_prog_CPP+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 # Double quotes because CPP needs to be expanded
4420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4423 for ac_c_preproc_warn_flag in '' yes
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4434 # include <limits.h>
4436 # include <assert.h>
4440 if ac_fn_c_try_cpp "$LINENO"; then :
4443 # Broken: fails on valid input.
4446 rm -f conftest.err conftest.i conftest.$ac_ext
4448 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <ac_nonexistent.h>
4454 if ac_fn_c_try_cpp "$LINENO"; then :
4455 # Broken: success on invalid input.
4458 # Passes both tests.
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.i conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then :
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4480 $as_echo "$CPP" >&6; }
4482 for ac_c_preproc_warn_flag in '' yes
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4493 # include <limits.h>
4495 # include <assert.h>
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: fails on valid input.
4505 rm -f conftest.err conftest.i conftest.$ac_ext
4507 # OK, works on sane cases. Now check whether nonexistent headers
4508 # can be detected and how.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <ac_nonexistent.h>
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514 # Broken: success on invalid input.
4517 # Passes both tests.
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.i conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then :
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details" "$LINENO" 5; }
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4543 $as_echo_n "checking whether ln -s works... " >&6; }
4545 if test "$LN_S" = "ln -s"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4550 $as_echo "no, using $LN_S" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4554 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4556 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4557 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 cat >conftest.make <<\_ACEOF
4563 @echo '@@@%%%=$(MAKE)=@@@%%%'
4565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4568 eval ac_cv_prog_make_${ac_make}_set=yes;;
4570 eval ac_cv_prog_make_${ac_make}_set=no;;
4574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 SET_MAKE="MAKE=${MAKE-make}"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 as_fn_executable_p "$ac_path_GREP" || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 $as_echo_n 0123456789 >"conftest.in"
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 $ac_path_GREP_found && break 3
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 ac_cv_path_GREP=$GREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 as_fn_executable_p "$ac_path_EGREP" || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 $ac_path_EGREP_found && break 3
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 ac_cv_path_EGREP=$EGREP
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4718 $as_echo_n "checking for ANSI C header files... " >&6; }
4719 if ${ac_cv_header_stdc+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_header_stdc=yes
4740 ac_cv_header_stdc=no
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 if test $ac_cv_header_stdc = yes; then
4745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "memchr" >/dev/null 2>&1; then :
4755 ac_cv_header_stdc=no
4761 if test $ac_cv_header_stdc = yes; then
4762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "free" >/dev/null 2>&1; then :
4772 ac_cv_header_stdc=no
4778 if test $ac_cv_header_stdc = yes; then
4779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4780 if test "$cross_compiling" = yes; then :
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4787 #if ((' ' & 0x0FF) == 0x020)
4788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791 # define ISLOWER(c) \
4792 (('a' <= (c) && (c) <= 'i') \
4793 || ('j' <= (c) && (c) <= 'r') \
4794 || ('s' <= (c) && (c) <= 'z'))
4795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4803 for (i = 0; i < 256; i++)
4804 if (XOR (islower (i), ISLOWER (i))
4805 || toupper (i) != TOUPPER (i))
4810 if ac_fn_c_try_run "$LINENO"; then :
4813 ac_cv_header_stdc=no
4815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4816 conftest.$ac_objext conftest.beam conftest.$ac_ext
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4822 $as_echo "$ac_cv_header_stdc" >&6; }
4823 if test $ac_cv_header_stdc = yes; then
4825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4831 inttypes.h stdint.h unistd.h
4833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4837 cat >>confdefs.h <<_ACEOF
4838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4848 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4855 if test "$MINIX" = yes; then
4857 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4860 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4863 $as_echo "#define _MINIX 1" >>confdefs.h
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4869 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4870 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4876 # define __EXTENSIONS__ 1
4877 $ac_includes_default
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887 ac_cv_safe_to_define___extensions__=yes
4889 ac_cv_safe_to_define___extensions__=no
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4895 test $ac_cv_safe_to_define___extensions__ = yes &&
4896 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4898 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4900 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4902 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4904 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4918 macro_version='2.4.2'
4919 macro_revision='1.3337'
4933 ltmain="$ac_aux_dir/ltmain.sh"
4935 # Make sure we can run config.sub.
4936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4940 $as_echo_n "checking build system type... " >&6; }
4941 if ${ac_cv_build+:} false; then :
4942 $as_echo_n "(cached) " >&6
4944 ac_build_alias=$build_alias
4945 test "x$ac_build_alias" = x &&
4946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4947 test "x$ac_build_alias" = x &&
4948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4954 $as_echo "$ac_cv_build" >&6; }
4955 case $ac_cv_build in
4957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4960 ac_save_IFS=$IFS; IFS='-'
4966 # Remember, the first character of IFS is used to create $*,
4967 # except with old shells:
4970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4974 $as_echo_n "checking host system type... " >&6; }
4975 if ${ac_cv_host+:} false; then :
4976 $as_echo_n "(cached) " >&6
4978 if test "x$host_alias" = x; then
4979 ac_cv_host=$ac_cv_build
4981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4987 $as_echo "$ac_cv_host" >&6; }
4990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4993 ac_save_IFS=$IFS; IFS='-'
4999 # Remember, the first character of IFS is used to create $*,
5000 # except with old shells:
5003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5006 # Backslashify metacharacters that are still active within
5007 # double-quoted strings.
5008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5010 # Same as above, but do not quote variable references.
5011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5013 # Sed substitution to delay expansion of an escaped shell variable in a
5014 # double_quote_subst'ed string.
5015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5017 # Sed substitution to delay expansion of an escaped single quote.
5018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5020 # Sed substitution to avoid accidental globbing in evaled expressions
5021 no_glob_subst='s/\*/\\\*/g'
5023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5028 $as_echo_n "checking how to print strings... " >&6; }
5029 # Test print first, because it will be a builtin if present.
5030 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5036 # Use this function as a fallback that always works.
5037 func_fallback_echo ()
5039 eval 'cat <<_LTECHO_EOF
5043 ECHO='func_fallback_echo'
5046 # func_echo_all arg...
5047 # Invoke $ECHO with all args, space-separated.
5054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5055 $as_echo "printf" >&6; } ;;
5056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5057 $as_echo "print -r" >&6; } ;;
5058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5059 $as_echo "cat" >&6; } ;;
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5077 if ${ac_cv_path_SED+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5081 for ac_i in 1 2 3 4 5 6 7; do
5082 ac_script="$ac_script$as_nl$ac_script"
5084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5085 { ac_script=; unset ac_script;}
5086 if test -z "$SED"; then
5087 ac_path_SED_found=false
5088 # Loop through the user's path and test for each of PROGNAME-LIST
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_prog in sed gsed; do
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5097 as_fn_executable_p "$ac_path_SED" || continue
5098 # Check for GNU ac_path_SED and select it if it is found.
5099 # Check for GNU $ac_path_SED
5100 case `"$ac_path_SED" --version 2>&1` in
5102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5105 $as_echo_n 0123456789 >"conftest.in"
5108 cat "conftest.in" "conftest.in" >"conftest.tmp"
5109 mv "conftest.tmp" "conftest.in"
5110 cp "conftest.in" "conftest.nl"
5111 $as_echo '' >> "conftest.nl"
5112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114 as_fn_arith $ac_count + 1 && ac_count=$as_val
5115 if test $ac_count -gt ${ac_path_SED_max-0}; then
5116 # Best one so far, save it but keep looking for a better one
5117 ac_cv_path_SED="$ac_path_SED"
5118 ac_path_SED_max=$ac_count
5120 # 10*(2^10) chars as input seems more than enough
5121 test $ac_count -gt 10 && break
5123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 $ac_path_SED_found && break 3
5131 if test -z "$ac_cv_path_SED"; then
5132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5140 $as_echo "$ac_cv_path_SED" >&6; }
5141 SED="$ac_cv_path_SED"
5144 test -z "$SED" && SED=sed
5145 Xsed="$SED -e 1s/^X//"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5158 $as_echo_n "checking for fgrep... " >&6; }
5159 if ${ac_cv_path_FGREP+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5163 then ac_cv_path_FGREP="$GREP -F"
5165 if test -z "$FGREP"; then
5166 ac_path_FGREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 test -z "$as_dir" && as_dir=.
5173 for ac_prog in fgrep; do
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5176 as_fn_executable_p "$ac_path_FGREP" || continue
5177 # Check for GNU ac_path_FGREP and select it if it is found.
5178 # Check for GNU $ac_path_FGREP
5179 case `"$ac_path_FGREP" --version 2>&1` in
5181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5184 $as_echo_n 0123456789 >"conftest.in"
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'FGREP' >> "conftest.nl"
5191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_FGREP="$ac_path_FGREP"
5197 ac_path_FGREP_max=$ac_count
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205 $ac_path_FGREP_found && break 3
5210 if test -z "$ac_cv_path_FGREP"; then
5211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 ac_cv_path_FGREP=$FGREP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5220 $as_echo "$ac_cv_path_FGREP" >&6; }
5221 FGREP="$ac_cv_path_FGREP"
5224 test -z "$GREP" && GREP=grep
5244 # Check whether --with-gnu-ld was given.
5245 if test "${with_gnu_ld+set}" = set; then :
5246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5252 if test "$GCC" = yes; then
5253 # Check if gcc -print-prog-name=ld gives a path.
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5255 $as_echo_n "checking for ld used by $CC... " >&6; }
5258 # gcc leaves a trailing carriage return which upsets mingw
5259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5264 # Accept absolute paths.
5266 re_direlt='/[^/][^/]*/\.\./'
5267 # Canonicalize the pathname of ld
5268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5272 test -z "$LD" && LD="$ac_prog"
5275 # If it fails, then pretend we aren't using GCC.
5279 # If it is relative, then search for the first ld in PATH.
5283 elif test "$with_gnu_ld" = yes; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5285 $as_echo_n "checking for GNU ld... " >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5288 $as_echo_n "checking for non-GNU ld... " >&6; }
5290 if ${lt_cv_path_LD+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 if test -z "$LD"; then
5294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5295 for ac_dir in $PATH; do
5297 test -z "$ac_dir" && ac_dir=.
5298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5299 lt_cv_path_LD="$ac_dir/$ac_prog"
5300 # Check to see if the program is GNU ld. I'd rather use --version,
5301 # but apparently some variants of GNU ld only accept -v.
5302 # Break only if it was the GNU/non-GNU ld that we prefer.
5303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5304 *GNU* | *'with BFD'*)
5305 test "$with_gnu_ld" != no && break
5308 test "$with_gnu_ld" != yes && break
5315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5320 if test -n "$LD"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5322 $as_echo "$LD" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5330 if ${lt_cv_prog_gnu_ld+:} false; then :
5331 $as_echo_n "(cached) " >&6
5333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5334 case `$LD -v 2>&1 </dev/null` in
5335 *GNU* | *'with BFD'*)
5336 lt_cv_prog_gnu_ld=yes
5339 lt_cv_prog_gnu_ld=no
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5345 with_gnu_ld=$lt_cv_prog_gnu_ld
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5357 if ${lt_cv_path_NM+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 if test -n "$NM"; then
5361 # Let the user override the test.
5364 lt_nm_to_check="${ac_tool_prefix}nm"
5365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366 lt_nm_to_check="$lt_nm_to_check nm"
5368 for lt_tmp_nm in $lt_nm_to_check; do
5369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5372 test -z "$ac_dir" && ac_dir=.
5373 tmp_nm="$ac_dir/$lt_tmp_nm"
5374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375 # Check to see if the nm accepts a BSD-compat flag.
5376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377 # nm: unknown option "B" ignored
5378 # Tru64's nm complains that /dev/null is an invalid object file
5379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380 */dev/null* | *'Invalid file or object type'*)
5381 lt_cv_path_NM="$tmp_nm -B"
5385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5387 lt_cv_path_NM="$tmp_nm -p"
5391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392 continue # so that we can try to find one that supports BSD flags
5401 : ${lt_cv_path_NM=no}
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5405 $as_echo "$lt_cv_path_NM" >&6; }
5406 if test "$lt_cv_path_NM" != "no"; then
5409 # Didn't find any BSD compatible name lister, look for dumpbin.
5410 if test -n "$DUMPBIN"; then :
5411 # Let the user override the test.
5413 if test -n "$ac_tool_prefix"; then
5414 for ac_prog in dumpbin "link -dump"
5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_DUMPBIN+:} false; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$DUMPBIN"; then
5424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 DUMPBIN=$ac_cv_prog_DUMPBIN
5444 if test -n "$DUMPBIN"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5446 $as_echo "$DUMPBIN" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 test -n "$DUMPBIN" && break
5456 if test -z "$DUMPBIN"; then
5457 ac_ct_DUMPBIN=$DUMPBIN
5458 for ac_prog in dumpbin "link -dump"
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$ac_ct_DUMPBIN"; then
5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5488 if test -n "$ac_ct_DUMPBIN"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 test -n "$ac_ct_DUMPBIN" && break
5500 if test "x$ac_ct_DUMPBIN" = x; then
5503 case $cross_compiling:$ac_tool_warned in
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5509 DUMPBIN=$ac_ct_DUMPBIN
5513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5515 DUMPBIN="$DUMPBIN -symbols"
5523 if test "$DUMPBIN" != ":"; then
5527 test -z "$NM" && NM=nm
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5536 if ${lt_cv_nm_interface+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 lt_cv_nm_interface="BSD nm"
5540 echo "int some_variable = 0;" > conftest.$ac_ext
5541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5542 (eval "$ac_compile" 2>conftest.err)
5543 cat conftest.err >&5
5544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5546 cat conftest.err >&5
5547 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5548 cat conftest.out >&5
5549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5550 lt_cv_nm_interface="MS dumpbin"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5555 $as_echo "$lt_cv_nm_interface" >&6; }
5557 # find the maximum length of command line arguments
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5559 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5560 if ${lt_cv_sys_max_cmd_len+:} false; then :
5561 $as_echo_n "(cached) " >&6
5568 # On DJGPP, this test can blow up pretty badly due to problems in libc
5569 # (any single argument exceeding 2000 bytes causes a buffer overrun
5570 # during glob expansion). Even if it were fixed, the result of this
5571 # check would be larger than it should be.
5572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5576 # Under GNU Hurd, this test is not required because there is
5577 # no limit to the length of command line arguments.
5578 # Libtool will interpret -1 as no limit whatsoever
5579 lt_cv_sys_max_cmd_len=-1;
5582 cygwin* | mingw* | cegcc*)
5583 # On Win9x/ME, this test blows up -- it succeeds, but takes
5584 # about 5 minutes as the teststring grows exponentially.
5585 # Worse, since 9x/ME are not pre-emptively multitasking,
5586 # you end up with a "frozen" computer, even though with patience
5587 # the test eventually succeeds (with a max line length of 256k).
5588 # Instead, let's just punt: use the minimum linelength reported by
5589 # all of the supported platforms: 8192 (on NT/2K/XP).
5590 lt_cv_sys_max_cmd_len=8192;
5594 # On MiNT this can take a long time and run out of memory.
5595 lt_cv_sys_max_cmd_len=8192;
5599 # On AmigaOS with pdksh, this test takes hours, literally.
5600 # So we just punt and use a minimum line length of 8192.
5601 lt_cv_sys_max_cmd_len=8192;
5604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5605 # This has been around since 386BSD, at least. Likely further.
5606 if test -x /sbin/sysctl; then
5607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5608 elif test -x /usr/sbin/sysctl; then
5609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5613 # And add a safety zone
5614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5620 lt_cv_sys_max_cmd_len=196608
5624 # The test takes a long time on OS/2.
5625 lt_cv_sys_max_cmd_len=8192
5629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5631 # nice to cause kernel panics so lets avoid the loop below.
5632 # First set a reasonable default.
5633 lt_cv_sys_max_cmd_len=16384
5635 if test -x /sbin/sysconfig; then
5636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5642 lt_cv_sys_max_cmd_len=102400
5644 sysv5* | sco5v6* | sysv4.2uw2*)
5645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5646 if test -n "$kargmax"; then
5647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5649 lt_cv_sys_max_cmd_len=32768
5653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5654 if test -n "$lt_cv_sys_max_cmd_len"; then
5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5658 # Make teststring a little bigger before we do anything with it.
5659 # a 1K string should be a reasonable start.
5660 for i in 1 2 3 4 5 6 7 8 ; do
5661 teststring=$teststring$teststring
5663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5664 # If test is not a shell built-in, we'll probably end up computing a
5665 # maximum length that is only half of the actual maximum length, but
5667 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5669 test $i != 17 # 1/2 MB should be enough
5672 teststring=$teststring$teststring
5674 # Only check the string length outside the loop.
5675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5677 # Add a significant safety factor because C++ compilers can tack on
5678 # massive amounts of additional arguments before passing them to the
5679 # linker. It appears as though 1/2 is a usable value.
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5687 if test -n $lt_cv_sys_max_cmd_len ; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5692 $as_echo "none" >&6; }
5694 max_cmd_len=$lt_cv_sys_max_cmd_len
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5707 # Try some XSI features
5710 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5712 && eval 'test $(( 1 + 1 )) -eq 2 \
5713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5716 $as_echo "$xsi_shell" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5724 && lt_shell_append=yes
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5726 $as_echo "$lt_shell_append" >&6; }
5729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5739 # test EBCDIC or ASCII
5740 case `echo X|tr X '\101'` in
5741 A) # ASCII based system
5742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5743 lt_SP2NL='tr \040 \012'
5744 lt_NL2SP='tr \015\012 \040\040'
5746 *) # EBCDIC based system
5747 lt_SP2NL='tr \100 \n'
5748 lt_NL2SP='tr \r\n \100\100'
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5761 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5762 if ${lt_cv_to_host_file_cmd+:} false; then :
5763 $as_echo_n "(cached) " >&6
5768 *-*-mingw* ) # actually msys
5769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5772 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5774 * ) # otherwise, assume *nix
5775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5781 *-*-mingw* ) # actually msys
5782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5785 lt_cv_to_host_file_cmd=func_convert_file_noop
5787 * ) # otherwise, assume *nix
5788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5792 * ) # unhandled hosts (and "normal" native builds)
5793 lt_cv_to_host_file_cmd=func_convert_file_noop
5799 to_host_file_cmd=$lt_cv_to_host_file_cmd
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5801 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5808 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5809 if ${lt_cv_to_tool_file_cmd+:} false; then :
5810 $as_echo_n "(cached) " >&6
5812 #assume ordinary cross tools, or native build.
5813 lt_cv_to_tool_file_cmd=func_convert_file_noop
5817 *-*-mingw* ) # actually msys
5818 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5828 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5836 if ${lt_cv_ld_reload_flag+:} false; then :
5837 $as_echo_n "(cached) " >&6
5839 lt_cv_ld_reload_flag='-r'
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5843 reload_flag=$lt_cv_ld_reload_flag
5844 case $reload_flag in
5846 *) reload_flag=" $reload_flag" ;;
5848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5850 cygwin* | mingw* | pw32* | cegcc*)
5851 if test "$GCC" != yes; then
5856 if test "$GCC" = yes; then
5857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_OBJDUMP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$OBJDUMP"; then
5881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5903 $as_echo "$OBJDUMP" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5911 if test -z "$ac_cv_prog_OBJDUMP"; then
5912 ac_ct_OBJDUMP=$OBJDUMP
5913 # Extract the first word of "objdump", so it can be a program name with args.
5914 set dummy objdump; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5918 $as_echo_n "(cached) " >&6
5920 if test -n "$ac_ct_OBJDUMP"; then
5921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5943 $as_echo "$ac_ct_OBJDUMP" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5949 if test "x$ac_ct_OBJDUMP" = x; then
5952 case $cross_compiling:$ac_tool_warned in
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5958 OBJDUMP=$ac_ct_OBJDUMP
5961 OBJDUMP="$ac_cv_prog_OBJDUMP"
5964 test -z "$OBJDUMP" && OBJDUMP=objdump
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5976 if ${lt_cv_deplibs_check_method+:} false; then :
5977 $as_echo_n "(cached) " >&6
5979 lt_cv_file_magic_cmd='$MAGIC_CMD'
5980 lt_cv_file_magic_test_file=
5981 lt_cv_deplibs_check_method='unknown'
5982 # Need to set the preceding variable on all platforms that support
5983 # interlibrary dependencies.
5984 # 'none' -- dependencies not supported.
5985 # `unknown' -- same as none, but documents that we really don't know.
5986 # 'pass_all' -- all dependencies passed with no checks.
5987 # 'test_compile' -- check by making test program.
5988 # 'file_magic [[regex]]' -- check by looking for files in library path
5989 # which responds to the $file_magic_cmd with a given extended regex.
5990 # If you have `file' or equivalent on your system and you're not sure
5991 # whether `pass_all' will *always* work, you probably want this one.
5995 lt_cv_deplibs_check_method=pass_all
5999 lt_cv_deplibs_check_method=pass_all
6003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6004 lt_cv_file_magic_cmd='/usr/bin/file -L'
6005 lt_cv_file_magic_test_file=/shlib/libc.so
6009 # func_win32_libid is a shell function defined in ltmain.sh
6010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6011 lt_cv_file_magic_cmd='func_win32_libid'
6015 # Base MSYS/MinGW do not provide the 'file' command needed by
6016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6017 # unless we find 'file', for example because we are cross-compiling.
6018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6021 lt_cv_file_magic_cmd='func_win32_libid'
6023 # Keep this pattern in sync with the one in func_win32_libid.
6024 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6025 lt_cv_file_magic_cmd='$OBJDUMP -f'
6030 # use the weaker test based on 'objdump'. See mingw*.
6031 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6032 lt_cv_file_magic_cmd='$OBJDUMP -f'
6035 darwin* | rhapsody*)
6036 lt_cv_deplibs_check_method=pass_all
6039 freebsd* | dragonfly*)
6040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6043 # Not sure whether the presence of OpenBSD here was a mistake.
6044 # Let's accept both of them until this is cleared up.
6045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6046 lt_cv_file_magic_cmd=/usr/bin/file
6047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6051 lt_cv_deplibs_check_method=pass_all
6056 lt_cv_deplibs_check_method=pass_all
6060 lt_cv_deplibs_check_method=pass_all
6063 hpux10.20* | hpux11*)
6064 lt_cv_file_magic_cmd=/usr/bin/file
6067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6071 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]'
6072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6086 irix5* | irix6* | nonstopux*)
6088 *-32|*"-32 ") libmagic=32-bit;;
6089 *-n32|*"-n32 ") libmagic=N32;;
6090 *-64|*"-64 ") libmagic=64-bit;;
6091 *) libmagic=never-match;;
6093 lt_cv_deplibs_check_method=pass_all
6096 # This must be glibc/ELF.
6097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6098 lt_cv_deplibs_check_method=pass_all
6102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6111 lt_cv_file_magic_cmd=/usr/bin/file
6112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6116 lt_cv_deplibs_check_method=pass_all
6120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6127 osf3* | osf4* | osf5*)
6128 lt_cv_deplibs_check_method=pass_all
6132 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method=pass_all
6139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6140 lt_cv_deplibs_check_method=pass_all
6144 case $host_vendor in
6146 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]'
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6150 lt_cv_deplibs_check_method=pass_all
6153 lt_cv_file_magic_cmd='/bin/file'
6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6157 lt_cv_file_magic_cmd='/bin/file'
6158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6159 lt_cv_file_magic_test_file=/lib/libc.so
6162 lt_cv_deplibs_check_method=pass_all
6165 lt_cv_deplibs_check_method=pass_all
6171 lt_cv_deplibs_check_method=pass_all
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6181 if test "$build" = "$host"; then
6184 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6187 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6193 file_magic_cmd=$lt_cv_file_magic_cmd
6194 deplibs_check_method=$lt_cv_deplibs_check_method
6195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6218 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_DLLTOOL+:} false; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -n "$DLLTOOL"; then
6227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 DLLTOOL=$ac_cv_prog_DLLTOOL
6247 if test -n "$DLLTOOL"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6249 $as_echo "$DLLTOOL" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6257 if test -z "$ac_cv_prog_DLLTOOL"; then
6258 ac_ct_DLLTOOL=$DLLTOOL
6259 # Extract the first word of "dlltool", so it can be a program name with args.
6260 set dummy dlltool; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 if test -n "$ac_ct_DLLTOOL"; then
6267 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6287 if test -n "$ac_ct_DLLTOOL"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6289 $as_echo "$ac_ct_DLLTOOL" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6295 if test "x$ac_ct_DLLTOOL" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6304 DLLTOOL=$ac_ct_DLLTOOL
6307 DLLTOOL="$ac_cv_prog_DLLTOOL"
6310 test -z "$DLLTOOL" && DLLTOOL=dlltool
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6322 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6323 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6324 $as_echo_n "(cached) " >&6
6326 lt_cv_sharedlib_from_linklib_cmd='unknown'
6329 cygwin* | mingw* | pw32* | cegcc*)
6330 # two different shell functions defined in ltmain.sh
6331 # decide which to use based on capabilities of $DLLTOOL
6332 case `$DLLTOOL --help 2>&1` in
6333 *--identify-strict*)
6334 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6342 # fallback: assume linklib IS sharedlib
6343 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6349 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6359 if test -n "$ac_tool_prefix"; then
6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_AR+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$AR"; then
6370 ac_cv_prog_AR="$AR" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 if test -n "$AR"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6392 $as_echo "$AR" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6399 test -n "$AR" && break
6402 if test -z "$AR"; then
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_AR"; then
6414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_AR="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6434 if test -n "$ac_ct_AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6436 $as_echo "$ac_ct_AR" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$ac_ct_AR" && break
6446 if test "x$ac_ct_AR" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6473 $as_echo_n "checking for archiver @FILE support... " >&6; }
6474 if ${lt_cv_ar_at_file+:} false; then :
6475 $as_echo_n "(cached) " >&6
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 echo conftest.$ac_objext > conftest.lst
6491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6493 (eval $lt_ar_try) 2>&5
6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496 test $ac_status = 0; }
6497 if test "$ac_status" -eq 0; then
6498 # Ensure the archiver fails upon bogus file names.
6499 rm -f conftest.$ac_objext libconftest.a
6500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6501 (eval $lt_ar_try) 2>&5
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }
6505 if test "$ac_status" -ne 0; then
6509 rm -f conftest.* libconftest.a
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6516 $as_echo "$lt_cv_ar_at_file" >&6; }
6518 if test "x$lt_cv_ar_at_file" = xno; then
6521 archiver_list_spec=$lt_cv_ar_at_file
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}strip; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_STRIP+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$STRIP"; then
6539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 STRIP=$ac_cv_prog_STRIP
6559 if test -n "$STRIP"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6561 $as_echo "$STRIP" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_STRIP"; then
6571 # Extract the first word of "strip", so it can be a program name with args.
6572 set dummy strip; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$ac_ct_STRIP"; then
6579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_STRIP="strip"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6599 if test -n "$ac_ct_STRIP"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6601 $as_echo "$ac_ct_STRIP" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_STRIP" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6619 STRIP="$ac_cv_prog_STRIP"
6622 test -z "$STRIP" && STRIP=:
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_RANLIB+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 if test -n "$RANLIB"; then
6638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6660 $as_echo "$RANLIB" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_RANLIB"; then
6669 ac_ct_RANLIB=$RANLIB
6670 # Extract the first word of "ranlib", so it can be a program name with args.
6671 set dummy ranlib; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$ac_ct_RANLIB"; then
6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_RANLIB="ranlib"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6698 if test -n "$ac_ct_RANLIB"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6700 $as_echo "$ac_ct_RANLIB" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_RANLIB" = x; then
6709 case $cross_compiling:$ac_tool_warned in
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6715 RANLIB=$ac_ct_RANLIB
6718 RANLIB="$ac_cv_prog_RANLIB"
6721 test -z "$RANLIB" && RANLIB=:
6728 # Determine commands to create old-style static archives.
6729 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6730 old_postinstall_cmds='chmod 644 $oldlib'
6731 old_postuninstall_cmds=
6733 if test -n "$RANLIB"; then
6736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6747 lock_old_archive_extraction=yes ;;
6749 lock_old_archive_extraction=no ;;
6790 # If no C compiler was specified, use CC.
6793 # If no C compiler flags were specified, use CFLAGS.
6794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6796 # Allow CC to be a program name with arguments.
6800 # Check for command to grab the raw symbol name followed by C symbol from nm.
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6803 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6804 $as_echo_n "(cached) " >&6
6807 # These are sane defaults that work on at least a few old systems.
6808 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6810 # Character class describing NM global symbol codes.
6811 symcode='[BCDEGRST]'
6813 # Regexp to match symbols that can be accessed directly from C.
6814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6816 # Define system-specific variables.
6821 cygwin* | mingw* | pw32* | cegcc*)
6822 symcode='[ABCDGISTW]'
6825 if test "$host_cpu" = ia64; then
6826 symcode='[ABCDEGRST]'
6830 symcode='[BCDEGRST]'
6833 symcode='[BCDEGQRST]'
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6852 # If we're using GNU nm, then use its standard symbol codes.
6853 case `$NM -V 2>&1` in
6854 *GNU* | *'with BFD'*)
6855 symcode='[ABCDGIRSTW]' ;;
6858 # Transform an extracted symbol line into a proper C declaration.
6859 # Some systems (esp. on ia64) link data and code symbols differently,
6860 # so use this general approach.
6861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863 # Transform an extracted symbol line into symbol name and symbol address
6864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6867 # Handle CRLF in mingw tool chain
6871 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6875 # Try without a prefix underscore, then with it.
6876 for ac_symprfx in "" "_"; do
6878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6879 symxfrm="\\1 $ac_symprfx\\2 \\2"
6881 # Write the raw and C identifiers.
6882 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6883 # Fake it for dumpbin and say T for any non-static function
6884 # and D for any global variable.
6885 # Also find C++ and __fastcall symbols from MSVC++,
6886 # which start with @ or ?.
6887 lt_cv_sys_global_symbol_pipe="$AWK '"\
6888 " {last_section=section; section=\$ 3};"\
6889 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6890 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6891 " \$ 0!~/External *\|/{next};"\
6892 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6893 " {if(hide[section]) next};"\
6894 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6895 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6896 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6897 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6898 " ' prfx=^$ac_symprfx"
6900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6904 # Check to see that the pipe works correctly.
6908 cat > conftest.$ac_ext <<_LT_EOF
6913 void nm_test_func(void);
6914 void nm_test_func(void){}
6918 int main(){nm_test_var='a';nm_test_func();return(0);}
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 # Now try to grab the symbols.
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6929 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; } && test -s "$nlist"; then
6933 # Try sorting and uniquifying the output.
6934 if sort "$nlist" | uniq > "$nlist"T; then
6935 mv -f "$nlist"T "$nlist"
6940 # Make sure that we snagged all the symbols we need.
6941 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6942 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6943 cat <<_LT_EOF > conftest.$ac_ext
6944 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6945 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6946 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6947 relocations are performed -- see ld's documentation on pseudo-relocs. */
6948 # define LT_DLSYM_CONST
6949 #elif defined(__osf__)
6950 /* This system does not cope well with relocations in const data. */
6951 # define LT_DLSYM_CONST
6953 # define LT_DLSYM_CONST const
6961 # Now generate the symbol file.
6962 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6964 cat <<_LT_EOF >> conftest.$ac_ext
6966 /* The mapping between symbol names and symbols. */
6967 LT_DLSYM_CONST struct {
6971 lt__PROGRAM__LTX_preloaded_symbols[] =
6973 { "@PROGRAM@", (void *) 0 },
6975 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6976 cat <<\_LT_EOF >> conftest.$ac_ext
6980 /* This works around a problem in FreeBSD linker */
6981 #ifdef FREEBSD_WORKAROUND
6982 static const void *lt_preloaded_setup() {
6983 return lt__PROGRAM__LTX_preloaded_symbols;
6991 # Now try linking the two files.
6992 mv conftest.$ac_objext conftstm.$ac_objext
6993 lt_globsym_save_LIBS=$LIBS
6994 lt_globsym_save_CFLAGS=$CFLAGS
6995 LIBS="conftstm.$ac_objext"
6996 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6998 (eval $ac_link) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7004 LIBS=$lt_globsym_save_LIBS
7005 CFLAGS=$lt_globsym_save_CFLAGS
7007 echo "cannot find nm_test_func in $nlist" >&5
7010 echo "cannot find nm_test_var in $nlist" >&5
7013 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7016 echo "$progname: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7019 rm -rf conftest* conftst*
7021 # Do not use the global_symbol_pipe unless it works.
7022 if test "$pipe_works" = yes; then
7025 lt_cv_sys_global_symbol_pipe=
7031 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7032 lt_cv_sys_global_symbol_to_cdecl=
7034 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7036 $as_echo "failed" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7039 $as_echo "ok" >&6; }
7042 # Response file support.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044 nm_file_list_spec='@'
7045 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7046 nm_file_list_spec='@'
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7076 $as_echo_n "checking for sysroot... " >&6; }
7078 # Check whether --with-sysroot was given.
7079 if test "${with_sysroot+set}" = set; then :
7080 withval=$with_sysroot;
7087 case ${with_sysroot} in #(
7089 if test "$GCC" = yes; then
7090 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7094 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7100 $as_echo "${with_sysroot}" >&6; }
7101 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7106 $as_echo "${lt_sysroot:-no}" >&6; }
7112 # Check whether --enable-libtool-lock was given.
7113 if test "${enable_libtool_lock+set}" = set; then :
7114 enableval=$enable_libtool_lock;
7117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7119 # Some flags need to be propagated to the compiler or linker for good
7123 # Find out which ABI we are using.
7124 echo 'int i;' > conftest.$ac_ext
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126 (eval $ac_compile) 2>&5
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; }; then
7130 case `/usr/bin/file conftest.$ac_objext` in
7142 # Find out which ABI we are using.
7143 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 if test "$lt_cv_prog_gnu_ld" = yes; then
7150 case `/usr/bin/file conftest.$ac_objext` in
7152 LD="${LD-ld} -melf32bsmip"
7155 LD="${LD-ld} -melf32bmipn32"
7158 LD="${LD-ld} -melf64bmip"
7162 case `/usr/bin/file conftest.$ac_objext` in
7178 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7179 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7180 # Find out which ABI we are using.
7181 echo 'int i;' > conftest.$ac_ext
7182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183 (eval $ac_compile) 2>&5
7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186 test $ac_status = 0; }; then
7187 case `/usr/bin/file conftest.o` in
7190 x86_64-*kfreebsd*-gnu)
7191 LD="${LD-ld} -m elf_i386_fbsd"
7194 LD="${LD-ld} -m elf_i386"
7197 LD="${LD-ld} -m elf32lppclinux"
7200 LD="${LD-ld} -m elf32ppclinux"
7203 LD="${LD-ld} -m elf_s390"
7206 LD="${LD-ld} -m elf32_sparc"
7212 x86_64-*kfreebsd*-gnu)
7213 LD="${LD-ld} -m elf_x86_64_fbsd"
7216 LD="${LD-ld} -m elf_x86_64"
7219 LD="${LD-ld} -m elf64lppc"
7222 LD="${LD-ld} -m elf64ppc"
7224 s390*-*linux*|s390*-*tpf*)
7225 LD="${LD-ld} -m elf64_s390"
7228 LD="${LD-ld} -m elf64_sparc"
7238 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7239 SAVE_CFLAGS="$CFLAGS"
7240 CFLAGS="$CFLAGS -belf"
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7242 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7243 if ${lt_cv_cc_needs_belf+:} false; then :
7244 $as_echo_n "(cached) " >&6
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 lt_cv_cc_needs_belf=yes
7266 lt_cv_cc_needs_belf=no
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7271 ac_cpp='$CPP $CPPFLAGS'
7272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7278 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7279 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7280 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7281 CFLAGS="$SAVE_CFLAGS"
7285 # Find out which ABI we are using.
7286 echo 'int i;' > conftest.$ac_ext
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 case `/usr/bin/file conftest.o` in
7294 case $lt_cv_prog_gnu_ld in
7298 LD="${LD-ld} -m elf_x86_64"
7301 LD="${LD-ld} -m elf64_sparc"
7304 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7305 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7310 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7322 need_locks="$enable_libtool_lock"
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}mt; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7330 $as_echo_n "(cached) " >&6
7332 if test -n "$MANIFEST_TOOL"; then
7333 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7353 if test -n "$MANIFEST_TOOL"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7355 $as_echo "$MANIFEST_TOOL" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7364 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7365 # Extract the first word of "mt", so it can be a program name with args.
7366 set dummy mt; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7370 $as_echo_n "(cached) " >&6
7372 if test -n "$ac_ct_MANIFEST_TOOL"; then
7373 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7393 if test -n "$ac_ct_MANIFEST_TOOL"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7395 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7401 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7404 case $cross_compiling:$ac_tool_warned in
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7410 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7413 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7416 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7418 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7419 if ${lt_cv_path_mainfest_tool+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 lt_cv_path_mainfest_tool=no
7423 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7424 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7425 cat conftest.err >&5
7426 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7427 lt_cv_path_mainfest_tool=yes
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7432 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7433 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7443 rhapsody* | darwin*)
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$DSYMUTIL"; then
7453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7473 if test -n "$DSYMUTIL"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7475 $as_echo "$DSYMUTIL" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7483 if test -z "$ac_cv_prog_DSYMUTIL"; then
7484 ac_ct_DSYMUTIL=$DSYMUTIL
7485 # Extract the first word of "dsymutil", so it can be a program name with args.
7486 set dummy dsymutil; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$ac_ct_DSYMUTIL"; then
7493 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7513 if test -n "$ac_ct_DSYMUTIL"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7521 if test "x$ac_ct_DSYMUTIL" = x; then
7524 case $cross_compiling:$ac_tool_warned in
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7530 DSYMUTIL=$ac_ct_DSYMUTIL
7533 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_NMEDIT+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$NMEDIT"; then
7545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 NMEDIT=$ac_cv_prog_NMEDIT
7565 if test -n "$NMEDIT"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7567 $as_echo "$NMEDIT" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_NMEDIT"; then
7576 ac_ct_NMEDIT=$NMEDIT
7577 # Extract the first word of "nmedit", so it can be a program name with args.
7578 set dummy nmedit; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$ac_ct_NMEDIT"; then
7585 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7605 if test -n "$ac_ct_NMEDIT"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7607 $as_echo "$ac_ct_NMEDIT" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_NMEDIT" = x; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7622 NMEDIT=$ac_ct_NMEDIT
7625 NMEDIT="$ac_cv_prog_NMEDIT"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_LIPO+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$LIPO"; then
7637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 LIPO=$ac_cv_prog_LIPO
7657 if test -n "$LIPO"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7659 $as_echo "$LIPO" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 if test -z "$ac_cv_prog_LIPO"; then
7669 # Extract the first word of "lipo", so it can be a program name with args.
7670 set dummy lipo; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$ac_ct_LIPO"; then
7677 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_LIPO="lipo"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7697 if test -n "$ac_ct_LIPO"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7699 $as_echo "$ac_ct_LIPO" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7705 if test "x$ac_ct_LIPO" = x; then
7708 case $cross_compiling:$ac_tool_warned in
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7717 LIPO="$ac_cv_prog_LIPO"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}otool; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_OTOOL+:} false; then :
7726 $as_echo_n "(cached) " >&6
7728 if test -n "$OTOOL"; then
7729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 OTOOL=$ac_cv_prog_OTOOL
7749 if test -n "$OTOOL"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7751 $as_echo "$OTOOL" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 if test -z "$ac_cv_prog_OTOOL"; then
7761 # Extract the first word of "otool", so it can be a program name with args.
7762 set dummy otool; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -n "$ac_ct_OTOOL"; then
7769 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_ac_ct_OTOOL="otool"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7789 if test -n "$ac_ct_OTOOL"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7791 $as_echo "$ac_ct_OTOOL" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797 if test "x$ac_ct_OTOOL" = x; then
7800 case $cross_compiling:$ac_tool_warned in
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7809 OTOOL="$ac_cv_prog_OTOOL"
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_OTOOL64+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 if test -n "$OTOOL64"; then
7821 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 OTOOL64=$ac_cv_prog_OTOOL64
7841 if test -n "$OTOOL64"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7843 $as_echo "$OTOOL64" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7851 if test -z "$ac_cv_prog_OTOOL64"; then
7852 ac_ct_OTOOL64=$OTOOL64
7853 # Extract the first word of "otool64", so it can be a program name with args.
7854 set dummy otool64; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7858 $as_echo_n "(cached) " >&6
7860 if test -n "$ac_ct_OTOOL64"; then
7861 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_OTOOL64="otool64"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7881 if test -n "$ac_ct_OTOOL64"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7883 $as_echo "$ac_ct_OTOOL64" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7889 if test "x$ac_ct_OTOOL64" = x; then
7892 case $cross_compiling:$ac_tool_warned in
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7898 OTOOL64=$ac_ct_OTOOL64
7901 OTOOL64="$ac_cv_prog_OTOOL64"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7931 $as_echo_n "checking for -single_module linker flag... " >&6; }
7932 if ${lt_cv_apple_cc_single_mod+:} false; then :
7933 $as_echo_n "(cached) " >&6
7935 lt_cv_apple_cc_single_mod=no
7936 if test -z "${LT_MULTI_MODULE}"; then
7937 # By default we will add the -single_module flag. You can override
7938 # by either setting the environment variable LT_MULTI_MODULE
7939 # non-empty at configure time, or by adding -multi_module to the
7941 rm -rf libconftest.dylib*
7942 echo "int foo(void){return 1;}" > conftest.c
7943 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7944 -dynamiclib -Wl,-single_module conftest.c" >&5
7945 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7946 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7948 # If there is a non-empty error log, and "single_module"
7949 # appears in it, assume the flag caused a linker warning
7950 if test -s conftest.err && $GREP single_module conftest.err; then
7951 cat conftest.err >&5
7952 # Otherwise, if the output was created with a 0 exit code from
7953 # the compiler, it worked.
7954 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7955 lt_cv_apple_cc_single_mod=yes
7957 cat conftest.err >&5
7959 rm -rf libconftest.dylib*
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7964 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7967 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7968 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7969 $as_echo_n "(cached) " >&6
7971 lt_cv_ld_exported_symbols_list=no
7972 save_LDFLAGS=$LDFLAGS
7973 echo "_main" > conftest.sym
7974 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7986 if ac_fn_c_try_link "$LINENO"; then :
7987 lt_cv_ld_exported_symbols_list=yes
7989 lt_cv_ld_exported_symbols_list=no
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LDFLAGS="$save_LDFLAGS"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7997 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8000 $as_echo_n "checking for -force_load linker flag... " >&6; }
8001 if ${lt_cv_ld_force_load+:} false; then :
8002 $as_echo_n "(cached) " >&6
8004 lt_cv_ld_force_load=no
8005 cat > conftest.c << _LT_EOF
8006 int forced_loaded() { return 2;}
8008 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8009 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8010 echo "$AR cru libconftest.a conftest.o" >&5
8011 $AR cru libconftest.a conftest.o 2>&5
8012 echo "$RANLIB libconftest.a" >&5
8013 $RANLIB libconftest.a 2>&5
8014 cat > conftest.c << _LT_EOF
8015 int main() { return 0;}
8017 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8018 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8020 if test -s conftest.err && $GREP force_load conftest.err; then
8021 cat conftest.err >&5
8022 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8023 lt_cv_ld_force_load=yes
8025 cat conftest.err >&5
8027 rm -f conftest.err libconftest.a conftest conftest.c
8028 rm -rf conftest.dSYM
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8032 $as_echo "$lt_cv_ld_force_load" >&6; }
8034 rhapsody* | darwin1.[012])
8035 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8037 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8038 darwin*) # darwin 5.x on
8039 # if running on 10.5 or later, the deployment target defaults
8040 # to the OS version, if on x86, and 10.4, the deployment
8041 # target defaults to 10.4. Don't you love it?
8042 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8043 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8044 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8048 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8052 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8053 _lt_dar_single_mod='$single_module'
8055 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8056 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8058 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8060 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8061 _lt_dsymutil='~$DSYMUTIL $lib || :'
8068 for ac_header in dlfcn.h
8070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DLFCN_H 1
8084 func_stripname_cnf ()
8087 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8088 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8090 } # func_stripname_cnf
8106 # Check whether --enable-shared was given.
8107 if test "${enable_shared+set}" = set; then :
8108 enableval=$enable_shared; p=${PACKAGE-default}
8110 yes) enable_shared=yes ;;
8111 no) enable_shared=no ;;
8114 # Look at the argument we got. We use all the common list separators.
8115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116 for pkg in $enableval; do
8118 if test "X$pkg" = "X$p"; then
8137 # Check whether --enable-static was given.
8138 if test "${enable_static+set}" = set; then :
8139 enableval=$enable_static; p=${PACKAGE-default}
8141 yes) enable_static=yes ;;
8142 no) enable_static=no ;;
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for pkg in $enableval; do
8149 if test "X$pkg" = "X$p"; then
8169 # Check whether --with-pic was given.
8170 if test "${with_pic+set}" = set; then :
8171 withval=$with_pic; lt_p=${PACKAGE-default}
8173 yes|no) pic_mode=$withval ;;
8176 # Look at the argument we got. We use all the common list separators.
8177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178 for lt_pkg in $withval; do
8180 if test "X$lt_pkg" = "X$lt_p"; then
8192 test -z "$pic_mode" && pic_mode=default
8200 # Check whether --enable-fast-install was given.
8201 if test "${enable_fast_install+set}" = set; then :
8202 enableval=$enable_fast_install; p=${PACKAGE-default}
8204 yes) enable_fast_install=yes ;;
8205 no) enable_fast_install=no ;;
8207 enable_fast_install=no
8208 # Look at the argument we got. We use all the common list separators.
8209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210 for pkg in $enableval; do
8212 if test "X$pkg" = "X$p"; then
8213 enable_fast_install=yes
8220 enable_fast_install=yes
8233 # This can be used to rebuild libtool when needed
8234 LIBTOOL_DEPS="$ltmain"
8236 # Always use our own libtool.
8237 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8268 test -z "$LN_S" && LN_S="ln -s"
8283 if test -n "${ZSH_VERSION+set}" ; then
8284 setopt NO_GLOB_SUBST
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8288 $as_echo_n "checking for objdir... " >&6; }
8289 if ${lt_cv_objdir+:} false; then :
8290 $as_echo_n "(cached) " >&6
8292 rm -f .libs 2>/dev/null
8293 mkdir .libs 2>/dev/null
8294 if test -d .libs; then
8297 # MS-DOS does not allow filenames that begin with a dot.
8300 rmdir .libs 2>/dev/null
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8303 $as_echo "$lt_cv_objdir" >&6; }
8304 objdir=$lt_cv_objdir
8310 cat >>confdefs.h <<_ACEOF
8311 #define LT_OBJDIR "$lt_cv_objdir/"
8319 # AIX sometimes has problems with the GCC collect2 program. For some
8320 # reason, if we set the COLLECT_NAMES environment variable, the problems
8321 # vanish in a puff of smoke.
8322 if test "X${COLLECT_NAMES+set}" != Xset; then
8324 export COLLECT_NAMES
8331 can_build_shared=yes
8333 # All known linkers require a `.a' archive for static linking (except MSVC,
8334 # which needs '.lib').
8337 with_gnu_ld="$lt_cv_prog_gnu_ld"
8340 old_CFLAGS="$CFLAGS"
8342 # Set sane defaults for various variables
8343 test -z "$CC" && CC=cc
8344 test -z "$LTCC" && LTCC=$CC
8345 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8346 test -z "$LD" && LD=ld
8347 test -z "$ac_objext" && ac_objext=o
8349 for cc_temp in $compiler""; do
8351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8360 # Only perform the check for file, if the check method requires it
8361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8362 case $deplibs_check_method in
8364 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8366 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8367 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8368 $as_echo_n "(cached) " >&6
8372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8375 lt_save_MAGIC_CMD="$MAGIC_CMD"
8376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8378 for ac_dir in $ac_dummy; do
8380 test -z "$ac_dir" && ac_dir=.
8381 if test -f $ac_dir/${ac_tool_prefix}file; then
8382 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8383 if test -n "$file_magic_test_file"; then
8384 case $deplibs_check_method in
8386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8389 $EGREP "$file_magic_regex" > /dev/null; then
8394 *** Warning: the command libtool uses to detect shared libraries,
8395 *** $file_magic_cmd, produces output that libtool cannot recognize.
8396 *** The result is that libtool may fail to recognize shared libraries
8397 *** as such. This will affect the creation of libtool libraries that
8398 *** depend on shared libraries, but programs linked with such libtool
8399 *** libraries will work regardless of this problem. Nevertheless, you
8400 *** may want to report the problem to your system manager and/or to
8401 *** bug-libtool@gnu.org
8411 MAGIC_CMD="$lt_save_MAGIC_CMD"
8416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417 if test -n "$MAGIC_CMD"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8419 $as_echo "$MAGIC_CMD" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8429 if test -z "$lt_cv_path_MAGIC_CMD"; then
8430 if test -n "$ac_tool_prefix"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8432 $as_echo_n "checking for file... " >&6; }
8433 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8434 $as_echo_n "(cached) " >&6
8438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8441 lt_save_MAGIC_CMD="$MAGIC_CMD"
8442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444 for ac_dir in $ac_dummy; do
8446 test -z "$ac_dir" && ac_dir=.
8447 if test -f $ac_dir/file; then
8448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8449 if test -n "$file_magic_test_file"; then
8450 case $deplibs_check_method in
8452 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455 $EGREP "$file_magic_regex" > /dev/null; then
8460 *** Warning: the command libtool uses to detect shared libraries,
8461 *** $file_magic_cmd, produces output that libtool cannot recognize.
8462 *** The result is that libtool may fail to recognize shared libraries
8463 *** as such. This will affect the creation of libtool libraries that
8464 *** depend on shared libraries, but programs linked with such libtool
8465 *** libraries will work regardless of this problem. Nevertheless, you
8466 *** may want to report the problem to your system manager and/or to
8467 *** bug-libtool@gnu.org
8477 MAGIC_CMD="$lt_save_MAGIC_CMD"
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if test -n "$MAGIC_CMD"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8485 $as_echo "$MAGIC_CMD" >&6; }
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8501 # Use C for the default configuration in the libtool script
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8511 # Source file extension for C test sources.
8514 # Object file extension for compiled C test sources.
8518 # Code to be used in simple compile tests
8519 lt_simple_compile_test_code="int some_variable = 0;"
8521 # Code to be used in simple link tests
8522 lt_simple_link_test_code='int main(){return(0);}'
8530 # If no C compiler was specified, use CC.
8533 # If no C compiler flags were specified, use CFLAGS.
8534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8536 # Allow CC to be a program name with arguments.
8539 # Save the default compiler, since it gets overwritten when the other
8540 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8541 compiler_DEFAULT=$CC
8543 # save warnings/boilerplate of simple test code
8544 ac_outfile=conftest.$ac_objext
8545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547 _lt_compiler_boilerplate=`cat conftest.err`
8550 ac_outfile=conftest.$ac_objext
8551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8553 _lt_linker_boilerplate=`cat conftest.err`
8557 if test -n "$compiler"; then
8559 lt_prog_compiler_no_builtin_flag=
8561 if test "$GCC" = yes; then
8562 case $cc_basename in
8564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 lt_cv_prog_compiler_rtti_exceptions=no
8575 ac_outfile=conftest.$ac_objext
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577 lt_compiler_flag="-fno-rtti -fno-exceptions"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 # The option is referenced via a variable to avoid confusing sed.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588 (eval "$lt_compile" 2>conftest.err)
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 if (exit $ac_status) && test -s "$ac_outfile"; then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings other than the usual output.
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_rtti_exceptions=yes
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8620 lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8625 if test "$GCC" = yes; then
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_static='-static'
8631 # All AIX code is PIC.
8632 if test "$host_cpu" = ia64; then
8633 # AIX 5 now supports IA64 processor
8634 lt_prog_compiler_static='-Bstatic'
8641 # see comment about AmigaOS4 .so support
8642 lt_prog_compiler_pic='-fPIC'
8645 # FIXME: we need at least 68020 code to build shared libraries, but
8646 # adding the `-m68020' flag to GCC prevents building anything better,
8648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654 # PIC is the default for these OSes.
8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661 # (--disable-auto-import) libraries
8662 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 darwin* | rhapsody*)
8666 # PIC is the default on this platform
8667 # Common symbols not allowed in MH_DYLIB files
8668 lt_prog_compiler_pic='-fno-common'
8672 # PIC is the default for Haiku.
8673 # The "-static" flag exists, but is broken.
8674 lt_prog_compiler_static=
8678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8680 # sets the default TLS model and affects inlining.
8686 lt_prog_compiler_pic='-fPIC'
8692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693 # Instead, we relocate shared libraries at runtime.
8697 # Just because we use GCC doesn't mean we suddenly get shared libraries
8698 # on systems that don't support them.
8699 lt_prog_compiler_can_build_shared=no
8704 # QNX uses GNU C++, but need to define -shared option too, otherwise
8706 lt_prog_compiler_pic='-fPIC -shared'
8710 if test -d /usr/nec; then
8711 lt_prog_compiler_pic=-Kconform_pic
8716 lt_prog_compiler_pic='-fPIC'
8720 case $cc_basename in
8721 nvcc*) # Cuda Compiler Driver 2.2
8722 lt_prog_compiler_wl='-Xlinker '
8723 if test -n "$lt_prog_compiler_pic"; then
8724 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8729 # PORTME Check for flag to pass linker flags through the system compiler.
8732 lt_prog_compiler_wl='-Wl,'
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8741 mingw* | cygwin* | pw32* | os2* | cegcc*)
8742 # This hack is so that the source file can tell whether it is being
8743 # built for inclusion in a dll (and should export symbols for example).
8744 lt_prog_compiler_pic='-DDLL_EXPORT'
8747 hpux9* | hpux10* | hpux11*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8756 lt_prog_compiler_pic='+Z'
8759 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8760 lt_prog_compiler_static='${wl}-a ${wl}archive'
8763 irix5* | irix6* | nonstopux*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # PIC (with -KPIC) is the default.
8766 lt_prog_compiler_static='-non_shared'
8769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8770 case $cc_basename in
8771 # old Intel for x86_64 which still supported -KPIC.
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-static'
8777 # icc used to be incompatible with GCC.
8778 # ICC 10 doesn't accept -KPIC any more.
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-fPIC'
8782 lt_prog_compiler_static='-static'
8784 # Lahey Fortran 8.1.
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='--shared'
8788 lt_prog_compiler_static='--static'
8791 # NAG Fortran compiler
8792 lt_prog_compiler_wl='-Wl,-Wl,,'
8793 lt_prog_compiler_pic='-PIC'
8794 lt_prog_compiler_static='-Bstatic'
8796 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8797 # Portland Group compilers (*not* the Pentium gcc compiler,
8798 # which looks to be a dead project)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-fpic'
8801 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl='-Wl,'
8805 # All Alpha code is PIC.
8806 lt_prog_compiler_static='-non_shared'
8808 xl* | bgxl* | bgf* | mpixl*)
8809 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-qpic'
8812 lt_prog_compiler_static='-qstaticlink'
8815 case `$CC -V 2>&1 | sed 5q` in
8816 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8820 lt_prog_compiler_wl=''
8822 *Sun\ F* | *Sun*Fortran*)
8823 lt_prog_compiler_pic='-KPIC'
8824 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_wl='-Qoption ld '
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl='-Wl,'
8833 *Intel*\ [CF]*Compiler*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fpic'
8841 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8854 # QNX uses GNU C++, but need to define -shared option too, otherwise
8856 lt_prog_compiler_pic='-fPIC -shared'
8859 osf3* | osf4* | osf5*)
8860 lt_prog_compiler_wl='-Wl,'
8861 # All OSF/1 code is PIC.
8862 lt_prog_compiler_static='-non_shared'
8866 lt_prog_compiler_static='-non_shared'
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 case $cc_basename in
8873 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8874 lt_prog_compiler_wl='-Qoption ld ';;
8876 lt_prog_compiler_wl='-Wl,';;
8881 lt_prog_compiler_wl='-Qoption ld '
8882 lt_prog_compiler_pic='-PIC'
8883 lt_prog_compiler_static='-Bstatic'
8886 sysv4 | sysv4.2uw2* | sysv4.3*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8893 if test -d /usr/nec ;then
8894 lt_prog_compiler_pic='-Kconform_pic'
8895 lt_prog_compiler_static='-Bstatic'
8899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_wl='-Wl,'
8907 lt_prog_compiler_can_build_shared=no
8911 lt_prog_compiler_pic='-pic'
8912 lt_prog_compiler_static='-Bstatic'
8916 lt_prog_compiler_can_build_shared=no
8922 # For platforms which do not support PIC, -DPIC is meaningless:
8924 lt_prog_compiler_pic=
8927 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8933 if ${lt_cv_prog_compiler_pic+:} false; then :
8934 $as_echo_n "(cached) " >&6
8936 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8940 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8943 # Check to make sure the PIC flag actually works.
8945 if test -n "$lt_prog_compiler_pic"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8948 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8949 $as_echo_n "(cached) " >&6
8951 lt_cv_prog_compiler_pic_works=no
8952 ac_outfile=conftest.$ac_objext
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 # The option is referenced via a variable to avoid confusing sed.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>conftest.err)
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 if (exit $ac_status) && test -s "$ac_outfile"; then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings other than the usual output.
8972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_pic_works=yes
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8984 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8985 case $lt_prog_compiler_pic in
8987 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8990 lt_prog_compiler_pic=
8991 lt_prog_compiler_can_build_shared=no
9007 # Check to make sure the static flag actually works.
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9012 if ${lt_cv_prog_compiler_static_works+:} false; then :
9013 $as_echo_n "(cached) " >&6
9015 lt_cv_prog_compiler_static_works=no
9016 save_LDFLAGS="$LDFLAGS"
9017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020 # The linker can only warn and ignore the option if not recognized
9021 # So say no if there are warnings
9022 if test -s conftest.err; then
9023 # Append any errors to the config.log.
9024 cat conftest.err 1>&5
9025 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027 if diff conftest.exp conftest.er2 >/dev/null; then
9028 lt_cv_prog_compiler_static_works=yes
9031 lt_cv_prog_compiler_static_works=yes
9035 LDFLAGS="$save_LDFLAGS"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9041 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9044 lt_prog_compiler_static=
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 lt_cv_prog_compiler_c_o=no
9059 $RM -r conftest 2>/dev/null
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-o out/conftest2.$ac_objext"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>out/conftest.err)
9077 cat out/conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_c_o=yes
9091 # SGI C++ compiler will create directory out/ii_files/ for
9092 # template instantiation
9093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094 $RM out/* && rmdir out
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9110 if ${lt_cv_prog_compiler_c_o+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 lt_cv_prog_compiler_c_o=no
9114 $RM -r conftest 2>/dev/null
9118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120 lt_compiler_flag="-o out/conftest2.$ac_objext"
9121 # Insert the option either (1) after the last *FLAGS variable, or
9122 # (2) before a word containing "conftest.", or (3) at the end.
9123 # Note that $ac_compile itself does not contain backslashes and begins
9124 # with a dollar sign (not a hyphen), so the echo should work correctly.
9125 lt_compile=`echo "$ac_compile" | $SED \
9126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128 -e 's:$: $lt_compiler_flag:'`
9129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130 (eval "$lt_compile" 2>out/conftest.err)
9132 cat out/conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 # The compiler can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141 lt_cv_prog_compiler_c_o=yes
9146 # SGI C++ compiler will create directory out/ii_files/ for
9147 # template instantiation
9148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9149 $RM out/* && rmdir out
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9161 hard_links="nottested"
9162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9163 # do not overwrite the value of need_locks provided by the user
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9165 $as_echo_n "checking if we can lock with hard links... " >&6; }
9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170 ln conftest.a conftest.b 2>&5 || hard_links=no
9171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9173 $as_echo "$hard_links" >&6; }
9174 if test "$hard_links" = no; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9192 allow_undefined_flag=
9193 always_export_symbols=no
9195 archive_expsym_cmds=
9196 compiler_needs_object=no
9197 enable_shared_with_static_runtimes=no
9198 export_dynamic_flag_spec=
9199 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200 hardcode_automatic=no
9202 hardcode_direct_absolute=no
9203 hardcode_libdir_flag_spec=
9204 hardcode_libdir_separator=
9206 hardcode_shlibpath_var=unsupported
9208 link_all_deplibs=unknown
9211 old_archive_from_new_cmds=
9212 old_archive_from_expsyms_cmds=
9213 thread_safe_flag_spec=
9214 whole_archive_flag_spec=
9215 # include_expsyms should be a list of space-separated symbols to be *always*
9216 # included in the symbol list
9218 # exclude_expsyms can be an extended regexp of symbols to exclude
9219 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9220 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9221 # as well as any symbol that contains `d'.
9222 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9223 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9224 # platforms (ab)use it in PIC code, but their linkers get confused if
9225 # the symbol is explicitly referenced. Since portable code cannot
9226 # rely on this symbol name, it's probably fine to never include it in
9227 # preloaded symbol tables.
9228 # Exclude shared library initialization/finalization symbols.
9229 extract_expsyms_cmds=
9232 cygwin* | mingw* | pw32* | cegcc*)
9233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234 # When not using gcc, we currently assume that we are using
9235 # Microsoft Visual C++.
9236 if test "$GCC" != yes; then
9241 # we just hope/assume this is gcc and not c89 (= MSVC++)
9251 # On some targets, GNU ld is compatible enough with the native linker
9252 # that we're better off using the native interface for both.
9253 lt_use_gnu_ld_interface=no
9254 if test "$with_gnu_ld" = yes; then
9257 # The AIX port of GNU ld has always aspired to compatibility
9258 # with the native linker. However, as the warning in the GNU ld
9259 # block says, versions before 2.19.5* couldn't really create working
9260 # shared libraries, regardless of the interface used.
9261 case `$LD -v 2>&1` in
9262 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9263 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9264 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9266 lt_use_gnu_ld_interface=yes
9271 lt_use_gnu_ld_interface=yes
9276 if test "$lt_use_gnu_ld_interface" = yes; then
9277 # If archive_cmds runs LD, not CC, wlarc should be empty
9280 # Set some defaults for GNU ld with shared library support. These
9281 # are reset later if shared libraries are not supported. Putting them
9282 # here allows them to be overridden if necessary.
9283 runpath_var=LD_RUN_PATH
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 export_dynamic_flag_spec='${wl}--export-dynamic'
9286 # ancient GNU ld didn't support --whole-archive et. al.
9287 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9288 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9290 whole_archive_flag_spec=
9292 supports_anon_versioning=no
9293 case `$LD -v 2>&1` in
9294 *GNU\ gold*) supports_anon_versioning=yes ;;
9295 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9298 *\ 2.11.*) ;; # other 2.11 versions
9299 *) supports_anon_versioning=yes ;;
9302 # See if GNU ld supports shared libraries.
9305 # On AIX/PPC, the GNU linker is very broken
9306 if test "$host_cpu" != ia64; then
9310 *** Warning: the GNU linker, at least up to release 2.19, is reported
9311 *** to be unable to reliably create shared libraries on AIX.
9312 *** Therefore, libtool is disabling shared libraries support. If you
9313 *** really care for shared libraries, you may want to install binutils
9314 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9315 *** You will then need to restart the configuration process.
9324 # see comment about AmigaOS4 .so support
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds=''
9329 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)'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338 allow_undefined_flag=unsupported
9339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340 # support --undefined. This deserves some investigation. FIXME
9341 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349 # as there is no search path for DLLs.
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 export_dynamic_flag_spec='${wl}--export-all-symbols'
9352 allow_undefined_flag=unsupported
9353 always_export_symbols=no
9354 enable_shared_with_static_runtimes=yes
9355 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'
9356 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360 # If the export-symbols file already is a .def file (1st line
9361 # is EXPORTS), use it as is; otherwise, prepend...
9362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9363 cp $export_symbols $output_objdir/$soname.def;
9365 echo EXPORTS > $output_objdir/$soname.def;
9366 cat $export_symbols >> $output_objdir/$soname.def;
9368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 link_all_deplibs=yes
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383 export_dynamic_flag_spec='${wl}-E'
9384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9385 # Instead, shared libraries are loaded at an image base (0x10000000 by
9386 # default) and relocated if they conflict, which is a slow very memory
9387 # consuming and fragmenting process. To avoid this, we pick a random,
9388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9391 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'
9394 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9396 if test "$host_os" = linux-dietlibc; then
9397 case $cc_basename in
9398 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9402 && test "$tmp_diet" = no
9404 tmp_addflag=' $pic_flag'
9405 tmp_sharedflag='-shared'
9406 case $cc_basename,$host_cpu in
9407 pgcc*) # Portland Group C compiler
9408 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'
9409 tmp_addflag=' $pic_flag'
9411 pgf77* | pgf90* | pgf95* | pgfortran*)
9412 # Portland Group f77 and f90 compilers
9413 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'
9414 tmp_addflag=' $pic_flag -Mnomain' ;;
9415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9416 tmp_addflag=' -i_dynamic' ;;
9417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9418 tmp_addflag=' -i_dynamic -nofor_main' ;;
9419 ifc* | ifort*) # Intel Fortran compiler
9420 tmp_addflag=' -nofor_main' ;;
9421 lf95*) # Lahey Fortran 8.1
9422 whole_archive_flag_spec=
9423 tmp_sharedflag='--shared' ;;
9424 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425 tmp_sharedflag='-qmkshrobj'
9427 nvcc*) # Cuda Compiler Driver 2.2
9428 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'
9429 compiler_needs_object=yes
9432 case `$CC -V 2>&1 | sed 5q` in
9433 *Sun\ C*) # Sun C 5.9
9434 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'
9435 compiler_needs_object=yes
9436 tmp_sharedflag='-G' ;;
9437 *Sun\ F*) # Sun Fortran 8.3
9438 tmp_sharedflag='-G' ;;
9440 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9442 if test "x$supports_anon_versioning" = xyes; then
9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445 echo "local: *; };" >> $output_objdir/$libname.ver~
9446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9449 case $cc_basename in
9450 xlf* | bgf* | bgxlf* | mpixlf*)
9451 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9452 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9455 if test "x$supports_anon_versioning" = xyes; then
9456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458 echo "local: *; };" >> $output_objdir/$libname.ver~
9459 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems. Therefore, libtool
9485 *** is disabling shared libraries support. We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer. Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9491 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500 case `$LD -v 2>&1` in
9501 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems. Therefore, libtool
9507 *** is disabling shared libraries support. We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9515 # For security reasons, it is highly recommended that you always
9516 # use absolute paths for naming shared libraries, and exclude the
9517 # DT_RUNPATH tag from executables and libraries. But doing so
9518 # requires that you compile everything twice, which is a pain.
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_shlibpath_var=no
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 if test "$ld_shlibs" = no; then
9549 hardcode_libdir_flag_spec=
9550 export_dynamic_flag_spec=
9551 whole_archive_flag_spec=
9554 # PORTME fill in a description of your system's linker (not GNU ld)
9557 allow_undefined_flag=unsupported
9558 always_export_symbols=yes
9559 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'
9560 # Note: this linker hardcodes the directories in LIBPATH if there
9561 # are no directories specified by -L.
9562 hardcode_minus_L=yes
9563 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564 # Neither direct hardcoding nor static linking is supported with a
9566 hardcode_direct=unsupported
9571 if test "$host_cpu" = ia64; then
9572 # On IA64, the linker does run time linking by default, so we don't
9573 # have to do anything special.
9574 aix_use_runtimelinking=no
9575 exp_sym_flag='-Bexport'
9578 # If we're using GNU nm, then we don't want the "-C" option.
9579 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580 # Also, AIX nm treats weak defined symbols like other global
9581 # defined symbols, whereas GNU nm marks them as "W".
9582 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9583 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9585 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9587 aix_use_runtimelinking=no
9589 # Test if we are trying to use run time linking or normal
9590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9591 # need to do runtime linking.
9592 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9593 for ld_flag in $LDFLAGS; do
9594 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9595 aix_use_runtimelinking=yes
9602 exp_sym_flag='-bexport'
9603 no_entry_flag='-bnoentry'
9606 # When large executables or shared objects are built, AIX ld can
9607 # have problems creating the table of contents. If linking a library
9608 # or program results in "error TOC overflow" add -mminimal-toc to
9609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9614 hardcode_direct_absolute=yes
9615 hardcode_libdir_separator=':'
9616 link_all_deplibs=yes
9617 file_list_spec='${wl}-f,'
9619 if test "$GCC" = yes; then
9620 case $host_os in aix4.[012]|aix4.[012].*)
9621 # We only want to do this on AIX 4.2 and lower, the check
9622 # below for broken collect2 doesn't work under 4.3+
9623 collect2name=`${CC} -print-prog-name=collect2`
9624 if test -f "$collect2name" &&
9625 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9627 # We have reworked collect2
9630 # We have old collect2
9631 hardcode_direct=unsupported
9632 # It fails to find uninstalled libraries when the uninstalled
9633 # path is not listed in the libpath. Setting hardcode_minus_L
9634 # to unsupported forces relinking
9635 hardcode_minus_L=yes
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_libdir_separator=
9641 shared_flag='-shared'
9642 if test "$aix_use_runtimelinking" = yes; then
9643 shared_flag="$shared_flag "'${wl}-G'
9647 if test "$host_cpu" = ia64; then
9648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9649 # chokes on -Wl,-G. The following line is correct:
9652 if test "$aix_use_runtimelinking" = yes; then
9653 shared_flag='${wl}-G'
9655 shared_flag='${wl}-bM:SRE'
9660 export_dynamic_flag_spec='${wl}-bexpall'
9661 # It seems that -bexpall does not export symbols beginning with
9662 # underscore (_), so it is better to generate a list of symbols to export.
9663 always_export_symbols=yes
9664 if test "$aix_use_runtimelinking" = yes; then
9665 # Warning - without using the other runtime loading flags (-brtl),
9666 # -berok will link without error, but may produce a broken library.
9667 allow_undefined_flag='-berok'
9668 # Determine the default libpath from the value encoded in an
9670 if test "${lt_cv_aix_libpath+set}" = set; then
9671 aix_libpath=$lt_cv_aix_libpath
9673 if ${lt_cv_aix_libpath_+:} false; then :
9674 $as_echo_n "(cached) " >&6
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9687 if ac_fn_c_try_link "$LINENO"; then :
9689 lt_aix_libpath_sed='
9690 /Import File Strings/,/^$/ {
9692 s/^0 *\([^ ]*\) *$/\1/
9696 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 # Check for a 64-bit object if we didn't find anything.
9698 if test -z "$lt_cv_aix_libpath_"; then
9699 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 if test -z "$lt_cv_aix_libpath_"; then
9705 lt_cv_aix_libpath_="/usr/lib:/lib"
9710 aix_libpath=$lt_cv_aix_libpath_
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9716 if test "$host_cpu" = ia64; then
9717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718 allow_undefined_flag="-z nodefs"
9719 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"
9721 # Determine the default libpath from the value encoded in an
9723 if test "${lt_cv_aix_libpath+set}" = set; then
9724 aix_libpath=$lt_cv_aix_libpath
9726 if ${lt_cv_aix_libpath_+:} false; then :
9727 $as_echo_n "(cached) " >&6
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9740 if ac_fn_c_try_link "$LINENO"; then :
9742 lt_aix_libpath_sed='
9743 /Import File Strings/,/^$/ {
9745 s/^0 *\([^ ]*\) *$/\1/
9749 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750 # Check for a 64-bit object if we didn't find anything.
9751 if test -z "$lt_cv_aix_libpath_"; then
9752 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$lt_cv_aix_libpath_"; then
9758 lt_cv_aix_libpath_="/usr/lib:/lib"
9763 aix_libpath=$lt_cv_aix_libpath_
9766 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9767 # Warning - without using the other run time loading flags,
9768 # -berok will link without error, but may produce a broken library.
9769 no_undefined_flag=' ${wl}-bernotok'
9770 allow_undefined_flag=' ${wl}-berok'
9771 if test "$with_gnu_ld" = yes; then
9772 # We only use this code for GNU lds that support --whole-archive.
9773 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9775 # Exported symbols can be pulled into shared objects from archives
9776 whole_archive_flag_spec='$convenience'
9778 archive_cmds_need_lc=yes
9779 # This is similar to how AIX traditionally builds its shared libraries.
9780 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9801 export_dynamic_flag_spec=-rdynamic
9804 cygwin* | mingw* | pw32* | cegcc*)
9805 # When not using gcc, we currently assume that we are using
9806 # Microsoft Visual C++.
9807 # hardcode_libdir_flag_spec is actually meaningless, as there is
9808 # no search path for DLLs.
9809 case $cc_basename in
9812 hardcode_libdir_flag_spec=' '
9813 allow_undefined_flag=unsupported
9814 always_export_symbols=yes
9816 # Tell ltmain to make .lib files, not .a files.
9818 # Tell ltmain to make .dll files, not .so files.
9820 # FIXME: Setting linknames here is a bad hack.
9821 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9822 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9825 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9827 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9829 # The linker will not automatically build a static lib if we build a DLL.
9830 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9831 enable_shared_with_static_runtimes=yes
9832 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9835 old_postinstall_cmds='chmod 644 $oldlib'
9836 postlink_cmds='lt_outputfile="@OUTPUT@"~
9837 lt_tool_outputfile="@TOOL_OUTPUT@"~
9838 case $lt_outputfile in
9841 lt_outputfile="$lt_outputfile.exe"
9842 lt_tool_outputfile="$lt_tool_outputfile.exe"
9845 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9846 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9847 $RM "$lt_outputfile.manifest";
9851 # Assume MSVC wrapper
9852 hardcode_libdir_flag_spec=' '
9853 allow_undefined_flag=unsupported
9854 # Tell ltmain to make .lib files, not .a files.
9856 # Tell ltmain to make .dll files, not .so files.
9858 # FIXME: Setting linknames here is a bad hack.
9859 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9860 # The linker will automatically build a .lib file if we build a DLL.
9861 old_archive_from_new_cmds='true'
9862 # FIXME: Should let the user specify the lib program.
9863 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9864 enable_shared_with_static_runtimes=yes
9869 darwin* | rhapsody*)
9872 archive_cmds_need_lc=no
9874 hardcode_automatic=yes
9875 hardcode_shlibpath_var=unsupported
9876 if test "$lt_cv_ld_force_load" = "yes"; then
9877 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\"`'
9880 whole_archive_flag_spec=''
9882 link_all_deplibs=yes
9883 allow_undefined_flag="$_lt_dar_allow_undefined"
9884 case $cc_basename in
9885 ifort*) _lt_dar_can_shared=yes ;;
9886 *) _lt_dar_can_shared=$GCC ;;
9888 if test "$_lt_dar_can_shared" = "yes"; then
9889 output_verbose_link_cmd=func_echo_all
9890 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9891 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9892 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}"
9893 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}"
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_shlibpath_var=no
9907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9908 # support. Future versions do this automatically, but an explicit c++rt0.o
9909 # does not break anything, and helps significantly (at the cost of a little
9912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9913 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_minus_L=yes
9923 hardcode_shlibpath_var=no
9926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9927 freebsd* | dragonfly*)
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_shlibpath_var=no
9935 if test "$GCC" = yes; then
9936 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9938 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941 hardcode_libdir_separator=:
9944 # hardcode_minus_L: Not really in the search PATH,
9945 # but as the default location of the library.
9946 hardcode_minus_L=yes
9947 export_dynamic_flag_spec='${wl}-E'
9951 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9952 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9956 if test "$with_gnu_ld" = no; then
9957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958 hardcode_libdir_separator=:
9960 hardcode_direct_absolute=yes
9961 export_dynamic_flag_spec='${wl}-E'
9962 # hardcode_minus_L: Not really in the search PATH,
9963 # but as the default location of the library.
9964 hardcode_minus_L=yes
9969 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9972 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9991 # Older versions of the 11.00 compiler do not understand -b yet
9992 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9994 $as_echo_n "checking if $CC understands -b... " >&6; }
9995 if ${lt_cv_prog_compiler__b+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 lt_cv_prog_compiler__b=no
9999 save_LDFLAGS="$LDFLAGS"
10000 LDFLAGS="$LDFLAGS -b"
10001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003 # The linker can only warn and ignore the option if not recognized
10004 # So say no if there are warnings
10005 if test -s conftest.err; then
10006 # Append any errors to the config.log.
10007 cat conftest.err 1>&5
10008 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010 if diff conftest.exp conftest.er2 >/dev/null; then
10011 lt_cv_prog_compiler__b=yes
10014 lt_cv_prog_compiler__b=yes
10018 LDFLAGS="$save_LDFLAGS"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10024 if test x"$lt_cv_prog_compiler__b" = xyes; then
10025 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10033 if test "$with_gnu_ld" = no; then
10034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035 hardcode_libdir_separator=:
10040 hardcode_shlibpath_var=no
10043 hardcode_direct=yes
10044 hardcode_direct_absolute=yes
10045 export_dynamic_flag_spec='${wl}-E'
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10055 irix5* | irix6* | nonstopux*)
10056 if test "$GCC" = yes; then
10057 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'
10058 # Try to use the -exported_symbol ld option, if it does not
10059 # work, assume that -exports_file does not work either and
10060 # implicitly export all symbols.
10061 # This should be the same for all languages, so no per-tag cache variable.
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10064 if ${lt_cv_irix_exported_symbol+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 save_LDFLAGS="$LDFLAGS"
10068 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 int foo (void) { return 0; }
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 lt_cv_irix_exported_symbol=yes
10076 lt_cv_irix_exported_symbol=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LDFLAGS="$save_LDFLAGS"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10084 if test "$lt_cv_irix_exported_symbol" = yes; then
10085 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'
10088 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'
10089 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'
10091 archive_cmds_need_lc='no'
10092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093 hardcode_libdir_separator=:
10095 link_all_deplibs=yes
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10102 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10104 hardcode_libdir_flag_spec='-R$libdir'
10105 hardcode_direct=yes
10106 hardcode_shlibpath_var=no
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes
10112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator=:
10114 hardcode_shlibpath_var=no
10121 if test -f /usr/libexec/ld.so; then
10122 hardcode_direct=yes
10123 hardcode_shlibpath_var=no
10124 hardcode_direct_absolute=yes
10125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10128 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10129 export_dynamic_flag_spec='${wl}-E'
10132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec='-R$libdir'
10137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148 hardcode_libdir_flag_spec='-L$libdir'
10149 hardcode_minus_L=yes
10150 allow_undefined_flag=unsupported
10151 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10152 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10156 if test "$GCC" = yes; then
10157 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10158 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'
10160 allow_undefined_flag=' -expect_unresolved \*'
10161 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'
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165 hardcode_libdir_separator=:
10168 osf4* | osf5*) # as osf3* with the addition of -msym flag
10169 if test "$GCC" = yes; then
10170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171 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'
10172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10174 allow_undefined_flag=' -expect_unresolved \*'
10175 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'
10176 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~
10177 $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'
10179 # Both c and cxx compiler support -rpath directly
10180 hardcode_libdir_flag_spec='-rpath $libdir'
10182 archive_cmds_need_lc='no'
10183 hardcode_libdir_separator=:
10187 no_undefined_flag=' -z defs'
10188 if test "$GCC" = yes; then
10190 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10192 $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'
10194 case `$CC -V 2>&1` in
10197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10203 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_shlibpath_var=no
10212 solaris2.[0-5] | solaris2.[0-5].*) ;;
10214 # The compiler driver will combine and reorder linker options,
10215 # but understands `-z linker_flag'. GCC discards it without `$wl',
10216 # but is careful enough not to reorder.
10217 # Supported since Solaris 2.6 (maybe 2.5.1?)
10218 if test "$GCC" = yes; then
10219 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10221 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10225 link_all_deplibs=yes
10229 if test "x$host_vendor" = xsequent; then
10230 # Use $CC to link under sequent, because it throws in some extra .o
10231 # files that make .init and .fini sections work.
10232 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_libdir_flag_spec='-L$libdir'
10237 hardcode_direct=yes
10238 hardcode_minus_L=yes
10239 hardcode_shlibpath_var=no
10243 case $host_vendor in
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_direct=yes # is this really true???
10249 ## LD is ld it makes a PLAMLIB
10250 ## CC just makes a GrossModule.
10251 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10252 reload_cmds='$CC -r -o $output$reload_objs'
10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10260 runpath_var='LD_RUN_PATH'
10261 hardcode_shlibpath_var=no
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_shlibpath_var=no
10267 export_dynamic_flag_spec='-Bexport'
10271 if test -d /usr/nec; then
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_shlibpath_var=no
10274 runpath_var=LD_RUN_PATH
10275 hardcode_runpath_var=yes
10280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10281 no_undefined_flag='${wl}-z,text'
10282 archive_cmds_need_lc=no
10283 hardcode_shlibpath_var=no
10284 runpath_var='LD_RUN_PATH'
10286 if test "$GCC" = yes; then
10287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 sysv5* | sco3.2v5* | sco5v6*)
10296 # Note: We can NOT use -z defs as we might desire, because we do not
10297 # link with -lc, and that would cause any symbols used from libc to
10298 # always be unresolved, which means just about no library would
10299 # ever link correctly. If we're not using GNU ld we use -z text
10300 # though, which does catch some bad symbols but isn't as heavy-handed
10302 no_undefined_flag='${wl}-z,text'
10303 allow_undefined_flag='${wl}-z,nodefs'
10304 archive_cmds_need_lc=no
10305 hardcode_shlibpath_var=no
10306 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10307 hardcode_libdir_separator=':'
10308 link_all_deplibs=yes
10309 export_dynamic_flag_spec='${wl}-Bexport'
10310 runpath_var='LD_RUN_PATH'
10312 if test "$GCC" = yes; then
10313 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323 hardcode_libdir_flag_spec='-L$libdir'
10324 hardcode_shlibpath_var=no
10332 if test x$host_vendor = xsni; then
10334 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335 export_dynamic_flag_spec='${wl}-Blargedynsym'
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10342 $as_echo "$ld_shlibs" >&6; }
10343 test "$ld_shlibs" = no && can_build_shared=no
10345 with_gnu_ld=$with_gnu_ld
10362 # Do we need to explicitly link libc?
10364 case "x$archive_cmds_need_lc" in
10366 # Assume -lc should be added
10367 archive_cmds_need_lc=yes
10369 if test "$enable_shared" = yes && test "$GCC" = yes; then
10370 case $archive_cmds in
10372 # FIXME: we may have to deal with multi-command sequences.
10375 # Test whether the compiler implicitly links with -lc since on some
10376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10377 # to ld, don't add -lc before -lgcc.
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10380 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10381 $as_echo_n "(cached) " >&6
10384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10387 (eval $ac_compile) 2>&5
10389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390 test $ac_status = 0; } 2>conftest.err; then
10393 libobjs=conftest.$ac_objext
10395 wl=$lt_prog_compiler_wl
10396 pic_flag=$lt_prog_compiler_pic
10402 lt_save_allow_undefined_flag=$allow_undefined_flag
10403 allow_undefined_flag=
10404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10405 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408 test $ac_status = 0; }
10410 lt_cv_archive_cmds_need_lc=no
10412 lt_cv_archive_cmds_need_lc=yes
10414 allow_undefined_flag=$lt_save_allow_undefined_flag
10416 cat conftest.err 1>&5
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10422 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10423 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10584 if test "$GCC" = yes; then
10586 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10587 *) lt_awk_arg="/^libraries:/" ;;
10590 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10591 *) lt_sed_strip_eq="s,=/,/,g" ;;
10593 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10594 case $lt_search_path_spec in
10596 # if the path contains ";" then we assume it to be the separator
10597 # otherwise default to the standard path separator (i.e. ":") - it is
10598 # assumed that no part of a normal pathname contains ";" but that should
10599 # okay in the real world where ";" in dirpaths is itself problematic.
10600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10603 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10606 # Ok, now we have the path, separated by spaces, we can step through it
10607 # and add multilib dir if necessary.
10608 lt_tmp_lt_search_path_spec=
10609 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10610 for lt_sys_path in $lt_search_path_spec; do
10611 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10612 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10614 test -d "$lt_sys_path" && \
10615 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10618 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10619 BEGIN {RS=" "; FS="/|\n";} {
10622 for (lt_i = NF; lt_i > 0; lt_i--) {
10623 if ($lt_i != "" && $lt_i != ".") {
10624 if ($lt_i == "..") {
10627 if (lt_count == 0) {
10628 lt_foo="/" $lt_i lt_foo;
10635 if (lt_foo != "") { lt_freq[lt_foo]++; }
10636 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10638 # AWK program above erroneously prepends '/' to C:/dos/paths
10641 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10642 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10644 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10648 library_names_spec=
10649 libname_spec='lib$name'
10653 postuninstall_cmds=
10657 shlibpath_overrides_runpath=unknown
10659 dynamic_linker="$host_os ld.so"
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10661 need_lib_prefix=unknown
10662 hardcode_into_libs=no
10664 # when you set need_version to no, make sure it does not cause -set_version
10665 # flags to be left without arguments
10666 need_version=unknown
10670 version_type=linux # correct to gnu/linux during the next big refactor
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10672 shlibpath_var=LIBPATH
10674 # AIX 3 has no versioning support, so we append a major version to the name.
10675 soname_spec='${libname}${release}${shared_ext}$major'
10679 version_type=linux # correct to gnu/linux during the next big refactor
10682 hardcode_into_libs=yes
10683 if test "$host_cpu" = ia64; then
10684 # AIX 5 supports IA64
10685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10688 # With GCC up to 2.95.x, collect2 would create an import file
10689 # for dependence libraries. The import file would start with
10690 # the line `#! .'. This would cause the generated library to
10691 # depend on `.', always an invalid library. This was fixed in
10692 # development snapshots of GCC prior to 3.0.
10694 aix4 | aix4.[01] | aix4.[01].*)
10695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10697 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10700 can_build_shared=no
10704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10705 # soname into executable. Probably we can add versioning support to
10706 # collect2, so additional links can be useful in future.
10707 if test "$aix_use_runtimelinking" = yes; then
10708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10709 # instead of lib<name>.a to let people know that these are not
10710 # typical AIX shared libraries.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 # We preserve .a as extension for shared libraries through AIX4.2
10714 # and later when we are not doing run time linking.
10715 library_names_spec='${libname}${release}.a $libname.a'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LIBPATH
10725 # Since July 2007 AmigaOS4 officially supports .so libraries.
10726 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 library_names_spec='$libname.ixlibrary $libname.a'
10731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10738 library_names_spec='${libname}${shared_ext}'
10739 dynamic_linker="$host_os ld.so"
10740 shlibpath_var=LIBRARY_PATH
10744 version_type=linux # correct to gnu/linux during the next big refactor
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10752 # the default ld.so.conf also contains /usr/contrib/lib and
10753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10754 # libtool to hard-code these into programs
10757 cygwin* | mingw* | pw32* | cegcc*)
10758 version_type=windows
10763 case $GCC,$cc_basename in
10766 library_names_spec='$libname.dll.a'
10767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768 postinstall_cmds='base_file=`basename \${file}`~
10769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770 dldir=$destdir/`dirname \$dlpath`~
10771 test -d \$dldir || mkdir -p \$dldir~
10772 $install_prog $dir/$dlname \$dldir/$dlname~
10773 chmod a+x \$dldir/$dlname~
10774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778 dlpath=$dir/\$dldll~
10780 shlibpath_overrides_runpath=yes
10784 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10787 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10790 # MinGW DLLs use traditional 'lib' prefix
10791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794 # pw32 DLLs use 'pw' prefix rather than 'lib'
10795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10798 dynamic_linker='Win32 ld.exe'
10803 libname_spec='$name'
10804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805 library_names_spec='${libname}.dll.lib'
10809 sys_lib_search_path_spec=
10812 for lt_path in $LIB
10815 # Let DOS variable expansion print the short 8.3 style file name.
10816 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10817 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10820 # Convert to MSYS style.
10821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10824 # Convert to unix form, then to dos form, then back to unix form
10825 # but this time dos style (no spaces!) so that the unix form looks
10826 # like /cygdrive/c/PROGRA~1:/cygdr...
10827 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10828 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10829 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10832 sys_lib_search_path_spec="$LIB"
10833 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10834 # It is most probably a Windows format PATH.
10835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10839 # FIXME: find the short name or the path components, as spaces are
10840 # common. (e.g. "Program Files" -> "PROGRA~1")
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname'
10850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10851 dlpath=$dir/\$dldll~
10853 shlibpath_overrides_runpath=yes
10854 dynamic_linker='Win32 link.exe'
10858 # Assume MSVC wrapper
10859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860 dynamic_linker='Win32 ld.exe'
10863 # FIXME: first we should search . and the directory the executable is in
10867 darwin* | rhapsody*)
10868 dynamic_linker="$host_os dyld"
10869 version_type=darwin
10872 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10873 soname_spec='${libname}${release}${major}$shared_ext'
10874 shlibpath_overrides_runpath=yes
10875 shlibpath_var=DYLD_LIBRARY_PATH
10876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10883 version_type=linux # correct to gnu/linux during the next big refactor
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10891 freebsd* | dragonfly*)
10892 # DragonFly does not have aout. When/if they implement a new
10893 # versioning mechanism, adjust this.
10894 if test -x /usr/bin/objformat; then
10895 objformat=`/usr/bin/objformat`
10898 freebsd[23].*) objformat=aout ;;
10899 *) objformat=elf ;;
10902 version_type=freebsd-$objformat
10903 case $version_type in
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10914 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10919 freebsd3.[01]* | freebsdelf3.[01]*)
10920 shlibpath_overrides_runpath=yes
10921 hardcode_into_libs=yes
10923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10928 *) # from 4.6 on, and DragonFly
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10936 version_type=linux # correct to gnu/linux during the next big refactor
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
10943 hardcode_into_libs=yes
10947 version_type=linux # correct to gnu/linux during the next big refactor
10950 dynamic_linker="$host_os runtime_loader"
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10955 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10956 hardcode_into_libs=yes
10959 hpux9* | hpux10* | hpux11*)
10960 # Give a soname corresponding to the major version so that dld.sl refuses to
10961 # link against other versions.
10968 hardcode_into_libs=yes
10969 dynamic_linker="$host_os dld.so"
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 if test "X$HPUX_IA64_MODE" = X32; then
10975 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983 hardcode_into_libs=yes
10984 dynamic_linker="$host_os dld.sl"
10985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994 dynamic_linker="$host_os dld.sl"
10995 shlibpath_var=SHLIB_PATH
10996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
11001 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11002 postinstall_cmds='chmod 555 $lib'
11003 # or fails outright, so override atomically:
11004 install_override_mode=555
11008 version_type=linux # correct to gnu/linux during the next big refactor
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=no
11016 hardcode_into_libs=yes
11019 irix5* | irix6* | nonstopux*)
11021 nonstopux*) version_type=nonstopux ;;
11023 if test "$lt_cv_prog_gnu_ld" = yes; then
11024 version_type=linux # correct to gnu/linux during the next big refactor
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11034 irix5* | nonstopux*)
11035 libsuff= shlibsuff=
11038 case $LD in # libtool.m4 will add one of these switches to LD
11039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11040 libsuff= shlibsuff= libmagic=32-bit;;
11041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11042 libsuff=32 shlibsuff=N32 libmagic=N32;;
11043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11045 *) libsuff= shlibsuff= libmagic=never-match;;
11049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11050 shlibpath_overrides_runpath=no
11051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11053 hardcode_into_libs=yes
11056 # No shared lib support for Linux oldld, aout, or coff.
11057 linux*oldld* | linux*aout* | linux*coff*)
11061 # This must be glibc/ELF.
11062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11072 # Some binutils ld are patched to set DT_RUNPATH
11073 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 lt_cv_shlibpath_overrides_runpath=no
11077 save_LDFLAGS=$LDFLAGS
11078 save_libdir=$libdir
11079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11092 if ac_fn_c_try_link "$LINENO"; then :
11093 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094 lt_cv_shlibpath_overrides_runpath=yes
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS=$save_LDFLAGS
11100 libdir=$save_libdir
11104 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11106 # This implies no fast_install, which is unacceptable.
11107 # Some rework will be needed to allow for fast_install
11108 # before this can be enabled.
11109 hardcode_into_libs=yes
11111 # Add ABI-specific directories to the system library path.
11112 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11114 # Append ld.so.conf contents to the search path
11115 if test -f /etc/ld.so.conf; then
11116 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' ' '`
11117 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11121 # We used to test for /lib/ld.so.1 and disable shared libraries on
11122 # powerpc, because MkLinux only supported shared libraries with the
11123 # GNU dynamic linker. Since this was broken with cross compilers,
11124 # most powerpc-linux boxes support dynamic linking these days and
11125 # people can always --disable-shared, the test was removed, and we
11126 # assume the GNU/Linux dynamic linker is in use.
11127 dynamic_linker='GNU/Linux ld.so'
11134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11137 dynamic_linker='NetBSD (a.out) ld.so'
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 dynamic_linker='NetBSD ld.elf_so'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=no
11163 hardcode_into_libs=yes
11164 dynamic_linker='ldqnx.so'
11169 sys_lib_dlsearch_path_spec="/usr/lib"
11171 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11173 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11174 *) need_version=no ;;
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11181 openbsd2.[89] | openbsd2.[89].*)
11182 shlibpath_overrides_runpath=no
11185 shlibpath_overrides_runpath=yes
11189 shlibpath_overrides_runpath=yes
11194 libname_spec='$name'
11197 library_names_spec='$libname${shared_ext} $libname.a'
11198 dynamic_linker='OS/2 ld.exe'
11199 shlibpath_var=LIBPATH
11202 osf3* | osf4* | osf5*)
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11210 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11218 version_type=linux # correct to gnu/linux during the next big refactor
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 # ldd complains unless libraries are executable
11227 postinstall_cmds='chmod +x $lib'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11236 if test "$with_gnu_ld" = yes; then
11243 version_type=linux # correct to gnu/linux during the next big refactor
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 case $host_vendor in
11249 shlibpath_overrides_runpath=no
11251 runpath_var=LD_RUN_PATH
11259 shlibpath_overrides_runpath=no
11260 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11266 if test -d /usr/nec ;then
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11269 soname_spec='$libname${shared_ext}.$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11275 version_type=freebsd-elf
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=yes
11282 hardcode_into_libs=yes
11283 if test "$with_gnu_ld" = yes; then
11284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11286 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11289 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11293 sys_lib_dlsearch_path_spec='/usr/lib'
11297 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11298 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=no
11304 hardcode_into_libs=yes
11308 version_type=linux # correct to gnu/linux during the next big refactor
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 shlibpath_var=LD_LIBRARY_PATH
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11319 $as_echo "$dynamic_linker" >&6; }
11320 test "$dynamic_linker" = no && can_build_shared=no
11322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11323 if test "$GCC" = yes; then
11324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11327 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11328 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11330 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11331 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11428 if test -n "$hardcode_libdir_flag_spec" ||
11429 test -n "$runpath_var" ||
11430 test "X$hardcode_automatic" = "Xyes" ; then
11432 # We can hardcode non-existent directories.
11433 if test "$hardcode_direct" != no &&
11434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11435 # have to relink, otherwise we might link with an installed library
11436 # when we should be linking with a yet-to-be-installed one
11437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11438 test "$hardcode_minus_L" != no; then
11439 # Linking always hardcodes the temporary library directory.
11440 hardcode_action=relink
11442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11443 hardcode_action=immediate
11446 # We cannot hardcode anything, or else we can only hardcode existing
11448 hardcode_action=unsupported
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11451 $as_echo "$hardcode_action" >&6; }
11453 if test "$hardcode_action" = relink ||
11454 test "$inherit_rpath" = yes; then
11455 # Fast installation is not supported
11456 enable_fast_install=no
11457 elif test "$shlibpath_overrides_runpath" = yes ||
11458 test "$enable_shared" = no; then
11459 # Fast installation is not necessary
11460 enable_fast_install=needless
11468 if test "x$enable_dlopen" != xyes; then
11469 enable_dlopen=unknown
11470 enable_dlopen_self=unknown
11471 enable_dlopen_self_static=unknown
11478 lt_cv_dlopen="load_add_on"
11480 lt_cv_dlopen_self=yes
11483 mingw* | pw32* | cegcc*)
11484 lt_cv_dlopen="LoadLibrary"
11489 lt_cv_dlopen="dlopen"
11494 # if libdl is installed we need to link against it
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11496 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11497 if ${ac_cv_lib_dl_dlopen+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_dl_dlopen=yes
11523 ac_cv_lib_dl_dlopen=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11530 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11531 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11535 lt_cv_dlopen="dyld"
11537 lt_cv_dlopen_self=yes
11544 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11545 if test "x$ac_cv_func_shl_load" = xyes; then :
11546 lt_cv_dlopen="shl_load"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11549 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11550 if ${ac_cv_lib_dld_shl_load+:} false; then :
11551 $as_echo_n "(cached) " >&6
11553 ac_check_lib_save_LIBS=$LIBS
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11568 return shl_load ();
11573 if ac_fn_c_try_link "$LINENO"; then :
11574 ac_cv_lib_dld_shl_load=yes
11576 ac_cv_lib_dld_shl_load=no
11578 rm -f core conftest.err conftest.$ac_objext \
11579 conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11583 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11584 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11585 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11587 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11588 if test "x$ac_cv_func_dlopen" = xyes; then :
11589 lt_cv_dlopen="dlopen"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11593 if ${ac_cv_lib_dl_dlopen+:} false; then :
11594 $as_echo_n "(cached) " >&6
11596 ac_check_lib_save_LIBS=$LIBS
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11616 if ac_fn_c_try_link "$LINENO"; then :
11617 ac_cv_lib_dl_dlopen=yes
11619 ac_cv_lib_dl_dlopen=no
11621 rm -f core conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11627 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11631 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11632 if ${ac_cv_lib_svld_dlopen+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lsvld $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_svld_dlopen=yes
11658 ac_cv_lib_svld_dlopen=no
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11665 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11666 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11670 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11671 if ${ac_cv_lib_dld_dld_link+:} false; then :
11672 $as_echo_n "(cached) " >&6
11674 ac_check_lib_save_LIBS=$LIBS
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11679 /* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11689 return dld_link ();
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 ac_cv_lib_dld_dld_link=yes
11697 ac_cv_lib_dld_dld_link=no
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11704 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11705 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11706 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11727 if test "x$lt_cv_dlopen" != xno; then
11733 case $lt_cv_dlopen in
11735 save_CPPFLAGS="$CPPFLAGS"
11736 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11738 save_LDFLAGS="$LDFLAGS"
11739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11742 LIBS="$lt_cv_dlopen_libs $LIBS"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11745 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11746 if ${lt_cv_dlopen_self+:} false; then :
11747 $as_echo_n "(cached) " >&6
11749 if test "$cross_compiling" = yes; then :
11750 lt_cv_dlopen_self=cross
11752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11753 lt_status=$lt_dlunknown
11754 cat > conftest.$ac_ext <<_LT_EOF
11755 #line $LINENO "configure"
11756 #include "confdefs.h"
11765 # define LT_DLGLOBAL RTLD_GLOBAL
11768 # define LT_DLGLOBAL DL_GLOBAL
11770 # define LT_DLGLOBAL 0
11774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11775 find out it does not work in some platform. */
11776 #ifndef LT_DLLAZY_OR_NOW
11778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11781 # define LT_DLLAZY_OR_NOW DL_LAZY
11784 # define LT_DLLAZY_OR_NOW RTLD_NOW
11787 # define LT_DLLAZY_OR_NOW DL_NOW
11789 # define LT_DLLAZY_OR_NOW 0
11796 /* When -fvisbility=hidden is used, assume the code has been annotated
11797 correspondingly for the symbols needed. */
11798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11799 int fnord () __attribute__((visibility("default")));
11802 int fnord () { return 42; }
11805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11806 int status = $lt_dlunknown;
11810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11814 else puts (dlerror ());
11816 /* dlclose (self); */
11824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11825 (eval $ac_link) 2>&5
11827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11829 (./conftest; exit; ) >&5 2>/dev/null
11831 case x$lt_status in
11832 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11833 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11834 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11837 # compilation failed
11838 lt_cv_dlopen_self=no
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11846 $as_echo "$lt_cv_dlopen_self" >&6; }
11848 if test "x$lt_cv_dlopen_self" = xyes; then
11849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11851 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11852 if ${lt_cv_dlopen_self_static+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 if test "$cross_compiling" = yes; then :
11856 lt_cv_dlopen_self_static=cross
11858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11859 lt_status=$lt_dlunknown
11860 cat > conftest.$ac_ext <<_LT_EOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11871 # define LT_DLGLOBAL RTLD_GLOBAL
11874 # define LT_DLGLOBAL DL_GLOBAL
11876 # define LT_DLGLOBAL 0
11880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11881 find out it does not work in some platform. */
11882 #ifndef LT_DLLAZY_OR_NOW
11884 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11887 # define LT_DLLAZY_OR_NOW DL_LAZY
11890 # define LT_DLLAZY_OR_NOW RTLD_NOW
11893 # define LT_DLLAZY_OR_NOW DL_NOW
11895 # define LT_DLLAZY_OR_NOW 0
11902 /* When -fvisbility=hidden is used, assume the code has been annotated
11903 correspondingly for the symbols needed. */
11904 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11905 int fnord () __attribute__((visibility("default")));
11908 int fnord () { return 42; }
11911 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11912 int status = $lt_dlunknown;
11916 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11919 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11920 else puts (dlerror ());
11922 /* dlclose (self); */
11930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11931 (eval $ac_link) 2>&5
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11935 (./conftest; exit; ) >&5 2>/dev/null
11937 case x$lt_status in
11938 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11939 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11940 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11943 # compilation failed
11944 lt_cv_dlopen_self_static=no
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11952 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11955 CPPFLAGS="$save_CPPFLAGS"
11956 LDFLAGS="$save_LDFLAGS"
11961 case $lt_cv_dlopen_self in
11962 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11963 *) enable_dlopen_self=unknown ;;
11966 case $lt_cv_dlopen_self_static in
11967 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11968 *) enable_dlopen_self_static=unknown ;;
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11991 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11992 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11994 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11996 $as_echo "yes" >&6; }
11998 # FIXME - insert some real tests, host_os isn't really good enough
12001 if test -n "$STRIP" ; then
12002 striplib="$STRIP -x"
12003 old_striplib="$STRIP -S"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005 $as_echo "yes" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12029 # Report which library types will actually be built
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12031 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12033 $as_echo "$can_build_shared" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12036 $as_echo_n "checking whether to build shared libraries... " >&6; }
12037 test "$can_build_shared" = "no" && enable_shared=no
12039 # On AIX, shared libraries and static libraries use the same namespace, and
12040 # are all built from PIC.
12043 test "$enable_shared" = yes && enable_static=no
12044 if test -n "$RANLIB"; then
12045 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12046 postinstall_cmds='$RANLIB $lib'
12051 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12052 test "$enable_shared" = yes && enable_static=no
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12057 $as_echo "$enable_shared" >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12060 $as_echo_n "checking whether to build static libraries... " >&6; }
12061 # Make sure either enable_shared or enable_static is yes.
12062 test "$enable_shared" = yes || enable_static=yes
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12064 $as_echo "$enable_static" >&6; }
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12080 (test "X$CXX" != "Xg++"))) ; then
12082 ac_cpp='$CXXCPP $CPPFLAGS'
12083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12088 if test -z "$CXXCPP"; then
12089 if ${ac_cv_prog_CXXCPP+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 # Double quotes because CXXCPP needs to be expanded
12093 for CXXCPP in "$CXX -E" "/lib/cpp"
12095 ac_preproc_ok=false
12096 for ac_cxx_preproc_warn_flag in '' yes
12098 # Use a header file that comes with gcc, so configuring glibc
12099 # with a fresh cross-compiler works.
12100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101 # <limits.h> exists even on freestanding compilers.
12102 # On the NeXT, cc -E runs the code through the compiler's parser,
12103 # not just through cpp. "Syntax error" is here to catch this case.
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12107 # include <limits.h>
12109 # include <assert.h>
12113 if ac_fn_cxx_try_cpp "$LINENO"; then :
12116 # Broken: fails on valid input.
12119 rm -f conftest.err conftest.i conftest.$ac_ext
12121 # OK, works on sane cases. Now check whether nonexistent headers
12122 # can be detected and how.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <ac_nonexistent.h>
12127 if ac_fn_cxx_try_cpp "$LINENO"; then :
12128 # Broken: success on invalid input.
12131 # Passes both tests.
12135 rm -f conftest.err conftest.i conftest.$ac_ext
12138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12139 rm -f conftest.i conftest.err conftest.$ac_ext
12140 if $ac_preproc_ok; then :
12145 ac_cv_prog_CXXCPP=$CXXCPP
12148 CXXCPP=$ac_cv_prog_CXXCPP
12150 ac_cv_prog_CXXCPP=$CXXCPP
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12153 $as_echo "$CXXCPP" >&6; }
12154 ac_preproc_ok=false
12155 for ac_cxx_preproc_warn_flag in '' yes
12157 # Use a header file that comes with gcc, so configuring glibc
12158 # with a fresh cross-compiler works.
12159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 # <limits.h> exists even on freestanding compilers.
12161 # On the NeXT, cc -E runs the code through the compiler's parser,
12162 # not just through cpp. "Syntax error" is here to catch this case.
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 # include <limits.h>
12168 # include <assert.h>
12172 if ac_fn_cxx_try_cpp "$LINENO"; then :
12175 # Broken: fails on valid input.
12178 rm -f conftest.err conftest.i conftest.$ac_ext
12180 # OK, works on sane cases. Now check whether nonexistent headers
12181 # can be detected and how.
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184 #include <ac_nonexistent.h>
12186 if ac_fn_cxx_try_cpp "$LINENO"; then :
12187 # Broken: success on invalid input.
12190 # Passes both tests.
12194 rm -f conftest.err conftest.i conftest.$ac_ext
12197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198 rm -f conftest.i conftest.err conftest.$ac_ext
12199 if $ac_preproc_ok; then :
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12204 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12205 See \`config.log' for more details" "$LINENO" 5; }
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215 _lt_caught_CXX_error=yes
12219 ac_cpp='$CXXCPP $CPPFLAGS'
12220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12224 archive_cmds_need_lc_CXX=no
12225 allow_undefined_flag_CXX=
12226 always_export_symbols_CXX=no
12227 archive_expsym_cmds_CXX=
12228 compiler_needs_object_CXX=no
12229 export_dynamic_flag_spec_CXX=
12230 hardcode_direct_CXX=no
12231 hardcode_direct_absolute_CXX=no
12232 hardcode_libdir_flag_spec_CXX=
12233 hardcode_libdir_separator_CXX=
12234 hardcode_minus_L_CXX=no
12235 hardcode_shlibpath_var_CXX=unsupported
12236 hardcode_automatic_CXX=no
12237 inherit_rpath_CXX=no
12239 module_expsym_cmds_CXX=
12240 link_all_deplibs_CXX=unknown
12241 old_archive_cmds_CXX=$old_archive_cmds
12242 reload_flag_CXX=$reload_flag
12243 reload_cmds_CXX=$reload_cmds
12244 no_undefined_flag_CXX=
12245 whole_archive_flag_spec_CXX=
12246 enable_shared_with_static_runtimes_CXX=no
12248 # Source file extension for C++ test sources.
12251 # Object file extension for compiled C++ test sources.
12255 # No sense in running all these tests if we already determined that
12256 # the CXX compiler isn't working. Some variables (like enable_shared)
12257 # are currently assumed to apply to all compilers on this platform,
12258 # and will be corrupted by setting them based on a non-working compiler.
12259 if test "$_lt_caught_CXX_error" != yes; then
12260 # Code to be used in simple compile tests
12261 lt_simple_compile_test_code="int some_variable = 0;"
12263 # Code to be used in simple link tests
12264 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12266 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12273 # If no C compiler was specified, use CC.
12276 # If no C compiler flags were specified, use CFLAGS.
12277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12279 # Allow CC to be a program name with arguments.
12283 # save warnings/boilerplate of simple test code
12284 ac_outfile=conftest.$ac_objext
12285 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12286 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12287 _lt_compiler_boilerplate=`cat conftest.err`
12290 ac_outfile=conftest.$ac_objext
12291 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12292 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12293 _lt_linker_boilerplate=`cat conftest.err`
12297 # Allow CC to be a program name with arguments.
12299 lt_save_CFLAGS=$CFLAGS
12303 lt_save_with_gnu_ld=$with_gnu_ld
12304 lt_save_path_LD=$lt_cv_path_LD
12305 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12306 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12308 $as_unset lt_cv_prog_gnu_ld
12310 if test -n "${lt_cv_path_LDCXX+set}"; then
12311 lt_cv_path_LD=$lt_cv_path_LDCXX
12313 $as_unset lt_cv_path_LD
12315 test -z "${LDCXX+set}" || LD=$LDCXX
12320 for cc_temp in $compiler""; do
12322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12328 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12331 if test -n "$compiler"; then
12332 # We don't want -fno-exception when compiling C++ code, so set the
12333 # no_builtin_flag separately
12334 if test "$GXX" = yes; then
12335 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12337 lt_prog_compiler_no_builtin_flag_CXX=
12340 if test "$GXX" = yes; then
12341 # Set up default GNU C++ configuration
12345 # Check whether --with-gnu-ld was given.
12346 if test "${with_gnu_ld+set}" = set; then :
12347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12353 if test "$GCC" = yes; then
12354 # Check if gcc -print-prog-name=ld gives a path.
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12356 $as_echo_n "checking for ld used by $CC... " >&6; }
12359 # gcc leaves a trailing carriage return which upsets mingw
12360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12365 # Accept absolute paths.
12367 re_direlt='/[^/][^/]*/\.\./'
12368 # Canonicalize the pathname of ld
12369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12373 test -z "$LD" && LD="$ac_prog"
12376 # If it fails, then pretend we aren't using GCC.
12380 # If it is relative, then search for the first ld in PATH.
12381 with_gnu_ld=unknown
12384 elif test "$with_gnu_ld" = yes; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12386 $as_echo_n "checking for GNU ld... " >&6; }
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12389 $as_echo_n "checking for non-GNU ld... " >&6; }
12391 if ${lt_cv_path_LD+:} false; then :
12392 $as_echo_n "(cached) " >&6
12394 if test -z "$LD"; then
12395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12396 for ac_dir in $PATH; do
12398 test -z "$ac_dir" && ac_dir=.
12399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12400 lt_cv_path_LD="$ac_dir/$ac_prog"
12401 # Check to see if the program is GNU ld. I'd rather use --version,
12402 # but apparently some variants of GNU ld only accept -v.
12403 # Break only if it was the GNU/non-GNU ld that we prefer.
12404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12405 *GNU* | *'with BFD'*)
12406 test "$with_gnu_ld" != no && break
12409 test "$with_gnu_ld" != yes && break
12416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12420 LD="$lt_cv_path_LD"
12421 if test -n "$LD"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12423 $as_echo "$LD" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12428 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12430 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12431 if ${lt_cv_prog_gnu_ld+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12435 case `$LD -v 2>&1 </dev/null` in
12436 *GNU* | *'with BFD'*)
12437 lt_cv_prog_gnu_ld=yes
12440 lt_cv_prog_gnu_ld=no
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12445 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12446 with_gnu_ld=$lt_cv_prog_gnu_ld
12454 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12455 # archiving commands below assume that GNU ld is being used.
12456 if test "$with_gnu_ld" = yes; then
12457 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12463 # If archive_cmds runs LD, not CC, wlarc should be empty
12464 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12465 # investigate it a little bit more. (MM)
12468 # ancient GNU ld didn't support --whole-archive et. al.
12469 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12470 $GREP 'no-whole-archive' > /dev/null; then
12471 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 whole_archive_flag_spec_CXX=
12479 # A generic and very simple default shared library creation
12480 # command for GNU C++ for the case where it uses the native
12481 # linker, instead of GNU ld. If possible, this setting should
12482 # overridden to take advantage of the native linker features on
12483 # the platform it is being used on.
12484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487 # Commands to make compiler produce verbose output that lists
12488 # what "hidden" libraries, object files and flags are used when
12489 # linking a shared library.
12490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12498 # PORTME: fill in a description of your system's C++ link characteristics
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12504 # FIXME: insert proper C++ library support
12508 if test "$host_cpu" = ia64; then
12509 # On IA64, the linker does run time linking by default, so we don't
12510 # have to do anything special.
12511 aix_use_runtimelinking=no
12512 exp_sym_flag='-Bexport'
12515 aix_use_runtimelinking=no
12517 # Test if we are trying to use run time linking or normal
12518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12519 # need to do runtime linking.
12520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12521 for ld_flag in $LDFLAGS; do
12524 aix_use_runtimelinking=yes
12532 exp_sym_flag='-bexport'
12533 no_entry_flag='-bnoentry'
12536 # When large executables or shared objects are built, AIX ld can
12537 # have problems creating the table of contents. If linking a library
12538 # or program results in "error TOC overflow" add -mminimal-toc to
12539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542 archive_cmds_CXX=''
12543 hardcode_direct_CXX=yes
12544 hardcode_direct_absolute_CXX=yes
12545 hardcode_libdir_separator_CXX=':'
12546 link_all_deplibs_CXX=yes
12547 file_list_spec_CXX='${wl}-f,'
12549 if test "$GXX" = yes; then
12550 case $host_os in aix4.[012]|aix4.[012].*)
12551 # We only want to do this on AIX 4.2 and lower, the check
12552 # below for broken collect2 doesn't work under 4.3+
12553 collect2name=`${CC} -print-prog-name=collect2`
12554 if test -f "$collect2name" &&
12555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12557 # We have reworked collect2
12560 # We have old collect2
12561 hardcode_direct_CXX=unsupported
12562 # It fails to find uninstalled libraries when the uninstalled
12563 # path is not listed in the libpath. Setting hardcode_minus_L
12564 # to unsupported forces relinking
12565 hardcode_minus_L_CXX=yes
12566 hardcode_libdir_flag_spec_CXX='-L$libdir'
12567 hardcode_libdir_separator_CXX=
12570 shared_flag='-shared'
12571 if test "$aix_use_runtimelinking" = yes; then
12572 shared_flag="$shared_flag "'${wl}-G'
12576 if test "$host_cpu" = ia64; then
12577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12578 # chokes on -Wl,-G. The following line is correct:
12581 if test "$aix_use_runtimelinking" = yes; then
12582 shared_flag='${wl}-G'
12584 shared_flag='${wl}-bM:SRE'
12589 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12590 # It seems that -bexpall does not export symbols beginning with
12591 # underscore (_), so it is better to generate a list of symbols to
12593 always_export_symbols_CXX=yes
12594 if test "$aix_use_runtimelinking" = yes; then
12595 # Warning - without using the other runtime loading flags (-brtl),
12596 # -berok will link without error, but may produce a broken library.
12597 allow_undefined_flag_CXX='-berok'
12598 # Determine the default libpath from the value encoded in an empty
12600 if test "${lt_cv_aix_libpath+set}" = set; then
12601 aix_libpath=$lt_cv_aix_libpath
12603 if ${lt_cv_aix_libpath__CXX+:} false; then :
12604 $as_echo_n "(cached) " >&6
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12617 if ac_fn_cxx_try_link "$LINENO"; then :
12619 lt_aix_libpath_sed='
12620 /Import File Strings/,/^$/ {
12622 s/^0 *\([^ ]*\) *$/\1/
12626 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627 # Check for a 64-bit object if we didn't find anything.
12628 if test -z "$lt_cv_aix_libpath__CXX"; then
12629 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 if test -z "$lt_cv_aix_libpath__CXX"; then
12635 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12640 aix_libpath=$lt_cv_aix_libpath__CXX
12643 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12645 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12647 if test "$host_cpu" = ia64; then
12648 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12649 allow_undefined_flag_CXX="-z nodefs"
12650 archive_expsym_cmds_CXX="\$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"
12652 # Determine the default libpath from the value encoded in an
12653 # empty executable.
12654 if test "${lt_cv_aix_libpath+set}" = set; then
12655 aix_libpath=$lt_cv_aix_libpath
12657 if ${lt_cv_aix_libpath__CXX+:} false; then :
12658 $as_echo_n "(cached) " >&6
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12671 if ac_fn_cxx_try_link "$LINENO"; then :
12673 lt_aix_libpath_sed='
12674 /Import File Strings/,/^$/ {
12676 s/^0 *\([^ ]*\) *$/\1/
12680 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12681 # Check for a 64-bit object if we didn't find anything.
12682 if test -z "$lt_cv_aix_libpath__CXX"; then
12683 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 if test -z "$lt_cv_aix_libpath__CXX"; then
12689 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12694 aix_libpath=$lt_cv_aix_libpath__CXX
12697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12698 # Warning - without using the other run time loading flags,
12699 # -berok will link without error, but may produce a broken library.
12700 no_undefined_flag_CXX=' ${wl}-bernotok'
12701 allow_undefined_flag_CXX=' ${wl}-berok'
12702 if test "$with_gnu_ld" = yes; then
12703 # We only use this code for GNU lds that support --whole-archive.
12704 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12706 # Exported symbols can be pulled into shared objects from archives
12707 whole_archive_flag_spec_CXX='$convenience'
12709 archive_cmds_need_lc_CXX=yes
12710 # This is similar to how AIX traditionally builds its shared
12712 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12719 allow_undefined_flag_CXX=unsupported
12720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12721 # support --undefined. This deserves some investigation. FIXME
12722 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729 case $cc_basename in
12731 # FIXME: insert proper C++ library support
12737 cygwin* | mingw* | pw32* | cegcc*)
12738 case $GXX,$cc_basename in
12741 # hardcode_libdir_flag_spec is actually meaningless, as there is
12742 # no search path for DLLs.
12743 hardcode_libdir_flag_spec_CXX=' '
12744 allow_undefined_flag_CXX=unsupported
12745 always_export_symbols_CXX=yes
12746 file_list_spec_CXX='@'
12747 # Tell ltmain to make .lib files, not .a files.
12749 # Tell ltmain to make .dll files, not .so files.
12751 # FIXME: Setting linknames here is a bad hack.
12752 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12753 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12754 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12756 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12758 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12760 # The linker will not automatically build a static lib if we build a DLL.
12761 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12762 enable_shared_with_static_runtimes_CXX=yes
12764 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12765 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12766 lt_tool_outputfile="@TOOL_OUTPUT@"~
12767 case $lt_outputfile in
12770 lt_outputfile="$lt_outputfile.exe"
12771 lt_tool_outputfile="$lt_tool_outputfile.exe"
12774 func_to_tool_file "$lt_outputfile"~
12775 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12776 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12777 $RM "$lt_outputfile.manifest";
12782 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12783 # as there is no search path for DLLs.
12784 hardcode_libdir_flag_spec_CXX='-L$libdir'
12785 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12786 allow_undefined_flag_CXX=unsupported
12787 always_export_symbols_CXX=no
12788 enable_shared_with_static_runtimes_CXX=yes
12790 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12792 # If the export-symbols file already is a .def file (1st line
12793 # is EXPORTS), use it as is; otherwise, prepend...
12794 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12795 cp $export_symbols $output_objdir/$soname.def;
12797 echo EXPORTS > $output_objdir/$soname.def;
12798 cat $export_symbols >> $output_objdir/$soname.def;
12800 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12807 darwin* | rhapsody*)
12810 archive_cmds_need_lc_CXX=no
12811 hardcode_direct_CXX=no
12812 hardcode_automatic_CXX=yes
12813 hardcode_shlibpath_var_CXX=unsupported
12814 if test "$lt_cv_ld_force_load" = "yes"; then
12815 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12818 whole_archive_flag_spec_CXX=''
12820 link_all_deplibs_CXX=yes
12821 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12822 case $cc_basename in
12823 ifort*) _lt_dar_can_shared=yes ;;
12824 *) _lt_dar_can_shared=$GCC ;;
12826 if test "$_lt_dar_can_shared" = "yes"; then
12827 output_verbose_link_cmd=func_echo_all
12828 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12829 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12830 archive_expsym_cmds_CXX="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}"
12831 module_expsym_cmds_CXX="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}"
12832 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12833 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12834 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12844 case $cc_basename in
12846 # FIXME: insert proper C++ library support
12850 # Green Hills C++ Compiler
12851 # FIXME: insert proper C++ library support
12855 # FIXME: insert proper C++ library support
12862 # C++ shared libraries reported to be fairly broken before
12868 archive_cmds_need_lc_CXX=no
12871 freebsd* | dragonfly*)
12872 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12881 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12882 link_all_deplibs_CXX=yes
12886 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12887 hardcode_libdir_separator_CXX=:
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 hardcode_direct_CXX=yes
12890 hardcode_minus_L_CXX=yes # Not in the search PATH,
12891 # but as the default
12892 # location of the library.
12894 case $cc_basename in
12896 # FIXME: insert proper C++ library support
12900 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12901 # Commands to make compiler produce verbose output that lists
12902 # what "hidden" libraries, object files and flags are used when
12903 # linking a shared library.
12905 # There doesn't appear to be a way to prevent this compiler from
12906 # explicitly linking system object files so we need to strip them
12907 # from the output so that they don't get included in the library
12909 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12912 if test "$GXX" = yes; then
12913 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12915 # FIXME: insert proper C++ library support
12923 if test $with_gnu_ld = no; then
12924 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12925 hardcode_libdir_separator_CXX=:
12931 export_dynamic_flag_spec_CXX='${wl}-E'
12937 hardcode_direct_CXX=no
12938 hardcode_shlibpath_var_CXX=no
12941 hardcode_direct_CXX=yes
12942 hardcode_direct_absolute_CXX=yes
12943 hardcode_minus_L_CXX=yes # Not in the search PATH,
12944 # but as the default
12945 # location of the library.
12949 case $cc_basename in
12951 # FIXME: insert proper C++ library support
12957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12963 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12966 # Commands to make compiler produce verbose output that lists
12967 # what "hidden" libraries, object files and flags are used when
12968 # linking a shared library.
12970 # There doesn't appear to be a way to prevent this compiler from
12971 # explicitly linking system object files so we need to strip them
12972 # from the output so that they don't get included in the library
12974 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12977 if test "$GXX" = yes; then
12978 if test $with_gnu_ld = no; then
12981 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12987 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992 # FIXME: insert proper C++ library support
13000 hardcode_direct_CXX=no
13001 hardcode_shlibpath_var_CXX=no
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 export_dynamic_flag_spec_CXX='${wl}-E'
13004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13005 # Instead, shared libraries are loaded at an image base (0x10000000 by
13006 # default) and relocated if they conflict, which is a slow very memory
13007 # consuming and fragmenting process. To avoid this, we pick a random,
13008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13010 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13011 archive_expsym_cmds_CXX='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'
13014 case $cc_basename in
13017 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13019 # Archives containing C++ object files must be created using
13020 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13021 # necessary to make sure instantiated templates are included
13023 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13026 if test "$GXX" = yes; then
13027 if test "$with_gnu_ld" = no; then
13028 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13030 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13033 link_all_deplibs_CXX=yes
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 hardcode_libdir_separator_CXX=:
13038 inherit_rpath_CXX=yes
13041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13042 case $cc_basename in
13044 # Kuck and Associates, Inc. (KAI) C++ Compiler
13046 # KCC will only create a shared library if the output file
13047 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13048 # to its proper name (with version) after linking.
13049 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13050 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13051 # Commands to make compiler produce verbose output that lists
13052 # what "hidden" libraries, object files and flags are used when
13053 # linking a shared library.
13055 # There doesn't appear to be a way to prevent this compiler from
13056 # explicitly linking system object files so we need to strip them
13057 # from the output so that they don't get included in the library
13059 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13064 # Archives containing C++ object files must be created using
13065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13071 # version 8.0 and above of icpc choke on multiply defined symbols
13072 # if we add $predep_objects and $postdep_objects, however 7.1 and
13073 # earlier do not add the objects themselves.
13074 case `$CC -V 2>&1` in
13076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13077 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13079 *) # Version 8.0 or newer
13082 ia64*) tmp_idyn=' -i_dynamic';;
13084 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13088 archive_cmds_need_lc_CXX=no
13089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13091 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13094 # Portland Group C++ compiler
13096 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13097 prelink_cmds_CXX='tpldir=Template.dir~
13099 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13100 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13101 old_archive_cmds_CXX='tpldir=Template.dir~
13103 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13104 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13106 archive_cmds_CXX='tpldir=Template.dir~
13108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13109 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13110 archive_expsym_cmds_CXX='tpldir=Template.dir~
13112 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13113 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13115 *) # Version 6 and above use weak symbols
13116 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13117 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13121 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13123 whole_archive_flag_spec_CXX='${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'
13127 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13130 runpath_var=LD_RUN_PATH
13131 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13132 hardcode_libdir_separator_CXX=:
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
13138 # There doesn't appear to be a way to prevent this compiler from
13139 # explicitly linking system object files so we need to strip them
13140 # from the output so that they don't get included in the library
13142 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13144 xl* | mpixl* | bgxl*)
13145 # IBM XL 8.0 on PPC, with GNU ld
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13148 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13149 if test "x$supports_anon_versioning" = xyes; then
13150 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13152 echo "local: *; };" >> $output_objdir/$libname.ver~
13153 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13157 case `$CC -V 2>&1 | sed 5q` in
13160 no_undefined_flag_CXX=' -zdefs'
13161 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13163 hardcode_libdir_flag_spec_CXX='-R$libdir'
13164 whole_archive_flag_spec_CXX='${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'
13165 compiler_needs_object_CXX=yes
13167 # Not sure whether something based on
13168 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13170 output_verbose_link_cmd='func_echo_all'
13172 # Archives containing C++ object files must be created using
13173 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13174 # necessary to make sure instantiated templates are included
13176 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13184 # FIXME: insert proper C++ library support
13189 # FIXME: insert proper C++ library support
13194 case $cc_basename in
13196 # FIXME: insert proper C++ library support
13200 # FIXME: insert proper C++ library support
13207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13208 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13210 hardcode_libdir_flag_spec_CXX='-R$libdir'
13211 hardcode_direct_CXX=yes
13212 hardcode_shlibpath_var_CXX=no
13214 # Workaround some broken pre-1.5 toolchains
13215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13223 # C++ shared libraries are fairly broken
13228 if test -f /usr/libexec/ld.so; then
13229 hardcode_direct_CXX=yes
13230 hardcode_shlibpath_var_CXX=no
13231 hardcode_direct_absolute_CXX=yes
13232 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13235 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13236 export_dynamic_flag_spec_CXX='${wl}-E'
13237 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13239 output_verbose_link_cmd=func_echo_all
13245 osf3* | osf4* | osf5*)
13246 case $cc_basename in
13248 # Kuck and Associates, Inc. (KAI) C++ Compiler
13250 # KCC will only create a shared library if the output file
13251 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13252 # to its proper name (with version) after linking.
13253 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13255 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13256 hardcode_libdir_separator_CXX=:
13258 # Archives containing C++ object files must be created using
13259 # the KAI C++ compiler.
13261 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13262 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13266 # Rational C++ 2.4.1
13267 # FIXME: insert proper C++ library support
13273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278 allow_undefined_flag_CXX=' -expect_unresolved \*'
13279 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13280 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13281 echo "-hidden">> $lib.exp~
13282 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13284 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13288 hardcode_libdir_separator_CXX=:
13290 # Commands to make compiler produce verbose output that lists
13291 # what "hidden" libraries, object files and flags are used when
13292 # linking a shared library.
13294 # There doesn't appear to be a way to prevent this compiler from
13295 # explicitly linking system object files so we need to strip them
13296 # from the output so that they don't get included in the library
13298 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13302 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13305 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13308 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13313 hardcode_libdir_separator_CXX=:
13315 # Commands to make compiler produce verbose output that lists
13316 # what "hidden" libraries, object files and flags are used when
13317 # linking a shared library.
13318 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13321 # FIXME: insert proper C++ library support
13329 # FIXME: insert proper C++ library support
13334 case $cc_basename in
13337 # FIXME: insert proper C++ library support
13342 # FIXME: insert proper C++ library support
13346 # FIXME: insert proper C++ library support
13353 case $cc_basename in
13355 # Sun C++ 4.2, 5.x and Centerline C++
13356 archive_cmds_need_lc_CXX=yes
13357 no_undefined_flag_CXX=' -zdefs'
13358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13359 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13360 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13362 hardcode_libdir_flag_spec_CXX='-R$libdir'
13363 hardcode_shlibpath_var_CXX=no
13365 solaris2.[0-5] | solaris2.[0-5].*) ;;
13367 # The compiler driver will combine and reorder linker options,
13368 # but understands `-z linker_flag'.
13369 # Supported since Solaris 2.6 (maybe 2.5.1?)
13370 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13373 link_all_deplibs_CXX=yes
13375 output_verbose_link_cmd='func_echo_all'
13377 # Archives containing C++ object files must be created using
13378 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13379 # necessary to make sure instantiated templates are included
13381 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13384 # Green Hills C++ Compiler
13385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13387 # The C++ compiler must be used to create the archive.
13388 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13391 # GNU C++ compiler with Solaris linker
13392 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13393 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13394 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13395 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13396 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13397 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13399 # Commands to make compiler produce verbose output that lists
13400 # what "hidden" libraries, object files and flags are used when
13401 # linking a shared library.
13402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13404 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13406 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13407 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13410 # Commands to make compiler produce verbose output that lists
13411 # what "hidden" libraries, object files and flags are used when
13412 # linking a shared library.
13413 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13416 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13418 solaris2.[0-5] | solaris2.[0-5].*) ;;
13420 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13429 no_undefined_flag_CXX='${wl}-z,text'
13430 archive_cmds_need_lc_CXX=no
13431 hardcode_shlibpath_var_CXX=no
13432 runpath_var='LD_RUN_PATH'
13434 case $cc_basename in
13436 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13440 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 sysv5* | sco3.2v5* | sco5v6*)
13447 # Note: We can NOT use -z defs as we might desire, because we do not
13448 # link with -lc, and that would cause any symbols used from libc to
13449 # always be unresolved, which means just about no library would
13450 # ever link correctly. If we're not using GNU ld we use -z text
13451 # though, which does catch some bad symbols but isn't as heavy-handed
13453 no_undefined_flag_CXX='${wl}-z,text'
13454 allow_undefined_flag_CXX='${wl}-z,nodefs'
13455 archive_cmds_need_lc_CXX=no
13456 hardcode_shlibpath_var_CXX=no
13457 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13458 hardcode_libdir_separator_CXX=':'
13459 link_all_deplibs_CXX=yes
13460 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13461 runpath_var='LD_RUN_PATH'
13463 case $cc_basename in
13465 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13468 '"$old_archive_cmds_CXX"
13469 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13470 '"$reload_cmds_CXX"
13473 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 case $cc_basename in
13482 # NonStop-UX NCC 3.20
13483 # FIXME: insert proper C++ library support
13487 # FIXME: insert proper C++ library support
13494 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13505 $as_echo "$ld_shlibs_CXX" >&6; }
13506 test "$ld_shlibs_CXX" = no && can_build_shared=no
13512 ## There is no encapsulation within the following macros, do not change
13513 ## the running order or otherwise move them around unless you know exactly
13514 ## what you are doing...
13515 # Dependencies to place before and after the object being linked:
13516 predep_objects_CXX=
13517 postdep_objects_CXX=
13520 compiler_lib_search_path_CXX=
13522 cat > conftest.$ac_ext <<_LT_EOF
13526 Foo (void) { a = 0; }
13533 _lt_libdeps_save_CFLAGS=$CFLAGS
13534 case "$CC $CFLAGS " in #(
13535 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13536 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13537 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541 (eval $ac_compile) 2>&5
13543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544 test $ac_status = 0; }; then
13545 # Parse the compiler output and extract the necessary
13546 # objects, libraries and library flags.
13548 # Sentinel used to keep track of whether or not we are before
13549 # the conftest object file.
13550 pre_test_object_deps_done=no
13552 for p in `eval "$output_verbose_link_cmd"`; do
13553 case ${prev}${p} in
13556 # Some compilers place space between "-{L,R}" and the path.
13557 # Remove the space.
13558 if test $p = "-L" ||
13559 test $p = "-R"; then
13564 # Expand the sysroot to ease extracting the directories later.
13565 if test -z "$prev"; then
13567 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13568 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13569 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13573 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13575 if test "$pre_test_object_deps_done" = no; then
13578 # Internal compiler library paths should come after those
13579 # provided the user. The postdeps already come after the
13580 # user supplied libs so there is no need to process them.
13581 if test -z "$compiler_lib_search_path_CXX"; then
13582 compiler_lib_search_path_CXX="${prev}${p}"
13584 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13587 # The "-l" case would never come before the object being
13588 # linked, so don't bother handling this case.
13591 if test -z "$postdeps_CXX"; then
13592 postdeps_CXX="${prev}${p}"
13594 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13600 *.lto.$objext) ;; # Ignore GCC LTO objects
13602 # This assumes that the test object file only shows up
13603 # once in the compiler output.
13604 if test "$p" = "conftest.$objext"; then
13605 pre_test_object_deps_done=yes
13609 if test "$pre_test_object_deps_done" = no; then
13610 if test -z "$predep_objects_CXX"; then
13611 predep_objects_CXX="$p"
13613 predep_objects_CXX="$predep_objects_CXX $p"
13616 if test -z "$postdep_objects_CXX"; then
13617 postdep_objects_CXX="$p"
13619 postdep_objects_CXX="$postdep_objects_CXX $p"
13624 *) ;; # Ignore the rest.
13632 echo "libtool.m4: error: problem compiling CXX test program"
13635 $RM -f confest.$objext
13636 CFLAGS=$_lt_libdeps_save_CFLAGS
13638 # PORTME: override above test on systems where it is broken
13641 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13642 # hack all around it, let's just trust "g++" to DTRT.
13643 predep_objects_CXX=
13644 postdep_objects_CXX=
13649 case `$CC -V 2>&1 | sed 5q` in
13653 # The more standards-conforming stlport4 library is
13654 # incompatible with the Cstd library. Avoid specifying
13655 # it if it's in CXXFLAGS. Ignore libCrun as
13656 # -library=stlport4 depends on it.
13657 case " $CXX $CXXFLAGS " in
13658 *" -library=stlport4 "*)
13659 solaris_use_stlport4=yes
13663 if test "$solaris_use_stlport4" != yes; then
13664 postdeps_CXX='-library=Cstd -library=Crun'
13671 case $cc_basename in
13673 # The more standards-conforming stlport4 library is
13674 # incompatible with the Cstd library. Avoid specifying
13675 # it if it's in CXXFLAGS. Ignore libCrun as
13676 # -library=stlport4 depends on it.
13677 case " $CXX $CXXFLAGS " in
13678 *" -library=stlport4 "*)
13679 solaris_use_stlport4=yes
13683 # Adding this requires a known-good setup of shared libraries for
13684 # Sun compiler versions before 5.6, else PIC objects from an old
13685 # archive will be linked into the output, leading to subtle bugs.
13686 if test "$solaris_use_stlport4" != yes; then
13687 postdeps_CXX='-library=Cstd -library=Crun'
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13698 compiler_lib_search_dirs_CXX=
13699 if test -n "${compiler_lib_search_path_CXX}"; then
13700 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13733 lt_prog_compiler_wl_CXX=
13734 lt_prog_compiler_pic_CXX=
13735 lt_prog_compiler_static_CXX=
13738 # C++ specific cases for pic, static, wl, etc.
13739 if test "$GXX" = yes; then
13740 lt_prog_compiler_wl_CXX='-Wl,'
13741 lt_prog_compiler_static_CXX='-static'
13745 # All AIX code is PIC.
13746 if test "$host_cpu" = ia64; then
13747 # AIX 5 now supports IA64 processor
13748 lt_prog_compiler_static_CXX='-Bstatic'
13755 # see comment about AmigaOS4 .so support
13756 lt_prog_compiler_pic_CXX='-fPIC'
13759 # FIXME: we need at least 68020 code to build shared libraries, but
13760 # adding the `-m68020' flag to GCC prevents building anything better,
13762 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13767 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13768 # PIC is the default for these OSes.
13770 mingw* | cygwin* | os2* | pw32* | cegcc*)
13771 # This hack is so that the source file can tell whether it is being
13772 # built for inclusion in a dll (and should export symbols for example).
13773 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13774 # (--disable-auto-import) libraries
13775 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13777 darwin* | rhapsody*)
13778 # PIC is the default on this platform
13779 # Common symbols not allowed in MH_DYLIB files
13780 lt_prog_compiler_pic_CXX='-fno-common'
13783 # DJGPP does not support shared libraries at all
13784 lt_prog_compiler_pic_CXX=
13787 # PIC is the default for Haiku.
13788 # The "-static" flag exists, but is broken.
13789 lt_prog_compiler_static_CXX=
13792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13793 # Instead, we relocate shared libraries at runtime.
13796 if test -d /usr/nec; then
13797 lt_prog_compiler_pic_CXX=-Kconform_pic
13801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13803 # sets the default TLS model and affects inlining.
13808 lt_prog_compiler_pic_CXX='-fPIC'
13813 # QNX uses GNU C++, but need to define -shared option too, otherwise
13814 # it will coredump.
13815 lt_prog_compiler_pic_CXX='-fPIC -shared'
13818 lt_prog_compiler_pic_CXX='-fPIC'
13824 # All AIX code is PIC.
13825 if test "$host_cpu" = ia64; then
13826 # AIX 5 now supports IA64 processor
13827 lt_prog_compiler_static_CXX='-Bstatic'
13829 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13833 case $cc_basename in
13835 # Green Hills C++ Compiler
13836 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13840 mingw* | cygwin* | os2* | pw32* | cegcc*)
13841 # This hack is so that the source file can tell whether it is being
13842 # built for inclusion in a dll (and should export symbols for example).
13843 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13846 case $cc_basename in
13848 lt_prog_compiler_pic_CXX='-KPIC'
13851 # Green Hills C++ Compiler
13852 lt_prog_compiler_pic_CXX='-pic'
13858 freebsd* | dragonfly*)
13859 # FreeBSD uses GNU C++
13861 hpux9* | hpux10* | hpux11*)
13862 case $cc_basename in
13864 lt_prog_compiler_wl_CXX='-Wl,'
13865 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13866 if test "$host_cpu" != ia64; then
13867 lt_prog_compiler_pic_CXX='+Z'
13871 lt_prog_compiler_wl_CXX='-Wl,'
13872 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13878 lt_prog_compiler_pic_CXX='+Z'
13887 # This is c89, which is MS Visual C++ (no shared libs)
13888 # Anyone wants to do a port?
13890 irix5* | irix6* | nonstopux*)
13891 case $cc_basename in
13893 lt_prog_compiler_wl_CXX='-Wl,'
13894 lt_prog_compiler_static_CXX='-non_shared'
13895 # CC pic flag -KPIC is the default.
13901 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13902 case $cc_basename in
13905 lt_prog_compiler_wl_CXX='--backend -Wl,'
13906 lt_prog_compiler_pic_CXX='-fPIC'
13909 # old Intel C++ for x86_64 which still supported -KPIC.
13910 lt_prog_compiler_wl_CXX='-Wl,'
13911 lt_prog_compiler_pic_CXX='-KPIC'
13912 lt_prog_compiler_static_CXX='-static'
13915 # Intel C++, used to be incompatible with GCC.
13916 # ICC 10 doesn't accept -KPIC any more.
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 lt_prog_compiler_pic_CXX='-fPIC'
13919 lt_prog_compiler_static_CXX='-static'
13922 # Portland Group C++ compiler
13923 lt_prog_compiler_wl_CXX='-Wl,'
13924 lt_prog_compiler_pic_CXX='-fpic'
13925 lt_prog_compiler_static_CXX='-Bstatic'
13929 # Make sure the PIC flag is empty. It appears that all Alpha
13930 # Linux and Compaq Tru64 Unix objects are PIC.
13931 lt_prog_compiler_pic_CXX=
13932 lt_prog_compiler_static_CXX='-non_shared'
13934 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13935 # IBM XL 8.0, 9.0 on PPC and BlueGene
13936 lt_prog_compiler_wl_CXX='-Wl,'
13937 lt_prog_compiler_pic_CXX='-qpic'
13938 lt_prog_compiler_static_CXX='-qstaticlink'
13941 case `$CC -V 2>&1 | sed 5q` in
13944 lt_prog_compiler_pic_CXX='-KPIC'
13945 lt_prog_compiler_static_CXX='-Bstatic'
13946 lt_prog_compiler_wl_CXX='-Qoption ld '
13957 case $cc_basename in
13959 lt_prog_compiler_pic_CXX='-W c,exportall'
13968 # QNX uses GNU C++, but need to define -shared option too, otherwise
13969 # it will coredump.
13970 lt_prog_compiler_pic_CXX='-fPIC -shared'
13972 osf3* | osf4* | osf5*)
13973 case $cc_basename in
13975 lt_prog_compiler_wl_CXX='--backend -Wl,'
13978 # Rational C++ 2.4.1
13979 lt_prog_compiler_pic_CXX='-pic'
13982 # Digital/Compaq C++
13983 lt_prog_compiler_wl_CXX='-Wl,'
13984 # Make sure the PIC flag is empty. It appears that all Alpha
13985 # Linux and Compaq Tru64 Unix objects are PIC.
13986 lt_prog_compiler_pic_CXX=
13987 lt_prog_compiler_static_CXX='-non_shared'
13996 case $cc_basename in
13998 # Sun C++ 4.2, 5.x and Centerline C++
13999 lt_prog_compiler_pic_CXX='-KPIC'
14000 lt_prog_compiler_static_CXX='-Bstatic'
14001 lt_prog_compiler_wl_CXX='-Qoption ld '
14004 # Green Hills C++ Compiler
14005 lt_prog_compiler_pic_CXX='-PIC'
14012 case $cc_basename in
14015 lt_prog_compiler_pic_CXX='-pic'
14016 lt_prog_compiler_static_CXX='-Bstatic'
14020 lt_prog_compiler_pic_CXX='-pic'
14026 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14027 case $cc_basename in
14029 lt_prog_compiler_wl_CXX='-Wl,'
14030 lt_prog_compiler_pic_CXX='-KPIC'
14031 lt_prog_compiler_static_CXX='-Bstatic'
14036 case $cc_basename in
14038 # NonStop-UX NCC 3.20
14039 lt_prog_compiler_pic_CXX='-KPIC'
14048 lt_prog_compiler_can_build_shared_CXX=no
14054 # For platforms which do not support PIC, -DPIC is meaningless:
14056 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14064 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14065 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14066 $as_echo_n "(cached) " >&6
14068 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14071 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14072 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14075 # Check to make sure the PIC flag actually works.
14077 if test -n "$lt_prog_compiler_pic_CXX"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14080 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 lt_cv_prog_compiler_pic_works_CXX=no
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14086 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14087 # Insert the option either (1) after the last *FLAGS variable, or
14088 # (2) before a word containing "conftest.", or (3) at the end.
14089 # Note that $ac_compile itself does not contain backslashes and begins
14090 # with a dollar sign (not a hyphen), so the echo should work correctly.
14091 # The option is referenced via a variable to avoid confusing sed.
14092 lt_compile=`echo "$ac_compile" | $SED \
14093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095 -e 's:$: $lt_compiler_flag:'`
14096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14097 (eval "$lt_compile" 2>conftest.err)
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 if (exit $ac_status) && test -s "$ac_outfile"; then
14102 # The compiler can only warn and ignore the option if not recognized
14103 # So say no if there are warnings other than the usual output.
14104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14107 lt_cv_prog_compiler_pic_works_CXX=yes
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14116 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14117 case $lt_prog_compiler_pic_CXX in
14119 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14122 lt_prog_compiler_pic_CXX=
14123 lt_prog_compiler_can_build_shared_CXX=no
14133 # Check to make sure the static flag actually works.
14135 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14138 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14139 $as_echo_n "(cached) " >&6
14141 lt_cv_prog_compiler_static_works_CXX=no
14142 save_LDFLAGS="$LDFLAGS"
14143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14146 # The linker can only warn and ignore the option if not recognized
14147 # So say no if there are warnings
14148 if test -s conftest.err; then
14149 # Append any errors to the config.log.
14150 cat conftest.err 1>&5
14151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14153 if diff conftest.exp conftest.er2 >/dev/null; then
14154 lt_cv_prog_compiler_static_works_CXX=yes
14157 lt_cv_prog_compiler_static_works_CXX=yes
14161 LDFLAGS="$save_LDFLAGS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14165 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14167 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14170 lt_prog_compiler_static_CXX=
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14178 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14179 $as_echo_n "(cached) " >&6
14181 lt_cv_prog_compiler_c_o_CXX=no
14182 $RM -r conftest 2>/dev/null
14186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 lt_compiler_flag="-o out/conftest2.$ac_objext"
14189 # Insert the option either (1) after the last *FLAGS variable, or
14190 # (2) before a word containing "conftest.", or (3) at the end.
14191 # Note that $ac_compile itself does not contain backslashes and begins
14192 # with a dollar sign (not a hyphen), so the echo should work correctly.
14193 lt_compile=`echo "$ac_compile" | $SED \
14194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196 -e 's:$: $lt_compiler_flag:'`
14197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14198 (eval "$lt_compile" 2>out/conftest.err)
14200 cat out/conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14204 # The compiler can only warn and ignore the option if not recognized
14205 # So say no if there are warnings
14206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14209 lt_cv_prog_compiler_c_o_CXX=yes
14214 # SGI C++ compiler will create directory out/ii_files/ for
14215 # template instantiation
14216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14217 $RM out/* && rmdir out
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14224 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14230 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14231 $as_echo_n "(cached) " >&6
14233 lt_cv_prog_compiler_c_o_CXX=no
14234 $RM -r conftest 2>/dev/null
14238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14240 lt_compiler_flag="-o out/conftest2.$ac_objext"
14241 # Insert the option either (1) after the last *FLAGS variable, or
14242 # (2) before a word containing "conftest.", or (3) at the end.
14243 # Note that $ac_compile itself does not contain backslashes and begins
14244 # with a dollar sign (not a hyphen), so the echo should work correctly.
14245 lt_compile=`echo "$ac_compile" | $SED \
14246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14248 -e 's:$: $lt_compiler_flag:'`
14249 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14250 (eval "$lt_compile" 2>out/conftest.err)
14252 cat out/conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14256 # The compiler can only warn and ignore the option if not recognized
14257 # So say no if there are warnings
14258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14261 lt_cv_prog_compiler_c_o_CXX=yes
14266 # SGI C++ compiler will create directory out/ii_files/ for
14267 # template instantiation
14268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14269 $RM out/* && rmdir out
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14276 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14281 hard_links="nottested"
14282 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14283 # do not overwrite the value of need_locks provided by the user
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14285 $as_echo_n "checking if we can lock with hard links... " >&6; }
14288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14290 ln conftest.a conftest.b 2>&5 || hard_links=no
14291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14293 $as_echo "$hard_links" >&6; }
14294 if test "$hard_links" = no; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14296 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14306 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14308 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14312 # If we're using GNU nm, then we don't want the "-C" option.
14313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14314 # Also, AIX nm treats weak defined symbols like other global defined
14315 # symbols, whereas GNU nm marks them as "W".
14316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14317 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14319 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14323 export_symbols_cmds_CXX="$ltdll_cmds"
14325 cygwin* | mingw* | cegcc*)
14326 case $cc_basename in
14328 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14331 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14332 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14337 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14342 $as_echo "$ld_shlibs_CXX" >&6; }
14343 test "$ld_shlibs_CXX" = no && can_build_shared=no
14345 with_gnu_ld_CXX=$with_gnu_ld
14353 # Do we need to explicitly link libc?
14355 case "x$archive_cmds_need_lc_CXX" in
14357 # Assume -lc should be added
14358 archive_cmds_need_lc_CXX=yes
14360 if test "$enable_shared" = yes && test "$GCC" = yes; then
14361 case $archive_cmds_CXX in
14363 # FIXME: we may have to deal with multi-command sequences.
14366 # Test whether the compiler implicitly links with -lc since on some
14367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14368 # to ld, don't add -lc before -lgcc.
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14371 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14372 $as_echo_n "(cached) " >&6
14375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14378 (eval $ac_compile) 2>&5
14380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14381 test $ac_status = 0; } 2>conftest.err; then
14384 libobjs=conftest.$ac_objext
14386 wl=$lt_prog_compiler_wl_CXX
14387 pic_flag=$lt_prog_compiler_pic_CXX
14393 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14394 allow_undefined_flag_CXX=
14395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14396 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14399 test $ac_status = 0; }
14401 lt_cv_archive_cmds_need_lc_CXX=no
14403 lt_cv_archive_cmds_need_lc_CXX=yes
14405 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14407 cat conftest.err 1>&5
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14413 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14414 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14483 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14485 library_names_spec=
14486 libname_spec='lib$name'
14490 postuninstall_cmds=
14494 shlibpath_overrides_runpath=unknown
14496 dynamic_linker="$host_os ld.so"
14497 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14498 need_lib_prefix=unknown
14499 hardcode_into_libs=no
14501 # when you set need_version to no, make sure it does not cause -set_version
14502 # flags to be left without arguments
14503 need_version=unknown
14507 version_type=linux # correct to gnu/linux during the next big refactor
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14509 shlibpath_var=LIBPATH
14511 # AIX 3 has no versioning support, so we append a major version to the name.
14512 soname_spec='${libname}${release}${shared_ext}$major'
14516 version_type=linux # correct to gnu/linux during the next big refactor
14519 hardcode_into_libs=yes
14520 if test "$host_cpu" = ia64; then
14521 # AIX 5 supports IA64
14522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14523 shlibpath_var=LD_LIBRARY_PATH
14525 # With GCC up to 2.95.x, collect2 would create an import file
14526 # for dependence libraries. The import file would start with
14527 # the line `#! .'. This would cause the generated library to
14528 # depend on `.', always an invalid library. This was fixed in
14529 # development snapshots of GCC prior to 3.0.
14531 aix4 | aix4.[01] | aix4.[01].*)
14532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14534 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14537 can_build_shared=no
14541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14542 # soname into executable. Probably we can add versioning support to
14543 # collect2, so additional links can be useful in future.
14544 if test "$aix_use_runtimelinking" = yes; then
14545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14546 # instead of lib<name>.a to let people know that these are not
14547 # typical AIX shared libraries.
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550 # We preserve .a as extension for shared libraries through AIX4.2
14551 # and later when we are not doing run time linking.
14552 library_names_spec='${libname}${release}.a $libname.a'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14555 shlibpath_var=LIBPATH
14562 # Since July 2007 AmigaOS4 officially supports .so libraries.
14563 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 library_names_spec='$libname.ixlibrary $libname.a'
14568 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14569 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14575 library_names_spec='${libname}${shared_ext}'
14576 dynamic_linker="$host_os ld.so"
14577 shlibpath_var=LIBRARY_PATH
14581 version_type=linux # correct to gnu/linux during the next big refactor
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14589 # the default ld.so.conf also contains /usr/contrib/lib and
14590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14591 # libtool to hard-code these into programs
14594 cygwin* | mingw* | pw32* | cegcc*)
14595 version_type=windows
14600 case $GCC,$cc_basename in
14603 library_names_spec='$libname.dll.a'
14604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14605 postinstall_cmds='base_file=`basename \${file}`~
14606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14607 dldir=$destdir/`dirname \$dlpath`~
14608 test -d \$dldir || mkdir -p \$dldir~
14609 $install_prog $dir/$dlname \$dldir/$dlname~
14610 chmod a+x \$dldir/$dlname~
14611 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14612 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14615 dlpath=$dir/\$dldll~
14617 shlibpath_overrides_runpath=yes
14621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14622 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14626 # MinGW DLLs use traditional 'lib' prefix
14627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14630 # pw32 DLLs use 'pw' prefix rather than 'lib'
14631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14634 dynamic_linker='Win32 ld.exe'
14639 libname_spec='$name'
14640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641 library_names_spec='${libname}.dll.lib'
14645 sys_lib_search_path_spec=
14648 for lt_path in $LIB
14651 # Let DOS variable expansion print the short 8.3 style file name.
14652 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14653 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14656 # Convert to MSYS style.
14657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14660 # Convert to unix form, then to dos form, then back to unix form
14661 # but this time dos style (no spaces!) so that the unix form looks
14662 # like /cygdrive/c/PROGRA~1:/cygdr...
14663 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14664 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14665 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14668 sys_lib_search_path_spec="$LIB"
14669 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14670 # It is most probably a Windows format PATH.
14671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14675 # FIXME: find the short name or the path components, as spaces are
14676 # common. (e.g. "Program Files" -> "PROGRA~1")
14680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14681 postinstall_cmds='base_file=`basename \${file}`~
14682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14683 dldir=$destdir/`dirname \$dlpath`~
14684 test -d \$dldir || mkdir -p \$dldir~
14685 $install_prog $dir/$dlname \$dldir/$dlname'
14686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14687 dlpath=$dir/\$dldll~
14689 shlibpath_overrides_runpath=yes
14690 dynamic_linker='Win32 link.exe'
14694 # Assume MSVC wrapper
14695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14696 dynamic_linker='Win32 ld.exe'
14699 # FIXME: first we should search . and the directory the executable is in
14703 darwin* | rhapsody*)
14704 dynamic_linker="$host_os dyld"
14705 version_type=darwin
14708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14709 soname_spec='${libname}${release}${major}$shared_ext'
14710 shlibpath_overrides_runpath=yes
14711 shlibpath_var=DYLD_LIBRARY_PATH
14712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14718 version_type=linux # correct to gnu/linux during the next big refactor
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 shlibpath_var=LD_LIBRARY_PATH
14726 freebsd* | dragonfly*)
14727 # DragonFly does not have aout. When/if they implement a new
14728 # versioning mechanism, adjust this.
14729 if test -x /usr/bin/objformat; then
14730 objformat=`/usr/bin/objformat`
14733 freebsd[23].*) objformat=aout ;;
14734 *) objformat=elf ;;
14737 version_type=freebsd-$objformat
14738 case $version_type in
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14749 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=yes
14754 freebsd3.[01]* | freebsdelf3.[01]*)
14755 shlibpath_overrides_runpath=yes
14756 hardcode_into_libs=yes
14758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14760 shlibpath_overrides_runpath=no
14761 hardcode_into_libs=yes
14763 *) # from 4.6 on, and DragonFly
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14771 version_type=linux # correct to gnu/linux during the next big refactor
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=no
14778 hardcode_into_libs=yes
14782 version_type=linux # correct to gnu/linux during the next big refactor
14785 dynamic_linker="$host_os runtime_loader"
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LIBRARY_PATH
14789 shlibpath_overrides_runpath=yes
14790 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14791 hardcode_into_libs=yes
14794 hpux9* | hpux10* | hpux11*)
14795 # Give a soname corresponding to the major version so that dld.sl refuses to
14796 # link against other versions.
14803 hardcode_into_libs=yes
14804 dynamic_linker="$host_os dld.so"
14805 shlibpath_var=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 if test "X$HPUX_IA64_MODE" = X32; then
14810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14818 hardcode_into_libs=yes
14819 dynamic_linker="$host_os dld.sl"
14820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14829 dynamic_linker="$host_os dld.sl"
14830 shlibpath_var=SHLIB_PATH
14831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14836 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14837 postinstall_cmds='chmod 555 $lib'
14838 # or fails outright, so override atomically:
14839 install_override_mode=555
14843 version_type=linux # correct to gnu/linux during the next big refactor
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=no
14851 hardcode_into_libs=yes
14854 irix5* | irix6* | nonstopux*)
14856 nonstopux*) version_type=nonstopux ;;
14858 if test "$lt_cv_prog_gnu_ld" = yes; then
14859 version_type=linux # correct to gnu/linux during the next big refactor
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14869 irix5* | nonstopux*)
14870 libsuff= shlibsuff=
14873 case $LD in # libtool.m4 will add one of these switches to LD
14874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14875 libsuff= shlibsuff= libmagic=32-bit;;
14876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14877 libsuff=32 shlibsuff=N32 libmagic=N32;;
14878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14879 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14880 *) libsuff= shlibsuff= libmagic=never-match;;
14884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14885 shlibpath_overrides_runpath=no
14886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14888 hardcode_into_libs=yes
14891 # No shared lib support for Linux oldld, aout, or coff.
14892 linux*oldld* | linux*aout* | linux*coff*)
14896 # This must be glibc/ELF.
14897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14898 version_type=linux # correct to gnu/linux during the next big refactor
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=no
14907 # Some binutils ld are patched to set DT_RUNPATH
14908 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14909 $as_echo_n "(cached) " >&6
14911 lt_cv_shlibpath_overrides_runpath=no
14912 save_LDFLAGS=$LDFLAGS
14913 save_libdir=$libdir
14914 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14915 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14927 if ac_fn_cxx_try_link "$LINENO"; then :
14928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14929 lt_cv_shlibpath_overrides_runpath=yes
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LDFLAGS=$save_LDFLAGS
14935 libdir=$save_libdir
14939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14941 # This implies no fast_install, which is unacceptable.
14942 # Some rework will be needed to allow for fast_install
14943 # before this can be enabled.
14944 hardcode_into_libs=yes
14946 # Add ABI-specific directories to the system library path.
14947 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14949 # Append ld.so.conf contents to the search path
14950 if test -f /etc/ld.so.conf; then
14951 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' ' '`
14952 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14956 # We used to test for /lib/ld.so.1 and disable shared libraries on
14957 # powerpc, because MkLinux only supported shared libraries with the
14958 # GNU dynamic linker. Since this was broken with cross compilers,
14959 # most powerpc-linux boxes support dynamic linking these days and
14960 # people can always --disable-shared, the test was removed, and we
14961 # assume the GNU/Linux dynamic linker is in use.
14962 dynamic_linker='GNU/Linux ld.so'
14969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14972 dynamic_linker='NetBSD (a.out) ld.so'
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 dynamic_linker='NetBSD ld.elf_so'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=yes
14980 hardcode_into_libs=yes
14984 version_type=linux # correct to gnu/linux during the next big refactor
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 shlibpath_overrides_runpath=yes
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath=no
14998 hardcode_into_libs=yes
14999 dynamic_linker='ldqnx.so'
15004 sys_lib_dlsearch_path_spec="/usr/lib"
15006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15009 *) need_version=no ;;
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15016 openbsd2.[89] | openbsd2.[89].*)
15017 shlibpath_overrides_runpath=no
15020 shlibpath_overrides_runpath=yes
15024 shlibpath_overrides_runpath=yes
15029 libname_spec='$name'
15032 library_names_spec='$libname${shared_ext} $libname.a'
15033 dynamic_linker='OS/2 ld.exe'
15034 shlibpath_var=LIBPATH
15037 osf3* | osf4* | osf5*)
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15053 version_type=linux # correct to gnu/linux during the next big refactor
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=yes
15060 hardcode_into_libs=yes
15061 # ldd complains unless libraries are executable
15062 postinstall_cmds='chmod +x $lib'
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 shlibpath_overrides_runpath=yes
15071 if test "$with_gnu_ld" = yes; then
15078 version_type=linux # correct to gnu/linux during the next big refactor
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 case $host_vendor in
15084 shlibpath_overrides_runpath=no
15086 runpath_var=LD_RUN_PATH
15094 shlibpath_overrides_runpath=no
15095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15101 if test -d /usr/nec ;then
15102 version_type=linux # correct to gnu/linux during the next big refactor
15103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15104 soname_spec='$libname${shared_ext}.$major'
15105 shlibpath_var=LD_LIBRARY_PATH
15109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15110 version_type=freebsd-elf
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 hardcode_into_libs=yes
15118 if test "$with_gnu_ld" = yes; then
15119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15128 sys_lib_dlsearch_path_spec='/usr/lib'
15132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15133 version_type=linux # correct to gnu/linux during the next big refactor
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=no
15139 hardcode_into_libs=yes
15143 version_type=linux # correct to gnu/linux during the next big refactor
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 shlibpath_var=LD_LIBRARY_PATH
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15154 $as_echo "$dynamic_linker" >&6; }
15155 test "$dynamic_linker" = no && can_build_shared=no
15157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15158 if test "$GCC" = yes; then
15159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15162 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15163 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15165 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15166 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15207 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15208 hardcode_action_CXX=
15209 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15210 test -n "$runpath_var_CXX" ||
15211 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15213 # We can hardcode non-existent directories.
15214 if test "$hardcode_direct_CXX" != no &&
15215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15216 # have to relink, otherwise we might link with an installed library
15217 # when we should be linking with a yet-to-be-installed one
15218 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15219 test "$hardcode_minus_L_CXX" != no; then
15220 # Linking always hardcodes the temporary library directory.
15221 hardcode_action_CXX=relink
15223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15224 hardcode_action_CXX=immediate
15227 # We cannot hardcode anything, or else we can only hardcode existing
15229 hardcode_action_CXX=unsupported
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15232 $as_echo "$hardcode_action_CXX" >&6; }
15234 if test "$hardcode_action_CXX" = relink ||
15235 test "$inherit_rpath_CXX" = yes; then
15236 # Fast installation is not supported
15237 enable_fast_install=no
15238 elif test "$shlibpath_overrides_runpath" = yes ||
15239 test "$enable_shared" = no; then
15240 # Fast installation is not necessary
15241 enable_fast_install=needless
15250 fi # test -n "$compiler"
15253 CFLAGS=$lt_save_CFLAGS
15257 with_gnu_ld=$lt_save_with_gnu_ld
15258 lt_cv_path_LDCXX=$lt_cv_path_LD
15259 lt_cv_path_LD=$lt_save_path_LD
15260 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15261 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15262 fi # test "$_lt_caught_CXX_error" != yes
15265 ac_cpp='$CPP $CPPFLAGS'
15266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15284 ac_config_commands="$ac_config_commands libtool"
15289 # Only expand once:
15294 # libtool option to control which symbols are exported
15295 # right now, symbols starting with _ are not exported
15296 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
15299 # Checks for libraries.
15307 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15308 if test -n "$ac_tool_prefix"; then
15309 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15310 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15312 $as_echo_n "checking for $ac_word... " >&6; }
15313 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15314 $as_echo_n "(cached) " >&6
15316 case $PKG_CONFIG in
15318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15325 test -z "$as_dir" && as_dir=.
15326 for ac_exec_ext in '' $ac_executable_extensions; do
15327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15340 if test -n "$PKG_CONFIG"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15342 $as_echo "$PKG_CONFIG" >&6; }
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15350 if test -z "$ac_cv_path_PKG_CONFIG"; then
15351 ac_pt_PKG_CONFIG=$PKG_CONFIG
15352 # Extract the first word of "pkg-config", so it can be a program name with args.
15353 set dummy pkg-config; ac_word=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355 $as_echo_n "checking for $ac_word... " >&6; }
15356 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15357 $as_echo_n "(cached) " >&6
15359 case $ac_pt_PKG_CONFIG in
15361 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15382 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15383 if test -n "$ac_pt_PKG_CONFIG"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15385 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388 $as_echo "no" >&6; }
15391 if test "x$ac_pt_PKG_CONFIG" = x; then
15394 case $cross_compiling:$ac_tool_warned in
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15398 ac_tool_warned=yes ;;
15400 PKG_CONFIG=$ac_pt_PKG_CONFIG
15403 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15407 if test -n "$PKG_CONFIG"; then
15408 _pkg_min_version=0.9.0
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15410 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15411 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15413 $as_echo "yes" >&6; }
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 $as_echo "no" >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
15423 $as_echo_n "checking for GLIB2... " >&6; }
15425 if test -n "$GLIB2_CFLAGS"; then
15426 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
15427 elif test -n "$PKG_CONFIG"; then
15428 if test -n "$PKG_CONFIG" && \
15429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\""; } >&5
15430 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
15432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15433 test $ac_status = 0; }; then
15434 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4.0" 2>/dev/null`
15435 test "x$?" != "x0" && pkg_failed=yes
15442 if test -n "$GLIB2_LIBS"; then
15443 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
15444 elif test -n "$PKG_CONFIG"; then
15445 if test -n "$PKG_CONFIG" && \
15446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4.0\""; } >&5
15447 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4.0") 2>&5
15449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450 test $ac_status = 0; }; then
15451 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4.0" 2>/dev/null`
15452 test "x$?" != "x0" && pkg_failed=yes
15462 if test $pkg_failed = yes; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15467 _pkg_short_errors_supported=yes
15469 _pkg_short_errors_supported=no
15471 if test $_pkg_short_errors_supported = yes; then
15472 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.4.0" 2>&1`
15474 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.4.0" 2>&1`
15476 # Put the nasty error message in config.log where it belongs
15477 echo "$GLIB2_PKG_ERRORS" >&5
15479 as_fn_error $? "Package requirements (glib-2.0 >= 2.4.0) were not met:
15483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15484 installed software in a non-standard prefix.
15486 Alternatively, you may set the environment variables GLIB2_CFLAGS
15487 and GLIB2_LIBS to avoid the need to call pkg-config.
15488 See the pkg-config man page for more details." "$LINENO" 5
15489 elif test $pkg_failed = untried; then
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15495 is in your PATH or set the PKG_CONFIG environment variable to the full
15496 path to pkg-config.
15498 Alternatively, you may set the environment variables GLIB2_CFLAGS
15499 and GLIB2_LIBS to avoid the need to call pkg-config.
15500 See the pkg-config man page for more details.
15502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15503 See \`config.log' for more details" "$LINENO" 5; }
15505 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
15506 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15512 # Checks for header files.
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15514 $as_echo_n "checking for ANSI C header files... " >&6; }
15515 if ${ac_cv_header_stdc+:} false; then :
15516 $as_echo_n "(cached) " >&6
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520 #include <stdlib.h>
15521 #include <stdarg.h>
15522 #include <string.h>
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534 ac_cv_header_stdc=yes
15536 ac_cv_header_stdc=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 if test $ac_cv_header_stdc = yes; then
15541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 #include <string.h>
15547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15548 $EGREP "memchr" >/dev/null 2>&1; then :
15551 ac_cv_header_stdc=no
15557 if test $ac_cv_header_stdc = yes; then
15558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 #include <stdlib.h>
15564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15565 $EGREP "free" >/dev/null 2>&1; then :
15568 ac_cv_header_stdc=no
15574 if test $ac_cv_header_stdc = yes; then
15575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15576 if test "$cross_compiling" = yes; then :
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15582 #include <stdlib.h>
15583 #if ((' ' & 0x0FF) == 0x020)
15584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15587 # define ISLOWER(c) \
15588 (('a' <= (c) && (c) <= 'i') \
15589 || ('j' <= (c) && (c) <= 'r') \
15590 || ('s' <= (c) && (c) <= 'z'))
15591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15599 for (i = 0; i < 256; i++)
15600 if (XOR (islower (i), ISLOWER (i))
15601 || toupper (i) != TOUPPER (i))
15606 if ac_fn_c_try_run "$LINENO"; then :
15609 ac_cv_header_stdc=no
15611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15612 conftest.$ac_objext conftest.beam conftest.$ac_ext
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15618 $as_echo "$ac_cv_header_stdc" >&6; }
15619 if test $ac_cv_header_stdc = yes; then
15621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15625 for ac_header in locale.h stdlib.h string.h sys/time.h unistd.h
15627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15630 cat >>confdefs.h <<_ACEOF
15631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15639 # Checks for typedefs, structures, and compiler characteristics.
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15641 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15642 if ${ac_cv_header_stdbool_h+:} false; then :
15643 $as_echo_n "(cached) " >&6
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15648 #include <stdbool.h>
15650 "error: bool is not defined"
15653 "error: false is not defined"
15656 "error: false is not 0"
15659 "error: true is not defined"
15662 "error: true is not 1"
15664 #ifndef __bool_true_false_are_defined
15665 "error: __bool_true_false_are_defined is not defined"
15668 struct s { _Bool s: 1; _Bool t; } s;
15670 char a[true == 1 ? 1 : -1];
15671 char b[false == 0 ? 1 : -1];
15672 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15673 char d[(bool) 0.5 == true ? 1 : -1];
15674 /* See body of main program for 'e'. */
15675 char f[(_Bool) 0.0 == false ? 1 : -1];
15677 char h[sizeof (_Bool)];
15678 char i[sizeof s.t];
15679 enum { j = false, k = true, l = false * true, m = true * 256 };
15680 /* The following fails for
15681 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15683 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15684 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15685 /* Catch a bug in an HP-UX C compiler. See
15686 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15687 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15699 /* Refer to every declared value, to avoid compiler optimizations. */
15700 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15701 + !m + !n + !o + !p + !q + !pq);
15707 if ac_fn_c_try_compile "$LINENO"; then :
15708 ac_cv_header_stdbool_h=yes
15710 ac_cv_header_stdbool_h=no
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15715 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15716 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15717 if test "x$ac_cv_type__Bool" = xyes; then :
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE__BOOL 1
15727 if test $ac_cv_header_stdbool_h = yes; then
15729 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15734 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15735 if ${ac_cv_c_const+:} false; then :
15736 $as_echo_n "(cached) " >&6
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15745 #ifndef __cplusplus
15746 /* Ultrix mips cc rejects this sort of thing. */
15747 typedef int charset[2];
15748 const charset cs = { 0, 0 };
15749 /* SunOS 4.1.1 cc rejects this. */
15750 char const *const *pcpcc;
15752 /* NEC SVR4.0.2 mips cc rejects this. */
15753 struct point {int x, y;};
15754 static struct point const zero = {0,0};
15755 /* AIX XL C 1.02.0.0 rejects this.
15756 It does not let you subtract one const X* pointer from another in
15757 an arm of an if-expression whose if-part is not a constant
15759 const char *g = "string";
15760 pcpcc = &g + (g ? g-g : 0);
15761 /* HPUX 7.0 cc rejects these. */
15763 ppc = (char**) pcpcc;
15764 pcpcc = (char const *const *) ppc;
15765 { /* SCO 3.2v4 cc rejects this sort of thing. */
15768 char const *s = 0 ? (char *) 0 : (char const *) 0;
15773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15774 int x[] = {25, 17};
15775 const int *foo = &x[0];
15778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15779 typedef const int *iptr;
15783 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15784 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15785 struct s { int j; const int *ap[3]; } bx;
15786 struct s *b = &bx; b->j = 5;
15788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15789 const int foo = 10;
15790 if (!foo) return 0;
15792 return !cs[0] && !zero.x;
15799 if ac_fn_c_try_compile "$LINENO"; then :
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15807 $as_echo "$ac_cv_c_const" >&6; }
15808 if test $ac_cv_c_const = no; then
15810 $as_echo "#define const /**/" >>confdefs.h
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15815 $as_echo_n "checking for inline... " >&6; }
15816 if ${ac_cv_c_inline+:} false; then :
15817 $as_echo_n "(cached) " >&6
15820 for ac_kw in inline __inline__ __inline; do
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 #ifndef __cplusplus
15825 static $ac_kw foo_t static_foo () {return 0; }
15826 $ac_kw foo_t foo () {return 0; }
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 ac_cv_c_inline=$ac_kw
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 test "$ac_cv_c_inline" != no && break
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15839 $as_echo "$ac_cv_c_inline" >&6; }
15841 case $ac_cv_c_inline in
15844 case $ac_cv_c_inline in
15846 *) ac_val=$ac_cv_c_inline;;
15848 cat >>confdefs.h <<_ACEOF
15849 #ifndef __cplusplus
15850 #define inline $ac_val
15856 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15857 if test "x$ac_cv_type_size_t" = xyes; then :
15861 cat >>confdefs.h <<_ACEOF
15862 #define size_t unsigned int
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15868 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15869 if ${ac_cv_header_time+:} false; then :
15870 $as_echo_n "(cached) " >&6
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874 #include <sys/types.h>
15875 #include <sys/time.h>
15881 if ((struct tm *) 0)
15887 if ac_fn_c_try_compile "$LINENO"; then :
15888 ac_cv_header_time=yes
15890 ac_cv_header_time=no
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15895 $as_echo "$ac_cv_header_time" >&6; }
15896 if test $ac_cv_header_time = yes; then
15898 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15903 # Checks for library functions.
15904 for ac_header in stdlib.h
15906 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15907 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15908 cat >>confdefs.h <<_ACEOF
15909 #define HAVE_STDLIB_H 1
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15917 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15918 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15919 $as_echo_n "(cached) " >&6
15921 if test "$cross_compiling" = yes; then :
15922 ac_cv_func_malloc_0_nonnull=no
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15927 # include <stdlib.h>
15935 return ! malloc (0);
15940 if ac_fn_c_try_run "$LINENO"; then :
15941 ac_cv_func_malloc_0_nonnull=yes
15943 ac_cv_func_malloc_0_nonnull=no
15945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15946 conftest.$ac_objext conftest.beam conftest.$ac_ext
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15951 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15952 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15954 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15957 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15959 case " $LIBOBJS " in
15960 *" malloc.$ac_objext "* ) ;;
15961 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15966 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15972 $as_echo_n "checking for working memcmp... " >&6; }
15973 if ${ac_cv_func_memcmp_working+:} false; then :
15974 $as_echo_n "(cached) " >&6
15976 if test "$cross_compiling" = yes; then :
15977 ac_cv_func_memcmp_working=no
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 $ac_includes_default
15986 /* Some versions of memcmp are not 8-bit clean. */
15987 char c0 = '\100', c1 = '\200', c2 = '\201';
15988 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15991 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15992 or more and with at least one buffer not starting on a 4-byte boundary.
15993 William Lewis provided this test program. */
15998 for (i = 0; i < 4; i++)
16002 strcpy (a, "--------01111111");
16003 strcpy (b, "--------10000000");
16004 if (memcmp (a, b, 16) >= 0)
16014 if ac_fn_c_try_run "$LINENO"; then :
16015 ac_cv_func_memcmp_working=yes
16017 ac_cv_func_memcmp_working=no
16019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16020 conftest.$ac_objext conftest.beam conftest.$ac_ext
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16025 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16026 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16027 *" memcmp.$ac_objext "* ) ;;
16028 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16033 for ac_header in stdlib.h
16035 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16036 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define HAVE_STDLIB_H 1
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16046 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16047 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16048 $as_echo_n "(cached) " >&6
16050 if test "$cross_compiling" = yes; then :
16051 ac_cv_func_realloc_0_nonnull=no
16053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h. */
16055 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16056 # include <stdlib.h>
16064 return ! realloc (0, 0);
16069 if ac_fn_c_try_run "$LINENO"; then :
16070 ac_cv_func_realloc_0_nonnull=yes
16072 ac_cv_func_realloc_0_nonnull=no
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075 conftest.$ac_objext conftest.beam conftest.$ac_ext
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16080 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16081 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16083 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16086 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16088 case " $LIBOBJS " in
16089 *" realloc.$ac_objext "* ) ;;
16090 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16095 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16101 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16102 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16103 $as_echo_n "(cached) " >&6
16105 rm -f conftest.sym conftest.file
16106 echo >conftest.file
16107 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16108 if test "$cross_compiling" = yes; then :
16109 ac_cv_func_lstat_dereferences_slashed_symlink=no
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113 $ac_includes_default
16118 /* Linux will dereference the symlink and fail, as required by POSIX.
16119 That is better in the sense that it means we will not
16120 have to compile and use the lstat wrapper. */
16121 return lstat ("conftest.sym/", &sbuf) == 0;
16126 if ac_fn_c_try_run "$LINENO"; then :
16127 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16129 ac_cv_func_lstat_dereferences_slashed_symlink=no
16131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16132 conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 # If the `ln -s' command failed, then we probably don't even
16137 # have an lstat function.
16138 ac_cv_func_lstat_dereferences_slashed_symlink=no
16140 rm -f conftest.sym conftest.file
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16144 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16146 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16148 cat >>confdefs.h <<_ACEOF
16149 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16153 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16154 case " $LIBOBJS " in
16155 *" lstat.$ac_objext "* ) ;;
16156 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16163 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16164 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
16165 $as_echo_n "(cached) " >&6
16167 if test "$cross_compiling" = yes; then :
16168 ac_cv_func_stat_empty_string_bug=yes
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172 $ac_includes_default
16177 return stat ("", &sbuf) == 0;
16182 if ac_fn_c_try_run "$LINENO"; then :
16183 ac_cv_func_stat_empty_string_bug=no
16185 ac_cv_func_stat_empty_string_bug=yes
16187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16188 conftest.$ac_objext conftest.beam conftest.$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16193 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16194 if test $ac_cv_func_stat_empty_string_bug = yes; then
16195 case " $LIBOBJS " in
16196 *" stat.$ac_objext "* ) ;;
16197 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STAT_EMPTY_STRING_BUG 1
16211 for ac_header in $ac_header_list
16213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16232 for ac_func in getpagesize
16234 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16235 if test "x$ac_cv_func_getpagesize" = xyes; then :
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_GETPAGESIZE 1
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16244 $as_echo_n "checking for working mmap... " >&6; }
16245 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16246 $as_echo_n "(cached) " >&6
16248 if test "$cross_compiling" = yes; then :
16249 ac_cv_func_mmap_fixed_mapped=no
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 /* malloc might have been renamed as rpl_malloc. */
16257 /* Thanks to Mike Haertel and Jim Avera for this test.
16258 Here is a matrix of mmap possibilities:
16259 mmap private not fixed
16260 mmap private fixed at somewhere currently unmapped
16261 mmap private fixed at somewhere already mapped
16262 mmap shared not fixed
16263 mmap shared fixed at somewhere currently unmapped
16264 mmap shared fixed at somewhere already mapped
16265 For private mappings, we should verify that changes cannot be read()
16266 back from the file, nor mmap's back from the file at a different
16267 address. (There have been systems where private was not correctly
16268 implemented like the infamous i386 svr4.0, and systems where the
16269 VM page cache was not coherent with the file system buffer cache
16270 like early versions of FreeBSD and possibly contemporary NetBSD.)
16271 For shared mappings, we should conversely verify that changes get
16272 propagated back to all the places they're supposed to be.
16274 Grep wants private fixed already mapped.
16275 The main things grep needs to know about mmap are:
16276 * does it exist and is it safe to write into the mmap'd area
16277 * how to use it (BSD variants) */
16280 #include <sys/mman.h>
16282 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16286 /* This mess was copied from the GNU getpagesize.h. */
16287 #ifndef HAVE_GETPAGESIZE
16288 # ifdef _SC_PAGESIZE
16289 # define getpagesize() sysconf(_SC_PAGESIZE)
16290 # else /* no _SC_PAGESIZE */
16291 # ifdef HAVE_SYS_PARAM_H
16292 # include <sys/param.h>
16293 # ifdef EXEC_PAGESIZE
16294 # define getpagesize() EXEC_PAGESIZE
16295 # else /* no EXEC_PAGESIZE */
16297 # define getpagesize() NBPG * CLSIZE
16300 # endif /* no CLSIZE */
16301 # else /* no NBPG */
16303 # define getpagesize() NBPC
16304 # else /* no NBPC */
16306 # define getpagesize() PAGESIZE
16307 # endif /* PAGESIZE */
16308 # endif /* no NBPC */
16309 # endif /* no NBPG */
16310 # endif /* no EXEC_PAGESIZE */
16311 # else /* no HAVE_SYS_PARAM_H */
16312 # define getpagesize() 8192 /* punt totally */
16313 # endif /* no HAVE_SYS_PARAM_H */
16314 # endif /* no _SC_PAGESIZE */
16316 #endif /* no HAVE_GETPAGESIZE */
16321 char *data, *data2, *data3;
16322 const char *cdata2;
16326 pagesize = getpagesize ();
16328 /* First, make a file with some known garbage in it. */
16329 data = (char *) malloc (pagesize);
16332 for (i = 0; i < pagesize; ++i)
16333 *(data + i) = rand ();
16335 fd = creat ("conftest.mmap", 0600);
16338 if (write (fd, data, pagesize) != pagesize)
16342 /* Next, check that the tail of a page is zero-filled. File must have
16343 non-zero length, otherwise we risk SIGBUS for entire page. */
16344 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16348 if (write (fd2, cdata2, 1) != 1)
16350 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16351 if (data2 == MAP_FAILED)
16353 for (i = 0; i < pagesize; ++i)
16357 if (munmap (data2, pagesize))
16360 /* Next, try to mmap the file at a fixed address which already has
16361 something else allocated at it. If we can, also make sure that
16362 we see the same garbage. */
16363 fd = open ("conftest.mmap", O_RDWR);
16366 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16367 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16369 for (i = 0; i < pagesize; ++i)
16370 if (*(data + i) != *(data2 + i))
16373 /* Finally, make sure that changes to the mapped area do not
16374 percolate back to the file as seen by read(). (This is a bug on
16375 some variants of i386 svr4.0.) */
16376 for (i = 0; i < pagesize; ++i)
16377 *(data2 + i) = *(data2 + i) + 1;
16378 data3 = (char *) malloc (pagesize);
16381 if (read (fd, data3, pagesize) != pagesize)
16383 for (i = 0; i < pagesize; ++i)
16384 if (*(data + i) != *(data3 + i))
16390 if ac_fn_c_try_run "$LINENO"; then :
16391 ac_cv_func_mmap_fixed_mapped=yes
16393 ac_cv_func_mmap_fixed_mapped=no
16395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16396 conftest.$ac_objext conftest.beam conftest.$ac_ext
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16401 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16402 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16404 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16407 rm -f conftest.mmap conftest.txt
16409 for ac_func in gettimeofday memmove memset setlocale
16411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16414 cat >>confdefs.h <<_ACEOF
16415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16422 for ac_header in libintl.h string.h
16424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16427 cat >>confdefs.h <<_ACEOF
16428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16436 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16437 if test "x$ac_cv_header_db_h" = xyes; then :
16440 as_fn_error $? "Cannot find Berkeley DB library version 4" "$LINENO" 5
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
16446 $as_echo_n "checking for library containing db_create... " >&6; }
16447 if ${ac_cv_search_db_create+:} false; then :
16448 $as_echo_n "(cached) " >&6
16450 ac_func_search_save_LIBS=$LIBS
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16454 /* Override any GCC internal prototype to avoid an error.
16455 Use char because int might match the return type of a GCC
16456 builtin and then its argument prototype would still apply. */
16464 return db_create ();
16469 for ac_lib in '' db; do
16470 if test -z "$ac_lib"; then
16471 ac_res="none required"
16474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16476 if ac_fn_c_try_link "$LINENO"; then :
16477 ac_cv_search_db_create=$ac_res
16479 rm -f core conftest.err conftest.$ac_objext \
16481 if ${ac_cv_search_db_create+:} false; then :
16485 if ${ac_cv_search_db_create+:} false; then :
16488 ac_cv_search_db_create=no
16490 rm conftest.$ac_ext
16491 LIBS=$ac_func_search_save_LIBS
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
16494 $as_echo "$ac_cv_search_db_create" >&6; }
16495 ac_res=$ac_cv_search_db_create
16496 if test "$ac_res" != no; then :
16497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16500 as_fn_error $? "Cannot find Berkeley DB library version 4" "$LINENO" 5
16505 ac_config_files="$ac_config_files libpinyin.pc libpinyin.spec Makefile doc/Makefile data/Makefile src/Makefile src/include/Makefile src/storage/Makefile src/lookup/Makefile tests/Makefile tests/include/Makefile tests/storage/Makefile tests/lookup/Makefile utils/Makefile utils/storage/Makefile utils/segment/Makefile utils/training/Makefile"
16508 cat >confcache <<\_ACEOF
16509 # This file is a shell script that caches the results of configure
16510 # tests run on this system so they can be shared between configure
16511 # scripts and configure runs, see configure's option --config-cache.
16512 # It is not useful on other systems. If it contains results you don't
16513 # want to keep, you may remove or edit it.
16515 # config.status only pays attention to the cache file if you give it
16516 # the --recheck option to rerun configure.
16518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16520 # following values.
16524 # The following way of writing the cache mishandles newlines in values,
16525 # but we know of no workaround that is simple, portable, and efficient.
16526 # So, we kill variables containing newlines.
16527 # Ultrix sh set writes to stderr and can't be redirected directly,
16528 # and sets the high bit in the cache file unless we assign to the vars.
16530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16531 eval ac_val=\$$ac_var
16535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16539 _ | IFS | as_nl) ;; #(
16540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16541 *) { eval $ac_var=; unset $ac_var;} ;;
16547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16548 *${as_nl}ac_space=\ *)
16549 # `set' does not quote correctly, so add quotes: double-quote
16550 # substitution turns \\\\ into \\, and sed turns \\ into \.
16553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16556 # `set' quotes correctly as required by POSIX, so do not add quotes.
16557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16571 if test -w "$cache_file"; then
16572 if test "x$cache_file" != "x/dev/null"; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16574 $as_echo "$as_me: updating cache $cache_file" >&6;}
16575 if test ! -f "$cache_file" || test -h "$cache_file"; then
16576 cat confcache >"$cache_file"
16578 case $cache_file in #(
16580 mv -f confcache "$cache_file"$$ &&
16581 mv -f "$cache_file"$$ "$cache_file" ;; #(
16583 mv -f confcache "$cache_file" ;;
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16595 # Let make expand exec_prefix.
16596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16598 DEFS=-DHAVE_CONFIG_H
16603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16604 # 1. Remove the extension, and $U if already installed.
16605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16608 # will be set to the directory where LIBOBJS objects are built.
16609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16612 LIBOBJS=$ac_libobjs
16614 LTLIBOBJS=$ac_ltlibobjs
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16618 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16619 if test -n "$am_sleep_pid"; then
16620 # Hide warnings about reused PIDs.
16621 wait $am_sleep_pid 2>/dev/null
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16624 $as_echo "done" >&6; }
16625 if test -n "$EXEEXT"; then
16627 am__EXEEXT_FALSE='#'
16629 am__EXEEXT_TRUE='#'
16633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16634 as_fn_error $? "conditional \"AMDEP\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16637 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16638 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16642 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16646 : "${CONFIG_STATUS=./config.status}"
16648 ac_clean_files_save=$ac_clean_files
16649 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16651 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16653 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16655 # Generated by $as_me.
16656 # Run this file to recreate the current configuration.
16657 # Compiler output produced by configure, useful for debugging
16658 # configure, is in config.log if it exists.
16661 ac_cs_recheck=false
16664 SHELL=\${CONFIG_SHELL-$SHELL}
16667 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16668 ## -------------------- ##
16669 ## M4sh Initialization. ##
16670 ## -------------------- ##
16672 # Be more Bourne compatible
16673 DUALCASE=1; export DUALCASE # for MKS sh
16674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16678 # is contrary to our usage. Disable this feature.
16679 alias -g '${1+"$@"}'='"$@"'
16680 setopt NO_GLOB_SUBST
16682 case `(set -o) 2>/dev/null` in #(
16694 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16695 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16697 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16698 # Prefer a ksh shell builtin over an external printf program on Solaris,
16699 # but without wasting forks for bash or zsh.
16700 if test -z "$BASH_VERSION$ZSH_VERSION" \
16701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16702 as_echo='print -r --'
16703 as_echo_n='print -rn --'
16704 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16705 as_echo='printf %s\n'
16706 as_echo_n='printf %s'
16708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16709 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16710 as_echo_n='/usr/ucb/echo -n'
16712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16713 as_echo_n_body='eval
16717 expr "X$arg" : "X\\(.*\\)$as_nl";
16718 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16722 export as_echo_n_body
16723 as_echo_n='sh -c $as_echo_n_body as_echo'
16725 export as_echo_body
16726 as_echo='sh -c $as_echo_body as_echo'
16729 # The user is always right.
16730 if test "${PATH_SEPARATOR+set}" != set; then
16732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16733 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16740 # We need space, tab and new line, in precisely that order. Quoting is
16741 # there to prevent editors from complaining about space-tab.
16742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16743 # splitting by setting IFS to empty value.)
16746 # Find who we are. Look in the path if we contain no directory separator.
16749 *[\\/]* ) as_myself=$0 ;;
16750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16751 for as_dir in $PATH
16754 test -z "$as_dir" && as_dir=.
16755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16761 # We did not find ourselves, most probably we were run as `sh COMMAND'
16762 # in which case we are not to be found in the path.
16763 if test "x$as_myself" = x; then
16766 if test ! -f "$as_myself"; then
16767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16771 # Unset variables that we do not need and which cause bugs (e.g. in
16772 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16773 # suppresses any "Segmentation fault" message there. '((' could
16774 # trigger a bug in pdksh 5.2.14.
16775 for as_var in BASH_ENV ENV MAIL MAILPATH
16776 do eval test x\${$as_var+set} = xset \
16777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16793 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16794 # ----------------------------------------
16795 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16796 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16797 # script with STATUS, using 1 if that was 0.
16800 as_status=$1; test $as_status -eq 0 && as_status=1
16802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16805 $as_echo "$as_me: error: $2" >&2
16806 as_fn_exit $as_status
16810 # as_fn_set_status STATUS
16811 # -----------------------
16812 # Set $? to STATUS, without forking.
16813 as_fn_set_status ()
16816 } # as_fn_set_status
16818 # as_fn_exit STATUS
16819 # -----------------
16820 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16824 as_fn_set_status $1
16830 # Portably unset VAR.
16833 { eval $1=; unset $1;}
16835 as_unset=as_fn_unset
16836 # as_fn_append VAR VALUE
16837 # ----------------------
16838 # Append the text in VALUE to the end of the definition contained in VAR. Take
16839 # advantage of any shell optimizations that allow amortized linear growth over
16840 # repeated appends, instead of the typical quadratic growth present in naive
16842 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16843 eval 'as_fn_append ()
16854 # as_fn_arith ARG...
16855 # ------------------
16856 # Perform arithmetic evaluation on the ARGs, and store the result in the
16857 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16858 # must be portable across $(()) and expr.
16859 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16860 eval 'as_fn_arith ()
16867 as_val=`expr "$@" || test $? -eq 1`
16872 if expr a : '\(a\)' >/dev/null 2>&1 &&
16873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16880 as_basename=basename
16885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16891 as_me=`$as_basename -- "$0" ||
16892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16893 X"$0" : 'X\(//\)$' \| \
16894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16896 sed '/^.*\/\([^/][^/]*\)\/*$/{
16910 # Avoid depending upon Character Ranges.
16911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16914 as_cr_digits='0123456789'
16915 as_cr_alnum=$as_cr_Letters$as_cr_digits
16917 ECHO_C= ECHO_N= ECHO_T=
16918 case `echo -n x` in #(((((
16920 case `echo 'xy\c'` in
16921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16930 rm -f conf$$ conf$$.exe conf$$.file
16931 if test -d conf$$.dir; then
16932 rm -f conf$$.dir/conf$$.file
16935 mkdir conf$$.dir 2>/dev/null
16937 if (echo >conf$$.file) 2>/dev/null; then
16938 if ln -s conf$$.file conf$$ 2>/dev/null; then
16940 # ... but there are two gotchas:
16941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16943 # In both cases, we have to default to `cp -pR'.
16944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16946 elif ln conf$$.file conf$$ 2>/dev/null; then
16954 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16955 rmdir conf$$.dir 2>/dev/null
16960 # Create "$as_dir" as a directory, including parents if necessary.
16965 -*) as_dir=./$as_dir;;
16967 test -d "$as_dir" || eval $as_mkdir_p || {
16971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16972 *) as_qdir=$as_dir;;
16974 as_dirs="'$as_qdir' $as_dirs"
16975 as_dir=`$as_dirname -- "$as_dir" ||
16976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16977 X"$as_dir" : 'X\(//\)[^/]' \| \
16978 X"$as_dir" : 'X\(//\)$' \| \
16979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16980 $as_echo X"$as_dir" |
16981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16985 /^X\(\/\/\)[^/].*/{
16998 test -d "$as_dir" && break
17000 test -z "$as_dirs" || eval "mkdir $as_dirs"
17001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17005 if mkdir -p . 2>/dev/null; then
17006 as_mkdir_p='mkdir -p "$as_dir"'
17008 test -d ./-p && rmdir ./-p
17013 # as_fn_executable_p FILE
17014 # -----------------------
17015 # Test if FILE is an executable regular file.
17016 as_fn_executable_p ()
17018 test -f "$1" && test -x "$1"
17019 } # as_fn_executable_p
17020 as_test_x='test -x'
17021 as_executable_p=as_fn_executable_p
17023 # Sed expression to map a string onto a valid CPP name.
17024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17026 # Sed expression to map a string onto a valid variable name.
17027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17031 ## ----------------------------------- ##
17032 ## Main body of $CONFIG_STATUS script. ##
17033 ## ----------------------------------- ##
17035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 # Save the log message, to keep $0 and so on meaningful, and to
17039 # report actual input values of CONFIG_FILES etc. instead of their
17040 # values after options handling.
17042 This file was extended by libpinyin $as_me 1.0.0, which was
17043 generated by GNU Autoconf 2.69. Invocation command line was
17045 CONFIG_FILES = $CONFIG_FILES
17046 CONFIG_HEADERS = $CONFIG_HEADERS
17047 CONFIG_LINKS = $CONFIG_LINKS
17048 CONFIG_COMMANDS = $CONFIG_COMMANDS
17051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17056 case $ac_config_files in *"
17057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17060 case $ac_config_headers in *"
17061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17066 # Files that config.status was made for.
17067 config_files="$ac_config_files"
17068 config_headers="$ac_config_headers"
17069 config_commands="$ac_config_commands"
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17075 \`$as_me' instantiates files and other configuration actions
17076 from templates according to the current configuration. Unless the files
17077 and actions are specified as TAGs, all are instantiated by default.
17079 Usage: $0 [OPTION]... [TAG]...
17081 -h, --help print this help, then exit
17082 -V, --version print version number and configuration settings, then exit
17083 --config print configuration, then exit
17084 -q, --quiet, --silent
17085 do not print progress messages
17086 -d, --debug don't remove temporary files
17087 --recheck update $as_me by reconfiguring in the same conditions
17088 --file=FILE[:TEMPLATE]
17089 instantiate the configuration file FILE
17090 --header=FILE[:TEMPLATE]
17091 instantiate the configuration header FILE
17093 Configuration files:
17096 Configuration headers:
17099 Configuration commands:
17102 Report bugs to <https://github.com/libpinyin/libpinyin/issues/new>."
17105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17106 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17108 libpinyin config.status 1.0.0
17109 configured by $0, generated by GNU Autoconf 2.69,
17110 with options \\"\$ac_cs_config\\"
17112 Copyright (C) 2012 Free Software Foundation, Inc.
17113 This config.status script is free software; the Free Software Foundation
17114 gives unlimited permission to copy, distribute and modify it."
17121 test -n "\$AWK" || AWK=awk
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 # The default lists apply if the user does not specify any file.
17131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17148 # Handling of the options.
17149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17152 $as_echo "$ac_cs_version"; exit ;;
17153 --config | --confi | --conf | --con | --co | --c )
17154 $as_echo "$ac_cs_config"; exit ;;
17155 --debug | --debu | --deb | --de | --d | -d )
17157 --file | --fil | --fi | --f )
17160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17161 '') as_fn_error $? "missing file argument" ;;
17163 as_fn_append CONFIG_FILES " '$ac_optarg'"
17164 ac_need_defaults=false;;
17165 --header | --heade | --head | --hea )
17168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17170 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17171 ac_need_defaults=false;;
17173 # Conflict between --help and --header
17174 as_fn_error $? "ambiguous option: \`$1'
17175 Try \`$0 --help' for more information.";;
17176 --help | --hel | -h )
17177 $as_echo "$ac_cs_usage"; exit ;;
17178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17182 # This is an error.
17183 -*) as_fn_error $? "unrecognized option: \`$1'
17184 Try \`$0 --help' for more information." ;;
17186 *) as_fn_append ac_config_targets " $1"
17187 ac_need_defaults=false ;;
17193 ac_configure_extra_args=
17195 if $ac_cs_silent; then
17197 ac_configure_extra_args="$ac_configure_extra_args --silent"
17201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202 if \$ac_cs_recheck; then
17203 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17205 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17206 CONFIG_SHELL='$SHELL'
17207 export CONFIG_SHELL
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17217 ## Running $as_me. ##
17223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17227 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17230 # The HP-UX ksh and POSIX shell print the target directory to stdout
17231 # if CDPATH is set.
17232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17234 sed_quote_subst='$sed_quote_subst'
17235 double_quote_subst='$double_quote_subst'
17236 delay_variable_subst='$delay_variable_subst'
17237 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17238 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17239 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17240 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17241 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17242 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17243 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17244 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17245 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17246 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17247 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17248 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17249 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17250 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17251 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17252 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17253 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17254 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17255 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17256 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17257 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17258 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17259 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17260 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17261 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17262 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17263 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17264 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17265 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17266 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17267 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17268 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17269 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17270 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17271 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17272 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17273 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17274 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17275 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17276 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17277 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17278 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17279 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17280 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17281 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17282 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17283 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17284 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17285 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17286 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17287 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17288 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17289 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17290 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17291 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17293 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"`'
17294 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17295 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17296 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17297 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17298 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17299 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17300 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17301 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17302 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17303 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17304 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17305 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17306 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17307 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17308 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17309 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17310 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17311 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17312 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17313 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17314 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17315 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17316 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17317 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17318 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17319 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17320 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17321 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17322 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17323 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17324 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17325 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17326 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17327 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17328 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17329 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17330 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17331 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17332 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17333 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17334 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17335 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17336 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17337 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17338 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17339 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17340 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17341 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17342 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17343 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17344 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17345 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17346 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17347 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17348 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17349 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17350 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17351 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17352 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17353 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17354 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17355 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17356 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17357 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17358 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17359 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17360 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17361 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17362 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17363 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17364 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17365 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17366 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17367 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17368 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17369 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17370 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17371 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17372 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17373 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17374 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17375 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17376 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17377 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17378 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17379 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17380 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17381 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17382 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17383 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17384 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17385 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17386 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17387 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17388 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17389 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17390 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17391 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17392 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17393 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17394 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17395 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17396 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17397 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17398 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17399 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17400 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17401 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17402 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17403 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17404 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17405 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17406 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17407 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17408 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17409 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17410 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17411 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17412 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17413 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17414 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17415 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17416 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17417 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17418 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17419 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17420 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17423 LTCFLAGS='$LTCFLAGS'
17424 compiler='$compiler_DEFAULT'
17426 # A function that is used when there is no print builtin or printf.
17427 func_fallback_echo ()
17429 eval 'cat <<_LTECHO_EOF
17434 # Quote evaled strings.
17449 deplibs_check_method \
17454 sharedlib_from_linklib_cmd \
17457 archiver_list_spec \
17463 lt_cv_sys_global_symbol_pipe \
17464 lt_cv_sys_global_symbol_to_cdecl \
17465 lt_cv_sys_global_symbol_to_c_name_address \
17466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17467 nm_file_list_spec \
17468 lt_prog_compiler_no_builtin_flag \
17469 lt_prog_compiler_pic \
17470 lt_prog_compiler_wl \
17471 lt_prog_compiler_static \
17472 lt_cv_prog_compiler_c_o \
17481 export_dynamic_flag_spec \
17482 whole_archive_flag_spec \
17483 compiler_needs_object \
17485 allow_undefined_flag \
17486 no_undefined_flag \
17487 hardcode_libdir_flag_spec \
17488 hardcode_libdir_separator \
17492 variables_saved_for_relink \
17494 library_names_spec \
17496 install_override_mode \
17500 compiler_lib_search_dirs \
17505 compiler_lib_search_path \
17509 lt_prog_compiler_no_builtin_flag_CXX \
17510 lt_prog_compiler_pic_CXX \
17511 lt_prog_compiler_wl_CXX \
17512 lt_prog_compiler_static_CXX \
17513 lt_cv_prog_compiler_c_o_CXX \
17514 export_dynamic_flag_spec_CXX \
17515 whole_archive_flag_spec_CXX \
17516 compiler_needs_object_CXX \
17518 allow_undefined_flag_CXX \
17519 no_undefined_flag_CXX \
17520 hardcode_libdir_flag_spec_CXX \
17521 hardcode_libdir_separator_CXX \
17522 exclude_expsyms_CXX \
17523 include_expsyms_CXX \
17524 file_list_spec_CXX \
17525 compiler_lib_search_dirs_CXX \
17526 predep_objects_CXX \
17527 postdep_objects_CXX \
17530 compiler_lib_search_path_CXX; do
17531 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17532 *[\\\\\\\`\\"\\\$]*)
17533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17541 # Double-quote double-evaled strings.
17542 for var in reload_cmds \
17543 old_postinstall_cmds \
17544 old_postuninstall_cmds \
17546 extract_expsyms_cmds \
17547 old_archive_from_new_cmds \
17548 old_archive_from_expsyms_cmds \
17550 archive_expsym_cmds \
17552 module_expsym_cmds \
17553 export_symbols_cmds \
17557 postuninstall_cmds \
17559 sys_lib_search_path_spec \
17560 sys_lib_dlsearch_path_spec \
17562 old_archive_cmds_CXX \
17563 old_archive_from_new_cmds_CXX \
17564 old_archive_from_expsyms_cmds_CXX \
17566 archive_expsym_cmds_CXX \
17568 module_expsym_cmds_CXX \
17569 export_symbols_cmds_CXX \
17571 postlink_cmds_CXX; do
17572 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17573 *[\\\\\\\`\\"\\\$]*)
17574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17582 ac_aux_dir='$ac_aux_dir'
17583 xsi_shell='$xsi_shell'
17584 lt_shell_append='$lt_shell_append'
17586 # See if we are running on zsh, and set the options which allow our
17587 # commands through without removal of \ escapes INIT.
17588 if test -n "\${ZSH_VERSION+set}" ; then
17589 setopt NO_GLOB_SUBST
17595 TIMESTAMP='$TIMESTAMP'
17606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17608 # Handling of arguments.
17609 for ac_config_target in $ac_config_targets
17611 case $ac_config_target in
17612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17614 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17615 "libpinyin.pc") CONFIG_FILES="$CONFIG_FILES libpinyin.pc" ;;
17616 "libpinyin.spec") CONFIG_FILES="$CONFIG_FILES libpinyin.spec" ;;
17617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17618 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17619 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17620 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17621 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17622 "src/storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/storage/Makefile" ;;
17623 "src/lookup/Makefile") CONFIG_FILES="$CONFIG_FILES src/lookup/Makefile" ;;
17624 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17625 "tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/include/Makefile" ;;
17626 "tests/storage/Makefile") CONFIG_FILES="$CONFIG_FILES tests/storage/Makefile" ;;
17627 "tests/lookup/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lookup/Makefile" ;;
17628 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17629 "utils/storage/Makefile") CONFIG_FILES="$CONFIG_FILES utils/storage/Makefile" ;;
17630 "utils/segment/Makefile") CONFIG_FILES="$CONFIG_FILES utils/segment/Makefile" ;;
17631 "utils/training/Makefile") CONFIG_FILES="$CONFIG_FILES utils/training/Makefile" ;;
17633 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17638 # If the user did not use the arguments to specify the items to instantiate,
17639 # then the envvar interface is used. Set only those that are not.
17640 # We use the long form for the default assignment because of an extremely
17641 # bizarre bug on SunOS 4.1.3.
17642 if $ac_need_defaults; then
17643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17648 # Have a temporary directory for convenience. Make it in the build tree
17649 # simply because there is no reason against having it here, and in addition,
17650 # creating and moving files from /tmp can sometimes cause problems.
17651 # Hook for its removal unless debugging.
17652 # Note that there is a small window in which the directory will not be cleaned:
17653 # after its creation but before its name has been assigned to `$tmp'.
17657 trap 'exit_status=$?
17658 : "${ac_tmp:=$tmp}"
17659 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17661 trap 'as_fn_exit 1' 1 2 13 15
17663 # Create a (secure) tmp directory for tmp files.
17666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17670 tmp=./conf$$-$RANDOM
17671 (umask 077 && mkdir "$tmp")
17672 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17675 # Set up the scripts for CONFIG_FILES section.
17676 # No need to generate them if there are no CONFIG_FILES.
17677 # This happens for instance with `./config.status config.h'.
17678 if test -n "$CONFIG_FILES"; then
17681 ac_cr=`echo X | tr X '\015'`
17682 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17683 # But we know of no other shell where ac_cr would be empty at this
17684 # point, so we can use a bashism as a fallback.
17685 if test "x$ac_cr" = x; then
17686 eval ac_cr=\$\'\\r\'
17688 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17689 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17692 ac_cs_awk_cr=$ac_cr
17695 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17700 echo "cat >conf$$subs.awk <<_ACEOF" &&
17701 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17703 } >conf$$subs.sh ||
17704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17707 for ac_last_try in false false false false false :; do
17708 . ./conf$$subs.sh ||
17709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17711 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17712 if test $ac_delim_n = $ac_delim_num; then
17714 elif $ac_last_try; then
17715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17720 rm -f conf$$subs.sh
17722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17723 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17727 s/^/S["/; s/!.*/"]=/
17737 s/\(.\{148\}\)..*/\1/
17739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17751 s/\(.\{148\}\)..*/\1/
17753 s/["\\]/\\&/g; s/^/"/; s/$/"/
17757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17762 ' <conf$$subs.awk | sed '
17767 ' >>$CONFIG_STATUS || ac_write_fail=1
17768 rm -f conf$$subs.awk
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17771 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17772 for (key in S) S_is_set[key] = 1
17778 nfields = split(line, field, "@")
17780 len = length(field[1])
17781 for (i = 2; i < nfields; i++) {
17783 keylen = length(key)
17784 if (S_is_set[key]) {
17786 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17787 len += length(value) + length(field[++i])
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17800 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17803 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17804 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17807 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17808 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17809 # trailing colons and then remove the whole line if VPATH becomes empty
17810 # (actually we leave an empty line to preserve line numbers).
17811 if test "x$srcdir" = x.; then
17812 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831 fi # test -n "$CONFIG_FILES"
17833 # Set up the scripts for CONFIG_HEADERS section.
17834 # No need to generate them if there are no CONFIG_HEADERS.
17835 # This happens for instance with `./config.status Makefile'.
17836 if test -n "$CONFIG_HEADERS"; then
17837 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17841 # Transform confdefs.h into an awk script `defines.awk', embedded as
17842 # here-document in config.status, that substitutes the proper values into
17843 # config.h.in to produce config.h.
17845 # Create a delimiter string that does not exist in confdefs.h, to ease
17846 # handling of long lines.
17848 for ac_last_try in false false :; do
17849 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17850 if test -z "$ac_tt"; then
17852 elif $ac_last_try; then
17853 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17859 # For the awk script, D is an array of macro values keyed by name,
17860 # likewise P contains macro parameters if any. Preserve backslash
17861 # newline sequences.
17863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17865 s/.\{148\}/&'"$ac_delim"'/g
17868 s/^[ ]*#[ ]*define[ ][ ]*/ /
17875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17882 D["\1"]=" \3\\\\\\n"\\/p
17884 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17889 s/.\{148\}/&'"$ac_delim"'/g
17894 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17897 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17899 ' <confdefs.h | sed '
17900 s/'"$ac_delim"'/"\\\
17901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17904 for (key in D) D_is_set[key] = 1
17907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17909 split(line, arg, " ")
17910 if (arg[1] == "#") {
17914 defundef = substr(arg[1], 2)
17917 split(mac1, mac2, "(") #)
17919 prefix = substr(line, 1, index(line, defundef) - 1)
17920 if (D_is_set[macro]) {
17921 # Preserve the white space surrounding the "#".
17922 print prefix "define", macro P[macro] D[macro]
17925 # Replace #undef with comments. This is necessary, for example,
17926 # in the case of _POSIX_SOURCE, which is predefined and required
17927 # on some systems where configure will not decide to define it.
17928 if (defundef == "undef") {
17929 print "/*", prefix defundef, macro, "*/"
17937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17938 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17939 fi # test -n "$CONFIG_HEADERS"
17942 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17947 :[FHLC]) ac_mode=$ac_tag; continue;;
17949 case $ac_mode$ac_tag in
17951 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17952 :[FH]-) ac_tag=-:-;;
17953 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17970 -) ac_f="$ac_tmp/stdin";;
17971 *) # Look for the file first in the build tree, then in the source tree
17972 # (if the path is not absolute). The absolute path cannot be DOS-style,
17973 # because $ac_f cannot contain `:'.
17977 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17979 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17981 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17982 as_fn_append ac_file_inputs " '$ac_f'"
17985 # Let's still pretend it is `configure' which instantiates (i.e., don't
17986 # use $as_me), people would be surprised to read:
17987 # /* config.h. Generated by config.status. */
17988 configure_input='Generated from '`
17989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17991 if test x"$ac_file" != x-; then
17992 configure_input="$ac_file. $configure_input"
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17994 $as_echo "$as_me: creating $ac_file" >&6;}
17996 # Neutralize special characters interpreted by sed in replacement strings.
17997 case $configure_input in #(
17998 *\&* | *\|* | *\\* )
17999 ac_sed_conf_input=`$as_echo "$configure_input" |
18000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18001 *) ac_sed_conf_input=$configure_input;;
18005 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18011 ac_dir=`$as_dirname -- "$ac_file" ||
18012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18013 X"$ac_file" : 'X\(//\)[^/]' \| \
18014 X"$ac_file" : 'X\(//\)$' \| \
18015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18016 $as_echo X"$ac_file" |
18017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18021 /^X\(\/\/\)[^/].*/{
18034 as_dir="$ac_dir"; as_fn_mkdir_p
18038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18041 # A ".." for each directory in $ac_dir_suffix.
18042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18043 case $ac_top_builddir_sub in
18044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18048 ac_abs_top_builddir=$ac_pwd
18049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18050 # for backward compatibility:
18051 ac_top_builddir=$ac_top_build_prefix
18054 .) # We are building in place.
18056 ac_top_srcdir=$ac_top_builddir_sub
18057 ac_abs_top_srcdir=$ac_pwd ;;
18058 [\\/]* | ?:[\\/]* ) # Absolute name.
18059 ac_srcdir=$srcdir$ac_dir_suffix;
18060 ac_top_srcdir=$srcdir
18061 ac_abs_top_srcdir=$srcdir ;;
18062 *) # Relative name.
18063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18064 ac_top_srcdir=$ac_top_build_prefix$srcdir
18065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18077 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18078 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18080 ac_MKDIR_P=$MKDIR_P
18082 [\\/$]* | ?:[\\/]* ) ;;
18083 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088 # If the template does not know about datarootdir, expand it.
18089 # FIXME: This hack should be removed a few years after 2.60.
18090 ac_datarootdir_hack=; ac_datarootdir_seen=
18101 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18102 *datarootdir*) ac_datarootdir_seen=yes;;
18103 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18105 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18108 ac_datarootdir_hack='
18109 s&@datadir@&$datadir&g
18110 s&@docdir@&$docdir&g
18111 s&@infodir@&$infodir&g
18112 s&@localedir@&$localedir&g
18113 s&@mandir@&$mandir&g
18114 s&\\\${datarootdir}&$datarootdir&g' ;;
18118 # Neutralize VPATH when `$srcdir' = `.'.
18119 # Shell code in configure.ac might set extrasub.
18120 # FIXME: do we really want to maintain this feature?
18121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18122 ac_sed_extra="$ac_vpsub
18125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18128 s|@configure_input@|$ac_sed_conf_input|;t t
18129 s&@top_builddir@&$ac_top_builddir_sub&;t t
18130 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18131 s&@srcdir@&$ac_srcdir&;t t
18132 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18133 s&@top_srcdir@&$ac_top_srcdir&;t t
18134 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18135 s&@builddir@&$ac_builddir&;t t
18136 s&@abs_builddir@&$ac_abs_builddir&;t t
18137 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18138 s&@INSTALL@&$ac_INSTALL&;t t
18139 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18140 $ac_datarootdir_hack
18142 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18143 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18146 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18148 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18150 which seems to be undefined. Please make sure it is defined" >&5
18151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18152 which seems to be undefined. Please make sure it is defined" >&2;}
18154 rm -f "$ac_tmp/stdin"
18156 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18157 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18165 if test x"$ac_file" != x-; then
18167 $as_echo "/* $configure_input */" \
18168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18169 } >"$ac_tmp/config.h" \
18170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18171 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18176 mv "$ac_tmp/config.h" "$ac_file" \
18177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18180 $as_echo "/* $configure_input */" \
18181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18182 || as_fn_error $? "could not create -" "$LINENO" 5
18184 # Compute "$ac_file"'s index in $config_headers.
18187 for _am_header in $config_headers :; do
18188 case $_am_header in
18189 $_am_arg | $_am_arg:* )
18192 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18195 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18196 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18197 X"$_am_arg" : 'X\(//\)[^/]' \| \
18198 X"$_am_arg" : 'X\(//\)$' \| \
18199 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18200 $as_echo X"$_am_arg" |
18201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18205 /^X\(\/\/\)[^/].*/{
18217 s/.*/./; q'`/stamp-h$_am_stamp_count
18220 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18221 $as_echo "$as_me: executing $ac_file commands" >&6;}
18226 case $ac_file$ac_mode in
18227 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18228 # Older Autoconf quotes --file arguments for eval, but not when files
18229 # are listed without --file. Let's play safe and only enable the eval
18230 # if we detect the quoting.
18231 case $CONFIG_FILES in
18232 *\'*) eval set x "$CONFIG_FILES" ;;
18233 *) set x $CONFIG_FILES ;;
18238 # Strip MF so we end up with the name of the file.
18239 mf=`echo "$mf" | sed -e 's/:.*$//'`
18240 # Check whether this is an Automake generated Makefile or not.
18241 # We used to match only the files named 'Makefile.in', but
18242 # some people rename them; so instead we look at the file content.
18243 # Grep'ing the first line is not enough: some people post-process
18244 # each Makefile.in and add a new line on top of each file to say so.
18245 # Grep'ing the whole file is not good either: AIX grep has a line
18246 # limit of 2048, but all sed's we know have understand at least 4000.
18247 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18248 dirpart=`$as_dirname -- "$mf" ||
18249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18250 X"$mf" : 'X\(//\)[^/]' \| \
18251 X"$mf" : 'X\(//\)$' \| \
18252 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18258 /^X\(\/\/\)[^/].*/{
18274 # Extract the definition of DEPDIR, am__include, and am__quote
18275 # from the Makefile without running 'make'.
18276 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18277 test -z "$DEPDIR" && continue
18278 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18279 test -z "$am__include" && continue
18280 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18281 # Find all dependency output files, they are included files with
18282 # $(DEPDIR) in their names. We invoke sed twice because it is the
18283 # simplest approach to changing $(DEPDIR) to its actual value in the
18285 for file in `sed -n "
18286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18288 # Make sure the directory exists.
18289 test -f "$dirpart/$file" && continue
18290 fdir=`$as_dirname -- "$file" ||
18291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292 X"$file" : 'X\(//\)[^/]' \| \
18293 X"$file" : 'X\(//\)$' \| \
18294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18295 $as_echo X"$file" |
18296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18300 /^X\(\/\/\)[^/].*/{
18313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18314 # echo "creating $dirpart/$file"
18315 echo '# dummy' > "$dirpart/$file"
18322 # See if we are running on zsh, and set the options which allow our
18323 # commands through without removal of \ escapes.
18324 if test -n "${ZSH_VERSION+set}" ; then
18325 setopt NO_GLOB_SUBST
18328 cfgfile="${ofile}T"
18329 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18332 cat <<_LT_EOF >> "$cfgfile"
18335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18340 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18341 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18343 # Written by Gordon Matzigkeit, 1996
18345 # This file is part of GNU Libtool.
18347 # GNU Libtool is free software; you can redistribute it and/or
18348 # modify it under the terms of the GNU General Public License as
18349 # published by the Free Software Foundation; either version 2 of
18350 # the License, or (at your option) any later version.
18352 # As a special exception to the GNU General Public License,
18353 # if you distribute this file as part of a program or library that
18354 # is built using GNU Libtool, you may include this file under the
18355 # same distribution terms that you use for the rest of that program.
18357 # GNU Libtool is distributed in the hope that it will be useful,
18358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18360 # GNU General Public License for more details.
18362 # You should have received a copy of the GNU General Public License
18363 # along with GNU Libtool; see the file COPYING. If not, a copy
18364 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18365 # obtained by writing to the Free Software Foundation, Inc.,
18366 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18369 # The names of the tagged configurations supported by this script.
18370 available_tags="CXX "
18372 # ### BEGIN LIBTOOL CONFIG
18374 # Which release of libtool.m4 was used?
18375 macro_version=$macro_version
18376 macro_revision=$macro_revision
18378 # Whether or not to build shared libraries.
18379 build_libtool_libs=$enable_shared
18381 # Whether or not to build static libraries.
18382 build_old_libs=$enable_static
18384 # What type of objects to build.
18387 # Whether or not to optimize for fast installation.
18388 fast_install=$enable_fast_install
18390 # Shell to use when invoking shell scripts.
18393 # An echo program that protects backslashes.
18396 # The PATH separator for the build system.
18397 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18400 host_alias=$host_alias
18404 # The build system.
18405 build_alias=$build_alias
18409 # A sed program that does not truncate output.
18412 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18413 Xsed="\$SED -e 1s/^X//"
18415 # A grep program that handles long lines.
18421 # A literal string matcher.
18424 # A BSD- or MS-compatible name lister.
18427 # Whether we need soft or hard links.
18430 # What is the maximum length of a command?
18431 max_cmd_len=$max_cmd_len
18433 # Object file suffix (normally "o").
18436 # Executable file suffix (normally "").
18439 # whether the shell understands "unset".
18442 # turn spaces into newlines.
18445 # turn newlines into spaces.
18448 # convert \$build file names to \$host format.
18449 to_host_file_cmd=$lt_cv_to_host_file_cmd
18451 # convert \$build files to toolchain format.
18452 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18454 # An object symbol dumper.
18455 OBJDUMP=$lt_OBJDUMP
18457 # Method to check whether dependent libraries are shared objects.
18458 deplibs_check_method=$lt_deplibs_check_method
18460 # Command to use when deplibs_check_method = "file_magic".
18461 file_magic_cmd=$lt_file_magic_cmd
18463 # How to find potential files when deplibs_check_method = "file_magic".
18464 file_magic_glob=$lt_file_magic_glob
18466 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18467 want_nocaseglob=$lt_want_nocaseglob
18469 # DLL creation program.
18470 DLLTOOL=$lt_DLLTOOL
18472 # Command to associate shared and link libraries.
18473 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18478 # Flags to create an archive.
18479 AR_FLAGS=$lt_AR_FLAGS
18481 # How to feed a file listing to the archiver.
18482 archiver_list_spec=$lt_archiver_list_spec
18484 # A symbol stripping program.
18487 # Commands used to install an old-style archive.
18489 old_postinstall_cmds=$lt_old_postinstall_cmds
18490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18492 # Whether to use a lock for old archive extraction.
18493 lock_old_archive_extraction=$lock_old_archive_extraction
18498 # LTCC compiler flags.
18499 LTCFLAGS=$lt_CFLAGS
18501 # Take the output of nm and produce a listing of raw symbols and C names.
18502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18504 # Transform the output of nm in a proper C declaration.
18505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18507 # Transform the output of nm in a C name address pair.
18508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18510 # Transform the output of nm in a C name address pair when lib prefix is needed.
18511 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18513 # Specify filename containing input files for \$NM.
18514 nm_file_list_spec=$lt_nm_file_list_spec
18516 # The root where to search for dependent libraries,and in which our libraries should be installed.
18517 lt_sysroot=$lt_sysroot
18519 # The name of the directory that contains temporary libtool files.
18522 # Used to examine libraries when file_magic_cmd begins with "file".
18523 MAGIC_CMD=$MAGIC_CMD
18525 # Must we lock files when doing compilation?
18526 need_locks=$lt_need_locks
18529 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18531 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18532 DSYMUTIL=$lt_DSYMUTIL
18534 # Tool to change global to local symbols on Mac OS X.
18537 # Tool to manipulate fat objects and archives on Mac OS X.
18540 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18543 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18544 OTOOL64=$lt_OTOOL64
18546 # Old archive suffix (normally "a").
18549 # Shared library suffix (normally ".so").
18550 shrext_cmds=$lt_shrext_cmds
18552 # The commands to extract the exported symbol list from a shared archive.
18553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18555 # Variables whose values should be saved in libtool wrapper scripts and
18556 # restored at link time.
18557 variables_saved_for_relink=$lt_variables_saved_for_relink
18559 # Do we need the "lib" prefix for modules?
18560 need_lib_prefix=$need_lib_prefix
18562 # Do we need a version for libraries?
18563 need_version=$need_version
18565 # Library versioning type.
18566 version_type=$version_type
18568 # Shared library runtime path variable.
18569 runpath_var=$runpath_var
18571 # Shared library path variable.
18572 shlibpath_var=$shlibpath_var
18574 # Is shlibpath searched before the hard-coded library search path?
18575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18577 # Format of library name prefix.
18578 libname_spec=$lt_libname_spec
18580 # List of archive names. First name is the real one, the rest are links.
18581 # The last name is the one that the linker finds with -lNAME
18582 library_names_spec=$lt_library_names_spec
18584 # The coded name of the library, if different from the real name.
18585 soname_spec=$lt_soname_spec
18587 # Permission mode override for installation of shared libraries.
18588 install_override_mode=$lt_install_override_mode
18590 # Command to use after installation of a shared archive.
18591 postinstall_cmds=$lt_postinstall_cmds
18593 # Command to use after uninstallation of a shared archive.
18594 postuninstall_cmds=$lt_postuninstall_cmds
18596 # Commands used to finish a libtool library installation in a directory.
18597 finish_cmds=$lt_finish_cmds
18599 # As "finish_cmds", except a single script fragment to be evaled but
18601 finish_eval=$lt_finish_eval
18603 # Whether we should hardcode library paths into libraries.
18604 hardcode_into_libs=$hardcode_into_libs
18606 # Compile-time system search path for libraries.
18607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18609 # Run-time system search path for libraries.
18610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18612 # Whether dlopen is supported.
18613 dlopen_support=$enable_dlopen
18615 # Whether dlopen of programs is supported.
18616 dlopen_self=$enable_dlopen_self
18618 # Whether dlopen of statically linked programs is supported.
18619 dlopen_self_static=$enable_dlopen_self_static
18621 # Commands to strip libraries.
18622 old_striplib=$lt_old_striplib
18623 striplib=$lt_striplib
18626 # The linker used to build libraries.
18629 # How to create reloadable object files.
18630 reload_flag=$lt_reload_flag
18631 reload_cmds=$lt_reload_cmds
18633 # Commands used to build an old-style archive.
18634 old_archive_cmds=$lt_old_archive_cmds
18636 # A language specific compiler.
18639 # Is the compiler the GNU compiler?
18642 # Compiler flag to turn off builtin functions.
18643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18645 # Additional compiler flags for building library objects.
18646 pic_flag=$lt_lt_prog_compiler_pic
18648 # How to pass a linker flag through the compiler.
18649 wl=$lt_lt_prog_compiler_wl
18651 # Compiler flag to prevent dynamic linking.
18652 link_static_flag=$lt_lt_prog_compiler_static
18654 # Does compiler simultaneously support -c and -o options?
18655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18657 # Whether or not to add -lc for building shared libraries.
18658 build_libtool_need_lc=$archive_cmds_need_lc
18660 # Whether or not to disallow shared libs when runtime libs are static.
18661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18663 # Compiler flag to allow reflexive dlopens.
18664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18666 # Compiler flag to generate shared objects directly from archives.
18667 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18669 # Whether the compiler copes with passing no objects directly.
18670 compiler_needs_object=$lt_compiler_needs_object
18672 # Create an old-style archive from a shared archive.
18673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18675 # Create a temporary old-style archive to link instead of a shared archive.
18676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18678 # Commands used to build a shared archive.
18679 archive_cmds=$lt_archive_cmds
18680 archive_expsym_cmds=$lt_archive_expsym_cmds
18682 # Commands used to build a loadable module if different from building
18683 # a shared archive.
18684 module_cmds=$lt_module_cmds
18685 module_expsym_cmds=$lt_module_expsym_cmds
18687 # Whether we are building with GNU ld or not.
18688 with_gnu_ld=$lt_with_gnu_ld
18690 # Flag that allows shared libraries with undefined symbols to be built.
18691 allow_undefined_flag=$lt_allow_undefined_flag
18693 # Flag that enforces no undefined symbols.
18694 no_undefined_flag=$lt_no_undefined_flag
18696 # Flag to hardcode \$libdir into a binary during linking.
18697 # This must work even if \$libdir does not exist
18698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18700 # Whether we need a single "-rpath" flag with a separated argument.
18701 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18704 # DIR into the resulting binary.
18705 hardcode_direct=$hardcode_direct
18707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18708 # DIR into the resulting binary and the resulting library dependency is
18709 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18710 # library is relocated.
18711 hardcode_direct_absolute=$hardcode_direct_absolute
18713 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18714 # into the resulting binary.
18715 hardcode_minus_L=$hardcode_minus_L
18717 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18718 # into the resulting binary.
18719 hardcode_shlibpath_var=$hardcode_shlibpath_var
18721 # Set to "yes" if building a shared library automatically hardcodes DIR
18722 # into the library and all subsequent libraries and executables linked
18724 hardcode_automatic=$hardcode_automatic
18726 # Set to yes if linker adds runtime paths of dependent libraries
18727 # to runtime path list.
18728 inherit_rpath=$inherit_rpath
18730 # Whether libtool must link a program against all its dependency libraries.
18731 link_all_deplibs=$link_all_deplibs
18733 # Set to "yes" if exported symbols are required.
18734 always_export_symbols=$always_export_symbols
18736 # The commands to list exported symbols.
18737 export_symbols_cmds=$lt_export_symbols_cmds
18739 # Symbols that should not be listed in the preloaded symbols.
18740 exclude_expsyms=$lt_exclude_expsyms
18742 # Symbols that must always be exported.
18743 include_expsyms=$lt_include_expsyms
18745 # Commands necessary for linking programs (against libraries) with templates.
18746 prelink_cmds=$lt_prelink_cmds
18748 # Commands necessary for finishing linking programs.
18749 postlink_cmds=$lt_postlink_cmds
18751 # Specify filename containing input files.
18752 file_list_spec=$lt_file_list_spec
18754 # How to hardcode a shared library path into an executable.
18755 hardcode_action=$hardcode_action
18757 # The directories searched by this compiler when creating a shared library.
18758 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18760 # Dependencies to place before and after the objects being linked to
18761 # create a shared library.
18762 predep_objects=$lt_predep_objects
18763 postdep_objects=$lt_postdep_objects
18764 predeps=$lt_predeps
18765 postdeps=$lt_postdeps
18767 # The library search path used internally by the compiler when linking
18768 # a shared library.
18769 compiler_lib_search_path=$lt_compiler_lib_search_path
18771 # ### END LIBTOOL CONFIG
18777 cat <<\_LT_EOF >> "$cfgfile"
18778 # AIX sometimes has problems with the GCC collect2 program. For some
18779 # reason, if we set the COLLECT_NAMES environment variable, the problems
18780 # vanish in a puff of smoke.
18781 if test "X${COLLECT_NAMES+set}" != Xset; then
18783 export COLLECT_NAMES
18790 ltmain="$ac_aux_dir/ltmain.sh"
18793 # We use sed instead of cat because bash on DJGPP gets confused if
18794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18795 # text mode, it properly converts lines to CR/LF. This bash problem
18796 # is reportedly fixed, but why not run on old versions too?
18797 sed '$q' "$ltmain" >> "$cfgfile" \
18798 || (rm -f "$cfgfile"; exit 1)
18800 if test x"$xsi_shell" = xyes; then
18801 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18805 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18806 \ * ) func_dirname_result="${3}" ;;\
18808 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18809 && mv -f "$cfgfile.tmp" "$cfgfile" \
18810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18811 test 0 -eq $? || _lt_function_replace_fail=:
18814 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18817 \ func_basename_result="${1##*/}"\
18818 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18819 && mv -f "$cfgfile.tmp" "$cfgfile" \
18820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18821 test 0 -eq $? || _lt_function_replace_fail=:
18824 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18825 func_dirname_and_basename ()\
18828 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18829 \ * ) func_dirname_result="${3}" ;;\
18831 \ func_basename_result="${1##*/}"\
18832 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18833 && mv -f "$cfgfile.tmp" "$cfgfile" \
18834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18835 test 0 -eq $? || _lt_function_replace_fail=:
18838 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18841 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18842 \ # positional parameters, so assign one to ordinary parameter first.\
18843 \ func_stripname_result=${3}\
18844 \ func_stripname_result=${func_stripname_result#"${1}"}\
18845 \ func_stripname_result=${func_stripname_result%"${2}"}\
18846 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18847 && mv -f "$cfgfile.tmp" "$cfgfile" \
18848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18849 test 0 -eq $? || _lt_function_replace_fail=:
18852 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18853 func_split_long_opt ()\
18855 \ func_split_long_opt_name=${1%%=*}\
18856 \ func_split_long_opt_arg=${1#*=}\
18857 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18858 && mv -f "$cfgfile.tmp" "$cfgfile" \
18859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18863 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18864 func_split_short_opt ()\
18866 \ func_split_short_opt_arg=${1#??}\
18867 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18868 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18869 && mv -f "$cfgfile.tmp" "$cfgfile" \
18870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18871 test 0 -eq $? || _lt_function_replace_fail=:
18874 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18878 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18879 \ *) func_lo2o_result=${1} ;;\
18881 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18882 && mv -f "$cfgfile.tmp" "$cfgfile" \
18883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18884 test 0 -eq $? || _lt_function_replace_fail=:
18887 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18890 func_xform_result=${1%.*}.lo\
18891 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18892 && mv -f "$cfgfile.tmp" "$cfgfile" \
18893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18894 test 0 -eq $? || _lt_function_replace_fail=:
18897 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18900 func_arith_result=$(( $* ))\
18901 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18902 && mv -f "$cfgfile.tmp" "$cfgfile" \
18903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904 test 0 -eq $? || _lt_function_replace_fail=:
18907 sed -e '/^func_len ()$/,/^} # func_len /c\
18910 func_len_result=${#1}\
18911 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18912 && mv -f "$cfgfile.tmp" "$cfgfile" \
18913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18914 test 0 -eq $? || _lt_function_replace_fail=:
18918 if test x"$lt_shell_append" = xyes; then
18919 sed -e '/^func_append ()$/,/^} # func_append /c\
18922 eval "${1}+=\\${2}"\
18923 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18924 && mv -f "$cfgfile.tmp" "$cfgfile" \
18925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18926 test 0 -eq $? || _lt_function_replace_fail=:
18929 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18930 func_append_quoted ()\
18932 \ func_quote_for_eval "${2}"\
18933 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18934 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18935 && mv -f "$cfgfile.tmp" "$cfgfile" \
18936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937 test 0 -eq $? || _lt_function_replace_fail=:
18940 # Save a `func_append' function call where possible by direct use of '+='
18941 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18942 && mv -f "$cfgfile.tmp" "$cfgfile" \
18943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18944 test 0 -eq $? || _lt_function_replace_fail=:
18946 # Save a `func_append' function call even when '+=' is not available
18947 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18948 && mv -f "$cfgfile.tmp" "$cfgfile" \
18949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18950 test 0 -eq $? || _lt_function_replace_fail=:
18953 if test x"$_lt_function_replace_fail" = x":"; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18955 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18959 mv -f "$cfgfile" "$ofile" ||
18960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18964 cat <<_LT_EOF >> "$ofile"
18966 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18968 # The linker used to build libraries.
18971 # How to create reloadable object files.
18972 reload_flag=$lt_reload_flag_CXX
18973 reload_cmds=$lt_reload_cmds_CXX
18975 # Commands used to build an old-style archive.
18976 old_archive_cmds=$lt_old_archive_cmds_CXX
18978 # A language specific compiler.
18979 CC=$lt_compiler_CXX
18981 # Is the compiler the GNU compiler?
18984 # Compiler flag to turn off builtin functions.
18985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18987 # Additional compiler flags for building library objects.
18988 pic_flag=$lt_lt_prog_compiler_pic_CXX
18990 # How to pass a linker flag through the compiler.
18991 wl=$lt_lt_prog_compiler_wl_CXX
18993 # Compiler flag to prevent dynamic linking.
18994 link_static_flag=$lt_lt_prog_compiler_static_CXX
18996 # Does compiler simultaneously support -c and -o options?
18997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18999 # Whether or not to add -lc for building shared libraries.
19000 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19002 # Whether or not to disallow shared libs when runtime libs are static.
19003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19005 # Compiler flag to allow reflexive dlopens.
19006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19008 # Compiler flag to generate shared objects directly from archives.
19009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19011 # Whether the compiler copes with passing no objects directly.
19012 compiler_needs_object=$lt_compiler_needs_object_CXX
19014 # Create an old-style archive from a shared archive.
19015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19017 # Create a temporary old-style archive to link instead of a shared archive.
19018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19020 # Commands used to build a shared archive.
19021 archive_cmds=$lt_archive_cmds_CXX
19022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19024 # Commands used to build a loadable module if different from building
19025 # a shared archive.
19026 module_cmds=$lt_module_cmds_CXX
19027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19029 # Whether we are building with GNU ld or not.
19030 with_gnu_ld=$lt_with_gnu_ld_CXX
19032 # Flag that allows shared libraries with undefined symbols to be built.
19033 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19035 # Flag that enforces no undefined symbols.
19036 no_undefined_flag=$lt_no_undefined_flag_CXX
19038 # Flag to hardcode \$libdir into a binary during linking.
19039 # This must work even if \$libdir does not exist
19040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19042 # Whether we need a single "-rpath" flag with a separated argument.
19043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19045 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19046 # DIR into the resulting binary.
19047 hardcode_direct=$hardcode_direct_CXX
19049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19050 # DIR into the resulting binary and the resulting library dependency is
19051 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19052 # library is relocated.
19053 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19055 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19056 # into the resulting binary.
19057 hardcode_minus_L=$hardcode_minus_L_CXX
19059 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19060 # into the resulting binary.
19061 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19063 # Set to "yes" if building a shared library automatically hardcodes DIR
19064 # into the library and all subsequent libraries and executables linked
19066 hardcode_automatic=$hardcode_automatic_CXX
19068 # Set to yes if linker adds runtime paths of dependent libraries
19069 # to runtime path list.
19070 inherit_rpath=$inherit_rpath_CXX
19072 # Whether libtool must link a program against all its dependency libraries.
19073 link_all_deplibs=$link_all_deplibs_CXX
19075 # Set to "yes" if exported symbols are required.
19076 always_export_symbols=$always_export_symbols_CXX
19078 # The commands to list exported symbols.
19079 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19081 # Symbols that should not be listed in the preloaded symbols.
19082 exclude_expsyms=$lt_exclude_expsyms_CXX
19084 # Symbols that must always be exported.
19085 include_expsyms=$lt_include_expsyms_CXX
19087 # Commands necessary for linking programs (against libraries) with templates.
19088 prelink_cmds=$lt_prelink_cmds_CXX
19090 # Commands necessary for finishing linking programs.
19091 postlink_cmds=$lt_postlink_cmds_CXX
19093 # Specify filename containing input files.
19094 file_list_spec=$lt_file_list_spec_CXX
19096 # How to hardcode a shared library path into an executable.
19097 hardcode_action=$hardcode_action_CXX
19099 # The directories searched by this compiler when creating a shared library.
19100 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19102 # Dependencies to place before and after the objects being linked to
19103 # create a shared library.
19104 predep_objects=$lt_predep_objects_CXX
19105 postdep_objects=$lt_postdep_objects_CXX
19106 predeps=$lt_predeps_CXX
19107 postdeps=$lt_postdeps_CXX
19109 # The library search path used internally by the compiler when linking
19110 # a shared library.
19111 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19113 # ### END LIBTOOL TAG CONFIG: CXX
19124 ac_clean_files=$ac_clean_files_save
19126 test $ac_write_fail = 0 ||
19127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19130 # configure is writing to config.log, and then calls config.status.
19131 # config.status does its own redirection, appending to config.log.
19132 # Unfortunately, on DOS this fails, as config.log is still kept open
19133 # by configure, so config.status won't be able to write to it; its
19134 # output is simply discarded. So we exec the FD to /dev/null,
19135 # effectively closing config.log, so it can be properly (re)opened and
19136 # appended to by config.status. When coming back to configure, we
19137 # need to make the FD available again.
19138 if test "$no_create" != yes; then
19140 ac_config_status_args=
19141 test "$silent" = yes &&
19142 ac_config_status_args="$ac_config_status_args --quiet"
19144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19147 # would make configure fail if this is the last instruction.
19148 $ac_cs_success || as_fn_exit 1
19150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19152 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19159 Install prefix $prefix
19164 Install prefix $prefix