2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="src/mecab.cpp"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='am__EXEEXT_FALSE
689 INSTALL_STRIP_PROGRAM
731 program_transform_name
744 enable_option_checking
745 enable_dependency_tracking
758 ac_precious_vars='build_alias
773 # Initialize some variables set by options.
775 ac_init_version=false
776 ac_unrecognized_opts=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name=s,x,x,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 if test -n "$ac_init_help"; then
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --disable-rpath do not hardcode runtime library paths
1397 --enable-utf8-only use utf8 only default no
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1404 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1405 --with-sysroot=DIR Search for dependent libraries within DIR
1406 (or the compiler's sysroot if not specified).
1407 --with-gnu-ld assume the C compiler uses GNU ld default=no
1408 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1409 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1410 --with-charset=charset set default charset (euc/sjis/utf8))
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1423 CXXCPP C++ preprocessor
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1428 Report bugs to the package provider.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1458 .) # We are building in place.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1492 generated by GNU Autoconf 2.68
1494 Copyright (C) 2010 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1579 } # ac_fn_cxx_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 $as_test_x conftest$ac_exeext
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_link
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1681 if ac_fn_c_try_compile "$LINENO"; then :
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 } # ac_fn_c_check_header_compile
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=$ac_status
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1760 # include <limits.h>
1762 # include <assert.h>
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1789 if ac_fn_c_try_link "$LINENO"; then :
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 } # ac_fn_c_check_func
1804 # ac_fn_cxx_try_cpp LINENO
1805 # ------------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_cpp ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_cxx_try_cpp
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 $as_test_x conftest$ac_exeext
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_cxx_try_link
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if eval \${$3+:} false; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1916 ac_header_compiler=no
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1932 ac_header_preproc=no
1934 rm -f conftest.err conftest.i conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975 # -------------------------------------------
1976 # Tests whether TYPE exists after having included INCLUDES, setting cache
1977 # variable VAR accordingly.
1978 ac_fn_c_check_type ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2012 if ac_fn_c_try_compile "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_type
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2033 ac_fn_c_compute_int ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid; break
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) < 0)];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_lo=$ac_mid; break
2112 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2113 if test $ac_mid -le $ac_hi; then
2117 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 # Binary search between lo and hi bounds.
2128 while test "x$ac_lo" != "x$ac_hi"; do
2129 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 if ac_fn_c_try_compile "$LINENO"; then :
2146 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2158 static long int longval () { return $2; }
2159 static unsigned long int ulongval () { return $2; }
2166 FILE *f = fopen ("conftest.val", "w");
2171 long int i = longval ();
2174 fprintf (f, "%ld", i);
2178 unsigned long int i = ulongval ();
2181 fprintf (f, "%lu", i);
2183 /* Do not output a trailing newline, as this causes \r\n confusion
2184 on some platforms. */
2185 return ferror (f) || fclose (f) != 0;
2191 if ac_fn_c_try_run "$LINENO"; then :
2192 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_c_compute_int
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2209 It was created by $as_me, which was
2210 generated by GNU Autoconf 2.68. Invocation command line was
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2231 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2232 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2235 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2236 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2237 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 $as_echo "PATH: $as_dir"
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_must_keep_next=false
2276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278 | -silent | --silent | --silen | --sile | --sil)
2281 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286 as_fn_append ac_configure_args1 " '$ac_arg'"
2287 if test $ac_must_keep_next = true; then
2288 ac_must_keep_next=false # Got value, back to normal.
2291 *=* | --config-cache | -C | -disable-* | --disable-* \
2292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294 | -with-* | --with-* | -without-* | --without-* | --x)
2295 case "$ac_configure_args0 " in
2296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2299 -* ) ac_must_keep_next=true ;;
2302 as_fn_append ac_configure_args " '$ac_arg'"
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log. We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316 # Save into config.log some information that might help in debugging.
2320 $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2324 # The following way of writing the cache mishandles newlines in values,
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2356 $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2360 for ac_var in $ac_subst_vars
2362 eval ac_val=\$$ac_var
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -n "$ac_subst_files"; then
2371 $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2375 for ac_var in $ac_subst_files
2377 eval ac_val=\$$ac_var
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 $as_echo "$ac_var='\''$ac_val'\''"
2386 if test -s confdefs.h; then
2387 $as_echo "## ----------- ##
2394 test "$ac_signal" != 0 &&
2395 $as_echo "$as_me: caught signal $ac_signal"
2396 $as_echo "$as_me: exit $exit_status"
2398 rm -f core *.core core.conftest.* &&
2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402 for ac_signal in 1 2 13 15; do
2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2410 $as_echo "/* confdefs.h */" > confdefs.h
2412 # Predefined preprocessor variables.
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2443 if test -n "$CONFIG_SITE"; then
2444 # We do not want a PATH search for config.site.
2445 case $CONFIG_SITE in #((
2446 -*) ac_site_file1=./$CONFIG_SITE;;
2447 */*) ac_site_file1=$CONFIG_SITE;;
2448 *) ac_site_file1=./$CONFIG_SITE;;
2450 elif test "x$prefix" != xNONE; then
2451 ac_site_file1=$prefix/share/config.site
2452 ac_site_file2=$prefix/etc/config.site
2454 ac_site_file1=$ac_default_prefix/share/config.site
2455 ac_site_file2=$ac_default_prefix/etc/config.site
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 test "x$ac_site_file" = xNONE && continue
2460 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463 sed 's/^/| /' "$ac_site_file" >&5
2465 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2472 if test -r "$cache_file"; then
2473 # Some versions of bash will fail to source /dev/null (special files
2474 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2475 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2479 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480 *) . "./$cache_file";;
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2489 as_fn_append ac_header_list " stdlib.h"
2490 as_fn_append ac_header_list " unistd.h"
2491 as_fn_append ac_header_list " sys/param.h"
2492 # Check that the precious variables saved in the cache have kept the same
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x $ac_old_val`
2514 ac_new_val_w=`echo x $ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518 ac_cache_corrupted=:
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 am__api_version='1.11'
2566 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2567 if test -f "$ac_dir/install-sh"; then
2569 ac_install_sh="$ac_aux_dir/install-sh -c"
2571 elif test -f "$ac_dir/install.sh"; then
2573 ac_install_sh="$ac_aux_dir/install.sh -c"
2575 elif test -f "$ac_dir/shtool"; then
2577 ac_install_sh="$ac_aux_dir/shtool install -c"
2581 if test -z "$ac_aux_dir"; then
2582 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2585 # These three variables are undocumented and unsupported,
2586 # and are intended to be withdrawn in a future Autoconf release.
2587 # They can cause serious problems if a builder's source tree is in a directory
2588 # whose full name contains unusual characters.
2589 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2590 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2591 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2594 # Find a good install program. We prefer a C program (faster),
2595 # so one script is as good as another. But avoid the broken or
2596 # incompatible versions:
2597 # SysV /etc/install, /usr/sbin/install
2598 # SunOS /usr/etc/install
2599 # IRIX /sbin/install
2601 # AmigaOS /C/install, which installs bootblocks on floppy discs
2602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605 # OS/2's system install, which has a completely different semantic
2606 # ./install, which can be erroneously created by make from ./install.sh.
2607 # Reject install programs that cannot install multiple files.
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2609 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2610 if test -z "$INSTALL"; then
2611 if ${ac_cv_path_install+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 # Account for people who put trailing slashes in PATH elements.
2620 case $as_dir/ in #((
2621 ./ | .// | /[cC]/* | \
2622 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2623 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2626 # OSF1 and SCO ODT 3.0 have their own names for install.
2627 # Don't use installbsd from OSF since it installs stuff as root
2629 for ac_prog in ginstall scoinst install; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2632 if test $ac_prog = install &&
2633 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # AIX install. It has an incompatible calling convention.
2636 elif test $ac_prog = install &&
2637 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638 # program-specific install script used by HP pwplus--don't use.
2641 rm -rf conftest.one conftest.two conftest.dir
2642 echo one > conftest.one
2643 echo two > conftest.two
2645 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2646 test -s conftest.one && test -s conftest.two &&
2647 test -s conftest.dir/conftest.one &&
2648 test -s conftest.dir/conftest.two
2650 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2663 rm -rf conftest.one conftest.two conftest.dir
2666 if test "${ac_cv_path_install+set}" = set; then
2667 INSTALL=$ac_cv_path_install
2669 # As a last resort, use the slow shell script. Don't cache a
2670 # value for INSTALL within a source directory, because that will
2671 # break other packages using the cache if that directory is
2672 # removed, or if the value is a relative name.
2673 INSTALL=$ac_install_sh
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2677 $as_echo "$INSTALL" >&6; }
2679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2680 # It thinks the first close brace ends the variable substitution.
2681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2688 $as_echo_n "checking whether build environment is sane... " >&6; }
2691 echo timestamp > conftest.file
2692 # Reject unsafe characters in $srcdir or the absolute working directory
2693 # name. Accept space and tab only in the latter.
2697 *[\\\"\#\$\&\'\`$am_lf]*)
2698 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2701 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2702 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2705 # Do `set' in a subshell so we don't clobber the current shell's
2706 # arguments. Must try -L first in case configure is actually a
2707 # symlink; some systems play weird games with the mod time of symlinks
2708 # (eg FreeBSD returns the mod time of the symlink's containing
2711 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2712 if test "$*" = "X"; then
2714 set X `ls -t "$srcdir/configure" conftest.file`
2717 if test "$*" != "X $srcdir/configure conftest.file" \
2718 && test "$*" != "X conftest.file $srcdir/configure"; then
2720 # If neither matched, then we have a broken ls. This can happen
2721 # if, for instance, CONFIG_SHELL is bash and it inherits a
2722 # broken ls alias from the environment. This has actually
2723 # happened. Such a system could not be considered "sane".
2724 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2725 alias in your environment" "$LINENO" 5
2728 test "$2" = conftest.file
2734 as_fn_error $? "newly created file is older than distributed files!
2735 Check your system clock" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2739 test "$program_prefix" != NONE &&
2740 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2741 # Use a double $ so make ignores it.
2742 test "$program_suffix" != NONE &&
2743 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2744 # Double any \ or $.
2745 # By default was `s,x,x', remove it if useless.
2746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2749 # expand $ac_aux_dir to an absolute path
2750 am_aux_dir=`cd $ac_aux_dir && pwd`
2752 if test x"${MISSING+set}" != xset; then
2755 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2757 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2760 # Use eval to expand $SHELL
2761 if eval "$MISSING --run true"; then
2762 am_missing_run="$MISSING --run "
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2766 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2769 if test x"${install_sh}" != xset; then
2772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2774 install_sh="\${SHELL} $am_aux_dir/install-sh"
2778 # Installed binaries are usually stripped using `strip' when the user
2779 # run `make install-strip'. However `strip' might not be the right
2780 # tool to use in cross-compilation environments, therefore Automake
2781 # will honor the `STRIP' environment variable to overrule this program.
2782 if test "$cross_compiling" != no; then
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}strip; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_STRIP+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$STRIP"; then
2792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 STRIP=$ac_cv_prog_STRIP
2812 if test -n "$STRIP"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814 $as_echo "$STRIP" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2822 if test -z "$ac_cv_prog_STRIP"; then
2824 # Extract the first word of "strip", so it can be a program name with args.
2825 set dummy strip; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$ac_ct_STRIP"; then
2832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_STRIP="strip"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2852 if test -n "$ac_ct_STRIP"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2854 $as_echo "$ac_ct_STRIP" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2860 if test "x$ac_ct_STRIP" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2872 STRIP="$ac_cv_prog_STRIP"
2876 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2879 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2880 if test -z "$MKDIR_P"; then
2881 if ${ac_cv_path_mkdir+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2888 test -z "$as_dir" && as_dir=.
2889 for ac_prog in mkdir gmkdir; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2892 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2893 'mkdir (GNU coreutils) '* | \
2894 'mkdir (coreutils) '* | \
2895 'mkdir (fileutils) '4.1*)
2896 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906 test -d ./--version && rmdir ./--version
2907 if test "${ac_cv_path_mkdir+set}" = set; then
2908 MKDIR_P="$ac_cv_path_mkdir -p"
2910 # As a last resort, use the slow shell script. Don't cache a
2911 # value for MKDIR_P within a source directory, because that will
2912 # break other packages using the cache if that directory is
2913 # removed, or if the value is a relative name.
2914 MKDIR_P="$ac_install_sh -d"
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2918 $as_echo "$MKDIR_P" >&6; }
2922 [\\/$]* | ?:[\\/]*) ;;
2923 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2926 for ac_prog in gawk mawk nawk awk
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_AWK+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$AWK"; then
2936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_AWK="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$AWK"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958 $as_echo "$AWK" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$AWK" && break
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 cat >conftest.make <<\_ACEOF
2978 @echo '@@@%%%=$(MAKE)=@@@%%%'
2980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2983 eval ac_cv_prog_make_${ac_make}_set=yes;;
2985 eval ac_cv_prog_make_${ac_make}_set=no;;
2989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 SET_MAKE="MAKE=${MAKE-make}"
2999 rm -rf .tst 2>/dev/null
3000 mkdir .tst 2>/dev/null
3001 if test -d .tst; then
3006 rmdir .tst 2>/dev/null
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
3014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3028 # Define the identity of the package.
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3042 # Some tools Automake needs.
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 # We need awk for the "check" target. The system "awk" is bad on
3060 # Always define AMTAR for backward compatibility. Yes, it's still used
3061 # in the wild :-( We should find a proper way to deprecate it ...
3064 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3075 # Before making a release, the LTVERSION string should be modified.
3076 # The string is of the form C:R:A.
3077 # - If interfaces have been changed or added, but binary compatibility has
3078 # been preserved, change to C+1:0:A+1
3079 # - If binary compatibility has been broken (eg removed or changed interfaces)
3081 # - If the interface is the same as the previous version, change to C:R+1:A
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3129 if test -z "$ac_cv_prog_CC"; then
3131 # Extract the first word of "gcc", so it can be a program name with args.
3132 set dummy gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_ac_ct_CC="gcc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3167 if test "x$ac_ct_CC" = x; then
3170 case $cross_compiling:$ac_tool_warned in
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3182 if test -z "$CC"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}cc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_CC="${ac_tool_prefix}cc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3223 if test -z "$CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243 ac_prog_rejected=yes
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test $ac_prog_rejected = yes; then
3255 # We found a bogon in the path, so make sure we never use it.
3256 set dummy $ac_cv_prog_CC
3258 if test $# != 0; then
3259 # We chose a different compiler from the bogus one.
3260 # However, it has the same basename, so the bogon will be chosen
3261 # first if we set CC to just the basename; use the full file name.
3263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 for ac_prog in cl.exe
3283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3320 test -n "$CC" && break
3323 if test -z "$CC"; then
3325 for ac_prog in cl.exe
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_ac_ct_CC="$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355 if test -n "$ac_ct_CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357 $as_echo "$ac_ct_CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3364 test -n "$ac_ct_CC" && break
3367 if test "x$ac_ct_CC" = x; then
3370 case $cross_compiling:$ac_tool_warned in
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned=yes ;;
3383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details" "$LINENO" 5; }
3388 # Provide some information about the compiler.
3389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 for ac_option in --version -v -V -qversion; do
3393 { { ac_try="$ac_compiler $ac_option >&5"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3402 if test -s conftest.err; then
3404 ... rest of stderr output deleted ...
3405 10q' conftest.err >conftest.er1
3406 cat conftest.er1 >&5
3408 rm -f conftest.er1 conftest.err
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3424 ac_clean_files_save=$ac_clean_files
3425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3426 # Try to create an executable without -o first, disregard a.out.
3427 # It will help us diagnose broken compilers, and finding out an intuition
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3430 $as_echo_n "checking whether the C compiler works... " >&6; }
3431 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3433 # The possible output files:
3434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437 for ac_file in $ac_files
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3446 if { { ac_try="$ac_link_default"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link_default") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3459 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3460 # so that the user can short-circuit this test for compilers unknown to
3462 for ac_file in $ac_files ''
3464 test -f "$ac_file" || continue
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469 # We found the default executable, but exeext='' is most
3473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3477 # We set ac_cv_exeext here because the later test for it is not
3478 # safe: cross compilers may not add the suffix if given an `-o'
3479 # argument, so we may need to know it at that point already.
3480 # Even if this section looks crufty: it has the advantage of
3487 test "$ac_cv_exeext" = no && ac_cv_exeext=
3492 if test -z "$ac_file"; then :
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error 77 "C compiler cannot create executables
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3509 $as_echo "$ac_file" >&6; }
3510 ac_exeext=$ac_cv_exeext
3512 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3513 ac_clean_files=$ac_clean_files_save
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { { ac_try="$ac_link"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3531 for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details" "$LINENO" 5; }
3546 rm -f conftest conftest$ac_cv_exeext
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3548 $as_echo "$ac_cv_exeext" >&6; }
3550 rm -f conftest.$ac_ext
3551 EXEEXT=$ac_cv_exeext
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3559 FILE *f = fopen ("conftest.out", "w");
3560 return ferror (f) || fclose (f) != 0;
3566 ac_clean_files="$ac_clean_files conftest.out"
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3570 $as_echo_n "checking whether we are cross compiling... " >&6; }
3571 if test "$cross_compiling" != yes; then
3572 { { ac_try="$ac_link"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link") 2>&5
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3583 if { ac_try='./conftest$ac_cv_exeext'
3584 { { case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_try") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; }; then
3596 if test "$cross_compiling" = maybe; then
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot run C compiled programs.
3602 If you meant to cross compile, use \`--host'.
3603 See \`config.log' for more details" "$LINENO" 5; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608 $as_echo "$cross_compiling" >&6; }
3610 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3611 ac_clean_files=$ac_clean_files_save
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3613 $as_echo_n "checking for suffix of object files... " >&6; }
3614 if ${ac_cv_objext+:} false; then :
3615 $as_echo_n "(cached) " >&6
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 rm -f conftest.o conftest.obj
3629 if { { ac_try="$ac_compile"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compile") 2>&5
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 for ac_file in conftest.o conftest.obj conftest.*; do
3641 test -f "$ac_file" || continue;
3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3649 $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot compute suffix of object files: cannot compile
3655 See \`config.log' for more details" "$LINENO" 5; }
3657 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3660 $as_echo "$ac_cv_objext" >&6; }
3661 OBJEXT=$ac_cv_objext
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665 if ${ac_cv_c_compiler_gnu+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3682 if ac_fn_c_try_compile "$LINENO"; then :
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693 if test $ac_compiler_gnu = yes; then
3698 ac_test_CFLAGS=${CFLAGS+set}
3699 ac_save_CFLAGS=$CFLAGS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3702 if ${ac_cv_prog_cc_g+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 ac_save_c_werror_flag=$ac_c_werror_flag
3706 ac_c_werror_flag=yes
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3720 if ac_fn_c_try_compile "$LINENO"; then :
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3735 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3751 if ac_fn_c_try_compile "$LINENO"; then :
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762 $as_echo "$ac_cv_prog_cc_g" >&6; }
3763 if test "$ac_test_CFLAGS" = set; then
3764 CFLAGS=$ac_save_CFLAGS
3765 elif test $ac_cv_prog_cc_g = yes; then
3766 if test "$GCC" = yes; then
3772 if test "$GCC" = yes; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780 if ${ac_cv_prog_cc_c89+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 ac_cv_prog_cc_c89=no
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3789 #include <sys/types.h>
3790 #include <sys/stat.h>
3791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3792 struct buf { int x; };
3793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3794 static char *e (p, i)
3800 static char *f (char * (*g) (char **, int), char **p, ...)
3805 s = g (p, va_arg (v,int));
3810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3811 function prototypes and stuff, but not '\xHH' hex character constants.
3812 These don't provoke an error unfortunately, instead are silently treated
3813 as 'x'. The following induces an error, until -std is added to get
3814 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3815 array size at least. It's necessary to write '\x00'==0 to get something
3816 that's true only with -std. */
3817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3820 inside strings and character constants. */
3822 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824 int test (int i, double x);
3825 struct s1 {int (*f) (int a);};
3826 struct s2 {int (*f) (double a);};
3827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3833 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3839 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_c89=$ac_arg
3845 rm -f core conftest.err conftest.$ac_objext
3846 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 rm -f conftest.$ac_ext
3853 case "x$ac_cv_prog_cc_c89" in
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3856 $as_echo "none needed" >&6; } ;;
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3859 $as_echo "unsupported" >&6; } ;;
3861 CC="$CC $ac_cv_prog_cc_c89"
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3863 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 if test "x$ac_cv_prog_cc_c89" != xno; then :
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 DEPDIR="${am__leading_dot}deps"
3876 ac_config_commands="$ac_config_commands depfiles"
3879 am_make=${MAKE-make}
3880 cat > confinc << 'END'
3882 @echo this is the am__doit target
3885 # If we don't find an include directive, just comment out the code.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3887 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3891 # First try GNU make style include.
3892 echo "include confinc" > confmf
3893 # Ignore all kinds of additional output from `make'.
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3901 # Now try BSD make style include.
3902 if test "$am__include" = "#"; then
3903 echo '.include "confinc"' > confmf
3904 case `$am_make -s -f confmf 2> /dev/null` in #(
3905 *the\ am__doit\ target*)
3906 am__include=.include
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3915 $as_echo "$_am_result" >&6; }
3916 rm -f confinc confmf
3918 # Check whether --enable-dependency-tracking was given.
3919 if test "${enable_dependency_tracking+set}" = set; then :
3920 enableval=$enable_dependency_tracking;
3923 if test "x$enable_dependency_tracking" != xno; then
3924 am_depcomp="$ac_aux_dir/depcomp"
3928 if test "x$enable_dependency_tracking" != xno; then
3938 depcc="$CC" am_compiler_list=
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3942 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3946 # We make a subdir and do the tests there. Otherwise we can end up
3947 # making bogus files that we don't know about and never remove. For
3948 # instance it was reported that on HP-UX the gcc test will end up
3949 # making a dummy file named `D' -- because `-MD' means `put the output
3953 # Copy depcomp to subdir because otherwise we won't find it if we're
3954 # using a relative directory.
3955 cp "$am_depcomp" conftest.dir
3957 # We will build objects and dependencies in a subdirectory because
3958 # it helps to detect inapplicable dependency modes. For instance
3959 # both Tru64's cc and ICC support -MD to output dependencies as a
3960 # side effect of compilation, but ICC will put the dependencies in
3961 # the current directory while Tru64 will put them in the object
3965 am_cv_CC_dependencies_compiler_type=none
3966 if test "$am_compiler_list" = ""; then
3967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3970 case " $depcc " in #(
3971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3974 for depmode in $am_compiler_list; do
3975 # Setup a source with many dependencies, because some compilers
3976 # like to wrap large dependency lists on column 80 (with \), and
3977 # we should not choose a depcomp mode which is confused by this.
3979 # We need to recreate these files for each test, as the compiler may
3980 # overwrite some of them when testing with obscure command lines.
3981 # This happens at least with the AIX C compiler.
3983 for i in 1 2 3 4 5 6; do
3984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986 # Solaris 8's {/usr,}/bin/sh.
3987 touch sub/conftst$i.h
3989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3992 # mode. It turns out that the SunPro C++ compiler does not properly
3993 # handle `-M -o', and we need to detect this. Also, some Intel
3994 # versions had trouble with output in subdirs
3995 am__obj=sub/conftest.${OBJEXT-o}
3996 am__minus_obj="-o $am__obj"
3999 # This depmode causes a compiler race in universal mode.
4000 test "$am__universal" = false || continue
4003 # after this tag, mechanisms are not by side-effect, so they'll
4004 # only be used when explicitly requested
4005 if test "x$enable_dependency_tracking" = xyes; then
4011 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4012 # This compiler won't grok `-c -o', but also, the minuso test has
4013 # not run yet. These depmodes are late enough in the game, and
4014 # so weak that their functioning should not be impacted.
4015 am__obj=conftest.${OBJEXT-o}
4020 if depmode=$depmode \
4021 source=sub/conftest.c object=$am__obj \
4022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024 >/dev/null 2>conftest.err &&
4025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029 # icc doesn't choke on unknown options, it will just issue warnings
4030 # or remarks (even with -Werror). So we grep stderr for any message
4031 # that says an option was ignored or not supported.
4032 # When given -MP, icc 7.0 and 7.1 complain thusly:
4033 # icc: Command line warning: ignoring option '-M'; no argument required
4034 # The diagnosis changed in icc 8.0:
4035 # icc: Command line remark: option '-MP' not supported
4036 if (grep 'ignoring option' conftest.err ||
4037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038 am_cv_CC_dependencies_compiler_type=$depmode
4047 am_cv_CC_dependencies_compiler_type=none
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4052 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4056 test "x$enable_dependency_tracking" != xno \
4057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4059 am__fastdepCC_FALSE='#'
4061 am__fastdepCC_TRUE='#'
4062 am__fastdepCC_FALSE=
4067 ac_cpp='$CXXCPP $CPPFLAGS'
4068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4071 if test -z "$CXX"; then
4072 if test -n "$CCC"; then
4075 if test -n "$ac_tool_prefix"; then
4076 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CXX+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -n "$CXX"; then
4086 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 if test -n "$CXX"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4108 $as_echo "$CXX" >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4115 test -n "$CXX" && break
4118 if test -z "$CXX"; then
4120 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4122 # Extract the first word of "$ac_prog", so it can be a program name with args.
4123 set dummy $ac_prog; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -n "$ac_ct_CXX"; then
4130 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_ac_ct_CXX="$ac_prog"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4150 if test -n "$ac_ct_CXX"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4152 $as_echo "$ac_ct_CXX" >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4159 test -n "$ac_ct_CXX" && break
4162 if test "x$ac_ct_CXX" = x; then
4165 case $cross_compiling:$ac_tool_warned in
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169 ac_tool_warned=yes ;;
4177 # Provide some information about the compiler.
4178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4181 for ac_option in --version -v -V -qversion; do
4182 { { ac_try="$ac_compiler $ac_option >&5"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4191 if test -s conftest.err; then
4193 ... rest of stderr output deleted ...
4194 10q' conftest.err >conftest.er1
4195 cat conftest.er1 >&5
4197 rm -f conftest.er1 conftest.err
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4203 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4204 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4221 if ac_fn_cxx_try_compile "$LINENO"; then :
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4231 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4232 if test $ac_compiler_gnu = yes; then
4237 ac_test_CXXFLAGS=${CXXFLAGS+set}
4238 ac_save_CXXFLAGS=$CXXFLAGS
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4240 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4241 if ${ac_cv_prog_cxx_g+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4245 ac_cxx_werror_flag=yes
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4259 if ac_fn_cxx_try_compile "$LINENO"; then :
4260 ac_cv_prog_cxx_g=yes
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4291 ac_cv_prog_cxx_g=yes
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4301 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4302 if test "$ac_test_CXXFLAGS" = set; then
4303 CXXFLAGS=$ac_save_CXXFLAGS
4304 elif test $ac_cv_prog_cxx_g = yes; then
4305 if test "$GXX" = yes; then
4311 if test "$GXX" = yes; then
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 depcc="$CXX" am_compiler_list=
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
4334 # making a dummy file named `D' -- because `-MD' means `put the output
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4350 am_cv_CXX_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371 # Solaris 8's {/usr,}/bin/sh.
4372 touch sub/conftst$i.h
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4388 # after this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested
4390 if test "x$enable_dependency_tracking" = xyes; then
4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4397 # This compiler won't grok `-c -o', but also, the minuso test has
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CXX_dependencies_compiler_type=$depmode
4432 am_cv_CXX_dependencies_compiler_type=none
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4437 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4438 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCXX_TRUE=
4444 am__fastdepCXX_FALSE='#'
4446 am__fastdepCXX_TRUE='#'
4447 am__fastdepCXX_FALSE=
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4463 if test -z "$CPP"; then
4464 if ${ac_cv_prog_CPP+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 # Double quotes because CPP needs to be expanded
4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 for ac_c_preproc_warn_flag in '' yes
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 # include <limits.h>
4484 # include <assert.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4506 # Passes both tests.
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details" "$LINENO" 5; }
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if ${ac_cv_path_GREP+:} false; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -z "$GREP"; then
4596 ac_path_GREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in grep ggrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608 # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'GREP' >> "conftest.nl"
4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_GREP="$ac_path_GREP"
4627 ac_path_GREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_GREP_found && break 3
4640 if test -z "$ac_cv_path_GREP"; then
4641 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_GREP=$GREP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if ${ac_cv_path_EGREP+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659 then ac_cv_path_EGREP="$GREP -E"
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in egrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 as_fn_arith $ac_count + 1 && ac_count=$as_val
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 $ac_path_EGREP_found && break 3
4706 if test -z "$ac_cv_path_EGREP"; then
4707 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 ac_cv_path_EGREP=$EGREP
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP="$ac_cv_path_EGREP"
4720 if test $ac_cv_c_compiler_gnu = yes; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4722 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4723 if ${ac_cv_prog_gcc_traditional+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_pattern="Autoconf.*'x'"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734 ac_cv_prog_gcc_traditional=yes
4736 ac_cv_prog_gcc_traditional=no
4741 if test $ac_cv_prog_gcc_traditional = no; then
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4749 ac_cv_prog_gcc_traditional=yes
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4756 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4757 if test $ac_cv_prog_gcc_traditional = yes; then
4758 CC="$CC -traditional"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4763 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4765 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4766 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 cat >conftest.make <<\_ACEOF
4772 @echo '@@@%%%=$(MAKE)=@@@%%%'
4774 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4775 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4777 eval ac_cv_prog_make_${ac_make}_set=yes;;
4779 eval ac_cv_prog_make_${ac_make}_set=no;;
4783 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785 $as_echo "yes" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 SET_MAKE="MAKE=${MAKE-make}"
4793 # Make sure we can run config.sub.
4794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4798 $as_echo_n "checking build system type... " >&6; }
4799 if ${ac_cv_build+:} false; then :
4800 $as_echo_n "(cached) " >&6
4802 ac_build_alias=$build_alias
4803 test "x$ac_build_alias" = x &&
4804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4805 test "x$ac_build_alias" = x &&
4806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4812 $as_echo "$ac_cv_build" >&6; }
4813 case $ac_cv_build in
4815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4818 ac_save_IFS=$IFS; IFS='-'
4824 # Remember, the first character of IFS is used to create $*,
4825 # except with old shells:
4828 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4832 $as_echo_n "checking host system type... " >&6; }
4833 if ${ac_cv_host+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 if test "x$host_alias" = x; then
4837 ac_cv_host=$ac_cv_build
4839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4845 $as_echo "$ac_cv_host" >&6; }
4848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4851 ac_save_IFS=$IFS; IFS='-'
4857 # Remember, the first character of IFS is used to create $*,
4858 # except with old shells:
4861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4864 enable_win32_dll=yes
4867 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4868 if test -n "$ac_tool_prefix"; then
4869 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4870 set dummy ${ac_tool_prefix}as; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_AS+:} false; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$AS"; then
4877 ac_cv_prog_AS="$AS" # Let the user override the test.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_AS="${ac_tool_prefix}as"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 if test -n "$AS"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4899 $as_echo "$AS" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4907 if test -z "$ac_cv_prog_AS"; then
4909 # Extract the first word of "as", so it can be a program name with args.
4910 set dummy as; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$ac_ct_AS"; then
4917 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_ac_ct_AS="as"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4937 if test -n "$ac_ct_AS"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4939 $as_echo "$ac_ct_AS" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4945 if test "x$ac_ct_AS" = x; then
4948 case $cross_compiling:$ac_tool_warned in
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned=yes ;;
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_DLLTOOL+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$DLLTOOL"; then
4969 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 DLLTOOL=$ac_cv_prog_DLLTOOL
4989 if test -n "$DLLTOOL"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4991 $as_echo "$DLLTOOL" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4999 if test -z "$ac_cv_prog_DLLTOOL"; then
5000 ac_ct_DLLTOOL=$DLLTOOL
5001 # Extract the first word of "dlltool", so it can be a program name with args.
5002 set dummy dlltool; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$ac_ct_DLLTOOL"; then
5009 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5029 if test -n "$ac_ct_DLLTOOL"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5031 $as_echo "$ac_ct_DLLTOOL" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5037 if test "x$ac_ct_DLLTOOL" = x; then
5040 case $cross_compiling:$ac_tool_warned in
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5046 DLLTOOL=$ac_ct_DLLTOOL
5049 DLLTOOL="$ac_cv_prog_DLLTOOL"
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_OBJDUMP+:} false; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$OBJDUMP"; then
5061 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 OBJDUMP=$ac_cv_prog_OBJDUMP
5081 if test -n "$OBJDUMP"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5083 $as_echo "$OBJDUMP" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_prog_OBJDUMP"; then
5092 ac_ct_OBJDUMP=$OBJDUMP
5093 # Extract the first word of "objdump", so it can be a program name with args.
5094 set dummy objdump; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$ac_ct_OBJDUMP"; then
5101 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5121 if test -n "$ac_ct_OBJDUMP"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5123 $as_echo "$ac_ct_OBJDUMP" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5129 if test "x$ac_ct_OBJDUMP" = x; then
5132 case $cross_compiling:$ac_tool_warned in
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5138 OBJDUMP=$ac_ct_OBJDUMP
5141 OBJDUMP="$ac_cv_prog_OBJDUMP"
5147 test -z "$AS" && AS=as
5153 test -z "$DLLTOOL" && DLLTOOL=dlltool
5159 test -z "$OBJDUMP" && OBJDUMP=objdump
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5175 macro_version='2.4.2'
5176 macro_revision='1.3337'
5190 ltmain="$ac_aux_dir/ltmain.sh"
5192 # Backslashify metacharacters that are still active within
5193 # double-quoted strings.
5194 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5196 # Same as above, but do not quote variable references.
5197 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5199 # Sed substitution to delay expansion of an escaped shell variable in a
5200 # double_quote_subst'ed string.
5201 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5203 # Sed substitution to delay expansion of an escaped single quote.
5204 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5206 # Sed substitution to avoid accidental globbing in evaled expressions
5207 no_glob_subst='s/\*/\\\*/g'
5209 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5210 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5214 $as_echo_n "checking how to print strings... " >&6; }
5215 # Test print first, because it will be a builtin if present.
5216 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5217 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5219 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5222 # Use this function as a fallback that always works.
5223 func_fallback_echo ()
5225 eval 'cat <<_LTECHO_EOF
5229 ECHO='func_fallback_echo'
5232 # func_echo_all arg...
5233 # Invoke $ECHO with all args, space-separated.
5240 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5241 $as_echo "printf" >&6; } ;;
5242 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5243 $as_echo "print -r" >&6; } ;;
5244 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5245 $as_echo "cat" >&6; } ;;
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5262 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5263 if ${ac_cv_path_SED+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5267 for ac_i in 1 2 3 4 5 6 7; do
5268 ac_script="$ac_script$as_nl$ac_script"
5270 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5271 { ac_script=; unset ac_script;}
5272 if test -z "$SED"; then
5273 ac_path_SED_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in sed gsed; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5283 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5284 # Check for GNU ac_path_SED and select it if it is found.
5285 # Check for GNU $ac_path_SED
5286 case `"$ac_path_SED" --version 2>&1` in
5288 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5291 $as_echo_n 0123456789 >"conftest.in"
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo '' >> "conftest.nl"
5298 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_SED_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_SED="$ac_path_SED"
5304 ac_path_SED_max=$ac_count
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 $ac_path_SED_found && break 3
5317 if test -z "$ac_cv_path_SED"; then
5318 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5326 $as_echo "$ac_cv_path_SED" >&6; }
5327 SED="$ac_cv_path_SED"
5330 test -z "$SED" && SED=sed
5331 Xsed="$SED -e 1s/^X//"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5344 $as_echo_n "checking for fgrep... " >&6; }
5345 if ${ac_cv_path_FGREP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5348 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5349 then ac_cv_path_FGREP="$GREP -F"
5351 if test -z "$FGREP"; then
5352 ac_path_FGREP_found=false
5353 # Loop through the user's path and test for each of PROGNAME-LIST
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358 test -z "$as_dir" && as_dir=.
5359 for ac_prog in fgrep; do
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5362 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5363 # Check for GNU ac_path_FGREP and select it if it is found.
5364 # Check for GNU $ac_path_FGREP
5365 case `"$ac_path_FGREP" --version 2>&1` in
5367 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5370 $as_echo_n 0123456789 >"conftest.in"
5373 cat "conftest.in" "conftest.in" >"conftest.tmp"
5374 mv "conftest.tmp" "conftest.in"
5375 cp "conftest.in" "conftest.nl"
5376 $as_echo 'FGREP' >> "conftest.nl"
5377 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5379 as_fn_arith $ac_count + 1 && ac_count=$as_val
5380 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5381 # Best one so far, save it but keep looking for a better one
5382 ac_cv_path_FGREP="$ac_path_FGREP"
5383 ac_path_FGREP_max=$ac_count
5385 # 10*(2^10) chars as input seems more than enough
5386 test $ac_count -gt 10 && break
5388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 $ac_path_FGREP_found && break 3
5396 if test -z "$ac_cv_path_FGREP"; then
5397 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400 ac_cv_path_FGREP=$FGREP
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5406 $as_echo "$ac_cv_path_FGREP" >&6; }
5407 FGREP="$ac_cv_path_FGREP"
5410 test -z "$GREP" && GREP=grep
5430 # Check whether --with-gnu-ld was given.
5431 if test "${with_gnu_ld+set}" = set; then :
5432 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5438 if test "$GCC" = yes; then
5439 # Check if gcc -print-prog-name=ld gives a path.
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5441 $as_echo_n "checking for ld used by $CC... " >&6; }
5444 # gcc leaves a trailing carriage return which upsets mingw
5445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5450 # Accept absolute paths.
5452 re_direlt='/[^/][^/]*/\.\./'
5453 # Canonicalize the pathname of ld
5454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5458 test -z "$LD" && LD="$ac_prog"
5461 # If it fails, then pretend we aren't using GCC.
5465 # If it is relative, then search for the first ld in PATH.
5469 elif test "$with_gnu_ld" = yes; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5471 $as_echo_n "checking for GNU ld... " >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5474 $as_echo_n "checking for non-GNU ld... " >&6; }
5476 if ${lt_cv_path_LD+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -z "$LD"; then
5480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481 for ac_dir in $PATH; do
5483 test -z "$ac_dir" && ac_dir=.
5484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5485 lt_cv_path_LD="$ac_dir/$ac_prog"
5486 # Check to see if the program is GNU ld. I'd rather use --version,
5487 # but apparently some variants of GNU ld only accept -v.
5488 # Break only if it was the GNU/non-GNU ld that we prefer.
5489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5490 *GNU* | *'with BFD'*)
5491 test "$with_gnu_ld" != no && break
5494 test "$with_gnu_ld" != yes && break
5501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5506 if test -n "$LD"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5508 $as_echo "$LD" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5513 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5515 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5516 if ${lt_cv_prog_gnu_ld+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5520 case `$LD -v 2>&1 </dev/null` in
5521 *GNU* | *'with BFD'*)
5522 lt_cv_prog_gnu_ld=yes
5525 lt_cv_prog_gnu_ld=no
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5530 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5531 with_gnu_ld=$lt_cv_prog_gnu_ld
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5542 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5543 if ${lt_cv_path_NM+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 if test -n "$NM"; then
5547 # Let the user override the test.
5550 lt_nm_to_check="${ac_tool_prefix}nm"
5551 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5552 lt_nm_to_check="$lt_nm_to_check nm"
5554 for lt_tmp_nm in $lt_nm_to_check; do
5555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5558 test -z "$ac_dir" && ac_dir=.
5559 tmp_nm="$ac_dir/$lt_tmp_nm"
5560 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5561 # Check to see if the nm accepts a BSD-compat flag.
5562 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5563 # nm: unknown option "B" ignored
5564 # Tru64's nm complains that /dev/null is an invalid object file
5565 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5566 */dev/null* | *'Invalid file or object type'*)
5567 lt_cv_path_NM="$tmp_nm -B"
5571 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5573 lt_cv_path_NM="$tmp_nm -p"
5577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5578 continue # so that we can try to find one that supports BSD flags
5587 : ${lt_cv_path_NM=no}
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5591 $as_echo "$lt_cv_path_NM" >&6; }
5592 if test "$lt_cv_path_NM" != "no"; then
5595 # Didn't find any BSD compatible name lister, look for dumpbin.
5596 if test -n "$DUMPBIN"; then :
5597 # Let the user override the test.
5599 if test -n "$ac_tool_prefix"; then
5600 for ac_prog in dumpbin "link -dump"
5602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_DUMPBIN+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$DUMPBIN"; then
5610 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 DUMPBIN=$ac_cv_prog_DUMPBIN
5630 if test -n "$DUMPBIN"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5632 $as_echo "$DUMPBIN" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5639 test -n "$DUMPBIN" && break
5642 if test -z "$DUMPBIN"; then
5643 ac_ct_DUMPBIN=$DUMPBIN
5644 for ac_prog in dumpbin "link -dump"
5646 # Extract the first word of "$ac_prog", so it can be a program name with args.
5647 set dummy $ac_prog; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5651 $as_echo_n "(cached) " >&6
5653 if test -n "$ac_ct_DUMPBIN"; then
5654 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674 if test -n "$ac_ct_DUMPBIN"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5676 $as_echo "$ac_ct_DUMPBIN" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 test -n "$ac_ct_DUMPBIN" && break
5686 if test "x$ac_ct_DUMPBIN" = x; then
5689 case $cross_compiling:$ac_tool_warned in
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5695 DUMPBIN=$ac_ct_DUMPBIN
5699 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5701 DUMPBIN="$DUMPBIN -symbols"
5709 if test "$DUMPBIN" != ":"; then
5713 test -z "$NM" && NM=nm
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5721 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5722 if ${lt_cv_nm_interface+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 lt_cv_nm_interface="BSD nm"
5726 echo "int some_variable = 0;" > conftest.$ac_ext
5727 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5728 (eval "$ac_compile" 2>conftest.err)
5729 cat conftest.err >&5
5730 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5732 cat conftest.err >&5
5733 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5734 cat conftest.out >&5
5735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5736 lt_cv_nm_interface="MS dumpbin"
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5741 $as_echo "$lt_cv_nm_interface" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5744 $as_echo_n "checking whether ln -s works... " >&6; }
5746 if test "$LN_S" = "ln -s"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748 $as_echo "yes" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5751 $as_echo "no, using $LN_S" >&6; }
5754 # find the maximum length of command line arguments
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5756 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5757 if ${lt_cv_sys_max_cmd_len+:} false; then :
5758 $as_echo_n "(cached) " >&6
5765 # On DJGPP, this test can blow up pretty badly due to problems in libc
5766 # (any single argument exceeding 2000 bytes causes a buffer overrun
5767 # during glob expansion). Even if it were fixed, the result of this
5768 # check would be larger than it should be.
5769 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5773 # Under GNU Hurd, this test is not required because there is
5774 # no limit to the length of command line arguments.
5775 # Libtool will interpret -1 as no limit whatsoever
5776 lt_cv_sys_max_cmd_len=-1;
5779 cygwin* | mingw* | cegcc*)
5780 # On Win9x/ME, this test blows up -- it succeeds, but takes
5781 # about 5 minutes as the teststring grows exponentially.
5782 # Worse, since 9x/ME are not pre-emptively multitasking,
5783 # you end up with a "frozen" computer, even though with patience
5784 # the test eventually succeeds (with a max line length of 256k).
5785 # Instead, let's just punt: use the minimum linelength reported by
5786 # all of the supported platforms: 8192 (on NT/2K/XP).
5787 lt_cv_sys_max_cmd_len=8192;
5791 # On MiNT this can take a long time and run out of memory.
5792 lt_cv_sys_max_cmd_len=8192;
5796 # On AmigaOS with pdksh, this test takes hours, literally.
5797 # So we just punt and use a minimum line length of 8192.
5798 lt_cv_sys_max_cmd_len=8192;
5801 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5802 # This has been around since 386BSD, at least. Likely further.
5803 if test -x /sbin/sysctl; then
5804 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5805 elif test -x /usr/sbin/sysctl; then
5806 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5808 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5810 # And add a safety zone
5811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5816 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5817 lt_cv_sys_max_cmd_len=196608
5821 # The test takes a long time on OS/2.
5822 lt_cv_sys_max_cmd_len=8192
5826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5828 # nice to cause kernel panics so lets avoid the loop below.
5829 # First set a reasonable default.
5830 lt_cv_sys_max_cmd_len=16384
5832 if test -x /sbin/sysconfig; then
5833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5839 lt_cv_sys_max_cmd_len=102400
5841 sysv5* | sco5v6* | sysv4.2uw2*)
5842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5843 if test -n "$kargmax"; then
5844 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5846 lt_cv_sys_max_cmd_len=32768
5850 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5851 if test -n "$lt_cv_sys_max_cmd_len"; then
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855 # Make teststring a little bigger before we do anything with it.
5856 # a 1K string should be a reasonable start.
5857 for i in 1 2 3 4 5 6 7 8 ; do
5858 teststring=$teststring$teststring
5860 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5861 # If test is not a shell built-in, we'll probably end up computing a
5862 # maximum length that is only half of the actual maximum length, but
5864 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5865 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5866 test $i != 17 # 1/2 MB should be enough
5869 teststring=$teststring$teststring
5871 # Only check the string length outside the loop.
5872 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5874 # Add a significant safety factor because C++ compilers can tack on
5875 # massive amounts of additional arguments before passing them to the
5876 # linker. It appears as though 1/2 is a usable value.
5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5884 if test -n $lt_cv_sys_max_cmd_len ; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5886 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5889 $as_echo "none" >&6; }
5891 max_cmd_len=$lt_cv_sys_max_cmd_len
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5903 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5904 # Try some XSI features
5907 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5909 && eval 'test $(( 1 + 1 )) -eq 2 \
5910 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5913 $as_echo "$xsi_shell" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5917 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5919 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5921 && lt_shell_append=yes
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5923 $as_echo "$lt_shell_append" >&6; }
5926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5936 # test EBCDIC or ASCII
5937 case `echo X|tr X '\101'` in
5938 A) # ASCII based system
5939 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5940 lt_SP2NL='tr \040 \012'
5941 lt_NL2SP='tr \015\012 \040\040'
5943 *) # EBCDIC based system
5944 lt_SP2NL='tr \100 \n'
5945 lt_NL2SP='tr \r\n \100\100'
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5958 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5959 if ${lt_cv_to_host_file_cmd+:} false; then :
5960 $as_echo_n "(cached) " >&6
5965 *-*-mingw* ) # actually msys
5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5969 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5971 * ) # otherwise, assume *nix
5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5978 *-*-mingw* ) # actually msys
5979 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5982 lt_cv_to_host_file_cmd=func_convert_file_noop
5984 * ) # otherwise, assume *nix
5985 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5989 * ) # unhandled hosts (and "normal" native builds)
5990 lt_cv_to_host_file_cmd=func_convert_file_noop
5996 to_host_file_cmd=$lt_cv_to_host_file_cmd
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5998 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6005 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6006 if ${lt_cv_to_tool_file_cmd+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 #assume ordinary cross tools, or native build.
6010 lt_cv_to_tool_file_cmd=func_convert_file_noop
6014 *-*-mingw* ) # actually msys
6015 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6025 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6032 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6033 if ${lt_cv_ld_reload_flag+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 lt_cv_ld_reload_flag='-r'
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6039 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6040 reload_flag=$lt_cv_ld_reload_flag
6041 case $reload_flag in
6043 *) reload_flag=" $reload_flag" ;;
6045 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6047 cygwin* | mingw* | pw32* | cegcc*)
6048 if test "$GCC" != yes; then
6053 if test "$GCC" = yes; then
6054 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069 if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6071 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_OBJDUMP+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$OBJDUMP"; then
6078 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 OBJDUMP=$ac_cv_prog_OBJDUMP
6098 if test -n "$OBJDUMP"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6100 $as_echo "$OBJDUMP" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6108 if test -z "$ac_cv_prog_OBJDUMP"; then
6109 ac_ct_OBJDUMP=$OBJDUMP
6110 # Extract the first word of "objdump", so it can be a program name with args.
6111 set dummy objdump; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6115 $as_echo_n "(cached) " >&6
6117 if test -n "$ac_ct_OBJDUMP"; then
6118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6138 if test -n "$ac_ct_OBJDUMP"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6140 $as_echo "$ac_ct_OBJDUMP" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6146 if test "x$ac_ct_OBJDUMP" = x; then
6149 case $cross_compiling:$ac_tool_warned in
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6155 OBJDUMP=$ac_ct_OBJDUMP
6158 OBJDUMP="$ac_cv_prog_OBJDUMP"
6161 test -z "$OBJDUMP" && OBJDUMP=objdump
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6170 if ${lt_cv_deplibs_check_method+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 lt_cv_file_magic_cmd='$MAGIC_CMD'
6174 lt_cv_file_magic_test_file=
6175 lt_cv_deplibs_check_method='unknown'
6176 # Need to set the preceding variable on all platforms that support
6177 # interlibrary dependencies.
6178 # 'none' -- dependencies not supported.
6179 # `unknown' -- same as none, but documents that we really don't know.
6180 # 'pass_all' -- all dependencies passed with no checks.
6181 # 'test_compile' -- check by making test program.
6182 # 'file_magic [[regex]]' -- check by looking for files in library path
6183 # which responds to the $file_magic_cmd with a given extended regex.
6184 # If you have `file' or equivalent on your system and you're not sure
6185 # whether `pass_all' will *always* work, you probably want this one.
6189 lt_cv_deplibs_check_method=pass_all
6193 lt_cv_deplibs_check_method=pass_all
6197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6198 lt_cv_file_magic_cmd='/usr/bin/file -L'
6199 lt_cv_file_magic_test_file=/shlib/libc.so
6203 # func_win32_libid is a shell function defined in ltmain.sh
6204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6205 lt_cv_file_magic_cmd='func_win32_libid'
6209 # Base MSYS/MinGW do not provide the 'file' command needed by
6210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6211 # unless we find 'file', for example because we are cross-compiling.
6212 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6213 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6215 lt_cv_file_magic_cmd='func_win32_libid'
6217 # Keep this pattern in sync with the one in func_win32_libid.
6218 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6219 lt_cv_file_magic_cmd='$OBJDUMP -f'
6224 # use the weaker test based on 'objdump'. See mingw*.
6225 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6226 lt_cv_file_magic_cmd='$OBJDUMP -f'
6229 darwin* | rhapsody*)
6230 lt_cv_deplibs_check_method=pass_all
6233 freebsd* | dragonfly*)
6234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6237 # Not sure whether the presence of OpenBSD here was a mistake.
6238 # Let's accept both of them until this is cleared up.
6239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6240 lt_cv_file_magic_cmd=/usr/bin/file
6241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6245 lt_cv_deplibs_check_method=pass_all
6250 lt_cv_deplibs_check_method=pass_all
6254 lt_cv_deplibs_check_method=pass_all
6257 hpux10.20* | hpux11*)
6258 lt_cv_file_magic_cmd=/usr/bin/file
6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6265 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]'
6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6280 irix5* | irix6* | nonstopux*)
6282 *-32|*"-32 ") libmagic=32-bit;;
6283 *-n32|*"-n32 ") libmagic=N32;;
6284 *-64|*"-64 ") libmagic=64-bit;;
6285 *) libmagic=never-match;;
6287 lt_cv_deplibs_check_method=pass_all
6290 # This must be glibc/ELF.
6291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6292 lt_cv_deplibs_check_method=pass_all
6295 netbsd* | netbsdelf*-gnu)
6296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6305 lt_cv_file_magic_cmd=/usr/bin/file
6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6310 lt_cv_deplibs_check_method=pass_all
6314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6321 osf3* | osf4* | osf5*)
6322 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method=pass_all
6330 lt_cv_deplibs_check_method=pass_all
6333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6334 lt_cv_deplibs_check_method=pass_all
6338 case $host_vendor in
6340 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]'
6341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6344 lt_cv_deplibs_check_method=pass_all
6347 lt_cv_file_magic_cmd='/bin/file'
6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6351 lt_cv_file_magic_cmd='/bin/file'
6352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6353 lt_cv_file_magic_test_file=/lib/libc.so
6356 lt_cv_deplibs_check_method=pass_all
6359 lt_cv_deplibs_check_method=pass_all
6365 lt_cv_deplibs_check_method=pass_all
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6375 if test "$build" = "$host"; then
6378 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6381 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6387 file_magic_cmd=$lt_cv_file_magic_cmd
6388 deplibs_check_method=$lt_cv_deplibs_check_method
6389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_DLLTOOL+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$DLLTOOL"; then
6421 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 DLLTOOL=$ac_cv_prog_DLLTOOL
6441 if test -n "$DLLTOOL"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6443 $as_echo "$DLLTOOL" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_DLLTOOL"; then
6452 ac_ct_DLLTOOL=$DLLTOOL
6453 # Extract the first word of "dlltool", so it can be a program name with args.
6454 set dummy dlltool; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$ac_ct_DLLTOOL"; then
6461 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6481 if test -n "$ac_ct_DLLTOOL"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6483 $as_echo "$ac_ct_DLLTOOL" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_DLLTOOL" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6498 DLLTOOL=$ac_ct_DLLTOOL
6501 DLLTOOL="$ac_cv_prog_DLLTOOL"
6504 test -z "$DLLTOOL" && DLLTOOL=dlltool
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6513 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6514 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 lt_cv_sharedlib_from_linklib_cmd='unknown'
6520 cygwin* | mingw* | pw32* | cegcc*)
6521 # two different shell functions defined in ltmain.sh
6522 # decide which to use based on capabilities of $DLLTOOL
6523 case `$DLLTOOL --help 2>&1` in
6524 *--identify-strict*)
6525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6533 # fallback: assume linklib IS sharedlib
6534 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6540 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6541 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6542 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6550 if test -n "$ac_tool_prefix"; then
6553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_AR+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$AR"; then
6561 ac_cv_prog_AR="$AR" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 if test -n "$AR"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6583 $as_echo "$AR" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6590 test -n "$AR" && break
6593 if test -z "$AR"; then
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6602 $as_echo_n "(cached) " >&6
6604 if test -n "$ac_ct_AR"; then
6605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_ac_ct_AR="$ac_prog"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6625 if test -n "$ac_ct_AR"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6627 $as_echo "$ac_ct_AR" >&6; }
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6634 test -n "$ac_ct_AR" && break
6637 if test "x$ac_ct_AR" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6664 $as_echo_n "checking for archiver @FILE support... " >&6; }
6665 if ${lt_cv_ar_at_file+:} false; then :
6666 $as_echo_n "(cached) " >&6
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 echo conftest.$ac_objext > conftest.lst
6682 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6684 (eval $lt_ar_try) 2>&5
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; }
6688 if test "$ac_status" -eq 0; then
6689 # Ensure the archiver fails upon bogus file names.
6690 rm -f conftest.$ac_objext libconftest.a
6691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6692 (eval $lt_ar_try) 2>&5
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }
6696 if test "$ac_status" -ne 0; then
6700 rm -f conftest.* libconftest.a
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6707 $as_echo "$lt_cv_ar_at_file" >&6; }
6709 if test "x$lt_cv_ar_at_file" = xno; then
6712 archiver_list_spec=$lt_cv_ar_at_file
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}strip; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_STRIP+:} false; then :
6727 $as_echo_n "(cached) " >&6
6729 if test -n "$STRIP"; then
6730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 STRIP=$ac_cv_prog_STRIP
6750 if test -n "$STRIP"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6752 $as_echo "$STRIP" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_STRIP"; then
6762 # Extract the first word of "strip", so it can be a program name with args.
6763 set dummy strip; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$ac_ct_STRIP"; then
6770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_STRIP="strip"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6790 if test -n "$ac_ct_STRIP"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6792 $as_echo "$ac_ct_STRIP" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_STRIP" = x; then
6801 case $cross_compiling:$ac_tool_warned in
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6810 STRIP="$ac_cv_prog_STRIP"
6813 test -z "$STRIP" && STRIP=:
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_RANLIB+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$RANLIB"; then
6829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 RANLIB=$ac_cv_prog_RANLIB
6849 if test -n "$RANLIB"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6851 $as_echo "$RANLIB" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6859 if test -z "$ac_cv_prog_RANLIB"; then
6860 ac_ct_RANLIB=$RANLIB
6861 # Extract the first word of "ranlib", so it can be a program name with args.
6862 set dummy ranlib; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 if test -n "$ac_ct_RANLIB"; then
6869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_ac_ct_RANLIB="ranlib"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6889 if test -n "$ac_ct_RANLIB"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6891 $as_echo "$ac_ct_RANLIB" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6897 if test "x$ac_ct_RANLIB" = x; then
6900 case $cross_compiling:$ac_tool_warned in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6906 RANLIB=$ac_ct_RANLIB
6909 RANLIB="$ac_cv_prog_RANLIB"
6912 test -z "$RANLIB" && RANLIB=:
6919 # Determine commands to create old-style static archives.
6920 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6921 old_postinstall_cmds='chmod 644 $oldlib'
6922 old_postuninstall_cmds=
6924 if test -n "$RANLIB"; then
6927 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6933 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6938 lock_old_archive_extraction=yes ;;
6940 lock_old_archive_extraction=no ;;
6981 # If no C compiler was specified, use CC.
6984 # If no C compiler flags were specified, use CFLAGS.
6985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6987 # Allow CC to be a program name with arguments.
6991 # Check for command to grab the raw symbol name followed by C symbol from nm.
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6993 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6994 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6995 $as_echo_n "(cached) " >&6
6998 # These are sane defaults that work on at least a few old systems.
6999 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7001 # Character class describing NM global symbol codes.
7002 symcode='[BCDEGRST]'
7004 # Regexp to match symbols that can be accessed directly from C.
7005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7007 # Define system-specific variables.
7012 cygwin* | mingw* | pw32* | cegcc*)
7013 symcode='[ABCDGISTW]'
7016 if test "$host_cpu" = ia64; then
7017 symcode='[ABCDEGRST]'
7021 symcode='[BCDEGRST]'
7024 symcode='[BCDEGQRST]'
7035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7043 # If we're using GNU nm, then use its standard symbol codes.
7044 case `$NM -V 2>&1` in
7045 *GNU* | *'with BFD'*)
7046 symcode='[ABCDGIRSTW]' ;;
7049 # Transform an extracted symbol line into a proper C declaration.
7050 # Some systems (esp. on ia64) link data and code symbols differently,
7051 # so use this general approach.
7052 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7054 # Transform an extracted symbol line into symbol name and symbol address
7055 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7056 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'"
7058 # Handle CRLF in mingw tool chain
7062 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7066 # Try without a prefix underscore, then with it.
7067 for ac_symprfx in "" "_"; do
7069 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7070 symxfrm="\\1 $ac_symprfx\\2 \\2"
7072 # Write the raw and C identifiers.
7073 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7074 # Fake it for dumpbin and say T for any non-static function
7075 # and D for any global variable.
7076 # Also find C++ and __fastcall symbols from MSVC++,
7077 # which start with @ or ?.
7078 lt_cv_sys_global_symbol_pipe="$AWK '"\
7079 " {last_section=section; section=\$ 3};"\
7080 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7081 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7082 " \$ 0!~/External *\|/{next};"\
7083 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7084 " {if(hide[section]) next};"\
7085 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7086 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7087 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7088 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7089 " ' prfx=^$ac_symprfx"
7091 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7093 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7095 # Check to see that the pipe works correctly.
7099 cat > conftest.$ac_ext <<_LT_EOF
7104 void nm_test_func(void);
7105 void nm_test_func(void){}
7109 int main(){nm_test_var='a';nm_test_func();return(0);}
7112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7113 (eval $ac_compile) 2>&5
7115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; then
7117 # Now try to grab the symbols.
7119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7120 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; } && test -s "$nlist"; then
7124 # Try sorting and uniquifying the output.
7125 if sort "$nlist" | uniq > "$nlist"T; then
7126 mv -f "$nlist"T "$nlist"
7131 # Make sure that we snagged all the symbols we need.
7132 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7133 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7134 cat <<_LT_EOF > conftest.$ac_ext
7135 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7136 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7137 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7138 relocations are performed -- see ld's documentation on pseudo-relocs. */
7139 # define LT_DLSYM_CONST
7140 #elif defined(__osf__)
7141 /* This system does not cope well with relocations in const data. */
7142 # define LT_DLSYM_CONST
7144 # define LT_DLSYM_CONST const
7152 # Now generate the symbol file.
7153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7155 cat <<_LT_EOF >> conftest.$ac_ext
7157 /* The mapping between symbol names and symbols. */
7158 LT_DLSYM_CONST struct {
7162 lt__PROGRAM__LTX_preloaded_symbols[] =
7164 { "@PROGRAM@", (void *) 0 },
7166 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7167 cat <<\_LT_EOF >> conftest.$ac_ext
7171 /* This works around a problem in FreeBSD linker */
7172 #ifdef FREEBSD_WORKAROUND
7173 static const void *lt_preloaded_setup() {
7174 return lt__PROGRAM__LTX_preloaded_symbols;
7182 # Now try linking the two files.
7183 mv conftest.$ac_objext conftstm.$ac_objext
7184 lt_globsym_save_LIBS=$LIBS
7185 lt_globsym_save_CFLAGS=$CFLAGS
7186 LIBS="conftstm.$ac_objext"
7187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7189 (eval $ac_link) 2>&5
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7195 LIBS=$lt_globsym_save_LIBS
7196 CFLAGS=$lt_globsym_save_CFLAGS
7198 echo "cannot find nm_test_func in $nlist" >&5
7201 echo "cannot find nm_test_var in $nlist" >&5
7204 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7207 echo "$progname: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 rm -rf conftest* conftst*
7212 # Do not use the global_symbol_pipe unless it works.
7213 if test "$pipe_works" = yes; then
7216 lt_cv_sys_global_symbol_pipe=
7222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7223 lt_cv_sys_global_symbol_to_cdecl=
7225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7227 $as_echo "failed" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7230 $as_echo "ok" >&6; }
7233 # Response file support.
7234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7235 nm_file_list_spec='@'
7236 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7237 nm_file_list_spec='@'
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7267 $as_echo_n "checking for sysroot... " >&6; }
7269 # Check whether --with-sysroot was given.
7270 if test "${with_sysroot+set}" = set; then :
7271 withval=$with_sysroot;
7278 case ${with_sysroot} in #(
7280 if test "$GCC" = yes; then
7281 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7285 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7291 $as_echo "${with_sysroot}" >&6; }
7292 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7297 $as_echo "${lt_sysroot:-no}" >&6; }
7303 # Check whether --enable-libtool-lock was given.
7304 if test "${enable_libtool_lock+set}" = set; then :
7305 enableval=$enable_libtool_lock;
7308 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7310 # Some flags need to be propagated to the compiler or linker for good
7314 # Find out which ABI we are using.
7315 echo 'int i;' > conftest.$ac_ext
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 case `/usr/bin/file conftest.$ac_objext` in
7333 # Find out which ABI we are using.
7334 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7336 (eval $ac_compile) 2>&5
7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339 test $ac_status = 0; }; then
7340 if test "$lt_cv_prog_gnu_ld" = yes; then
7341 case `/usr/bin/file conftest.$ac_objext` in
7343 LD="${LD-ld} -melf32bsmip"
7346 LD="${LD-ld} -melf32bmipn32"
7349 LD="${LD-ld} -melf64bmip"
7353 case `/usr/bin/file conftest.$ac_objext` in
7369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7381 x86_64-*kfreebsd*-gnu)
7382 LD="${LD-ld} -m elf_i386_fbsd"
7385 LD="${LD-ld} -m elf_i386"
7387 ppc64-*linux*|powerpc64-*linux*)
7388 LD="${LD-ld} -m elf32ppclinux"
7391 LD="${LD-ld} -m elf_s390"
7394 LD="${LD-ld} -m elf32_sparc"
7400 x86_64-*kfreebsd*-gnu)
7401 LD="${LD-ld} -m elf_x86_64_fbsd"
7404 LD="${LD-ld} -m elf_x86_64"
7406 ppc*-*linux*|powerpc*-*linux*)
7407 LD="${LD-ld} -m elf64ppc"
7409 s390*-*linux*|s390*-*tpf*)
7410 LD="${LD-ld} -m elf64_s390"
7413 LD="${LD-ld} -m elf64_sparc"
7423 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7424 SAVE_CFLAGS="$CFLAGS"
7425 CFLAGS="$CFLAGS -belf"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7427 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7428 if ${lt_cv_cc_needs_belf+:} false; then :
7429 $as_echo_n "(cached) " >&6
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7448 if ac_fn_c_try_link "$LINENO"; then :
7449 lt_cv_cc_needs_belf=yes
7451 lt_cv_cc_needs_belf=no
7453 rm -f core conftest.err conftest.$ac_objext \
7454 conftest$ac_exeext conftest.$ac_ext
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7463 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7464 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7465 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7466 CFLAGS="$SAVE_CFLAGS"
7470 # Find out which ABI we are using.
7471 echo 'int i;' > conftest.$ac_ext
7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473 (eval $ac_compile) 2>&5
7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }; then
7477 case `/usr/bin/file conftest.o` in
7479 case $lt_cv_prog_gnu_ld in
7483 LD="${LD-ld} -m elf_x86_64"
7486 LD="${LD-ld} -m elf64_sparc"
7489 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7490 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7495 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7507 need_locks="$enable_libtool_lock"
7509 if test -n "$ac_tool_prefix"; then
7510 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}mt; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$MANIFEST_TOOL"; then
7518 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7538 if test -n "$MANIFEST_TOOL"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7540 $as_echo "$MANIFEST_TOOL" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7548 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7549 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7550 # Extract the first word of "mt", so it can be a program name with args.
7551 set dummy mt; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$ac_ct_MANIFEST_TOOL"; then
7558 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7578 if test -n "$ac_ct_MANIFEST_TOOL"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7580 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7586 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7589 case $cross_compiling:$ac_tool_warned in
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593 ac_tool_warned=yes ;;
7595 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7598 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7601 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7603 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7604 if ${lt_cv_path_mainfest_tool+:} false; then :
7605 $as_echo_n "(cached) " >&6
7607 lt_cv_path_mainfest_tool=no
7608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7610 cat conftest.err >&5
7611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7612 lt_cv_path_mainfest_tool=yes
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7617 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7618 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7628 rhapsody* | darwin*)
7629 if test -n "$ac_tool_prefix"; then
7630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -n "$DSYMUTIL"; then
7638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7658 if test -n "$DSYMUTIL"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7660 $as_echo "$DSYMUTIL" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7668 if test -z "$ac_cv_prog_DSYMUTIL"; then
7669 ac_ct_DSYMUTIL=$DSYMUTIL
7670 # Extract the first word of "dsymutil", so it can be a program name with args.
7671 set dummy dsymutil; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$ac_ct_DSYMUTIL"; then
7678 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7698 if test -n "$ac_ct_DSYMUTIL"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7700 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7706 if test "x$ac_ct_DSYMUTIL" = x; then
7709 case $cross_compiling:$ac_tool_warned in
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7715 DSYMUTIL=$ac_ct_DSYMUTIL
7718 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_NMEDIT+:} false; then :
7727 $as_echo_n "(cached) " >&6
7729 if test -n "$NMEDIT"; then
7730 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 NMEDIT=$ac_cv_prog_NMEDIT
7750 if test -n "$NMEDIT"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7752 $as_echo "$NMEDIT" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7760 if test -z "$ac_cv_prog_NMEDIT"; then
7761 ac_ct_NMEDIT=$NMEDIT
7762 # Extract the first word of "nmedit", so it can be a program name with args.
7763 set dummy nmedit; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 if test -n "$ac_ct_NMEDIT"; then
7770 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7790 if test -n "$ac_ct_NMEDIT"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7792 $as_echo "$ac_ct_NMEDIT" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7798 if test "x$ac_ct_NMEDIT" = x; then
7801 case $cross_compiling:$ac_tool_warned in
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7807 NMEDIT=$ac_ct_NMEDIT
7810 NMEDIT="$ac_cv_prog_NMEDIT"
7813 if test -n "$ac_tool_prefix"; then
7814 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_LIPO+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$LIPO"; then
7822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 LIPO=$ac_cv_prog_LIPO
7842 if test -n "$LIPO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7844 $as_echo "$LIPO" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7852 if test -z "$ac_cv_prog_LIPO"; then
7854 # Extract the first word of "lipo", so it can be a program name with args.
7855 set dummy lipo; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7859 $as_echo_n "(cached) " >&6
7861 if test -n "$ac_ct_LIPO"; then
7862 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_ac_ct_LIPO="lipo"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7882 if test -n "$ac_ct_LIPO"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7884 $as_echo "$ac_ct_LIPO" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7890 if test "x$ac_ct_LIPO" = x; then
7893 case $cross_compiling:$ac_tool_warned in
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7902 LIPO="$ac_cv_prog_LIPO"
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}otool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_OTOOL+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$OTOOL"; then
7914 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 OTOOL=$ac_cv_prog_OTOOL
7934 if test -n "$OTOOL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7936 $as_echo "$OTOOL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_OTOOL"; then
7946 # Extract the first word of "otool", so it can be a program name with args.
7947 set dummy otool; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$ac_ct_OTOOL"; then
7954 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_ac_ct_OTOOL="otool"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7974 if test -n "$ac_ct_OTOOL"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7976 $as_echo "$ac_ct_OTOOL" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_OTOOL" = x; then
7985 case $cross_compiling:$ac_tool_warned in
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7994 OTOOL="$ac_cv_prog_OTOOL"
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_OTOOL64+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$OTOOL64"; then
8006 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 OTOOL64=$ac_cv_prog_OTOOL64
8026 if test -n "$OTOOL64"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8028 $as_echo "$OTOOL64" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_OTOOL64"; then
8037 ac_ct_OTOOL64=$OTOOL64
8038 # Extract the first word of "otool64", so it can be a program name with args.
8039 set dummy otool64; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$ac_ct_OTOOL64"; then
8046 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055 ac_cv_prog_ac_ct_OTOOL64="otool64"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8066 if test -n "$ac_ct_OTOOL64"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8068 $as_echo "$ac_ct_OTOOL64" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8074 if test "x$ac_ct_OTOOL64" = x; then
8077 case $cross_compiling:$ac_tool_warned in
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8083 OTOOL64=$ac_ct_OTOOL64
8086 OTOOL64="$ac_cv_prog_OTOOL64"
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8116 $as_echo_n "checking for -single_module linker flag... " >&6; }
8117 if ${lt_cv_apple_cc_single_mod+:} false; then :
8118 $as_echo_n "(cached) " >&6
8120 lt_cv_apple_cc_single_mod=no
8121 if test -z "${LT_MULTI_MODULE}"; then
8122 # By default we will add the -single_module flag. You can override
8123 # by either setting the environment variable LT_MULTI_MODULE
8124 # non-empty at configure time, or by adding -multi_module to the
8126 rm -rf libconftest.dylib*
8127 echo "int foo(void){return 1;}" > conftest.c
8128 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8129 -dynamiclib -Wl,-single_module conftest.c" >&5
8130 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8131 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8133 # If there is a non-empty error log, and "single_module"
8134 # appears in it, assume the flag caused a linker warning
8135 if test -s conftest.err && $GREP single_module conftest.err; then
8136 cat conftest.err >&5
8137 # Otherwise, if the output was created with a 0 exit code from
8138 # the compiler, it worked.
8139 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8140 lt_cv_apple_cc_single_mod=yes
8142 cat conftest.err >&5
8144 rm -rf libconftest.dylib*
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8152 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8153 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 lt_cv_ld_exported_symbols_list=no
8157 save_LDFLAGS=$LDFLAGS
8158 echo "_main" > conftest.sym
8159 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8171 if ac_fn_c_try_link "$LINENO"; then :
8172 lt_cv_ld_exported_symbols_list=yes
8174 lt_cv_ld_exported_symbols_list=no
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 LDFLAGS="$save_LDFLAGS"
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8182 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8185 $as_echo_n "checking for -force_load linker flag... " >&6; }
8186 if ${lt_cv_ld_force_load+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 lt_cv_ld_force_load=no
8190 cat > conftest.c << _LT_EOF
8191 int forced_loaded() { return 2;}
8193 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8194 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8195 echo "$AR cru libconftest.a conftest.o" >&5
8196 $AR cru libconftest.a conftest.o 2>&5
8197 echo "$RANLIB libconftest.a" >&5
8198 $RANLIB libconftest.a 2>&5
8199 cat > conftest.c << _LT_EOF
8200 int main() { return 0;}
8202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8205 if test -s conftest.err && $GREP force_load conftest.err; then
8206 cat conftest.err >&5
8207 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8208 lt_cv_ld_force_load=yes
8210 cat conftest.err >&5
8212 rm -f conftest.err libconftest.a conftest conftest.c
8213 rm -rf conftest.dSYM
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8217 $as_echo "$lt_cv_ld_force_load" >&6; }
8219 rhapsody* | darwin1.[012])
8220 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8223 darwin*) # darwin 5.x on
8224 # if running on 10.5 or later, the deployment target defaults
8225 # to the OS version, if on x86, and 10.4, the deployment
8226 # target defaults to 10.4. Don't you love it?
8227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8228 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8229 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8233 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8237 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8238 _lt_dar_single_mod='$single_module'
8240 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8241 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8243 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8245 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8246 _lt_dsymutil='~$DSYMUTIL $lib || :'
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8254 $as_echo_n "checking for ANSI C header files... " >&6; }
8255 if ${ac_cv_header_stdc+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274 ac_cv_header_stdc=yes
8276 ac_cv_header_stdc=no
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 if test $ac_cv_header_stdc = yes; then
8281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288 $EGREP "memchr" >/dev/null 2>&1; then :
8291 ac_cv_header_stdc=no
8297 if test $ac_cv_header_stdc = yes; then
8298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8305 $EGREP "free" >/dev/null 2>&1; then :
8308 ac_cv_header_stdc=no
8314 if test $ac_cv_header_stdc = yes; then
8315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8316 if test "$cross_compiling" = yes; then :
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8323 #if ((' ' & 0x0FF) == 0x020)
8324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8327 # define ISLOWER(c) \
8328 (('a' <= (c) && (c) <= 'i') \
8329 || ('j' <= (c) && (c) <= 'r') \
8330 || ('s' <= (c) && (c) <= 'z'))
8331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8339 for (i = 0; i < 256; i++)
8340 if (XOR (islower (i), ISLOWER (i))
8341 || toupper (i) != TOUPPER (i))
8346 if ac_fn_c_try_run "$LINENO"; then :
8349 ac_cv_header_stdc=no
8351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8352 conftest.$ac_objext conftest.beam conftest.$ac_ext
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8358 $as_echo "$ac_cv_header_stdc" >&6; }
8359 if test $ac_cv_header_stdc = yes; then
8361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8367 inttypes.h stdint.h unistd.h
8369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8382 for ac_header in dlfcn.h
8384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_DLFCN_H 1
8398 func_stripname_cnf ()
8401 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8402 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8404 } # func_stripname_cnf
8418 # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420 enableval=$enable_shared; p=${PACKAGE-default}
8422 yes) enable_shared=yes ;;
8423 no) enable_shared=no ;;
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428 for pkg in $enableval; do
8430 if test "X$pkg" = "X$p"; then
8449 # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451 enableval=$enable_static; p=${PACKAGE-default}
8453 yes) enable_static=yes ;;
8454 no) enable_static=no ;;
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8459 for pkg in $enableval; do
8461 if test "X$pkg" = "X$p"; then
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483 withval=$with_pic; lt_p=${PACKAGE-default}
8485 yes|no) pic_mode=$withval ;;
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490 for lt_pkg in $withval; do
8492 if test "X$lt_pkg" = "X$lt_p"; then
8504 test -z "$pic_mode" && pic_mode=default
8512 # Check whether --enable-fast-install was given.
8513 if test "${enable_fast_install+set}" = set; then :
8514 enableval=$enable_fast_install; p=${PACKAGE-default}
8516 yes) enable_fast_install=yes ;;
8517 no) enable_fast_install=no ;;
8519 enable_fast_install=no
8520 # Look at the argument we got. We use all the common list separators.
8521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8522 for pkg in $enableval; do
8524 if test "X$pkg" = "X$p"; then
8525 enable_fast_install=yes
8532 enable_fast_install=yes
8545 # This can be used to rebuild libtool when needed
8546 LIBTOOL_DEPS="$ltmain"
8548 # Always use our own libtool.
8549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8580 test -z "$LN_S" && LN_S="ln -s"
8595 if test -n "${ZSH_VERSION+set}" ; then
8596 setopt NO_GLOB_SUBST
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8600 $as_echo_n "checking for objdir... " >&6; }
8601 if ${lt_cv_objdir+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 rm -f .libs 2>/dev/null
8605 mkdir .libs 2>/dev/null
8606 if test -d .libs; then
8609 # MS-DOS does not allow filenames that begin with a dot.
8612 rmdir .libs 2>/dev/null
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8615 $as_echo "$lt_cv_objdir" >&6; }
8616 objdir=$lt_cv_objdir
8622 cat >>confdefs.h <<_ACEOF
8623 #define LT_OBJDIR "$lt_cv_objdir/"
8631 # AIX sometimes has problems with the GCC collect2 program. For some
8632 # reason, if we set the COLLECT_NAMES environment variable, the problems
8633 # vanish in a puff of smoke.
8634 if test "X${COLLECT_NAMES+set}" != Xset; then
8636 export COLLECT_NAMES
8643 can_build_shared=yes
8645 # All known linkers require a `.a' archive for static linking (except MSVC,
8646 # which needs '.lib').
8649 with_gnu_ld="$lt_cv_prog_gnu_ld"
8652 old_CFLAGS="$CFLAGS"
8654 # Set sane defaults for various variables
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$LD" && LD=ld
8659 test -z "$ac_objext" && ac_objext=o
8661 for cc_temp in $compiler""; do
8663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8672 # Only perform the check for file, if the check method requires it
8673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8674 case $deplibs_check_method in
8676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8679 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8680 $as_echo_n "(cached) " >&6
8684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8687 lt_save_MAGIC_CMD="$MAGIC_CMD"
8688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8690 for ac_dir in $ac_dummy; do
8692 test -z "$ac_dir" && ac_dir=.
8693 if test -f $ac_dir/${ac_tool_prefix}file; then
8694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8695 if test -n "$file_magic_test_file"; then
8696 case $deplibs_check_method in
8698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8701 $EGREP "$file_magic_regex" > /dev/null; then
8706 *** Warning: the command libtool uses to detect shared libraries,
8707 *** $file_magic_cmd, produces output that libtool cannot recognize.
8708 *** The result is that libtool may fail to recognize shared libraries
8709 *** as such. This will affect the creation of libtool libraries that
8710 *** depend on shared libraries, but programs linked with such libtool
8711 *** libraries will work regardless of this problem. Nevertheless, you
8712 *** may want to report the problem to your system manager and/or to
8713 *** bug-libtool@gnu.org
8723 MAGIC_CMD="$lt_save_MAGIC_CMD"
8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729 if test -n "$MAGIC_CMD"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8731 $as_echo "$MAGIC_CMD" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8741 if test -z "$lt_cv_path_MAGIC_CMD"; then
8742 if test -n "$ac_tool_prefix"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8744 $as_echo_n "checking for file... " >&6; }
8745 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8746 $as_echo_n "(cached) " >&6
8750 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8753 lt_save_MAGIC_CMD="$MAGIC_CMD"
8754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8756 for ac_dir in $ac_dummy; do
8758 test -z "$ac_dir" && ac_dir=.
8759 if test -f $ac_dir/file; then
8760 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8761 if test -n "$file_magic_test_file"; then
8762 case $deplibs_check_method in
8764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8767 $EGREP "$file_magic_regex" > /dev/null; then
8772 *** Warning: the command libtool uses to detect shared libraries,
8773 *** $file_magic_cmd, produces output that libtool cannot recognize.
8774 *** The result is that libtool may fail to recognize shared libraries
8775 *** as such. This will affect the creation of libtool libraries that
8776 *** depend on shared libraries, but programs linked with such libtool
8777 *** libraries will work regardless of this problem. Nevertheless, you
8778 *** may want to report the problem to your system manager and/or to
8779 *** bug-libtool@gnu.org
8789 MAGIC_CMD="$lt_save_MAGIC_CMD"
8794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8795 if test -n "$MAGIC_CMD"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8797 $as_echo "$MAGIC_CMD" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8813 # Use C for the default configuration in the libtool script
8817 ac_cpp='$CPP $CPPFLAGS'
8818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823 # Source file extension for C test sources.
8826 # Object file extension for compiled C test sources.
8830 # Code to be used in simple compile tests
8831 lt_simple_compile_test_code="int some_variable = 0;"
8833 # Code to be used in simple link tests
8834 lt_simple_link_test_code='int main(){return(0);}'
8842 # If no C compiler was specified, use CC.
8845 # If no C compiler flags were specified, use CFLAGS.
8846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8848 # Allow CC to be a program name with arguments.
8851 # Save the default compiler, since it gets overwritten when the other
8852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8853 compiler_DEFAULT=$CC
8855 # save warnings/boilerplate of simple test code
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8859 _lt_compiler_boilerplate=`cat conftest.err`
8862 ac_outfile=conftest.$ac_objext
8863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8865 _lt_linker_boilerplate=`cat conftest.err`
8869 if test -n "$compiler"; then
8871 lt_prog_compiler_no_builtin_flag=
8873 if test "$GCC" = yes; then
8874 case $cc_basename in
8876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8883 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8884 $as_echo_n "(cached) " >&6
8886 lt_cv_prog_compiler_rtti_exceptions=no
8887 ac_outfile=conftest.$ac_objext
8888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889 lt_compiler_flag="-fno-rtti -fno-exceptions"
8890 # Insert the option either (1) after the last *FLAGS variable, or
8891 # (2) before a word containing "conftest.", or (3) at the end.
8892 # Note that $ac_compile itself does not contain backslashes and begins
8893 # with a dollar sign (not a hyphen), so the echo should work correctly.
8894 # The option is referenced via a variable to avoid confusing sed.
8895 lt_compile=`echo "$ac_compile" | $SED \
8896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898 -e 's:$: $lt_compiler_flag:'`
8899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900 (eval "$lt_compile" 2>conftest.err)
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 if (exit $ac_status) && test -s "$ac_outfile"; then
8905 # The compiler can only warn and ignore the option if not recognized
8906 # So say no if there are warnings other than the usual output.
8907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_rtti_exceptions=yes
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8932 lt_prog_compiler_wl=
8933 lt_prog_compiler_pic=
8934 lt_prog_compiler_static=
8937 if test "$GCC" = yes; then
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_static='-static'
8943 # All AIX code is PIC.
8944 if test "$host_cpu" = ia64; then
8945 # AIX 5 now supports IA64 processor
8946 lt_prog_compiler_static='-Bstatic'
8953 # see comment about AmigaOS4 .so support
8954 lt_prog_compiler_pic='-fPIC'
8957 # FIXME: we need at least 68020 code to build shared libraries, but
8958 # adding the `-m68020' flag to GCC prevents building anything better,
8960 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8966 # PIC is the default for these OSes.
8969 mingw* | cygwin* | pw32* | os2* | cegcc*)
8970 # This hack is so that the source file can tell whether it is being
8971 # built for inclusion in a dll (and should export symbols for example).
8972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8973 # (--disable-auto-import) libraries
8974 lt_prog_compiler_pic='-DDLL_EXPORT'
8977 darwin* | rhapsody*)
8978 # PIC is the default on this platform
8979 # Common symbols not allowed in MH_DYLIB files
8980 lt_prog_compiler_pic='-fno-common'
8984 # PIC is the default for Haiku.
8985 # The "-static" flag exists, but is broken.
8986 lt_prog_compiler_static=
8990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8992 # sets the default TLS model and affects inlining.
8998 lt_prog_compiler_pic='-fPIC'
9004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9005 # Instead, we relocate shared libraries at runtime.
9009 # Just because we use GCC doesn't mean we suddenly get shared libraries
9010 # on systems that don't support them.
9011 lt_prog_compiler_can_build_shared=no
9016 # QNX uses GNU C++, but need to define -shared option too, otherwise
9018 lt_prog_compiler_pic='-fPIC -shared'
9022 if test -d /usr/nec; then
9023 lt_prog_compiler_pic=-Kconform_pic
9028 lt_prog_compiler_pic='-fPIC'
9032 case $cc_basename in
9033 nvcc*) # Cuda Compiler Driver 2.2
9034 lt_prog_compiler_wl='-Xlinker '
9035 if test -n "$lt_prog_compiler_pic"; then
9036 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9041 # PORTME Check for flag to pass linker flags through the system compiler.
9044 lt_prog_compiler_wl='-Wl,'
9045 if test "$host_cpu" = ia64; then
9046 # AIX 5 now supports IA64 processor
9047 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 mingw* | cygwin* | pw32* | os2* | cegcc*)
9054 # This hack is so that the source file can tell whether it is being
9055 # built for inclusion in a dll (and should export symbols for example).
9056 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 hpux9* | hpux10* | hpux11*)
9060 lt_prog_compiler_wl='-Wl,'
9061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9068 lt_prog_compiler_pic='+Z'
9071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9072 lt_prog_compiler_static='${wl}-a ${wl}archive'
9075 irix5* | irix6* | nonstopux*)
9076 lt_prog_compiler_wl='-Wl,'
9077 # PIC (with -KPIC) is the default.
9078 lt_prog_compiler_static='-non_shared'
9081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9082 case $cc_basename in
9083 # old Intel for x86_64 which still supported -KPIC.
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-static'
9089 # icc used to be incompatible with GCC.
9090 # ICC 10 doesn't accept -KPIC any more.
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fPIC'
9094 lt_prog_compiler_static='-static'
9096 # Lahey Fortran 8.1.
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='--shared'
9100 lt_prog_compiler_static='--static'
9103 # NAG Fortran compiler
9104 lt_prog_compiler_wl='-Wl,-Wl,,'
9105 lt_prog_compiler_pic='-PIC'
9106 lt_prog_compiler_static='-Bstatic'
9108 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9109 # Portland Group compilers (*not* the Pentium gcc compiler,
9110 # which looks to be a dead project)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-fpic'
9113 lt_prog_compiler_static='-Bstatic'
9116 lt_prog_compiler_wl='-Wl,'
9117 # All Alpha code is PIC.
9118 lt_prog_compiler_static='-non_shared'
9120 xl* | bgxl* | bgf* | mpixl*)
9121 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9122 lt_prog_compiler_wl='-Wl,'
9123 lt_prog_compiler_pic='-qpic'
9124 lt_prog_compiler_static='-qstaticlink'
9127 case `$CC -V 2>&1 | sed 5q` in
9128 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9129 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9132 lt_prog_compiler_wl=''
9134 *Sun\ F* | *Sun*Fortran*)
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-Bstatic'
9137 lt_prog_compiler_wl='-Qoption ld '
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 lt_prog_compiler_wl='-Wl,'
9145 *Intel*\ [CF]*Compiler*)
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-fPIC'
9148 lt_prog_compiler_static='-static'
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_pic='-fpic'
9153 lt_prog_compiler_static='-Bstatic'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-Bstatic'
9166 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 lt_prog_compiler_pic='-fPIC -shared'
9171 osf3* | osf4* | osf5*)
9172 lt_prog_compiler_wl='-Wl,'
9173 # All OSF/1 code is PIC.
9174 lt_prog_compiler_static='-non_shared'
9178 lt_prog_compiler_static='-non_shared'
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 case $cc_basename in
9185 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9186 lt_prog_compiler_wl='-Qoption ld ';;
9188 lt_prog_compiler_wl='-Wl,';;
9193 lt_prog_compiler_wl='-Qoption ld '
9194 lt_prog_compiler_pic='-PIC'
9195 lt_prog_compiler_static='-Bstatic'
9198 sysv4 | sysv4.2uw2* | sysv4.3*)
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_pic='-KPIC'
9201 lt_prog_compiler_static='-Bstatic'
9205 if test -d /usr/nec ;then
9206 lt_prog_compiler_pic='-Kconform_pic'
9207 lt_prog_compiler_static='-Bstatic'
9211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9212 lt_prog_compiler_wl='-Wl,'
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_can_build_shared=no
9223 lt_prog_compiler_pic='-pic'
9224 lt_prog_compiler_static='-Bstatic'
9228 lt_prog_compiler_can_build_shared=no
9234 # For platforms which do not support PIC, -DPIC is meaningless:
9236 lt_prog_compiler_pic=
9239 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9245 if ${lt_cv_prog_compiler_pic+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9251 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9255 # Check to make sure the PIC flag actually works.
9257 if test -n "$lt_prog_compiler_pic"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9260 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9261 $as_echo_n "(cached) " >&6
9263 lt_cv_prog_compiler_pic_works=no
9264 ac_outfile=conftest.$ac_objext
9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9266 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9267 # Insert the option either (1) after the last *FLAGS variable, or
9268 # (2) before a word containing "conftest.", or (3) at the end.
9269 # Note that $ac_compile itself does not contain backslashes and begins
9270 # with a dollar sign (not a hyphen), so the echo should work correctly.
9271 # The option is referenced via a variable to avoid confusing sed.
9272 lt_compile=`echo "$ac_compile" | $SED \
9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9275 -e 's:$: $lt_compiler_flag:'`
9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9277 (eval "$lt_compile" 2>conftest.err)
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 if (exit $ac_status) && test -s "$ac_outfile"; then
9282 # The compiler can only warn and ignore the option if not recognized
9283 # So say no if there are warnings other than the usual output.
9284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9287 lt_cv_prog_compiler_pic_works=yes
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9294 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9296 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9297 case $lt_prog_compiler_pic in
9299 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9302 lt_prog_compiler_pic=
9303 lt_prog_compiler_can_build_shared=no
9319 # Check to make sure the static flag actually works.
9321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9324 if ${lt_cv_prog_compiler_static_works+:} false; then :
9325 $as_echo_n "(cached) " >&6
9327 lt_cv_prog_compiler_static_works=no
9328 save_LDFLAGS="$LDFLAGS"
9329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332 # The linker can only warn and ignore the option if not recognized
9333 # So say no if there are warnings
9334 if test -s conftest.err; then
9335 # Append any errors to the config.log.
9336 cat conftest.err 1>&5
9337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339 if diff conftest.exp conftest.er2 >/dev/null; then
9340 lt_cv_prog_compiler_static_works=yes
9343 lt_cv_prog_compiler_static_works=yes
9347 LDFLAGS="$save_LDFLAGS"
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9356 lt_prog_compiler_static=
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9367 if ${lt_cv_prog_compiler_c_o+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 lt_cv_prog_compiler_c_o=no
9371 $RM -r conftest 2>/dev/null
9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9377 lt_compiler_flag="-o out/conftest2.$ac_objext"
9378 # Insert the option either (1) after the last *FLAGS variable, or
9379 # (2) before a word containing "conftest.", or (3) at the end.
9380 # Note that $ac_compile itself does not contain backslashes and begins
9381 # with a dollar sign (not a hyphen), so the echo should work correctly.
9382 lt_compile=`echo "$ac_compile" | $SED \
9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385 -e 's:$: $lt_compiler_flag:'`
9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387 (eval "$lt_compile" 2>out/conftest.err)
9389 cat out/conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9393 # The compiler can only warn and ignore the option if not recognized
9394 # So say no if there are warnings
9395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398 lt_cv_prog_compiler_c_o=yes
9403 # SGI C++ compiler will create directory out/ii_files/ for
9404 # template instantiation
9405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406 $RM out/* && rmdir out
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if ${lt_cv_prog_compiler_c_o+:} false; then :
9423 $as_echo_n "(cached) " >&6
9425 lt_cv_prog_compiler_c_o=no
9426 $RM -r conftest 2>/dev/null
9430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432 lt_compiler_flag="-o out/conftest2.$ac_objext"
9433 # Insert the option either (1) after the last *FLAGS variable, or
9434 # (2) before a word containing "conftest.", or (3) at the end.
9435 # Note that $ac_compile itself does not contain backslashes and begins
9436 # with a dollar sign (not a hyphen), so the echo should work correctly.
9437 lt_compile=`echo "$ac_compile" | $SED \
9438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440 -e 's:$: $lt_compiler_flag:'`
9441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9442 (eval "$lt_compile" 2>out/conftest.err)
9444 cat out/conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 # The compiler can only warn and ignore the option if not recognized
9449 # So say no if there are warnings
9450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453 lt_cv_prog_compiler_c_o=yes
9458 # SGI C++ compiler will create directory out/ii_files/ for
9459 # template instantiation
9460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461 $RM out/* && rmdir out
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9473 hard_links="nottested"
9474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9475 # do not overwrite the value of need_locks provided by the user
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9477 $as_echo_n "checking if we can lock with hard links... " >&6; }
9480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482 ln conftest.a conftest.b 2>&5 || hard_links=no
9483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9485 $as_echo "$hard_links" >&6; }
9486 if test "$hard_links" = no; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9504 allow_undefined_flag=
9505 always_export_symbols=no
9507 archive_expsym_cmds=
9508 compiler_needs_object=no
9509 enable_shared_with_static_runtimes=no
9510 export_dynamic_flag_spec=
9511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9512 hardcode_automatic=no
9514 hardcode_direct_absolute=no
9515 hardcode_libdir_flag_spec=
9516 hardcode_libdir_separator=
9518 hardcode_shlibpath_var=unsupported
9520 link_all_deplibs=unknown
9523 old_archive_from_new_cmds=
9524 old_archive_from_expsyms_cmds=
9525 thread_safe_flag_spec=
9526 whole_archive_flag_spec=
9527 # include_expsyms should be a list of space-separated symbols to be *always*
9528 # included in the symbol list
9530 # exclude_expsyms can be an extended regexp of symbols to exclude
9531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9533 # as well as any symbol that contains `d'.
9534 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9536 # platforms (ab)use it in PIC code, but their linkers get confused if
9537 # the symbol is explicitly referenced. Since portable code cannot
9538 # rely on this symbol name, it's probably fine to never include it in
9539 # preloaded symbol tables.
9540 # Exclude shared library initialization/finalization symbols.
9541 extract_expsyms_cmds=
9544 cygwin* | mingw* | pw32* | cegcc*)
9545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9546 # When not using gcc, we currently assume that we are using
9547 # Microsoft Visual C++.
9548 if test "$GCC" != yes; then
9553 # we just hope/assume this is gcc and not c89 (= MSVC++)
9559 linux* | k*bsd*-gnu | gnu*)
9566 # On some targets, GNU ld is compatible enough with the native linker
9567 # that we're better off using the native interface for both.
9568 lt_use_gnu_ld_interface=no
9569 if test "$with_gnu_ld" = yes; then
9572 # The AIX port of GNU ld has always aspired to compatibility
9573 # with the native linker. However, as the warning in the GNU ld
9574 # block says, versions before 2.19.5* couldn't really create working
9575 # shared libraries, regardless of the interface used.
9576 case `$LD -v 2>&1` in
9577 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9578 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9579 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9581 lt_use_gnu_ld_interface=yes
9586 lt_use_gnu_ld_interface=yes
9591 if test "$lt_use_gnu_ld_interface" = yes; then
9592 # If archive_cmds runs LD, not CC, wlarc should be empty
9595 # Set some defaults for GNU ld with shared library support. These
9596 # are reset later if shared libraries are not supported. Putting them
9597 # here allows them to be overridden if necessary.
9598 runpath_var=LD_RUN_PATH
9599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600 export_dynamic_flag_spec='${wl}--export-dynamic'
9601 # ancient GNU ld didn't support --whole-archive et. al.
9602 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9603 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9605 whole_archive_flag_spec=
9607 supports_anon_versioning=no
9608 case `$LD -v 2>&1` in
9609 *GNU\ gold*) supports_anon_versioning=yes ;;
9610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9613 *\ 2.11.*) ;; # other 2.11 versions
9614 *) supports_anon_versioning=yes ;;
9617 # See if GNU ld supports shared libraries.
9620 # On AIX/PPC, the GNU linker is very broken
9621 if test "$host_cpu" != ia64; then
9625 *** Warning: the GNU linker, at least up to release 2.19, is reported
9626 *** to be unable to reliably create shared libraries on AIX.
9627 *** Therefore, libtool is disabling shared libraries support. If you
9628 *** really care for shared libraries, you may want to install binutils
9629 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9630 *** You will then need to restart the configuration process.
9639 # see comment about AmigaOS4 .so support
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 archive_expsym_cmds=''
9644 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)'
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_minus_L=yes
9652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653 allow_undefined_flag=unsupported
9654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9655 # support --undefined. This deserves some investigation. FIXME
9656 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 cygwin* | mingw* | pw32* | cegcc*)
9663 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9664 # as there is no search path for DLLs.
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 export_dynamic_flag_spec='${wl}--export-all-symbols'
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=no
9669 enable_shared_with_static_runtimes=yes
9670 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'
9671 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9673 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675 # If the export-symbols file already is a .def file (1st line
9676 # is EXPORTS), use it as is; otherwise, prepend...
9677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9678 cp $export_symbols $output_objdir/$soname.def;
9680 echo EXPORTS > $output_objdir/$soname.def;
9681 cat $export_symbols >> $output_objdir/$soname.def;
9683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 link_all_deplibs=yes
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698 export_dynamic_flag_spec='${wl}-E'
9699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700 # Instead, shared libraries are loaded at an image base (0x10000000 by
9701 # default) and relocated if they conflict, which is a slow very memory
9702 # consuming and fragmenting process. To avoid this, we pick a random,
9703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706 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'
9709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711 if test "$host_os" = linux-dietlibc; then
9712 case $cc_basename in
9713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717 && test "$tmp_diet" = no
9719 tmp_addflag=' $pic_flag'
9720 tmp_sharedflag='-shared'
9721 case $cc_basename,$host_cpu in
9722 pgcc*) # Portland Group C compiler
9723 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'
9724 tmp_addflag=' $pic_flag'
9726 pgf77* | pgf90* | pgf95* | pgfortran*)
9727 # Portland Group f77 and f90 compilers
9728 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'
9729 tmp_addflag=' $pic_flag -Mnomain' ;;
9730 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9731 tmp_addflag=' -i_dynamic' ;;
9732 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9733 tmp_addflag=' -i_dynamic -nofor_main' ;;
9734 ifc* | ifort*) # Intel Fortran compiler
9735 tmp_addflag=' -nofor_main' ;;
9736 lf95*) # Lahey Fortran 8.1
9737 whole_archive_flag_spec=
9738 tmp_sharedflag='--shared' ;;
9739 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9740 tmp_sharedflag='-qmkshrobj'
9742 nvcc*) # Cuda Compiler Driver 2.2
9743 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'
9744 compiler_needs_object=yes
9747 case `$CC -V 2>&1 | sed 5q` in
9748 *Sun\ C*) # Sun C 5.9
9749 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'
9750 compiler_needs_object=yes
9751 tmp_sharedflag='-G' ;;
9752 *Sun\ F*) # Sun Fortran 8.3
9753 tmp_sharedflag='-G' ;;
9755 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 if test "x$supports_anon_versioning" = xyes; then
9758 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9760 echo "local: *; };" >> $output_objdir/$libname.ver~
9761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9764 case $cc_basename in
9765 xlf* | bgf* | bgxlf* | mpixlf*)
9766 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9767 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9770 if test "x$supports_anon_versioning" = xyes; then
9771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773 echo "local: *; };" >> $output_objdir/$libname.ver~
9774 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9783 netbsd* | netbsdelf*-gnu)
9784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9785 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9799 *** create shared libraries on Solaris systems. Therefore, libtool
9800 *** is disabling shared libraries support. We urge you to upgrade GNU
9801 *** binutils to release 2.9.1 or newer. Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9806 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9815 case `$LD -v 2>&1` in
9816 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9821 *** reliably create shared libraries on SCO systems. Therefore, libtool
9822 *** is disabling shared libraries support. We urge you to upgrade GNU
9823 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9824 *** your PATH or compiler configuration so that the native linker is
9825 *** used, and then restart.
9830 # For security reasons, it is highly recommended that you always
9831 # use absolute paths for naming shared libraries, and exclude the
9832 # DT_RUNPATH tag from executables and libraries. But doing so
9833 # requires that you compile everything twice, which is a pain.
9834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_shlibpath_var=no
9853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9862 if test "$ld_shlibs" = no; then
9864 hardcode_libdir_flag_spec=
9865 export_dynamic_flag_spec=
9866 whole_archive_flag_spec=
9869 # PORTME fill in a description of your system's linker (not GNU ld)
9872 allow_undefined_flag=unsupported
9873 always_export_symbols=yes
9874 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'
9875 # Note: this linker hardcodes the directories in LIBPATH if there
9876 # are no directories specified by -L.
9877 hardcode_minus_L=yes
9878 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9879 # Neither direct hardcoding nor static linking is supported with a
9881 hardcode_direct=unsupported
9886 if test "$host_cpu" = ia64; then
9887 # On IA64, the linker does run time linking by default, so we don't
9888 # have to do anything special.
9889 aix_use_runtimelinking=no
9890 exp_sym_flag='-Bexport'
9893 # If we're using GNU nm, then we don't want the "-C" option.
9894 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9895 # Also, AIX nm treats weak defined symbols like other global
9896 # defined symbols, whereas GNU nm marks them as "W".
9897 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9898 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'
9900 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'
9902 aix_use_runtimelinking=no
9904 # Test if we are trying to use run time linking or normal
9905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9906 # need to do runtime linking.
9907 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9908 for ld_flag in $LDFLAGS; do
9909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9910 aix_use_runtimelinking=yes
9917 exp_sym_flag='-bexport'
9918 no_entry_flag='-bnoentry'
9921 # When large executables or shared objects are built, AIX ld can
9922 # have problems creating the table of contents. If linking a library
9923 # or program results in "error TOC overflow" add -mminimal-toc to
9924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9929 hardcode_direct_absolute=yes
9930 hardcode_libdir_separator=':'
9931 link_all_deplibs=yes
9932 file_list_spec='${wl}-f,'
9934 if test "$GCC" = yes; then
9935 case $host_os in aix4.[012]|aix4.[012].*)
9936 # We only want to do this on AIX 4.2 and lower, the check
9937 # below for broken collect2 doesn't work under 4.3+
9938 collect2name=`${CC} -print-prog-name=collect2`
9939 if test -f "$collect2name" &&
9940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9942 # We have reworked collect2
9945 # We have old collect2
9946 hardcode_direct=unsupported
9947 # It fails to find uninstalled libraries when the uninstalled
9948 # path is not listed in the libpath. Setting hardcode_minus_L
9949 # to unsupported forces relinking
9950 hardcode_minus_L=yes
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_libdir_separator=
9956 shared_flag='-shared'
9957 if test "$aix_use_runtimelinking" = yes; then
9958 shared_flag="$shared_flag "'${wl}-G'
9963 if test "$host_cpu" = ia64; then
9964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965 # chokes on -Wl,-G. The following line is correct:
9968 if test "$aix_use_runtimelinking" = yes; then
9969 shared_flag='${wl}-G'
9971 shared_flag='${wl}-bM:SRE'
9976 export_dynamic_flag_spec='${wl}-bexpall'
9977 # It seems that -bexpall does not export symbols beginning with
9978 # underscore (_), so it is better to generate a list of symbols to export.
9979 always_export_symbols=yes
9980 if test "$aix_use_runtimelinking" = yes; then
9981 # Warning - without using the other runtime loading flags (-brtl),
9982 # -berok will link without error, but may produce a broken library.
9983 allow_undefined_flag='-berok'
9984 # Determine the default libpath from the value encoded in an
9986 if test "${lt_cv_aix_libpath+set}" = set; then
9987 aix_libpath=$lt_cv_aix_libpath
9989 if ${lt_cv_aix_libpath_+:} false; then :
9990 $as_echo_n "(cached) " >&6
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10005 lt_aix_libpath_sed='
10006 /Import File Strings/,/^$/ {
10008 s/^0 *\([^ ]*\) *$/\1/
10012 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013 # Check for a 64-bit object if we didn't find anything.
10014 if test -z "$lt_cv_aix_libpath_"; then
10015 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$lt_cv_aix_libpath_"; then
10021 lt_cv_aix_libpath_="/usr/lib:/lib"
10026 aix_libpath=$lt_cv_aix_libpath_
10029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10030 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"
10032 if test "$host_cpu" = ia64; then
10033 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10034 allow_undefined_flag="-z nodefs"
10035 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"
10037 # Determine the default libpath from the value encoded in an
10038 # empty executable.
10039 if test "${lt_cv_aix_libpath+set}" = set; then
10040 aix_libpath=$lt_cv_aix_libpath
10042 if ${lt_cv_aix_libpath_+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10056 if ac_fn_c_try_link "$LINENO"; then :
10058 lt_aix_libpath_sed='
10059 /Import File Strings/,/^$/ {
10061 s/^0 *\([^ ]*\) *$/\1/
10065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10066 # Check for a 64-bit object if we didn't find anything.
10067 if test -z "$lt_cv_aix_libpath_"; then
10068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 if test -z "$lt_cv_aix_libpath_"; then
10074 lt_cv_aix_libpath_="/usr/lib:/lib"
10079 aix_libpath=$lt_cv_aix_libpath_
10082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10083 # Warning - without using the other run time loading flags,
10084 # -berok will link without error, but may produce a broken library.
10085 no_undefined_flag=' ${wl}-bernotok'
10086 allow_undefined_flag=' ${wl}-berok'
10087 if test "$with_gnu_ld" = yes; then
10088 # We only use this code for GNU lds that support --whole-archive.
10089 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091 # Exported symbols can be pulled into shared objects from archives
10092 whole_archive_flag_spec='$convenience'
10094 archive_cmds_need_lc=yes
10095 # This is similar to how AIX traditionally builds its shared libraries.
10096 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'
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 export_dynamic_flag_spec=-rdynamic
10120 cygwin* | mingw* | pw32* | cegcc*)
10121 # When not using gcc, we currently assume that we are using
10122 # Microsoft Visual C++.
10123 # hardcode_libdir_flag_spec is actually meaningless, as there is
10124 # no search path for DLLs.
10125 case $cc_basename in
10128 hardcode_libdir_flag_spec=' '
10129 allow_undefined_flag=unsupported
10130 always_export_symbols=yes
10132 # Tell ltmain to make .lib files, not .a files.
10134 # Tell ltmain to make .dll files, not .so files.
10136 # FIXME: Setting linknames here is a bad hack.
10137 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10138 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10139 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10141 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10143 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10145 # The linker will not automatically build a static lib if we build a DLL.
10146 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10147 enable_shared_with_static_runtimes=yes
10148 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10151 old_postinstall_cmds='chmod 644 $oldlib'
10152 postlink_cmds='lt_outputfile="@OUTPUT@"~
10153 lt_tool_outputfile="@TOOL_OUTPUT@"~
10154 case $lt_outputfile in
10157 lt_outputfile="$lt_outputfile.exe"
10158 lt_tool_outputfile="$lt_tool_outputfile.exe"
10161 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10162 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10163 $RM "$lt_outputfile.manifest";
10167 # Assume MSVC wrapper
10168 hardcode_libdir_flag_spec=' '
10169 allow_undefined_flag=unsupported
10170 # Tell ltmain to make .lib files, not .a files.
10172 # Tell ltmain to make .dll files, not .so files.
10174 # FIXME: Setting linknames here is a bad hack.
10175 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10176 # The linker will automatically build a .lib file if we build a DLL.
10177 old_archive_from_new_cmds='true'
10178 # FIXME: Should let the user specify the lib program.
10179 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10180 enable_shared_with_static_runtimes=yes
10185 darwin* | rhapsody*)
10188 archive_cmds_need_lc=no
10190 hardcode_automatic=yes
10191 hardcode_shlibpath_var=unsupported
10192 if test "$lt_cv_ld_force_load" = "yes"; then
10193 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\"`'
10196 whole_archive_flag_spec=''
10198 link_all_deplibs=yes
10199 allow_undefined_flag="$_lt_dar_allow_undefined"
10200 case $cc_basename in
10201 ifort*) _lt_dar_can_shared=yes ;;
10202 *) _lt_dar_can_shared=$GCC ;;
10204 if test "$_lt_dar_can_shared" = "yes"; then
10205 output_verbose_link_cmd=func_echo_all
10206 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10207 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10208 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}"
10209 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}"
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_shlibpath_var=no
10223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10224 # support. Future versions do this automatically, but an explicit c++rt0.o
10225 # does not break anything, and helps significantly (at the cost of a little
10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10229 hardcode_libdir_flag_spec='-R$libdir'
10230 hardcode_direct=yes
10231 hardcode_shlibpath_var=no
10234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_direct=yes
10238 hardcode_minus_L=yes
10239 hardcode_shlibpath_var=no
10242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10243 freebsd* | dragonfly*)
10244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245 hardcode_libdir_flag_spec='-R$libdir'
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10251 if test "$GCC" = yes; then
10252 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'
10254 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'
10256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10257 hardcode_libdir_separator=:
10258 hardcode_direct=yes
10260 # hardcode_minus_L: Not really in the search PATH,
10261 # but as the default location of the library.
10262 hardcode_minus_L=yes
10263 export_dynamic_flag_spec='${wl}-E'
10267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10268 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10272 if test "$with_gnu_ld" = no; then
10273 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10274 hardcode_libdir_separator=:
10275 hardcode_direct=yes
10276 hardcode_direct_absolute=yes
10277 export_dynamic_flag_spec='${wl}-E'
10278 # hardcode_minus_L: Not really in the search PATH,
10279 # but as the default location of the library.
10280 hardcode_minus_L=yes
10285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10288 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 # Older versions of the 11.00 compiler do not understand -b yet
10308 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10310 $as_echo_n "checking if $CC understands -b... " >&6; }
10311 if ${lt_cv_prog_compiler__b+:} false; then :
10312 $as_echo_n "(cached) " >&6
10314 lt_cv_prog_compiler__b=no
10315 save_LDFLAGS="$LDFLAGS"
10316 LDFLAGS="$LDFLAGS -b"
10317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10319 # The linker can only warn and ignore the option if not recognized
10320 # So say no if there are warnings
10321 if test -s conftest.err; then
10322 # Append any errors to the config.log.
10323 cat conftest.err 1>&5
10324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10326 if diff conftest.exp conftest.er2 >/dev/null; then
10327 lt_cv_prog_compiler__b=yes
10330 lt_cv_prog_compiler__b=yes
10334 LDFLAGS="$save_LDFLAGS"
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10338 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10340 if test x"$lt_cv_prog_compiler__b" = xyes; then
10341 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349 if test "$with_gnu_ld" = no; then
10350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10351 hardcode_libdir_separator=:
10356 hardcode_shlibpath_var=no
10359 hardcode_direct=yes
10360 hardcode_direct_absolute=yes
10361 export_dynamic_flag_spec='${wl}-E'
10363 # hardcode_minus_L: Not really in the search PATH,
10364 # but as the default location of the library.
10365 hardcode_minus_L=yes
10371 irix5* | irix6* | nonstopux*)
10372 if test "$GCC" = yes; then
10373 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'
10374 # Try to use the -exported_symbol ld option, if it does not
10375 # work, assume that -exports_file does not work either and
10376 # implicitly export all symbols.
10377 # This should be the same for all languages, so no per-tag cache variable.
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10379 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10380 if ${lt_cv_irix_exported_symbol+:} false; then :
10381 $as_echo_n "(cached) " >&6
10383 save_LDFLAGS="$LDFLAGS"
10384 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int foo (void) { return 0; }
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 lt_cv_irix_exported_symbol=yes
10392 lt_cv_irix_exported_symbol=no
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LDFLAGS="$save_LDFLAGS"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10399 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10400 if test "$lt_cv_irix_exported_symbol" = yes; then
10401 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'
10404 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'
10405 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'
10407 archive_cmds_need_lc='no'
10408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10409 hardcode_libdir_separator=:
10411 link_all_deplibs=yes
10414 netbsd* | netbsdelf*-gnu)
10415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10420 hardcode_libdir_flag_spec='-R$libdir'
10421 hardcode_direct=yes
10422 hardcode_shlibpath_var=no
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_direct=yes
10428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429 hardcode_libdir_separator=:
10430 hardcode_shlibpath_var=no
10437 if test -f /usr/libexec/ld.so; then
10438 hardcode_direct=yes
10439 hardcode_shlibpath_var=no
10440 hardcode_direct_absolute=yes
10441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445 export_dynamic_flag_spec='${wl}-E'
10448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_libdir_flag_spec='-R$libdir'
10453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 allow_undefined_flag=unsupported
10467 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'
10468 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10472 if test "$GCC" = yes; then
10473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10474 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'
10476 allow_undefined_flag=' -expect_unresolved \*'
10477 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'
10479 archive_cmds_need_lc='no'
10480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481 hardcode_libdir_separator=:
10484 osf4* | osf5*) # as osf3* with the addition of -msym flag
10485 if test "$GCC" = yes; then
10486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 allow_undefined_flag=' -expect_unresolved \*'
10491 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'
10492 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~
10493 $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'
10495 # Both c and cxx compiler support -rpath directly
10496 hardcode_libdir_flag_spec='-rpath $libdir'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_separator=:
10503 no_undefined_flag=' -z defs'
10504 if test "$GCC" = yes; then
10506 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508 $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'
10510 case `$CC -V 2>&1` in
10513 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10519 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525 hardcode_libdir_flag_spec='-R$libdir'
10526 hardcode_shlibpath_var=no
10528 solaris2.[0-5] | solaris2.[0-5].*) ;;
10530 # The compiler driver will combine and reorder linker options,
10531 # but understands `-z linker_flag'. GCC discards it without `$wl',
10532 # but is careful enough not to reorder.
10533 # Supported since Solaris 2.6 (maybe 2.5.1?)
10534 if test "$GCC" = yes; then
10535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10541 link_all_deplibs=yes
10545 if test "x$host_vendor" = xsequent; then
10546 # Use $CC to link under sequent, because it throws in some extra .o
10547 # files that make .init and .fini sections work.
10548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10559 case $host_vendor in
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_direct=yes # is this really true???
10565 ## LD is ld it makes a PLAMLIB
10566 ## CC just makes a GrossModule.
10567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568 reload_cmds='$CC -r -o $output$reload_objs'
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10576 runpath_var='LD_RUN_PATH'
10577 hardcode_shlibpath_var=no
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_shlibpath_var=no
10583 export_dynamic_flag_spec='-Bexport'
10587 if test -d /usr/nec; then
10588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_shlibpath_var=no
10590 runpath_var=LD_RUN_PATH
10591 hardcode_runpath_var=yes
10596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597 no_undefined_flag='${wl}-z,text'
10598 archive_cmds_need_lc=no
10599 hardcode_shlibpath_var=no
10600 runpath_var='LD_RUN_PATH'
10602 if test "$GCC" = yes; then
10603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 sysv5* | sco3.2v5* | sco5v6*)
10612 # Note: We can NOT use -z defs as we might desire, because we do not
10613 # link with -lc, and that would cause any symbols used from libc to
10614 # always be unresolved, which means just about no library would
10615 # ever link correctly. If we're not using GNU ld we use -z text
10616 # though, which does catch some bad symbols but isn't as heavy-handed
10618 no_undefined_flag='${wl}-z,text'
10619 allow_undefined_flag='${wl}-z,nodefs'
10620 archive_cmds_need_lc=no
10621 hardcode_shlibpath_var=no
10622 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10623 hardcode_libdir_separator=':'
10624 link_all_deplibs=yes
10625 export_dynamic_flag_spec='${wl}-Bexport'
10626 runpath_var='LD_RUN_PATH'
10628 if test "$GCC" = yes; then
10629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_libdir_flag_spec='-L$libdir'
10640 hardcode_shlibpath_var=no
10648 if test x$host_vendor = xsni; then
10650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651 export_dynamic_flag_spec='${wl}-Blargedynsym'
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 $as_echo "$ld_shlibs" >&6; }
10659 test "$ld_shlibs" = no && can_build_shared=no
10661 with_gnu_ld=$with_gnu_ld
10678 # Do we need to explicitly link libc?
10680 case "x$archive_cmds_need_lc" in
10682 # Assume -lc should be added
10683 archive_cmds_need_lc=yes
10685 if test "$enable_shared" = yes && test "$GCC" = yes; then
10686 case $archive_cmds in
10688 # FIXME: we may have to deal with multi-command sequences.
10691 # Test whether the compiler implicitly links with -lc since on some
10692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693 # to ld, don't add -lc before -lgcc.
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10696 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10697 $as_echo_n "(cached) " >&6
10700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10703 (eval $ac_compile) 2>&5
10705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706 test $ac_status = 0; } 2>conftest.err; then
10709 libobjs=conftest.$ac_objext
10711 wl=$lt_prog_compiler_wl
10712 pic_flag=$lt_prog_compiler_pic
10718 lt_save_allow_undefined_flag=$allow_undefined_flag
10719 allow_undefined_flag=
10720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10721 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724 test $ac_status = 0; }
10726 lt_cv_archive_cmds_need_lc=no
10728 lt_cv_archive_cmds_need_lc=yes
10730 allow_undefined_flag=$lt_save_allow_undefined_flag
10732 cat conftest.err 1>&5
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10738 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10739 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10900 if test "$GCC" = yes; then
10902 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10903 *) lt_awk_arg="/^libraries:/" ;;
10906 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10907 *) lt_sed_strip_eq="s,=/,/,g" ;;
10909 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10910 case $lt_search_path_spec in
10912 # if the path contains ";" then we assume it to be the separator
10913 # otherwise default to the standard path separator (i.e. ":") - it is
10914 # assumed that no part of a normal pathname contains ";" but that should
10915 # okay in the real world where ";" in dirpaths is itself problematic.
10916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10922 # Ok, now we have the path, separated by spaces, we can step through it
10923 # and add multilib dir if necessary.
10924 lt_tmp_lt_search_path_spec=
10925 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10926 for lt_sys_path in $lt_search_path_spec; do
10927 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10930 test -d "$lt_sys_path" && \
10931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10934 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10935 BEGIN {RS=" "; FS="/|\n";} {
10938 for (lt_i = NF; lt_i > 0; lt_i--) {
10939 if ($lt_i != "" && $lt_i != ".") {
10940 if ($lt_i == "..") {
10943 if (lt_count == 0) {
10944 lt_foo="/" $lt_i lt_foo;
10951 if (lt_foo != "") { lt_freq[lt_foo]++; }
10952 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10954 # AWK program above erroneously prepends '/' to C:/dos/paths
10957 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10958 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10960 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964 library_names_spec=
10965 libname_spec='lib$name'
10969 postuninstall_cmds=
10973 shlibpath_overrides_runpath=unknown
10975 dynamic_linker="$host_os ld.so"
10976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10977 need_lib_prefix=unknown
10978 hardcode_into_libs=no
10980 # when you set need_version to no, make sure it does not cause -set_version
10981 # flags to be left without arguments
10982 need_version=unknown
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10988 shlibpath_var=LIBPATH
10990 # AIX 3 has no versioning support, so we append a major version to the name.
10991 soname_spec='${libname}${release}${shared_ext}$major'
10995 version_type=linux # correct to gnu/linux during the next big refactor
10998 hardcode_into_libs=yes
10999 if test "$host_cpu" = ia64; then
11000 # AIX 5 supports IA64
11001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11002 shlibpath_var=LD_LIBRARY_PATH
11004 # With GCC up to 2.95.x, collect2 would create an import file
11005 # for dependence libraries. The import file would start with
11006 # the line `#! .'. This would cause the generated library to
11007 # depend on `.', always an invalid library. This was fixed in
11008 # development snapshots of GCC prior to 3.0.
11010 aix4 | aix4.[01] | aix4.[01].*)
11011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11013 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11016 can_build_shared=no
11020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11021 # soname into executable. Probably we can add versioning support to
11022 # collect2, so additional links can be useful in future.
11023 if test "$aix_use_runtimelinking" = yes; then
11024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11025 # instead of lib<name>.a to let people know that these are not
11026 # typical AIX shared libraries.
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 # We preserve .a as extension for shared libraries through AIX4.2
11030 # and later when we are not doing run time linking.
11031 library_names_spec='${libname}${release}.a $libname.a'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LIBPATH
11041 # Since July 2007 AmigaOS4 officially supports .so libraries.
11042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 library_names_spec='$libname.ixlibrary $libname.a'
11047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11048 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'
11054 library_names_spec='${libname}${shared_ext}'
11055 dynamic_linker="$host_os ld.so"
11056 shlibpath_var=LIBRARY_PATH
11060 version_type=linux # correct to gnu/linux during the next big refactor
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11068 # the default ld.so.conf also contains /usr/contrib/lib and
11069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11070 # libtool to hard-code these into programs
11073 cygwin* | mingw* | pw32* | cegcc*)
11074 version_type=windows
11079 case $GCC,$cc_basename in
11082 library_names_spec='$libname.dll.a'
11083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11084 postinstall_cmds='base_file=`basename \${file}`~
11085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11086 dldir=$destdir/`dirname \$dlpath`~
11087 test -d \$dldir || mkdir -p \$dldir~
11088 $install_prog $dir/$dlname \$dldir/$dlname~
11089 chmod a+x \$dldir/$dlname~
11090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11094 dlpath=$dir/\$dldll~
11096 shlibpath_overrides_runpath=yes
11100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11106 # MinGW DLLs use traditional 'lib' prefix
11107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 # pw32 DLLs use 'pw' prefix rather than 'lib'
11111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11114 dynamic_linker='Win32 ld.exe'
11119 libname_spec='$name'
11120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11121 library_names_spec='${libname}.dll.lib'
11125 sys_lib_search_path_spec=
11128 for lt_path in $LIB
11131 # Let DOS variable expansion print the short 8.3 style file name.
11132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11136 # Convert to MSYS style.
11137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11140 # Convert to unix form, then to dos form, then back to unix form
11141 # but this time dos style (no spaces!) so that the unix form looks
11142 # like /cygdrive/c/PROGRA~1:/cygdr...
11143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11148 sys_lib_search_path_spec="$LIB"
11149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11150 # It is most probably a Windows format PATH.
11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155 # FIXME: find the short name or the path components, as spaces are
11156 # common. (e.g. "Program Files" -> "PROGRA~1")
11160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 postinstall_cmds='base_file=`basename \${file}`~
11162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11163 dldir=$destdir/`dirname \$dlpath`~
11164 test -d \$dldir || mkdir -p \$dldir~
11165 $install_prog $dir/$dlname \$dldir/$dlname'
11166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11167 dlpath=$dir/\$dldll~
11169 shlibpath_overrides_runpath=yes
11170 dynamic_linker='Win32 link.exe'
11174 # Assume MSVC wrapper
11175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11176 dynamic_linker='Win32 ld.exe'
11179 # FIXME: first we should search . and the directory the executable is in
11183 darwin* | rhapsody*)
11184 dynamic_linker="$host_os dyld"
11185 version_type=darwin
11188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11189 soname_spec='${libname}${release}${major}$shared_ext'
11190 shlibpath_overrides_runpath=yes
11191 shlibpath_var=DYLD_LIBRARY_PATH
11192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11199 version_type=linux # correct to gnu/linux during the next big refactor
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11207 freebsd* | dragonfly*)
11208 # DragonFly does not have aout. When/if they implement a new
11209 # versioning mechanism, adjust this.
11210 if test -x /usr/bin/objformat; then
11211 objformat=`/usr/bin/objformat`
11214 freebsd[23].*) objformat=aout ;;
11215 *) objformat=elf ;;
11218 version_type=freebsd-$objformat
11219 case $version_type in
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11230 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11235 freebsd3.[01]* | freebsdelf3.[01]*)
11236 shlibpath_overrides_runpath=yes
11237 hardcode_into_libs=yes
11239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11241 shlibpath_overrides_runpath=no
11242 hardcode_into_libs=yes
11244 *) # from 4.6 on, and DragonFly
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11252 version_type=linux # correct to gnu/linux during the next big refactor
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=no
11259 hardcode_into_libs=yes
11263 version_type=linux # correct to gnu/linux during the next big refactor
11266 dynamic_linker="$host_os runtime_loader"
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11272 hardcode_into_libs=yes
11275 hpux9* | hpux10* | hpux11*)
11276 # Give a soname corresponding to the major version so that dld.sl refuses to
11277 # link against other versions.
11284 hardcode_into_libs=yes
11285 dynamic_linker="$host_os dld.so"
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 if test "X$HPUX_IA64_MODE" = X32; then
11291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11299 hardcode_into_libs=yes
11300 dynamic_linker="$host_os dld.sl"
11301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310 dynamic_linker="$host_os dld.sl"
11311 shlibpath_var=SHLIB_PATH
11312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11318 postinstall_cmds='chmod 555 $lib'
11319 # or fails outright, so override atomically:
11320 install_override_mode=555
11324 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=no
11332 hardcode_into_libs=yes
11335 irix5* | irix6* | nonstopux*)
11337 nonstopux*) version_type=nonstopux ;;
11339 if test "$lt_cv_prog_gnu_ld" = yes; then
11340 version_type=linux # correct to gnu/linux during the next big refactor
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11350 irix5* | nonstopux*)
11351 libsuff= shlibsuff=
11354 case $LD in # libtool.m4 will add one of these switches to LD
11355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356 libsuff= shlibsuff= libmagic=32-bit;;
11357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358 libsuff=32 shlibsuff=N32 libmagic=N32;;
11359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361 *) libsuff= shlibsuff= libmagic=never-match;;
11365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366 shlibpath_overrides_runpath=no
11367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369 hardcode_into_libs=yes
11372 # No shared lib support for Linux oldld, aout, or coff.
11373 linux*oldld* | linux*aout* | linux*coff*)
11377 # This must be glibc/ELF.
11378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11379 version_type=linux # correct to gnu/linux during the next big refactor
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11388 # Some binutils ld are patched to set DT_RUNPATH
11389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11390 $as_echo_n "(cached) " >&6
11392 lt_cv_shlibpath_overrides_runpath=no
11393 save_LDFLAGS=$LDFLAGS
11394 save_libdir=$libdir
11395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11410 lt_cv_shlibpath_overrides_runpath=yes
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LDFLAGS=$save_LDFLAGS
11416 libdir=$save_libdir
11420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11422 # This implies no fast_install, which is unacceptable.
11423 # Some rework will be needed to allow for fast_install
11424 # before this can be enabled.
11425 hardcode_into_libs=yes
11427 # Append ld.so.conf contents to the search path
11428 if test -f /etc/ld.so.conf; then
11429 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' ' '`
11430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11433 # We used to test for /lib/ld.so.1 and disable shared libraries on
11434 # powerpc, because MkLinux only supported shared libraries with the
11435 # GNU dynamic linker. Since this was broken with cross compilers,
11436 # most powerpc-linux boxes support dynamic linking these days and
11437 # people can always --disable-shared, the test was removed, and we
11438 # assume the GNU/Linux dynamic linker is in use.
11439 dynamic_linker='GNU/Linux ld.so'
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 hardcode_into_libs=yes
11451 dynamic_linker='NetBSD ld.elf_so'
11458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461 dynamic_linker='NetBSD (a.out) ld.so'
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 dynamic_linker='NetBSD ld.elf_so'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes
11469 hardcode_into_libs=yes
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11488 dynamic_linker='ldqnx.so'
11493 sys_lib_dlsearch_path_spec="/usr/lib"
11495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11498 *) need_version=no ;;
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505 openbsd2.[89] | openbsd2.[89].*)
11506 shlibpath_overrides_runpath=no
11509 shlibpath_overrides_runpath=yes
11513 shlibpath_overrides_runpath=yes
11518 libname_spec='$name'
11521 library_names_spec='$libname${shared_ext} $libname.a'
11522 dynamic_linker='OS/2 ld.exe'
11523 shlibpath_var=LIBPATH
11526 osf3* | osf4* | osf5*)
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11542 version_type=linux # correct to gnu/linux during the next big refactor
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11549 hardcode_into_libs=yes
11550 # ldd complains unless libraries are executable
11551 postinstall_cmds='chmod +x $lib'
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes
11560 if test "$with_gnu_ld" = yes; then
11567 version_type=linux # correct to gnu/linux during the next big refactor
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 case $host_vendor in
11573 shlibpath_overrides_runpath=no
11575 runpath_var=LD_RUN_PATH
11583 shlibpath_overrides_runpath=no
11584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590 if test -d /usr/nec ;then
11591 version_type=linux # correct to gnu/linux during the next big refactor
11592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11593 soname_spec='$libname${shared_ext}.$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11599 version_type=freebsd-elf
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes
11606 hardcode_into_libs=yes
11607 if test "$with_gnu_ld" = yes; then
11608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11617 sys_lib_dlsearch_path_spec='/usr/lib'
11621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11622 version_type=linux # correct to gnu/linux during the next big refactor
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=no
11628 hardcode_into_libs=yes
11632 version_type=linux # correct to gnu/linux during the next big refactor
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11643 $as_echo "$dynamic_linker" >&6; }
11644 test "$dynamic_linker" = no && can_build_shared=no
11646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11647 if test "$GCC" = yes; then
11648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11652 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11655 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11752 if test -n "$hardcode_libdir_flag_spec" ||
11753 test -n "$runpath_var" ||
11754 test "X$hardcode_automatic" = "Xyes" ; then
11756 # We can hardcode non-existent directories.
11757 if test "$hardcode_direct" != no &&
11758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11759 # have to relink, otherwise we might link with an installed library
11760 # when we should be linking with a yet-to-be-installed one
11761 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11762 test "$hardcode_minus_L" != no; then
11763 # Linking always hardcodes the temporary library directory.
11764 hardcode_action=relink
11766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11767 hardcode_action=immediate
11770 # We cannot hardcode anything, or else we can only hardcode existing
11772 hardcode_action=unsupported
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11775 $as_echo "$hardcode_action" >&6; }
11777 if test "$hardcode_action" = relink ||
11778 test "$inherit_rpath" = yes; then
11779 # Fast installation is not supported
11780 enable_fast_install=no
11781 elif test "$shlibpath_overrides_runpath" = yes ||
11782 test "$enable_shared" = no; then
11783 # Fast installation is not necessary
11784 enable_fast_install=needless
11792 if test "x$enable_dlopen" != xyes; then
11793 enable_dlopen=unknown
11794 enable_dlopen_self=unknown
11795 enable_dlopen_self_static=unknown
11802 lt_cv_dlopen="load_add_on"
11804 lt_cv_dlopen_self=yes
11807 mingw* | pw32* | cegcc*)
11808 lt_cv_dlopen="LoadLibrary"
11813 lt_cv_dlopen="dlopen"
11818 # if libdl is installed we need to link against it
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11821 if ${ac_cv_lib_dl_dlopen+:} false; then :
11822 $as_echo_n "(cached) " >&6
11824 ac_check_lib_save_LIBS=$LIBS
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_lib_dl_dlopen=yes
11847 ac_cv_lib_dl_dlopen=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 lt_cv_dlopen="dyld"
11861 lt_cv_dlopen_self=yes
11868 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11869 if test "x$ac_cv_func_shl_load" = xyes; then :
11870 lt_cv_dlopen="shl_load"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11873 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11874 if ${ac_cv_lib_dld_shl_load+:} false; then :
11875 $as_echo_n "(cached) " >&6
11877 ac_check_lib_save_LIBS=$LIBS
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11892 return shl_load ();
11897 if ac_fn_c_try_link "$LINENO"; then :
11898 ac_cv_lib_dld_shl_load=yes
11900 ac_cv_lib_dld_shl_load=no
11902 rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11908 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11911 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11912 if test "x$ac_cv_func_dlopen" = xyes; then :
11913 lt_cv_dlopen="dlopen"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11917 if ${ac_cv_lib_dl_dlopen+:} false; then :
11918 $as_echo_n "(cached) " >&6
11920 ac_check_lib_save_LIBS=$LIBS
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 ac_cv_lib_dl_dlopen=yes
11943 ac_cv_lib_dl_dlopen=no
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11955 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11956 if ${ac_cv_lib_svld_dlopen+:} false; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lsvld $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_svld_dlopen=yes
11982 ac_cv_lib_svld_dlopen=no
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11989 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11990 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11994 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11995 if ${ac_cv_lib_dld_dld_link+:} false; then :
11996 $as_echo_n "(cached) " >&6
11998 ac_check_lib_save_LIBS=$LIBS
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12013 return dld_link ();
12018 if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_lib_dld_dld_link=yes
12021 ac_cv_lib_dld_dld_link=no
12023 rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12028 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12029 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12030 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12051 if test "x$lt_cv_dlopen" != xno; then
12057 case $lt_cv_dlopen in
12059 save_CPPFLAGS="$CPPFLAGS"
12060 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12062 save_LDFLAGS="$LDFLAGS"
12063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12066 LIBS="$lt_cv_dlopen_libs $LIBS"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12069 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12070 if ${lt_cv_dlopen_self+:} false; then :
12071 $as_echo_n "(cached) " >&6
12073 if test "$cross_compiling" = yes; then :
12074 lt_cv_dlopen_self=cross
12076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12077 lt_status=$lt_dlunknown
12078 cat > conftest.$ac_ext <<_LT_EOF
12079 #line $LINENO "configure"
12080 #include "confdefs.h"
12089 # define LT_DLGLOBAL RTLD_GLOBAL
12092 # define LT_DLGLOBAL DL_GLOBAL
12094 # define LT_DLGLOBAL 0
12098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12099 find out it does not work in some platform. */
12100 #ifndef LT_DLLAZY_OR_NOW
12102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12105 # define LT_DLLAZY_OR_NOW DL_LAZY
12108 # define LT_DLLAZY_OR_NOW RTLD_NOW
12111 # define LT_DLLAZY_OR_NOW DL_NOW
12113 # define LT_DLLAZY_OR_NOW 0
12120 /* When -fvisbility=hidden is used, assume the code has been annotated
12121 correspondingly for the symbols needed. */
12122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12123 int fnord () __attribute__((visibility("default")));
12126 int fnord () { return 42; }
12129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12130 int status = $lt_dlunknown;
12134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12138 else puts (dlerror ());
12140 /* dlclose (self); */
12148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12149 (eval $ac_link) 2>&5
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12153 (./conftest; exit; ) >&5 2>/dev/null
12155 case x$lt_status in
12156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12161 # compilation failed
12162 lt_cv_dlopen_self=no
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12170 $as_echo "$lt_cv_dlopen_self" >&6; }
12172 if test "x$lt_cv_dlopen_self" = xyes; then
12173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12175 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12176 if ${lt_cv_dlopen_self_static+:} false; then :
12177 $as_echo_n "(cached) " >&6
12179 if test "$cross_compiling" = yes; then :
12180 lt_cv_dlopen_self_static=cross
12182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183 lt_status=$lt_dlunknown
12184 cat > conftest.$ac_ext <<_LT_EOF
12185 #line $LINENO "configure"
12186 #include "confdefs.h"
12195 # define LT_DLGLOBAL RTLD_GLOBAL
12198 # define LT_DLGLOBAL DL_GLOBAL
12200 # define LT_DLGLOBAL 0
12204 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205 find out it does not work in some platform. */
12206 #ifndef LT_DLLAZY_OR_NOW
12208 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12211 # define LT_DLLAZY_OR_NOW DL_LAZY
12214 # define LT_DLLAZY_OR_NOW RTLD_NOW
12217 # define LT_DLLAZY_OR_NOW DL_NOW
12219 # define LT_DLLAZY_OR_NOW 0
12226 /* When -fvisbility=hidden is used, assume the code has been annotated
12227 correspondingly for the symbols needed. */
12228 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12229 int fnord () __attribute__((visibility("default")));
12232 int fnord () { return 42; }
12235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12236 int status = $lt_dlunknown;
12240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12243 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12244 else puts (dlerror ());
12246 /* dlclose (self); */
12254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12255 (eval $ac_link) 2>&5
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12259 (./conftest; exit; ) >&5 2>/dev/null
12261 case x$lt_status in
12262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12267 # compilation failed
12268 lt_cv_dlopen_self_static=no
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12279 CPPFLAGS="$save_CPPFLAGS"
12280 LDFLAGS="$save_LDFLAGS"
12285 case $lt_cv_dlopen_self in
12286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287 *) enable_dlopen_self=unknown ;;
12290 case $lt_cv_dlopen_self_static in
12291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292 *) enable_dlopen_self_static=unknown ;;
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320 $as_echo "yes" >&6; }
12322 # FIXME - insert some real tests, host_os isn't really good enough
12325 if test -n "$STRIP" ; then
12326 striplib="$STRIP -x"
12327 old_striplib="$STRIP -S"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329 $as_echo "yes" >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12353 # Report which library types will actually be built
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12357 $as_echo "$can_build_shared" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12360 $as_echo_n "checking whether to build shared libraries... " >&6; }
12361 test "$can_build_shared" = "no" && enable_shared=no
12363 # On AIX, shared libraries and static libraries use the same namespace, and
12364 # are all built from PIC.
12367 test "$enable_shared" = yes && enable_static=no
12368 if test -n "$RANLIB"; then
12369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370 postinstall_cmds='$RANLIB $lib'
12375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376 test "$enable_shared" = yes && enable_static=no
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12381 $as_echo "$enable_shared" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12384 $as_echo_n "checking whether to build static libraries... " >&6; }
12385 # Make sure either enable_shared or enable_static is yes.
12386 test "$enable_shared" = yes || enable_static=yes
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12388 $as_echo "$enable_static" >&6; }
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12402 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12403 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12404 (test "X$CXX" != "Xg++"))) ; then
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12411 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12412 if test -z "$CXXCPP"; then
12413 if ${ac_cv_prog_CXXCPP+:} false; then :
12414 $as_echo_n "(cached) " >&6
12416 # Double quotes because CXXCPP needs to be expanded
12417 for CXXCPP in "$CXX -E" "/lib/cpp"
12419 ac_preproc_ok=false
12420 for ac_cxx_preproc_warn_flag in '' yes
12422 # Use a header file that comes with gcc, so configuring glibc
12423 # with a fresh cross-compiler works.
12424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12425 # <limits.h> exists even on freestanding compilers.
12426 # On the NeXT, cc -E runs the code through the compiler's parser,
12427 # not just through cpp. "Syntax error" is here to catch this case.
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 # include <limits.h>
12433 # include <assert.h>
12437 if ac_fn_cxx_try_cpp "$LINENO"; then :
12440 # Broken: fails on valid input.
12443 rm -f conftest.err conftest.i conftest.$ac_ext
12445 # OK, works on sane cases. Now check whether nonexistent headers
12446 # can be detected and how.
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 #include <ac_nonexistent.h>
12451 if ac_fn_cxx_try_cpp "$LINENO"; then :
12452 # Broken: success on invalid input.
12455 # Passes both tests.
12459 rm -f conftest.err conftest.i conftest.$ac_ext
12462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12463 rm -f conftest.i conftest.err conftest.$ac_ext
12464 if $ac_preproc_ok; then :
12469 ac_cv_prog_CXXCPP=$CXXCPP
12472 CXXCPP=$ac_cv_prog_CXXCPP
12474 ac_cv_prog_CXXCPP=$CXXCPP
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12477 $as_echo "$CXXCPP" >&6; }
12478 ac_preproc_ok=false
12479 for ac_cxx_preproc_warn_flag in '' yes
12481 # Use a header file that comes with gcc, so configuring glibc
12482 # with a fresh cross-compiler works.
12483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 # <limits.h> exists even on freestanding compilers.
12485 # On the NeXT, cc -E runs the code through the compiler's parser,
12486 # not just through cpp. "Syntax error" is here to catch this case.
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 # include <limits.h>
12492 # include <assert.h>
12496 if ac_fn_cxx_try_cpp "$LINENO"; then :
12499 # Broken: fails on valid input.
12502 rm -f conftest.err conftest.i conftest.$ac_ext
12504 # OK, works on sane cases. Now check whether nonexistent headers
12505 # can be detected and how.
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include <ac_nonexistent.h>
12510 if ac_fn_cxx_try_cpp "$LINENO"; then :
12511 # Broken: success on invalid input.
12514 # Passes both tests.
12518 rm -f conftest.err conftest.i conftest.$ac_ext
12521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12522 rm -f conftest.i conftest.err conftest.$ac_ext
12523 if $ac_preproc_ok; then :
12526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12528 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12529 See \`config.log' for more details" "$LINENO" 5; }
12533 ac_cpp='$CPP $CPPFLAGS'
12534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12539 _lt_caught_CXX_error=yes
12543 ac_cpp='$CXXCPP $CPPFLAGS'
12544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12548 archive_cmds_need_lc_CXX=no
12549 allow_undefined_flag_CXX=
12550 always_export_symbols_CXX=no
12551 archive_expsym_cmds_CXX=
12552 compiler_needs_object_CXX=no
12553 export_dynamic_flag_spec_CXX=
12554 hardcode_direct_CXX=no
12555 hardcode_direct_absolute_CXX=no
12556 hardcode_libdir_flag_spec_CXX=
12557 hardcode_libdir_separator_CXX=
12558 hardcode_minus_L_CXX=no
12559 hardcode_shlibpath_var_CXX=unsupported
12560 hardcode_automatic_CXX=no
12561 inherit_rpath_CXX=no
12563 module_expsym_cmds_CXX=
12564 link_all_deplibs_CXX=unknown
12565 old_archive_cmds_CXX=$old_archive_cmds
12566 reload_flag_CXX=$reload_flag
12567 reload_cmds_CXX=$reload_cmds
12568 no_undefined_flag_CXX=
12569 whole_archive_flag_spec_CXX=
12570 enable_shared_with_static_runtimes_CXX=no
12572 # Source file extension for C++ test sources.
12575 # Object file extension for compiled C++ test sources.
12579 # No sense in running all these tests if we already determined that
12580 # the CXX compiler isn't working. Some variables (like enable_shared)
12581 # are currently assumed to apply to all compilers on this platform,
12582 # and will be corrupted by setting them based on a non-working compiler.
12583 if test "$_lt_caught_CXX_error" != yes; then
12584 # Code to be used in simple compile tests
12585 lt_simple_compile_test_code="int some_variable = 0;"
12587 # Code to be used in simple link tests
12588 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12597 # If no C compiler was specified, use CC.
12600 # If no C compiler flags were specified, use CFLAGS.
12601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12603 # Allow CC to be a program name with arguments.
12607 # save warnings/boilerplate of simple test code
12608 ac_outfile=conftest.$ac_objext
12609 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12611 _lt_compiler_boilerplate=`cat conftest.err`
12614 ac_outfile=conftest.$ac_objext
12615 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12617 _lt_linker_boilerplate=`cat conftest.err`
12621 # Allow CC to be a program name with arguments.
12623 lt_save_CFLAGS=$CFLAGS
12627 lt_save_with_gnu_ld=$with_gnu_ld
12628 lt_save_path_LD=$lt_cv_path_LD
12629 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12630 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12632 $as_unset lt_cv_prog_gnu_ld
12634 if test -n "${lt_cv_path_LDCXX+set}"; then
12635 lt_cv_path_LD=$lt_cv_path_LDCXX
12637 $as_unset lt_cv_path_LD
12639 test -z "${LDCXX+set}" || LD=$LDCXX
12644 for cc_temp in $compiler""; do
12646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12652 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12655 if test -n "$compiler"; then
12656 # We don't want -fno-exception when compiling C++ code, so set the
12657 # no_builtin_flag separately
12658 if test "$GXX" = yes; then
12659 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12661 lt_prog_compiler_no_builtin_flag_CXX=
12664 if test "$GXX" = yes; then
12665 # Set up default GNU C++ configuration
12669 # Check whether --with-gnu-ld was given.
12670 if test "${with_gnu_ld+set}" = set; then :
12671 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12677 if test "$GCC" = yes; then
12678 # Check if gcc -print-prog-name=ld gives a path.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12680 $as_echo_n "checking for ld used by $CC... " >&6; }
12683 # gcc leaves a trailing carriage return which upsets mingw
12684 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12686 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12689 # Accept absolute paths.
12691 re_direlt='/[^/][^/]*/\.\./'
12692 # Canonicalize the pathname of ld
12693 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12694 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12695 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12697 test -z "$LD" && LD="$ac_prog"
12700 # If it fails, then pretend we aren't using GCC.
12704 # If it is relative, then search for the first ld in PATH.
12705 with_gnu_ld=unknown
12708 elif test "$with_gnu_ld" = yes; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12710 $as_echo_n "checking for GNU ld... " >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12713 $as_echo_n "checking for non-GNU ld... " >&6; }
12715 if ${lt_cv_path_LD+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 if test -z "$LD"; then
12719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12720 for ac_dir in $PATH; do
12722 test -z "$ac_dir" && ac_dir=.
12723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12724 lt_cv_path_LD="$ac_dir/$ac_prog"
12725 # Check to see if the program is GNU ld. I'd rather use --version,
12726 # but apparently some variants of GNU ld only accept -v.
12727 # Break only if it was the GNU/non-GNU ld that we prefer.
12728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12729 *GNU* | *'with BFD'*)
12730 test "$with_gnu_ld" != no && break
12733 test "$with_gnu_ld" != yes && break
12740 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12744 LD="$lt_cv_path_LD"
12745 if test -n "$LD"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12747 $as_echo "$LD" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12752 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12755 if ${lt_cv_prog_gnu_ld+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12759 case `$LD -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 lt_cv_prog_gnu_ld=yes
12764 lt_cv_prog_gnu_ld=no
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12770 with_gnu_ld=$lt_cv_prog_gnu_ld
12778 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12779 # archiving commands below assume that GNU ld is being used.
12780 if test "$with_gnu_ld" = yes; then
12781 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782 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'
12784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12787 # If archive_cmds runs LD, not CC, wlarc should be empty
12788 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12789 # investigate it a little bit more. (MM)
12792 # ancient GNU ld didn't support --whole-archive et. al.
12793 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12794 $GREP 'no-whole-archive' > /dev/null; then
12795 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12797 whole_archive_flag_spec_CXX=
12803 # A generic and very simple default shared library creation
12804 # command for GNU C++ for the case where it uses the native
12805 # linker, instead of GNU ld. If possible, this setting should
12806 # overridden to take advantage of the native linker features on
12807 # the platform it is being used on.
12808 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12811 # Commands to make compiler produce verbose output that lists
12812 # what "hidden" libraries, object files and flags are used when
12813 # linking a shared library.
12814 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12822 # PORTME: fill in a description of your system's C++ link characteristics
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12828 # FIXME: insert proper C++ library support
12832 if test "$host_cpu" = ia64; then
12833 # On IA64, the linker does run time linking by default, so we don't
12834 # have to do anything special.
12835 aix_use_runtimelinking=no
12836 exp_sym_flag='-Bexport'
12839 aix_use_runtimelinking=no
12841 # Test if we are trying to use run time linking or normal
12842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12843 # need to do runtime linking.
12844 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12845 for ld_flag in $LDFLAGS; do
12848 aix_use_runtimelinking=yes
12856 exp_sym_flag='-bexport'
12857 no_entry_flag='-bnoentry'
12860 # When large executables or shared objects are built, AIX ld can
12861 # have problems creating the table of contents. If linking a library
12862 # or program results in "error TOC overflow" add -mminimal-toc to
12863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12866 archive_cmds_CXX=''
12867 hardcode_direct_CXX=yes
12868 hardcode_direct_absolute_CXX=yes
12869 hardcode_libdir_separator_CXX=':'
12870 link_all_deplibs_CXX=yes
12871 file_list_spec_CXX='${wl}-f,'
12873 if test "$GXX" = yes; then
12874 case $host_os in aix4.[012]|aix4.[012].*)
12875 # We only want to do this on AIX 4.2 and lower, the check
12876 # below for broken collect2 doesn't work under 4.3+
12877 collect2name=`${CC} -print-prog-name=collect2`
12878 if test -f "$collect2name" &&
12879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12881 # We have reworked collect2
12884 # We have old collect2
12885 hardcode_direct_CXX=unsupported
12886 # It fails to find uninstalled libraries when the uninstalled
12887 # path is not listed in the libpath. Setting hardcode_minus_L
12888 # to unsupported forces relinking
12889 hardcode_minus_L_CXX=yes
12890 hardcode_libdir_flag_spec_CXX='-L$libdir'
12891 hardcode_libdir_separator_CXX=
12894 shared_flag='-shared'
12895 if test "$aix_use_runtimelinking" = yes; then
12896 shared_flag="$shared_flag "'${wl}-G'
12900 if test "$host_cpu" = ia64; then
12901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12902 # chokes on -Wl,-G. The following line is correct:
12905 if test "$aix_use_runtimelinking" = yes; then
12906 shared_flag='${wl}-G'
12908 shared_flag='${wl}-bM:SRE'
12913 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12914 # It seems that -bexpall does not export symbols beginning with
12915 # underscore (_), so it is better to generate a list of symbols to
12917 always_export_symbols_CXX=yes
12918 if test "$aix_use_runtimelinking" = yes; then
12919 # Warning - without using the other runtime loading flags (-brtl),
12920 # -berok will link without error, but may produce a broken library.
12921 allow_undefined_flag_CXX='-berok'
12922 # Determine the default libpath from the value encoded in an empty
12924 if test "${lt_cv_aix_libpath+set}" = set; then
12925 aix_libpath=$lt_cv_aix_libpath
12927 if ${lt_cv_aix_libpath__CXX+:} false; then :
12928 $as_echo_n "(cached) " >&6
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12941 if ac_fn_cxx_try_link "$LINENO"; then :
12943 lt_aix_libpath_sed='
12944 /Import File Strings/,/^$/ {
12946 s/^0 *\([^ ]*\) *$/\1/
12950 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12951 # Check for a 64-bit object if we didn't find anything.
12952 if test -z "$lt_cv_aix_libpath__CXX"; then
12953 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 if test -z "$lt_cv_aix_libpath__CXX"; then
12959 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12964 aix_libpath=$lt_cv_aix_libpath__CXX
12967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12969 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"
12971 if test "$host_cpu" = ia64; then
12972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973 allow_undefined_flag_CXX="-z nodefs"
12974 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"
12976 # Determine the default libpath from the value encoded in an
12977 # empty executable.
12978 if test "${lt_cv_aix_libpath+set}" = set; then
12979 aix_libpath=$lt_cv_aix_libpath
12981 if ${lt_cv_aix_libpath__CXX+:} false; then :
12982 $as_echo_n "(cached) " >&6
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12995 if ac_fn_cxx_try_link "$LINENO"; then :
12997 lt_aix_libpath_sed='
12998 /Import File Strings/,/^$/ {
13000 s/^0 *\([^ ]*\) *$/\1/
13004 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13005 # Check for a 64-bit object if we didn't find anything.
13006 if test -z "$lt_cv_aix_libpath__CXX"; then
13007 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 if test -z "$lt_cv_aix_libpath__CXX"; then
13013 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13018 aix_libpath=$lt_cv_aix_libpath__CXX
13021 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13022 # Warning - without using the other run time loading flags,
13023 # -berok will link without error, but may produce a broken library.
13024 no_undefined_flag_CXX=' ${wl}-bernotok'
13025 allow_undefined_flag_CXX=' ${wl}-berok'
13026 if test "$with_gnu_ld" = yes; then
13027 # We only use this code for GNU lds that support --whole-archive.
13028 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13030 # Exported symbols can be pulled into shared objects from archives
13031 whole_archive_flag_spec_CXX='$convenience'
13033 archive_cmds_need_lc_CXX=yes
13034 # This is similar to how AIX traditionally builds its shared
13036 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'
13042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13043 allow_undefined_flag_CXX=unsupported
13044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13045 # support --undefined. This deserves some investigation. FIXME
13046 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13053 case $cc_basename in
13055 # FIXME: insert proper C++ library support
13061 cygwin* | mingw* | pw32* | cegcc*)
13062 case $GXX,$cc_basename in
13065 # hardcode_libdir_flag_spec is actually meaningless, as there is
13066 # no search path for DLLs.
13067 hardcode_libdir_flag_spec_CXX=' '
13068 allow_undefined_flag_CXX=unsupported
13069 always_export_symbols_CXX=yes
13070 file_list_spec_CXX='@'
13071 # Tell ltmain to make .lib files, not .a files.
13073 # Tell ltmain to make .dll files, not .so files.
13075 # FIXME: Setting linknames here is a bad hack.
13076 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13077 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13078 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13080 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13082 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13084 # The linker will not automatically build a static lib if we build a DLL.
13085 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13086 enable_shared_with_static_runtimes_CXX=yes
13088 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13089 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13090 lt_tool_outputfile="@TOOL_OUTPUT@"~
13091 case $lt_outputfile in
13094 lt_outputfile="$lt_outputfile.exe"
13095 lt_tool_outputfile="$lt_tool_outputfile.exe"
13098 func_to_tool_file "$lt_outputfile"~
13099 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13100 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13101 $RM "$lt_outputfile.manifest";
13106 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13107 # as there is no search path for DLLs.
13108 hardcode_libdir_flag_spec_CXX='-L$libdir'
13109 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13110 allow_undefined_flag_CXX=unsupported
13111 always_export_symbols_CXX=no
13112 enable_shared_with_static_runtimes_CXX=yes
13114 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13115 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'
13116 # If the export-symbols file already is a .def file (1st line
13117 # is EXPORTS), use it as is; otherwise, prepend...
13118 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13119 cp $export_symbols $output_objdir/$soname.def;
13121 echo EXPORTS > $output_objdir/$soname.def;
13122 cat $export_symbols >> $output_objdir/$soname.def;
13124 $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'
13131 darwin* | rhapsody*)
13134 archive_cmds_need_lc_CXX=no
13135 hardcode_direct_CXX=no
13136 hardcode_automatic_CXX=yes
13137 hardcode_shlibpath_var_CXX=unsupported
13138 if test "$lt_cv_ld_force_load" = "yes"; then
13139 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\"`'
13142 whole_archive_flag_spec_CXX=''
13144 link_all_deplibs_CXX=yes
13145 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13146 case $cc_basename in
13147 ifort*) _lt_dar_can_shared=yes ;;
13148 *) _lt_dar_can_shared=$GCC ;;
13150 if test "$_lt_dar_can_shared" = "yes"; then
13151 output_verbose_link_cmd=func_echo_all
13152 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}"
13153 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13154 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}"
13155 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}"
13156 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13157 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}"
13158 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}"
13168 case $cc_basename in
13170 # FIXME: insert proper C++ library support
13174 # Green Hills C++ Compiler
13175 # FIXME: insert proper C++ library support
13179 # FIXME: insert proper C++ library support
13186 # C++ shared libraries reported to be fairly broken before
13192 archive_cmds_need_lc_CXX=no
13195 freebsd* | dragonfly*)
13196 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13205 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206 link_all_deplibs_CXX=yes
13210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13211 hardcode_libdir_separator_CXX=:
13212 export_dynamic_flag_spec_CXX='${wl}-E'
13213 hardcode_direct_CXX=yes
13214 hardcode_minus_L_CXX=yes # Not in the search PATH,
13215 # but as the default
13216 # location of the library.
13218 case $cc_basename in
13220 # FIXME: insert proper C++ library support
13224 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'
13225 # Commands to make compiler produce verbose output that lists
13226 # what "hidden" libraries, object files and flags are used when
13227 # linking a shared library.
13229 # There doesn't appear to be a way to prevent this compiler from
13230 # explicitly linking system object files so we need to strip them
13231 # from the output so that they don't get included in the library
13233 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"'
13236 if test "$GXX" = yes; then
13237 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'
13239 # FIXME: insert proper C++ library support
13247 if test $with_gnu_ld = no; then
13248 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13249 hardcode_libdir_separator_CXX=:
13255 export_dynamic_flag_spec_CXX='${wl}-E'
13261 hardcode_direct_CXX=no
13262 hardcode_shlibpath_var_CXX=no
13265 hardcode_direct_CXX=yes
13266 hardcode_direct_absolute_CXX=yes
13267 hardcode_minus_L_CXX=yes # Not in the search PATH,
13268 # but as the default
13269 # location of the library.
13273 case $cc_basename in
13275 # FIXME: insert proper C++ library support
13281 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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 -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"'
13301 if test "$GXX" = yes; then
13302 if test $with_gnu_ld = no; then
13305 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13308 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13311 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'
13316 # FIXME: insert proper C++ library support
13324 hardcode_direct_CXX=no
13325 hardcode_shlibpath_var_CXX=no
13326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13327 export_dynamic_flag_spec_CXX='${wl}-E'
13328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13329 # Instead, shared libraries are loaded at an image base (0x10000000 by
13330 # default) and relocated if they conflict, which is a slow very memory
13331 # consuming and fragmenting process. To avoid this, we pick a random,
13332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13334 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'
13335 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'
13338 case $cc_basename in
13341 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'
13343 # Archives containing C++ object files must be created using
13344 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13345 # necessary to make sure instantiated templates are included
13347 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13350 if test "$GXX" = yes; then
13351 if test "$with_gnu_ld" = no; then
13352 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'
13354 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'
13357 link_all_deplibs_CXX=yes
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13361 hardcode_libdir_separator_CXX=:
13362 inherit_rpath_CXX=yes
13365 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13366 case $cc_basename in
13368 # Kuck and Associates, Inc. (KAI) C++ Compiler
13370 # KCC will only create a shared library if the output file
13371 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13372 # to its proper name (with version) after linking.
13373 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'
13374 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'
13375 # Commands to make compiler produce verbose output that lists
13376 # what "hidden" libraries, object files and flags are used when
13377 # linking a shared library.
13379 # There doesn't appear to be a way to prevent this compiler from
13380 # explicitly linking system object files so we need to strip them
13381 # from the output so that they don't get included in the library
13383 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"'
13385 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13386 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13388 # Archives containing C++ object files must be created using
13389 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13390 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13395 # version 8.0 and above of icpc choke on multiply defined symbols
13396 # if we add $predep_objects and $postdep_objects, however 7.1 and
13397 # earlier do not add the objects themselves.
13398 case `$CC -V 2>&1` in
13400 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 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'
13403 *) # Version 8.0 or newer
13406 ia64*) tmp_idyn=' -i_dynamic';;
13408 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409 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'
13412 archive_cmds_need_lc_CXX=no
13413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13415 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13418 # Portland Group C++ compiler
13420 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13421 prelink_cmds_CXX='tpldir=Template.dir~
13423 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13424 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13425 old_archive_cmds_CXX='tpldir=Template.dir~
13427 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13428 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13430 archive_cmds_CXX='tpldir=Template.dir~
13432 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13433 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13434 archive_expsym_cmds_CXX='tpldir=Template.dir~
13436 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13437 $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'
13439 *) # Version 6 and above use weak symbols
13440 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13441 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'
13445 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 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'
13451 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 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'
13454 runpath_var=LD_RUN_PATH
13455 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13456 hardcode_libdir_separator_CXX=:
13458 # Commands to make compiler produce verbose output that lists
13459 # what "hidden" libraries, object files and flags are used when
13460 # linking a shared library.
13462 # There doesn't appear to be a way to prevent this compiler from
13463 # explicitly linking system object files so we need to strip them
13464 # from the output so that they don't get included in the library
13466 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'
13468 xl* | mpixl* | bgxl*)
13469 # IBM XL 8.0 on PPC, with GNU ld
13470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13472 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473 if test "x$supports_anon_versioning" = xyes; then
13474 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13476 echo "local: *; };" >> $output_objdir/$libname.ver~
13477 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13481 case `$CC -V 2>&1 | sed 5q` in
13484 no_undefined_flag_CXX=' -zdefs'
13485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13486 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'
13487 hardcode_libdir_flag_spec_CXX='-R$libdir'
13488 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'
13489 compiler_needs_object_CXX=yes
13491 # Not sure whether something based on
13492 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13494 output_verbose_link_cmd='func_echo_all'
13496 # Archives containing C++ object files must be created using
13497 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13498 # necessary to make sure instantiated templates are included
13500 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13508 # FIXME: insert proper C++ library support
13513 # FIXME: insert proper C++ library support
13518 case $cc_basename in
13520 # FIXME: insert proper C++ library support
13524 # FIXME: insert proper C++ library support
13531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13532 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13534 hardcode_libdir_flag_spec_CXX='-R$libdir'
13535 hardcode_direct_CXX=yes
13536 hardcode_shlibpath_var_CXX=no
13538 # Workaround some broken pre-1.5 toolchains
13539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13547 # C++ shared libraries are fairly broken
13552 if test -f /usr/libexec/ld.so; then
13553 hardcode_direct_CXX=yes
13554 hardcode_shlibpath_var_CXX=no
13555 hardcode_direct_absolute_CXX=yes
13556 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13559 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13560 export_dynamic_flag_spec_CXX='${wl}-E'
13561 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13563 output_verbose_link_cmd=func_echo_all
13569 osf3* | osf4* | osf5*)
13570 case $cc_basename in
13572 # Kuck and Associates, Inc. (KAI) C++ Compiler
13574 # KCC will only create a shared library if the output file
13575 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13576 # to its proper name (with version) after linking.
13577 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'
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580 hardcode_libdir_separator_CXX=:
13582 # Archives containing C++ object files must be created using
13583 # the KAI C++ compiler.
13585 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13586 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13590 # Rational C++ 2.4.1
13591 # FIXME: insert proper C++ library support
13597 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13598 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'
13599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13602 allow_undefined_flag_CXX=' -expect_unresolved \*'
13603 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'
13604 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13605 echo "-hidden">> $lib.exp~
13606 $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~
13608 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13612 hardcode_libdir_separator_CXX=:
13614 # Commands to make compiler produce verbose output that lists
13615 # what "hidden" libraries, object files and flags are used when
13616 # linking a shared library.
13618 # There doesn't appear to be a way to prevent this compiler from
13619 # explicitly linking system object files so we need to strip them
13620 # from the output so that they don't get included in the library
13622 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"'
13625 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13626 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13629 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'
13632 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'
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 hardcode_libdir_separator_CXX=:
13639 # Commands to make compiler produce verbose output that lists
13640 # what "hidden" libraries, object files and flags are used when
13641 # linking a shared library.
13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13645 # FIXME: insert proper C++ library support
13653 # FIXME: insert proper C++ library support
13658 case $cc_basename in
13661 # FIXME: insert proper C++ library support
13666 # FIXME: insert proper C++ library support
13670 # FIXME: insert proper C++ library support
13677 case $cc_basename in
13679 # Sun C++ 4.2, 5.x and Centerline C++
13680 archive_cmds_need_lc_CXX=yes
13681 no_undefined_flag_CXX=' -zdefs'
13682 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13683 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13684 $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'
13686 hardcode_libdir_flag_spec_CXX='-R$libdir'
13687 hardcode_shlibpath_var_CXX=no
13689 solaris2.[0-5] | solaris2.[0-5].*) ;;
13691 # The compiler driver will combine and reorder linker options,
13692 # but understands `-z linker_flag'.
13693 # Supported since Solaris 2.6 (maybe 2.5.1?)
13694 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13697 link_all_deplibs_CXX=yes
13699 output_verbose_link_cmd='func_echo_all'
13701 # Archives containing C++ object files must be created using
13702 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13703 # necessary to make sure instantiated templates are included
13705 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13708 # Green Hills C++ Compiler
13709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13711 # The C++ compiler must be used to create the archive.
13712 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13715 # GNU C++ compiler with Solaris linker
13716 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13717 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13718 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13719 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13720 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13721 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13723 # Commands to make compiler produce verbose output that lists
13724 # what "hidden" libraries, object files and flags are used when
13725 # linking a shared library.
13726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13728 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13730 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13731 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13732 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13734 # Commands to make compiler produce verbose output that lists
13735 # what "hidden" libraries, object files and flags are used when
13736 # linking a shared library.
13737 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13740 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13742 solaris2.[0-5] | solaris2.[0-5].*) ;;
13744 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13753 no_undefined_flag_CXX='${wl}-z,text'
13754 archive_cmds_need_lc_CXX=no
13755 hardcode_shlibpath_var_CXX=no
13756 runpath_var='LD_RUN_PATH'
13758 case $cc_basename in
13760 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 sysv5* | sco3.2v5* | sco5v6*)
13771 # Note: We can NOT use -z defs as we might desire, because we do not
13772 # link with -lc, and that would cause any symbols used from libc to
13773 # always be unresolved, which means just about no library would
13774 # ever link correctly. If we're not using GNU ld we use -z text
13775 # though, which does catch some bad symbols but isn't as heavy-handed
13777 no_undefined_flag_CXX='${wl}-z,text'
13778 allow_undefined_flag_CXX='${wl}-z,nodefs'
13779 archive_cmds_need_lc_CXX=no
13780 hardcode_shlibpath_var_CXX=no
13781 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13782 hardcode_libdir_separator_CXX=':'
13783 link_all_deplibs_CXX=yes
13784 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13785 runpath_var='LD_RUN_PATH'
13787 case $cc_basename in
13789 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13792 '"$old_archive_cmds_CXX"
13793 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13794 '"$reload_cmds_CXX"
13797 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 case $cc_basename in
13806 # NonStop-UX NCC 3.20
13807 # FIXME: insert proper C++ library support
13811 # FIXME: insert proper C++ library support
13818 # FIXME: insert proper C++ library support
13823 # FIXME: insert proper C++ library support
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13829 $as_echo "$ld_shlibs_CXX" >&6; }
13830 test "$ld_shlibs_CXX" = no && can_build_shared=no
13836 ## There is no encapsulation within the following macros, do not change
13837 ## the running order or otherwise move them around unless you know exactly
13838 ## what you are doing...
13839 # Dependencies to place before and after the object being linked:
13840 predep_objects_CXX=
13841 postdep_objects_CXX=
13844 compiler_lib_search_path_CXX=
13846 cat > conftest.$ac_ext <<_LT_EOF
13850 Foo (void) { a = 0; }
13857 _lt_libdeps_save_CFLAGS=$CFLAGS
13858 case "$CC $CFLAGS " in #(
13859 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13860 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13861 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13865 (eval $ac_compile) 2>&5
13867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13868 test $ac_status = 0; }; then
13869 # Parse the compiler output and extract the necessary
13870 # objects, libraries and library flags.
13872 # Sentinel used to keep track of whether or not we are before
13873 # the conftest object file.
13874 pre_test_object_deps_done=no
13876 for p in `eval "$output_verbose_link_cmd"`; do
13877 case ${prev}${p} in
13880 # Some compilers place space between "-{L,R}" and the path.
13881 # Remove the space.
13882 if test $p = "-L" ||
13883 test $p = "-R"; then
13888 # Expand the sysroot to ease extracting the directories later.
13889 if test -z "$prev"; then
13891 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13892 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13893 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13897 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13899 if test "$pre_test_object_deps_done" = no; then
13902 # Internal compiler library paths should come after those
13903 # provided the user. The postdeps already come after the
13904 # user supplied libs so there is no need to process them.
13905 if test -z "$compiler_lib_search_path_CXX"; then
13906 compiler_lib_search_path_CXX="${prev}${p}"
13908 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13911 # The "-l" case would never come before the object being
13912 # linked, so don't bother handling this case.
13915 if test -z "$postdeps_CXX"; then
13916 postdeps_CXX="${prev}${p}"
13918 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13924 *.lto.$objext) ;; # Ignore GCC LTO objects
13926 # This assumes that the test object file only shows up
13927 # once in the compiler output.
13928 if test "$p" = "conftest.$objext"; then
13929 pre_test_object_deps_done=yes
13933 if test "$pre_test_object_deps_done" = no; then
13934 if test -z "$predep_objects_CXX"; then
13935 predep_objects_CXX="$p"
13937 predep_objects_CXX="$predep_objects_CXX $p"
13940 if test -z "$postdep_objects_CXX"; then
13941 postdep_objects_CXX="$p"
13943 postdep_objects_CXX="$postdep_objects_CXX $p"
13948 *) ;; # Ignore the rest.
13956 echo "libtool.m4: error: problem compiling CXX test program"
13959 $RM -f confest.$objext
13960 CFLAGS=$_lt_libdeps_save_CFLAGS
13962 # PORTME: override above test on systems where it is broken
13965 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13966 # hack all around it, let's just trust "g++" to DTRT.
13967 predep_objects_CXX=
13968 postdep_objects_CXX=
13973 case `$CC -V 2>&1 | sed 5q` in
13977 # The more standards-conforming stlport4 library is
13978 # incompatible with the Cstd library. Avoid specifying
13979 # it if it's in CXXFLAGS. Ignore libCrun as
13980 # -library=stlport4 depends on it.
13981 case " $CXX $CXXFLAGS " in
13982 *" -library=stlport4 "*)
13983 solaris_use_stlport4=yes
13987 if test "$solaris_use_stlport4" != yes; then
13988 postdeps_CXX='-library=Cstd -library=Crun'
13995 case $cc_basename in
13997 # The more standards-conforming stlport4 library is
13998 # incompatible with the Cstd library. Avoid specifying
13999 # it if it's in CXXFLAGS. Ignore libCrun as
14000 # -library=stlport4 depends on it.
14001 case " $CXX $CXXFLAGS " in
14002 *" -library=stlport4 "*)
14003 solaris_use_stlport4=yes
14007 # Adding this requires a known-good setup of shared libraries for
14008 # Sun compiler versions before 5.6, else PIC objects from an old
14009 # archive will be linked into the output, leading to subtle bugs.
14010 if test "$solaris_use_stlport4" != yes; then
14011 postdeps_CXX='-library=Cstd -library=Crun'
14019 case " $postdeps_CXX " in
14020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14022 compiler_lib_search_dirs_CXX=
14023 if test -n "${compiler_lib_search_path_CXX}"; then
14024 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14057 lt_prog_compiler_wl_CXX=
14058 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_static_CXX=
14062 # C++ specific cases for pic, static, wl, etc.
14063 if test "$GXX" = yes; then
14064 lt_prog_compiler_wl_CXX='-Wl,'
14065 lt_prog_compiler_static_CXX='-static'
14069 # All AIX code is PIC.
14070 if test "$host_cpu" = ia64; then
14071 # AIX 5 now supports IA64 processor
14072 lt_prog_compiler_static_CXX='-Bstatic'
14079 # see comment about AmigaOS4 .so support
14080 lt_prog_compiler_pic_CXX='-fPIC'
14083 # FIXME: we need at least 68020 code to build shared libraries, but
14084 # adding the `-m68020' flag to GCC prevents building anything better,
14086 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14092 # PIC is the default for these OSes.
14094 mingw* | cygwin* | os2* | pw32* | cegcc*)
14095 # This hack is so that the source file can tell whether it is being
14096 # built for inclusion in a dll (and should export symbols for example).
14097 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14098 # (--disable-auto-import) libraries
14099 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14101 darwin* | rhapsody*)
14102 # PIC is the default on this platform
14103 # Common symbols not allowed in MH_DYLIB files
14104 lt_prog_compiler_pic_CXX='-fno-common'
14107 # DJGPP does not support shared libraries at all
14108 lt_prog_compiler_pic_CXX=
14111 # PIC is the default for Haiku.
14112 # The "-static" flag exists, but is broken.
14113 lt_prog_compiler_static_CXX=
14116 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14117 # Instead, we relocate shared libraries at runtime.
14120 if test -d /usr/nec; then
14121 lt_prog_compiler_pic_CXX=-Kconform_pic
14125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14127 # sets the default TLS model and affects inlining.
14132 lt_prog_compiler_pic_CXX='-fPIC'
14137 # QNX uses GNU C++, but need to define -shared option too, otherwise
14138 # it will coredump.
14139 lt_prog_compiler_pic_CXX='-fPIC -shared'
14142 lt_prog_compiler_pic_CXX='-fPIC'
14148 # All AIX code is PIC.
14149 if test "$host_cpu" = ia64; then
14150 # AIX 5 now supports IA64 processor
14151 lt_prog_compiler_static_CXX='-Bstatic'
14153 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14157 case $cc_basename in
14159 # Green Hills C++ Compiler
14160 # _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"
14164 mingw* | cygwin* | os2* | pw32* | cegcc*)
14165 # This hack is so that the source file can tell whether it is being
14166 # built for inclusion in a dll (and should export symbols for example).
14167 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14170 case $cc_basename in
14172 lt_prog_compiler_pic_CXX='-KPIC'
14175 # Green Hills C++ Compiler
14176 lt_prog_compiler_pic_CXX='-pic'
14182 freebsd* | dragonfly*)
14183 # FreeBSD uses GNU C++
14185 hpux9* | hpux10* | hpux11*)
14186 case $cc_basename in
14188 lt_prog_compiler_wl_CXX='-Wl,'
14189 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14190 if test "$host_cpu" != ia64; then
14191 lt_prog_compiler_pic_CXX='+Z'
14195 lt_prog_compiler_wl_CXX='-Wl,'
14196 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14202 lt_prog_compiler_pic_CXX='+Z'
14211 # This is c89, which is MS Visual C++ (no shared libs)
14212 # Anyone wants to do a port?
14214 irix5* | irix6* | nonstopux*)
14215 case $cc_basename in
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 lt_prog_compiler_static_CXX='-non_shared'
14219 # CC pic flag -KPIC is the default.
14225 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14226 case $cc_basename in
14229 lt_prog_compiler_wl_CXX='--backend -Wl,'
14230 lt_prog_compiler_pic_CXX='-fPIC'
14233 # old Intel C++ for x86_64 which still supported -KPIC.
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_pic_CXX='-KPIC'
14236 lt_prog_compiler_static_CXX='-static'
14239 # Intel C++, used to be incompatible with GCC.
14240 # ICC 10 doesn't accept -KPIC any more.
14241 lt_prog_compiler_wl_CXX='-Wl,'
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 lt_prog_compiler_static_CXX='-static'
14246 # Portland Group C++ compiler
14247 lt_prog_compiler_wl_CXX='-Wl,'
14248 lt_prog_compiler_pic_CXX='-fpic'
14249 lt_prog_compiler_static_CXX='-Bstatic'
14253 # Make sure the PIC flag is empty. It appears that all Alpha
14254 # Linux and Compaq Tru64 Unix objects are PIC.
14255 lt_prog_compiler_pic_CXX=
14256 lt_prog_compiler_static_CXX='-non_shared'
14258 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14259 # IBM XL 8.0, 9.0 on PPC and BlueGene
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_pic_CXX='-qpic'
14262 lt_prog_compiler_static_CXX='-qstaticlink'
14265 case `$CC -V 2>&1 | sed 5q` in
14268 lt_prog_compiler_pic_CXX='-KPIC'
14269 lt_prog_compiler_static_CXX='-Bstatic'
14270 lt_prog_compiler_wl_CXX='-Qoption ld '
14281 case $cc_basename in
14283 lt_prog_compiler_pic_CXX='-W c,exportall'
14289 netbsd* | netbsdelf*-gnu)
14292 # QNX uses GNU C++, but need to define -shared option too, otherwise
14293 # it will coredump.
14294 lt_prog_compiler_pic_CXX='-fPIC -shared'
14296 osf3* | osf4* | osf5*)
14297 case $cc_basename in
14299 lt_prog_compiler_wl_CXX='--backend -Wl,'
14302 # Rational C++ 2.4.1
14303 lt_prog_compiler_pic_CXX='-pic'
14306 # Digital/Compaq C++
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 # Make sure the PIC flag is empty. It appears that all Alpha
14309 # Linux and Compaq Tru64 Unix objects are PIC.
14310 lt_prog_compiler_pic_CXX=
14311 lt_prog_compiler_static_CXX='-non_shared'
14320 case $cc_basename in
14322 # Sun C++ 4.2, 5.x and Centerline C++
14323 lt_prog_compiler_pic_CXX='-KPIC'
14324 lt_prog_compiler_static_CXX='-Bstatic'
14325 lt_prog_compiler_wl_CXX='-Qoption ld '
14328 # Green Hills C++ Compiler
14329 lt_prog_compiler_pic_CXX='-PIC'
14336 case $cc_basename in
14339 lt_prog_compiler_pic_CXX='-pic'
14340 lt_prog_compiler_static_CXX='-Bstatic'
14344 lt_prog_compiler_pic_CXX='-pic'
14350 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14351 case $cc_basename in
14353 lt_prog_compiler_wl_CXX='-Wl,'
14354 lt_prog_compiler_pic_CXX='-KPIC'
14355 lt_prog_compiler_static_CXX='-Bstatic'
14360 case $cc_basename in
14362 # NonStop-UX NCC 3.20
14363 lt_prog_compiler_pic_CXX='-KPIC'
14372 lt_prog_compiler_can_build_shared_CXX=no
14378 # For platforms which do not support PIC, -DPIC is meaningless:
14380 lt_prog_compiler_pic_CXX=
14383 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14388 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14389 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14390 $as_echo_n "(cached) " >&6
14392 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14395 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14396 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14399 # Check to make sure the PIC flag actually works.
14401 if test -n "$lt_prog_compiler_pic_CXX"; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14403 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14404 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14405 $as_echo_n "(cached) " >&6
14407 lt_cv_prog_compiler_pic_works_CXX=no
14408 ac_outfile=conftest.$ac_objext
14409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14410 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14411 # Insert the option either (1) after the last *FLAGS variable, or
14412 # (2) before a word containing "conftest.", or (3) at the end.
14413 # Note that $ac_compile itself does not contain backslashes and begins
14414 # with a dollar sign (not a hyphen), so the echo should work correctly.
14415 # The option is referenced via a variable to avoid confusing sed.
14416 lt_compile=`echo "$ac_compile" | $SED \
14417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419 -e 's:$: $lt_compiler_flag:'`
14420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14421 (eval "$lt_compile" 2>conftest.err)
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 if (exit $ac_status) && test -s "$ac_outfile"; then
14426 # The compiler can only warn and ignore the option if not recognized
14427 # So say no if there are warnings other than the usual output.
14428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14431 lt_cv_prog_compiler_pic_works_CXX=yes
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14438 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14440 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14441 case $lt_prog_compiler_pic_CXX in
14443 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14446 lt_prog_compiler_pic_CXX=
14447 lt_prog_compiler_can_build_shared_CXX=no
14457 # Check to make sure the static flag actually works.
14459 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14462 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14463 $as_echo_n "(cached) " >&6
14465 lt_cv_prog_compiler_static_works_CXX=no
14466 save_LDFLAGS="$LDFLAGS"
14467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14470 # The linker can only warn and ignore the option if not recognized
14471 # So say no if there are warnings
14472 if test -s conftest.err; then
14473 # Append any errors to the config.log.
14474 cat conftest.err 1>&5
14475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14477 if diff conftest.exp conftest.er2 >/dev/null; then
14478 lt_cv_prog_compiler_static_works_CXX=yes
14481 lt_cv_prog_compiler_static_works_CXX=yes
14485 LDFLAGS="$save_LDFLAGS"
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14489 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14491 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14494 lt_prog_compiler_static_CXX=
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14502 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14503 $as_echo_n "(cached) " >&6
14505 lt_cv_prog_compiler_c_o_CXX=no
14506 $RM -r conftest 2>/dev/null
14510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512 lt_compiler_flag="-o out/conftest2.$ac_objext"
14513 # Insert the option either (1) after the last *FLAGS variable, or
14514 # (2) before a word containing "conftest.", or (3) at the end.
14515 # Note that $ac_compile itself does not contain backslashes and begins
14516 # with a dollar sign (not a hyphen), so the echo should work correctly.
14517 lt_compile=`echo "$ac_compile" | $SED \
14518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14520 -e 's:$: $lt_compiler_flag:'`
14521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14522 (eval "$lt_compile" 2>out/conftest.err)
14524 cat out/conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528 # The compiler can only warn and ignore the option if not recognized
14529 # So say no if there are warnings
14530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14533 lt_cv_prog_compiler_c_o_CXX=yes
14538 # SGI C++ compiler will create directory out/ii_files/ for
14539 # template instantiation
14540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14541 $RM out/* && rmdir out
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14554 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14555 $as_echo_n "(cached) " >&6
14557 lt_cv_prog_compiler_c_o_CXX=no
14558 $RM -r conftest 2>/dev/null
14562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564 lt_compiler_flag="-o out/conftest2.$ac_objext"
14565 # Insert the option either (1) after the last *FLAGS variable, or
14566 # (2) before a word containing "conftest.", or (3) at the end.
14567 # Note that $ac_compile itself does not contain backslashes and begins
14568 # with a dollar sign (not a hyphen), so the echo should work correctly.
14569 lt_compile=`echo "$ac_compile" | $SED \
14570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14572 -e 's:$: $lt_compiler_flag:'`
14573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14574 (eval "$lt_compile" 2>out/conftest.err)
14576 cat out/conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14580 # The compiler can only warn and ignore the option if not recognized
14581 # So say no if there are warnings
14582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14583 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14584 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14585 lt_cv_prog_compiler_c_o_CXX=yes
14590 # SGI C++ compiler will create directory out/ii_files/ for
14591 # template instantiation
14592 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14593 $RM out/* && rmdir out
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14600 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14605 hard_links="nottested"
14606 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14607 # do not overwrite the value of need_locks provided by the user
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14609 $as_echo_n "checking if we can lock with hard links... " >&6; }
14612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14614 ln conftest.a conftest.b 2>&5 || hard_links=no
14615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14617 $as_echo "$hard_links" >&6; }
14618 if test "$hard_links" = no; then
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14633 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14636 # If we're using GNU nm, then we don't want the "-C" option.
14637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14638 # Also, AIX nm treats weak defined symbols like other global defined
14639 # symbols, whereas GNU nm marks them as "W".
14640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14641 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'
14643 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'
14647 export_symbols_cmds_CXX="$ltdll_cmds"
14649 cygwin* | mingw* | cegcc*)
14650 case $cc_basename in
14652 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14655 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'
14656 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14660 linux* | k*bsd*-gnu | gnu*)
14661 link_all_deplibs_CXX=no
14664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14669 $as_echo "$ld_shlibs_CXX" >&6; }
14670 test "$ld_shlibs_CXX" = no && can_build_shared=no
14672 with_gnu_ld_CXX=$with_gnu_ld
14680 # Do we need to explicitly link libc?
14682 case "x$archive_cmds_need_lc_CXX" in
14684 # Assume -lc should be added
14685 archive_cmds_need_lc_CXX=yes
14687 if test "$enable_shared" = yes && test "$GCC" = yes; then
14688 case $archive_cmds_CXX in
14690 # FIXME: we may have to deal with multi-command sequences.
14693 # Test whether the compiler implicitly links with -lc since on some
14694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14695 # to ld, don't add -lc before -lgcc.
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14698 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14699 $as_echo_n "(cached) " >&6
14702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14705 (eval $ac_compile) 2>&5
14707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14708 test $ac_status = 0; } 2>conftest.err; then
14711 libobjs=conftest.$ac_objext
14713 wl=$lt_prog_compiler_wl_CXX
14714 pic_flag=$lt_prog_compiler_pic_CXX
14720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14721 allow_undefined_flag_CXX=
14722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; }
14728 lt_cv_archive_cmds_need_lc_CXX=no
14730 lt_cv_archive_cmds_need_lc_CXX=yes
14732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14734 cat conftest.err 1>&5
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14740 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14812 library_names_spec=
14813 libname_spec='lib$name'
14817 postuninstall_cmds=
14821 shlibpath_overrides_runpath=unknown
14823 dynamic_linker="$host_os ld.so"
14824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14834 version_type=linux # correct to gnu/linux during the next big refactor
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836 shlibpath_var=LIBPATH
14838 # AIX 3 has no versioning support, so we append a major version to the name.
14839 soname_spec='${libname}${release}${shared_ext}$major'
14843 version_type=linux # correct to gnu/linux during the next big refactor
14846 hardcode_into_libs=yes
14847 if test "$host_cpu" = ia64; then
14848 # AIX 5 supports IA64
14849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14852 # With GCC up to 2.95.x, collect2 would create an import file
14853 # for dependence libraries. The import file would start with
14854 # the line `#! .'. This would cause the generated library to
14855 # depend on `.', always an invalid library. This was fixed in
14856 # development snapshots of GCC prior to 3.0.
14858 aix4 | aix4.[01] | aix4.[01].*)
14859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14861 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14864 can_build_shared=no
14868 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869 # soname into executable. Probably we can add versioning support to
14870 # collect2, so additional links can be useful in future.
14871 if test "$aix_use_runtimelinking" = yes; then
14872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873 # instead of lib<name>.a to let people know that these are not
14874 # typical AIX shared libraries.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 # We preserve .a as extension for shared libraries through AIX4.2
14878 # and later when we are not doing run time linking.
14879 library_names_spec='${libname}${release}.a $libname.a'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LIBPATH
14889 # Since July 2007 AmigaOS4 officially supports .so libraries.
14890 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 library_names_spec='$libname.ixlibrary $libname.a'
14895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14896 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'
14902 library_names_spec='${libname}${shared_ext}'
14903 dynamic_linker="$host_os ld.so"
14904 shlibpath_var=LIBRARY_PATH
14908 version_type=linux # correct to gnu/linux during the next big refactor
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14916 # the default ld.so.conf also contains /usr/contrib/lib and
14917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14918 # libtool to hard-code these into programs
14921 cygwin* | mingw* | pw32* | cegcc*)
14922 version_type=windows
14927 case $GCC,$cc_basename in
14930 library_names_spec='$libname.dll.a'
14931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14932 postinstall_cmds='base_file=`basename \${file}`~
14933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14934 dldir=$destdir/`dirname \$dlpath`~
14935 test -d \$dldir || mkdir -p \$dldir~
14936 $install_prog $dir/$dlname \$dldir/$dlname~
14937 chmod a+x \$dldir/$dlname~
14938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14942 dlpath=$dir/\$dldll~
14944 shlibpath_overrides_runpath=yes
14948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14953 # MinGW DLLs use traditional 'lib' prefix
14954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14957 # pw32 DLLs use 'pw' prefix rather than 'lib'
14958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961 dynamic_linker='Win32 ld.exe'
14966 libname_spec='$name'
14967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14968 library_names_spec='${libname}.dll.lib'
14972 sys_lib_search_path_spec=
14975 for lt_path in $LIB
14978 # Let DOS variable expansion print the short 8.3 style file name.
14979 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14980 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14983 # Convert to MSYS style.
14984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14987 # Convert to unix form, then to dos form, then back to unix form
14988 # but this time dos style (no spaces!) so that the unix form looks
14989 # like /cygdrive/c/PROGRA~1:/cygdr...
14990 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14991 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14992 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14995 sys_lib_search_path_spec="$LIB"
14996 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14997 # It is most probably a Windows format PATH.
14998 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15002 # FIXME: find the short name or the path components, as spaces are
15003 # common. (e.g. "Program Files" -> "PROGRA~1")
15007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15008 postinstall_cmds='base_file=`basename \${file}`~
15009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15010 dldir=$destdir/`dirname \$dlpath`~
15011 test -d \$dldir || mkdir -p \$dldir~
15012 $install_prog $dir/$dlname \$dldir/$dlname'
15013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15014 dlpath=$dir/\$dldll~
15016 shlibpath_overrides_runpath=yes
15017 dynamic_linker='Win32 link.exe'
15021 # Assume MSVC wrapper
15022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15023 dynamic_linker='Win32 ld.exe'
15026 # FIXME: first we should search . and the directory the executable is in
15030 darwin* | rhapsody*)
15031 dynamic_linker="$host_os dyld"
15032 version_type=darwin
15035 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15036 soname_spec='${libname}${release}${major}$shared_ext'
15037 shlibpath_overrides_runpath=yes
15038 shlibpath_var=DYLD_LIBRARY_PATH
15039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15045 version_type=linux # correct to gnu/linux during the next big refactor
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15053 freebsd* | dragonfly*)
15054 # DragonFly does not have aout. When/if they implement a new
15055 # versioning mechanism, adjust this.
15056 if test -x /usr/bin/objformat; then
15057 objformat=`/usr/bin/objformat`
15060 freebsd[23].*) objformat=aout ;;
15061 *) objformat=elf ;;
15064 version_type=freebsd-$objformat
15065 case $version_type in
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15076 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=yes
15081 freebsd3.[01]* | freebsdelf3.[01]*)
15082 shlibpath_overrides_runpath=yes
15083 hardcode_into_libs=yes
15085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15087 shlibpath_overrides_runpath=no
15088 hardcode_into_libs=yes
15090 *) # from 4.6 on, and DragonFly
15091 shlibpath_overrides_runpath=yes
15092 hardcode_into_libs=yes
15098 version_type=linux # correct to gnu/linux during the next big refactor
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=no
15105 hardcode_into_libs=yes
15109 version_type=linux # correct to gnu/linux during the next big refactor
15112 dynamic_linker="$host_os runtime_loader"
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15118 hardcode_into_libs=yes
15121 hpux9* | hpux10* | hpux11*)
15122 # Give a soname corresponding to the major version so that dld.sl refuses to
15123 # link against other versions.
15130 hardcode_into_libs=yes
15131 dynamic_linker="$host_os dld.so"
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 if test "X$HPUX_IA64_MODE" = X32; then
15137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15145 hardcode_into_libs=yes
15146 dynamic_linker="$host_os dld.sl"
15147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15156 dynamic_linker="$host_os dld.sl"
15157 shlibpath_var=SHLIB_PATH
15158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 soname_spec='${libname}${release}${shared_ext}$major'
15163 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15164 postinstall_cmds='chmod 555 $lib'
15165 # or fails outright, so override atomically:
15166 install_override_mode=555
15170 version_type=linux # correct to gnu/linux during the next big refactor
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=no
15178 hardcode_into_libs=yes
15181 irix5* | irix6* | nonstopux*)
15183 nonstopux*) version_type=nonstopux ;;
15185 if test "$lt_cv_prog_gnu_ld" = yes; then
15186 version_type=linux # correct to gnu/linux during the next big refactor
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15196 irix5* | nonstopux*)
15197 libsuff= shlibsuff=
15200 case $LD in # libtool.m4 will add one of these switches to LD
15201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15202 libsuff= shlibsuff= libmagic=32-bit;;
15203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15204 libsuff=32 shlibsuff=N32 libmagic=N32;;
15205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15207 *) libsuff= shlibsuff= libmagic=never-match;;
15211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15212 shlibpath_overrides_runpath=no
15213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15215 hardcode_into_libs=yes
15218 # No shared lib support for Linux oldld, aout, or coff.
15219 linux*oldld* | linux*aout* | linux*coff*)
15223 # This must be glibc/ELF.
15224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15225 version_type=linux # correct to gnu/linux during the next big refactor
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 shlibpath_overrides_runpath=no
15234 # Some binutils ld are patched to set DT_RUNPATH
15235 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15236 $as_echo_n "(cached) " >&6
15238 lt_cv_shlibpath_overrides_runpath=no
15239 save_LDFLAGS=$LDFLAGS
15240 save_libdir=$libdir
15241 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15242 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15254 if ac_fn_cxx_try_link "$LINENO"; then :
15255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15256 lt_cv_shlibpath_overrides_runpath=yes
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LDFLAGS=$save_LDFLAGS
15262 libdir=$save_libdir
15266 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15268 # This implies no fast_install, which is unacceptable.
15269 # Some rework will be needed to allow for fast_install
15270 # before this can be enabled.
15271 hardcode_into_libs=yes
15273 # Append ld.so.conf contents to the search path
15274 if test -f /etc/ld.so.conf; then
15275 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' ' '`
15276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15279 # We used to test for /lib/ld.so.1 and disable shared libraries on
15280 # powerpc, because MkLinux only supported shared libraries with the
15281 # GNU dynamic linker. Since this was broken with cross compilers,
15282 # most powerpc-linux boxes support dynamic linking these days and
15283 # people can always --disable-shared, the test was removed, and we
15284 # assume the GNU/Linux dynamic linker is in use.
15285 dynamic_linker='GNU/Linux ld.so'
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=no
15296 hardcode_into_libs=yes
15297 dynamic_linker='NetBSD ld.elf_so'
15304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15307 dynamic_linker='NetBSD (a.out) ld.so'
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 dynamic_linker='NetBSD ld.elf_so'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=yes
15315 hardcode_into_libs=yes
15319 version_type=linux # correct to gnu/linux during the next big refactor
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=yes
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=no
15333 hardcode_into_libs=yes
15334 dynamic_linker='ldqnx.so'
15339 sys_lib_dlsearch_path_spec="/usr/lib"
15341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15344 *) need_version=no ;;
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15351 openbsd2.[89] | openbsd2.[89].*)
15352 shlibpath_overrides_runpath=no
15355 shlibpath_overrides_runpath=yes
15359 shlibpath_overrides_runpath=yes
15364 libname_spec='$name'
15367 library_names_spec='$libname${shared_ext} $libname.a'
15368 dynamic_linker='OS/2 ld.exe'
15369 shlibpath_var=LIBPATH
15372 osf3* | osf4* | osf5*)
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15388 version_type=linux # correct to gnu/linux during the next big refactor
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15396 # ldd complains unless libraries are executable
15397 postinstall_cmds='chmod +x $lib'
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=yes
15406 if test "$with_gnu_ld" = yes; then
15413 version_type=linux # correct to gnu/linux during the next big refactor
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 case $host_vendor in
15419 shlibpath_overrides_runpath=no
15421 runpath_var=LD_RUN_PATH
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 if test -d /usr/nec ;then
15437 version_type=linux # correct to gnu/linux during the next big refactor
15438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439 soname_spec='$libname${shared_ext}.$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15445 version_type=freebsd-elf
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=yes
15452 hardcode_into_libs=yes
15453 if test "$with_gnu_ld" = yes; then
15454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15459 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15463 sys_lib_dlsearch_path_spec='/usr/lib'
15467 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15468 version_type=linux # correct to gnu/linux during the next big refactor
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 hardcode_into_libs=yes
15478 version_type=linux # correct to gnu/linux during the next big refactor
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15489 $as_echo "$dynamic_linker" >&6; }
15490 test "$dynamic_linker" = no && can_build_shared=no
15492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15493 if test "$GCC" = yes; then
15494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15498 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15501 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15542 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15543 hardcode_action_CXX=
15544 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15545 test -n "$runpath_var_CXX" ||
15546 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15548 # We can hardcode non-existent directories.
15549 if test "$hardcode_direct_CXX" != no &&
15550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15551 # have to relink, otherwise we might link with an installed library
15552 # when we should be linking with a yet-to-be-installed one
15553 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15554 test "$hardcode_minus_L_CXX" != no; then
15555 # Linking always hardcodes the temporary library directory.
15556 hardcode_action_CXX=relink
15558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15559 hardcode_action_CXX=immediate
15562 # We cannot hardcode anything, or else we can only hardcode existing
15564 hardcode_action_CXX=unsupported
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15567 $as_echo "$hardcode_action_CXX" >&6; }
15569 if test "$hardcode_action_CXX" = relink ||
15570 test "$inherit_rpath_CXX" = yes; then
15571 # Fast installation is not supported
15572 enable_fast_install=no
15573 elif test "$shlibpath_overrides_runpath" = yes ||
15574 test "$enable_shared" = no; then
15575 # Fast installation is not necessary
15576 enable_fast_install=needless
15585 fi # test -n "$compiler"
15588 CFLAGS=$lt_save_CFLAGS
15592 with_gnu_ld=$lt_save_with_gnu_ld
15593 lt_cv_path_LDCXX=$lt_cv_path_LD
15594 lt_cv_path_LD=$lt_save_path_LD
15595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15597 fi # test "$_lt_caught_CXX_error" != yes
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15619 ac_config_commands="$ac_config_commands libtool"
15624 # Only expand once:
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15628 $as_echo_n "checking for library containing strerror... " >&6; }
15629 if ${ac_cv_search_strerror+:} false; then :
15630 $as_echo_n "(cached) " >&6
15632 ac_func_search_save_LIBS=$LIBS
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15646 return strerror ();
15651 for ac_lib in '' cposix; do
15652 if test -z "$ac_lib"; then
15653 ac_res="none required"
15656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15658 if ac_fn_c_try_link "$LINENO"; then :
15659 ac_cv_search_strerror=$ac_res
15661 rm -f core conftest.err conftest.$ac_objext \
15663 if ${ac_cv_search_strerror+:} false; then :
15667 if ${ac_cv_search_strerror+:} false; then :
15670 ac_cv_search_strerror=no
15672 rm conftest.$ac_ext
15673 LIBS=$ac_func_search_save_LIBS
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15676 $as_echo "$ac_cv_search_strerror" >&6; }
15677 ac_res=$ac_cv_search_strerror
15678 if test "$ac_res" != no; then :
15679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15684 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15685 if ${ac_cv_c_bigendian+:} false; then :
15686 $as_echo_n "(cached) " >&6
15688 ac_cv_c_bigendian=unknown
15689 # See if we're dealing with a universal compiler.
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692 #ifndef __APPLE_CC__
15693 not a universal capable compiler
15698 if ac_fn_c_try_compile "$LINENO"; then :
15700 # Check for potential -arch flags. It is not universal unless
15701 # there are at least two -arch flags with different values.
15704 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15705 if test -n "$ac_prev"; then
15707 i?86 | x86_64 | ppc | ppc64)
15708 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15711 ac_cv_c_bigendian=universal
15717 elif test "x$ac_word" = "x-arch"; then
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 if test $ac_cv_c_bigendian = unknown; then
15724 # See if sys/param.h defines the BYTE_ORDER macro.
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 #include <sys/types.h>
15728 #include <sys/param.h>
15733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15734 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15736 bogus endian macros
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 # It does; now see whether it defined to BIG_ENDIAN or not.
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <sys/types.h>
15748 #include <sys/param.h>
15753 #if BYTE_ORDER != BIG_ENDIAN
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762 ac_cv_c_bigendian=yes
15764 ac_cv_c_bigendian=no
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 if test $ac_cv_c_bigendian = unknown; then
15771 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 #include <limits.h>
15779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15780 bogus endian macros
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788 # It does; now see whether it defined to _BIG_ENDIAN or not.
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15791 #include <limits.h>
15796 #ifndef _BIG_ENDIAN
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 ac_cv_c_bigendian=yes
15807 ac_cv_c_bigendian=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 if test $ac_cv_c_bigendian = unknown; then
15814 # Compile a test program.
15815 if test "$cross_compiling" = yes; then :
15816 # Try to guess by grepping values from an object file.
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15819 short int ascii_mm[] =
15820 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15821 short int ascii_ii[] =
15822 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15823 int use_ascii (int i) {
15824 return ascii_mm[i] + ascii_ii[i];
15826 short int ebcdic_ii[] =
15827 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15828 short int ebcdic_mm[] =
15829 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15830 int use_ebcdic (int i) {
15831 return ebcdic_mm[i] + ebcdic_ii[i];
15838 return use_ascii (foo) == use_ebcdic (foo);
15843 if ac_fn_c_try_compile "$LINENO"; then :
15844 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15845 ac_cv_c_bigendian=yes
15847 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15848 if test "$ac_cv_c_bigendian" = unknown; then
15849 ac_cv_c_bigendian=no
15851 # finding both strings is unlikely to happen, but who knows?
15852 ac_cv_c_bigendian=unknown
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860 $ac_includes_default
15865 /* Are we little or big endian? From Harbison&Steele. */
15869 char c[sizeof (long int)];
15872 return u.c[sizeof (long int) - 1] == 1;
15878 if ac_fn_c_try_run "$LINENO"; then :
15879 ac_cv_c_bigendian=no
15881 ac_cv_c_bigendian=yes
15883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15884 conftest.$ac_objext conftest.beam conftest.$ac_ext
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15890 $as_echo "$ac_cv_c_bigendian" >&6; }
15891 case $ac_cv_c_bigendian in #(
15893 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15899 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15903 as_fn_error $? "unknown endianness
15904 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15909 *cygwin* ) CYGWIN=yes;;
15914 if test "X$prefix" = "XNONE"; then
15915 acl_final_prefix="$ac_default_prefix"
15917 acl_final_prefix="$prefix"
15919 if test "X$exec_prefix" = "XNONE"; then
15920 acl_final_exec_prefix='${prefix}'
15922 acl_final_exec_prefix="$exec_prefix"
15924 acl_save_prefix="$prefix"
15925 prefix="$acl_final_prefix"
15926 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15927 prefix="$acl_save_prefix"
15930 # Check whether --with-gnu-ld was given.
15931 if test "${with_gnu_ld+set}" = set; then :
15932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15937 # Prepare PATH_SEPARATOR.
15938 # The user is always right.
15939 if test "${PATH_SEPARATOR+set}" != set; then
15940 echo "#! /bin/sh" >conf$$.sh
15941 echo "exit 0" >>conf$$.sh
15943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15951 if test "$GCC" = yes; then
15952 # Check if gcc -print-prog-name=ld gives a path.
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15954 $as_echo_n "checking for ld used by GCC... " >&6; }
15957 # gcc leaves a trailing carriage return which upsets mingw
15958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15963 # Accept absolute paths.
15964 [\\/]* | [A-Za-z]:[\\/]*)
15965 re_direlt='/[^/][^/]*/\.\./'
15966 # Canonicalize the path of ld
15967 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15968 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15969 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15971 test -z "$LD" && LD="$ac_prog"
15974 # If it fails, then pretend we aren't using GCC.
15978 # If it is relative, then search for the first ld in PATH.
15979 with_gnu_ld=unknown
15982 elif test "$with_gnu_ld" = yes; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15984 $as_echo_n "checking for GNU ld... " >&6; }
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15987 $as_echo_n "checking for non-GNU ld... " >&6; }
15989 if ${acl_cv_path_LD+:} false; then :
15990 $as_echo_n "(cached) " >&6
15992 if test -z "$LD"; then
15993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15994 for ac_dir in $PATH; do
15995 test -z "$ac_dir" && ac_dir=.
15996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15997 acl_cv_path_LD="$ac_dir/$ac_prog"
15998 # Check to see if the program is GNU ld. I'd rather use --version,
15999 # but apparently some GNU ld's only accept -v.
16000 # Break only if it was the GNU/non-GNU ld that we prefer.
16001 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16002 *GNU* | *'with BFD'*)
16003 test "$with_gnu_ld" != no && break ;;
16005 test "$with_gnu_ld" != yes && break ;;
16011 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16015 LD="$acl_cv_path_LD"
16016 if test -n "$LD"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16018 $as_echo "$LD" >&6; }
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021 $as_echo "no" >&6; }
16023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16026 if ${acl_cv_prog_gnu_ld+:} false; then :
16027 $as_echo_n "(cached) " >&6
16029 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16030 case `$LD -v 2>&1 </dev/null` in
16031 *GNU* | *'with BFD'*)
16032 acl_cv_prog_gnu_ld=yes ;;
16034 acl_cv_prog_gnu_ld=no ;;
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16038 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16039 with_gnu_ld=$acl_cv_prog_gnu_ld
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16045 $as_echo_n "checking for shared library run path origin... " >&6; }
16046 if ${acl_cv_rpath+:} false; then :
16047 $as_echo_n "(cached) " >&6
16050 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16051 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16053 rm -f ./conftest.sh
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16058 $as_echo "$acl_cv_rpath" >&6; }
16060 acl_libext="$acl_cv_libext"
16061 acl_shlibext="$acl_cv_shlibext"
16062 acl_libname_spec="$acl_cv_libname_spec"
16063 acl_library_names_spec="$acl_cv_library_names_spec"
16064 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16065 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16066 acl_hardcode_direct="$acl_cv_hardcode_direct"
16067 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16068 # Check whether --enable-rpath was given.
16069 if test "${enable_rpath+set}" = set; then :
16070 enableval=$enable_rpath; :
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16083 $as_echo_n "checking for 64-bit host... " >&6; }
16084 if ${gl_cv_solaris_64bit+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16096 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16097 gl_cv_solaris_64bit=yes
16099 gl_cv_solaris_64bit=no
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16106 $as_echo "$gl_cv_solaris_64bit" >&6; }
16107 if test $gl_cv_solaris_64bit = yes; then
16108 acl_libdirstem=lib/64
16109 case "$host_cpu" in
16110 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16111 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16116 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16117 if test -n "$searchpath"; then
16118 acl_save_IFS="${IFS= }"; IFS=":"
16119 for searchdir in $searchpath; do
16120 if test -d "$searchdir"; then
16121 case "$searchdir" in
16122 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16124 # Better ignore directories of this form. They are misleading.
16126 *) searchdir=`cd "$searchdir" && pwd`
16127 case "$searchdir" in
16128 */lib64 ) acl_libdirstem=lib64 ;;
16133 IFS="$acl_save_IFS"
16137 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16152 acl_save_prefix="$prefix"
16153 prefix="$acl_final_prefix"
16154 acl_save_exec_prefix="$exec_prefix"
16155 exec_prefix="$acl_final_exec_prefix"
16157 eval additional_includedir=\"$includedir\"
16158 eval additional_libdir=\"$libdir\"
16160 exec_prefix="$acl_save_exec_prefix"
16161 prefix="$acl_save_prefix"
16164 # Check whether --with-libiconv-prefix was given.
16165 if test "${with_libiconv_prefix+set}" = set; then :
16166 withval=$with_libiconv_prefix;
16167 if test "X$withval" = "Xno"; then
16170 if test "X$withval" = "X"; then
16172 acl_save_prefix="$prefix"
16173 prefix="$acl_final_prefix"
16174 acl_save_exec_prefix="$exec_prefix"
16175 exec_prefix="$acl_final_exec_prefix"
16177 eval additional_includedir=\"$includedir\"
16178 eval additional_libdir=\"$libdir\"
16180 exec_prefix="$acl_save_exec_prefix"
16181 prefix="$acl_save_prefix"
16184 additional_includedir="$withval/include"
16185 additional_libdir="$withval/$acl_libdirstem"
16186 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16187 && ! test -d "$withval/$acl_libdirstem"; then
16188 additional_libdir="$withval/$acl_libdirstem2"
16202 names_already_handled=
16203 names_next_round='iconv '
16204 while test -n "$names_next_round"; do
16205 names_this_round="$names_next_round"
16207 for name in $names_this_round; do
16209 for n in $names_already_handled; do
16210 if test "$n" = "$name"; then
16211 already_handled=yes
16215 if test -z "$already_handled"; then
16216 names_already_handled="$names_already_handled $name"
16217 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16218 eval value=\"\$HAVE_LIB$uppername\"
16219 if test -n "$value"; then
16220 if test "$value" = yes; then
16221 eval value=\"\$LIB$uppername\"
16222 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16223 eval value=\"\$LTLIB$uppername\"
16224 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16233 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16234 if test -n "$acl_shlibext"; then
16235 shrext=".$acl_shlibext" # typically: shrext=.so
16239 if test $use_additional = yes; then
16240 dir="$additional_libdir"
16241 if test -n "$acl_shlibext"; then
16242 if test -f "$dir/$libname$shrext"; then
16244 found_so="$dir/$libname$shrext"
16246 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16247 ver=`(cd "$dir" && \
16248 for f in "$libname$shrext".*; do echo "$f"; done \
16249 | sed -e "s,^$libname$shrext\\\\.,," \
16250 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16251 | sed 1q ) 2>/dev/null`
16252 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16254 found_so="$dir/$libname$shrext.$ver"
16257 eval library_names=\"$acl_library_names_spec\"
16258 for f in $library_names; do
16259 if test -f "$dir/$f"; then
16268 if test "X$found_dir" = "X"; then
16269 if test -f "$dir/$libname.$acl_libext"; then
16271 found_a="$dir/$libname.$acl_libext"
16274 if test "X$found_dir" != "X"; then
16275 if test -f "$dir/$libname.la"; then
16276 found_la="$dir/$libname.la"
16280 if test "X$found_dir" = "X"; then
16281 for x in $LDFLAGS $LTLIBICONV; do
16283 acl_save_prefix="$prefix"
16284 prefix="$acl_final_prefix"
16285 acl_save_exec_prefix="$exec_prefix"
16286 exec_prefix="$acl_final_exec_prefix"
16288 exec_prefix="$acl_save_exec_prefix"
16289 prefix="$acl_save_prefix"
16293 dir=`echo "X$x" | sed -e 's/^X-L//'`
16294 if test -n "$acl_shlibext"; then
16295 if test -f "$dir/$libname$shrext"; then
16297 found_so="$dir/$libname$shrext"
16299 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16300 ver=`(cd "$dir" && \
16301 for f in "$libname$shrext".*; do echo "$f"; done \
16302 | sed -e "s,^$libname$shrext\\\\.,," \
16303 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16304 | sed 1q ) 2>/dev/null`
16305 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16307 found_so="$dir/$libname$shrext.$ver"
16310 eval library_names=\"$acl_library_names_spec\"
16311 for f in $library_names; do
16312 if test -f "$dir/$f"; then
16321 if test "X$found_dir" = "X"; then
16322 if test -f "$dir/$libname.$acl_libext"; then
16324 found_a="$dir/$libname.$acl_libext"
16327 if test "X$found_dir" != "X"; then
16328 if test -f "$dir/$libname.la"; then
16329 found_la="$dir/$libname.la"
16334 if test "X$found_dir" != "X"; then
16339 if test "X$found_dir" != "X"; then
16340 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16341 if test "X$found_so" != "X"; then
16342 if test "$enable_rpath" = no \
16343 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16344 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16348 for x in $ltrpathdirs; do
16349 if test "X$x" = "X$found_dir"; then
16354 if test -z "$haveit"; then
16355 ltrpathdirs="$ltrpathdirs $found_dir"
16357 if test "$acl_hardcode_direct" = yes; then
16358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16360 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16363 for x in $rpathdirs; do
16364 if test "X$x" = "X$found_dir"; then
16369 if test -z "$haveit"; then
16370 rpathdirs="$rpathdirs $found_dir"
16374 for x in $LDFLAGS $LIBICONV; do
16376 acl_save_prefix="$prefix"
16377 prefix="$acl_final_prefix"
16378 acl_save_exec_prefix="$exec_prefix"
16379 exec_prefix="$acl_final_exec_prefix"
16381 exec_prefix="$acl_save_exec_prefix"
16382 prefix="$acl_save_prefix"
16384 if test "X$x" = "X-L$found_dir"; then
16389 if test -z "$haveit"; then
16390 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16392 if test "$acl_hardcode_minus_L" != no; then
16393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16401 if test "X$found_a" != "X"; then
16402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16407 additional_includedir=
16408 case "$found_dir" in
16409 */$acl_libdirstem | */$acl_libdirstem/)
16410 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16411 if test "$name" = 'iconv'; then
16412 LIBICONV_PREFIX="$basedir"
16414 additional_includedir="$basedir/include"
16416 */$acl_libdirstem2 | */$acl_libdirstem2/)
16417 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16418 if test "$name" = 'iconv'; then
16419 LIBICONV_PREFIX="$basedir"
16421 additional_includedir="$basedir/include"
16424 if test "X$additional_includedir" != "X"; then
16425 if test "X$additional_includedir" != "X/usr/include"; then
16427 if test "X$additional_includedir" = "X/usr/local/include"; then
16428 if test -n "$GCC"; then
16430 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16434 if test -z "$haveit"; then
16435 for x in $CPPFLAGS $INCICONV; do
16437 acl_save_prefix="$prefix"
16438 prefix="$acl_final_prefix"
16439 acl_save_exec_prefix="$exec_prefix"
16440 exec_prefix="$acl_final_exec_prefix"
16442 exec_prefix="$acl_save_exec_prefix"
16443 prefix="$acl_save_prefix"
16445 if test "X$x" = "X-I$additional_includedir"; then
16450 if test -z "$haveit"; then
16451 if test -d "$additional_includedir"; then
16452 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16458 if test -n "$found_la"; then
16459 save_libdir="$libdir"
16460 case "$found_la" in
16461 */* | *\\*) . "$found_la" ;;
16462 *) . "./$found_la" ;;
16464 libdir="$save_libdir"
16465 for dep in $dependency_libs; do
16468 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16469 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16470 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16472 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16473 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16474 if test -n "$GCC"; then
16476 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16480 if test -z "$haveit"; then
16482 for x in $LDFLAGS $LIBICONV; do
16484 acl_save_prefix="$prefix"
16485 prefix="$acl_final_prefix"
16486 acl_save_exec_prefix="$exec_prefix"
16487 exec_prefix="$acl_final_exec_prefix"
16489 exec_prefix="$acl_save_exec_prefix"
16490 prefix="$acl_save_prefix"
16492 if test "X$x" = "X-L$additional_libdir"; then
16497 if test -z "$haveit"; then
16498 if test -d "$additional_libdir"; then
16499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16503 for x in $LDFLAGS $LTLIBICONV; do
16505 acl_save_prefix="$prefix"
16506 prefix="$acl_final_prefix"
16507 acl_save_exec_prefix="$exec_prefix"
16508 exec_prefix="$acl_final_exec_prefix"
16510 exec_prefix="$acl_save_exec_prefix"
16511 prefix="$acl_save_prefix"
16513 if test "X$x" = "X-L$additional_libdir"; then
16518 if test -z "$haveit"; then
16519 if test -d "$additional_libdir"; then
16520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16527 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16528 if test "$enable_rpath" != no; then
16530 for x in $rpathdirs; do
16531 if test "X$x" = "X$dir"; then
16536 if test -z "$haveit"; then
16537 rpathdirs="$rpathdirs $dir"
16540 for x in $ltrpathdirs; do
16541 if test "X$x" = "X$dir"; then
16546 if test -z "$haveit"; then
16547 ltrpathdirs="$ltrpathdirs $dir"
16552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16558 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16565 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16572 if test "X$rpathdirs" != "X"; then
16573 if test -n "$acl_hardcode_libdir_separator"; then
16575 for found_dir in $rpathdirs; do
16576 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16578 acl_save_libdir="$libdir"
16580 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16581 libdir="$acl_save_libdir"
16582 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16584 for found_dir in $rpathdirs; do
16585 acl_save_libdir="$libdir"
16586 libdir="$found_dir"
16587 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16588 libdir="$acl_save_libdir"
16589 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16593 if test "X$ltrpathdirs" != "X"; then
16594 for found_dir in $ltrpathdirs; do
16595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16610 am_save_CPPFLAGS="$CPPFLAGS"
16612 for element in $INCICONV; do
16614 for x in $CPPFLAGS; do
16616 acl_save_prefix="$prefix"
16617 prefix="$acl_final_prefix"
16618 acl_save_exec_prefix="$exec_prefix"
16619 exec_prefix="$acl_final_exec_prefix"
16621 exec_prefix="$acl_save_exec_prefix"
16622 prefix="$acl_save_prefix"
16624 if test "X$x" = "X$element"; then
16629 if test -z "$haveit"; then
16630 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16636 $as_echo_n "checking for iconv... " >&6; }
16637 if ${am_cv_func_iconv+:} false; then :
16638 $as_echo_n "(cached) " >&6
16641 am_cv_func_iconv="no, consider installing GNU libiconv"
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645 #include <stdlib.h>
16650 iconv_t cd = iconv_open("","");
16651 iconv(cd,NULL,NULL,NULL,NULL);
16657 if ac_fn_c_try_link "$LINENO"; then :
16658 am_cv_func_iconv=yes
16660 rm -f core conftest.err conftest.$ac_objext \
16661 conftest$ac_exeext conftest.$ac_ext
16662 if test "$am_cv_func_iconv" != yes; then
16663 am_save_LIBS="$LIBS"
16664 LIBS="$LIBS $LIBICONV"
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 #include <stdlib.h>
16672 iconv_t cd = iconv_open("","");
16673 iconv(cd,NULL,NULL,NULL,NULL);
16679 if ac_fn_c_try_link "$LINENO"; then :
16680 am_cv_lib_iconv=yes
16681 am_cv_func_iconv=yes
16683 rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS="$am_save_LIBS"
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16690 $as_echo "$am_cv_func_iconv" >&6; }
16691 if test "$am_cv_func_iconv" = yes; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16693 $as_echo_n "checking for working iconv... " >&6; }
16694 if ${am_cv_func_iconv_works+:} false; then :
16695 $as_echo_n "(cached) " >&6
16698 am_save_LIBS="$LIBS"
16699 if test $am_cv_lib_iconv = yes; then
16700 LIBS="$LIBS $LIBICONV"
16702 if test "$cross_compiling" = yes; then :
16704 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16705 *) am_cv_func_iconv_works="guessing yes" ;;
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16712 #include <string.h>
16715 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16718 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16719 if (cd_utf8_to_88591 != (iconv_t)(-1))
16721 static const char input[] = "\342\202\254"; /* EURO SIGN */
16723 const char *inptr = input;
16724 size_t inbytesleft = strlen (input);
16725 char *outptr = buf;
16726 size_t outbytesleft = sizeof (buf);
16727 size_t res = iconv (cd_utf8_to_88591,
16728 (char **) &inptr, &inbytesleft,
16729 &outptr, &outbytesleft);
16734 /* Test against Solaris 10 bug: Failures are not distinguishable from
16735 successful returns. */
16737 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16738 if (cd_ascii_to_88591 != (iconv_t)(-1))
16740 static const char input[] = "\263";
16742 const char *inptr = input;
16743 size_t inbytesleft = strlen (input);
16744 char *outptr = buf;
16745 size_t outbytesleft = sizeof (buf);
16746 size_t res = iconv (cd_ascii_to_88591,
16747 (char **) &inptr, &inbytesleft,
16748 &outptr, &outbytesleft);
16753 #if 0 /* This bug could be worked around by the caller. */
16754 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16756 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16757 if (cd_88591_to_utf8 != (iconv_t)(-1))
16759 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16761 const char *inptr = input;
16762 size_t inbytesleft = strlen (input);
16763 char *outptr = buf;
16764 size_t outbytesleft = sizeof (buf);
16765 size_t res = iconv (cd_88591_to_utf8,
16766 (char **) &inptr, &inbytesleft,
16767 &outptr, &outbytesleft);
16773 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16775 if (/* Try standardized names. */
16776 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16777 /* Try IRIX, OSF/1 names. */
16778 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16779 /* Try AIX names. */
16780 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16781 /* Try HP-UX names. */
16782 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16787 if ac_fn_c_try_run "$LINENO"; then :
16788 am_cv_func_iconv_works=yes
16790 am_cv_func_iconv_works=no
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16793 conftest.$ac_objext conftest.beam conftest.$ac_ext
16796 LIBS="$am_save_LIBS"
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16800 $as_echo "$am_cv_func_iconv_works" >&6; }
16801 case "$am_cv_func_iconv_works" in
16802 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16803 *) am_func_iconv=yes ;;
16806 am_func_iconv=no am_cv_lib_iconv=no
16808 if test "$am_func_iconv" = yes; then
16810 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16813 if test "$am_cv_lib_iconv" = yes; then
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16815 $as_echo_n "checking how to link with libiconv... " >&6; }
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16817 $as_echo "$LIBICONV" >&6; }
16819 CPPFLAGS="$am_save_CPPFLAGS"
16826 if test "$am_cv_func_iconv" = yes; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16828 $as_echo_n "checking for iconv declaration... " >&6; }
16829 if ${am_cv_proto_iconv+:} false; then :
16830 $as_echo_n "(cached) " >&6
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16836 #include <stdlib.h>
16842 #if defined(__STDC__) || defined(__cplusplus)
16843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857 am_cv_proto_iconv_arg1=""
16859 am_cv_proto_iconv_arg1="const"
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16865 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
16867 $am_cv_proto_iconv" >&5
16869 $am_cv_proto_iconv" >&6; }
16871 cat >>confdefs.h <<_ACEOF
16872 #define ICONV_CONST $am_cv_proto_iconv_arg1
16878 ac_cpp='$CXXCPP $CPPFLAGS'
16879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16890 $as_echo_n "checking for ANSI C header files... " >&6; }
16891 if ${ac_cv_header_stdc+:} false; then :
16892 $as_echo_n "(cached) " >&6
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <stdlib.h>
16897 #include <stdarg.h>
16898 #include <string.h>
16909 if ac_fn_c_try_compile "$LINENO"; then :
16910 ac_cv_header_stdc=yes
16912 ac_cv_header_stdc=no
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916 if test $ac_cv_header_stdc = yes; then
16917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h. */
16920 #include <string.h>
16923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16924 $EGREP "memchr" >/dev/null 2>&1; then :
16927 ac_cv_header_stdc=no
16933 if test $ac_cv_header_stdc = yes; then
16934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16937 #include <stdlib.h>
16940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16941 $EGREP "free" >/dev/null 2>&1; then :
16944 ac_cv_header_stdc=no
16950 if test $ac_cv_header_stdc = yes; then
16951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16952 if test "$cross_compiling" = yes; then :
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16958 #include <stdlib.h>
16959 #if ((' ' & 0x0FF) == 0x020)
16960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16963 # define ISLOWER(c) \
16964 (('a' <= (c) && (c) <= 'i') \
16965 || ('j' <= (c) && (c) <= 'r') \
16966 || ('s' <= (c) && (c) <= 'z'))
16967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16975 for (i = 0; i < 256; i++)
16976 if (XOR (islower (i), ISLOWER (i))
16977 || toupper (i) != TOUPPER (i))
16982 if ac_fn_c_try_run "$LINENO"; then :
16985 ac_cv_header_stdc=no
16987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16988 conftest.$ac_objext conftest.beam conftest.$ac_ext
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16994 $as_echo "$ac_cv_header_stdc" >&6; }
16995 if test $ac_cv_header_stdc = yes; then
16997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17002 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17003 if ${ac_cv_c_const+:} false; then :
17004 $as_echo_n "(cached) " >&6
17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h. */
17012 /* FIXME: Include the comments suggested by Paul. */
17013 #ifndef __cplusplus
17014 /* Ultrix mips cc rejects this. */
17015 typedef int charset[2];
17017 /* SunOS 4.1.1 cc rejects this. */
17018 char const *const *pcpcc;
17020 /* NEC SVR4.0.2 mips cc rejects this. */
17021 struct point {int x, y;};
17022 static struct point const zero = {0,0};
17023 /* AIX XL C 1.02.0.0 rejects this.
17024 It does not let you subtract one const X* pointer from another in
17025 an arm of an if-expression whose if-part is not a constant
17027 const char *g = "string";
17028 pcpcc = &g + (g ? g-g : 0);
17029 /* HPUX 7.0 cc rejects these. */
17031 ppc = (char**) pcpcc;
17032 pcpcc = (char const *const *) ppc;
17033 { /* SCO 3.2v4 cc rejects this. */
17035 char const *s = 0 ? (char *) 0 : (char const *) 0;
17040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17041 int x[] = {25, 17};
17042 const int *foo = &x[0];
17045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17046 typedef const int *iptr;
17050 { /* AIX XL C 1.02.0.0 rejects this saying
17051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17052 struct s { int j; const int *ap[3]; };
17053 struct s *b; b->j = 5;
17055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17056 const int foo = 10;
17057 if (!foo) return 0;
17059 return !cs[0] && !zero.x;
17066 if ac_fn_c_try_compile "$LINENO"; then :
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17074 $as_echo "$ac_cv_c_const" >&6; }
17075 if test $ac_cv_c_const = no; then
17077 $as_echo "#define const /**/" >>confdefs.h
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17082 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17083 if ${ac_cv_c_bigendian+:} false; then :
17084 $as_echo_n "(cached) " >&6
17086 ac_cv_c_bigendian=unknown
17087 # See if we're dealing with a universal compiler.
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 #ifndef __APPLE_CC__
17091 not a universal capable compiler
17096 if ac_fn_c_try_compile "$LINENO"; then :
17098 # Check for potential -arch flags. It is not universal unless
17099 # there are at least two -arch flags with different values.
17102 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17103 if test -n "$ac_prev"; then
17105 i?86 | x86_64 | ppc | ppc64)
17106 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17109 ac_cv_c_bigendian=universal
17115 elif test "x$ac_word" = "x-arch"; then
17120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 if test $ac_cv_c_bigendian = unknown; then
17122 # See if sys/param.h defines the BYTE_ORDER macro.
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 #include <sys/types.h>
17126 #include <sys/param.h>
17131 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17132 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17134 bogus endian macros
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142 # It does; now see whether it defined to BIG_ENDIAN or not.
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17145 #include <sys/types.h>
17146 #include <sys/param.h>
17151 #if BYTE_ORDER != BIG_ENDIAN
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160 ac_cv_c_bigendian=yes
17162 ac_cv_c_bigendian=no
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 if test $ac_cv_c_bigendian = unknown; then
17169 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172 #include <limits.h>
17177 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17178 bogus endian macros
17185 if ac_fn_c_try_compile "$LINENO"; then :
17186 # It does; now see whether it defined to _BIG_ENDIAN or not.
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <limits.h>
17194 #ifndef _BIG_ENDIAN
17202 if ac_fn_c_try_compile "$LINENO"; then :
17203 ac_cv_c_bigendian=yes
17205 ac_cv_c_bigendian=no
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 if test $ac_cv_c_bigendian = unknown; then
17212 # Compile a test program.
17213 if test "$cross_compiling" = yes; then :
17214 # Try to guess by grepping values from an object file.
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17217 short int ascii_mm[] =
17218 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17219 short int ascii_ii[] =
17220 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17221 int use_ascii (int i) {
17222 return ascii_mm[i] + ascii_ii[i];
17224 short int ebcdic_ii[] =
17225 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17226 short int ebcdic_mm[] =
17227 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17228 int use_ebcdic (int i) {
17229 return ebcdic_mm[i] + ebcdic_ii[i];
17236 return use_ascii (foo) == use_ebcdic (foo);
17241 if ac_fn_c_try_compile "$LINENO"; then :
17242 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17243 ac_cv_c_bigendian=yes
17245 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17246 if test "$ac_cv_c_bigendian" = unknown; then
17247 ac_cv_c_bigendian=no
17249 # finding both strings is unlikely to happen, but who knows?
17250 ac_cv_c_bigendian=unknown
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258 $ac_includes_default
17263 /* Are we little or big endian? From Harbison&Steele. */
17267 char c[sizeof (long int)];
17270 return u.c[sizeof (long int) - 1] == 1;
17276 if ac_fn_c_try_run "$LINENO"; then :
17277 ac_cv_c_bigendian=no
17279 ac_cv_c_bigendian=yes
17281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17282 conftest.$ac_objext conftest.beam conftest.$ac_ext
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17288 $as_echo "$ac_cv_c_bigendian" >&6; }
17289 case $ac_cv_c_bigendian in #(
17291 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17297 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17301 as_fn_error $? "unknown endianness
17302 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17305 for ac_header in string.h stdlib.h unistd.h fcntl.h stdint.h \
17306 sys/stat.h sys/mman.h sys/times.h sys/types.h dirent.h \
17307 ctype.h sys/types.h io.h windows.h pthread.h
17309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17312 cat >>confdefs.h <<_ACEOF
17313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17321 if test "x$ac_cv_type_off_t" = xyes; then :
17325 cat >>confdefs.h <<_ACEOF
17326 #define off_t long int
17331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17332 if test "x$ac_cv_type_size_t" = xyes; then :
17336 cat >>confdefs.h <<_ACEOF
17337 #define size_t unsigned int
17342 # The cast to long int works around a bug in the HP C Compiler
17343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17345 # This bug is HP SR number 8606223364.
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17347 $as_echo_n "checking size of char... " >&6; }
17348 if ${ac_cv_sizeof_char+:} false; then :
17349 $as_echo_n "(cached) " >&6
17351 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
17354 if test "$ac_cv_type_char" = yes; then
17355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17357 as_fn_error 77 "cannot compute sizeof (char)
17358 See \`config.log' for more details" "$LINENO" 5; }
17360 ac_cv_sizeof_char=0
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17366 $as_echo "$ac_cv_sizeof_char" >&6; }
17370 cat >>confdefs.h <<_ACEOF
17371 #define SIZEOF_CHAR $ac_cv_sizeof_char
17375 # The cast to long int works around a bug in the HP C Compiler
17376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17378 # This bug is HP SR number 8606223364.
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17380 $as_echo_n "checking size of short... " >&6; }
17381 if ${ac_cv_sizeof_short+:} false; then :
17382 $as_echo_n "(cached) " >&6
17384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
17387 if test "$ac_cv_type_short" = yes; then
17388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17390 as_fn_error 77 "cannot compute sizeof (short)
17391 See \`config.log' for more details" "$LINENO" 5; }
17393 ac_cv_sizeof_short=0
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17399 $as_echo "$ac_cv_sizeof_short" >&6; }
17403 cat >>confdefs.h <<_ACEOF
17404 #define SIZEOF_SHORT $ac_cv_sizeof_short
17408 # The cast to long int works around a bug in the HP C Compiler
17409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17411 # This bug is HP SR number 8606223364.
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17413 $as_echo_n "checking size of int... " >&6; }
17414 if ${ac_cv_sizeof_int+:} false; then :
17415 $as_echo_n "(cached) " >&6
17417 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
17420 if test "$ac_cv_type_int" = yes; then
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17423 as_fn_error 77 "cannot compute sizeof (int)
17424 See \`config.log' for more details" "$LINENO" 5; }
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17432 $as_echo "$ac_cv_sizeof_int" >&6; }
17436 cat >>confdefs.h <<_ACEOF
17437 #define SIZEOF_INT $ac_cv_sizeof_int
17441 # The cast to long int works around a bug in the HP C Compiler
17442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17444 # This bug is HP SR number 8606223364.
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17446 $as_echo_n "checking size of long... " >&6; }
17447 if ${ac_cv_sizeof_long+:} false; then :
17448 $as_echo_n "(cached) " >&6
17450 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17453 if test "$ac_cv_type_long" = yes; then
17454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17456 as_fn_error 77 "cannot compute sizeof (long)
17457 See \`config.log' for more details" "$LINENO" 5; }
17459 ac_cv_sizeof_long=0
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17465 $as_echo "$ac_cv_sizeof_long" >&6; }
17469 cat >>confdefs.h <<_ACEOF
17470 #define SIZEOF_LONG $ac_cv_sizeof_long
17474 # The cast to long int works around a bug in the HP C Compiler
17475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17477 # This bug is HP SR number 8606223364.
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17479 $as_echo_n "checking size of long long... " >&6; }
17480 if ${ac_cv_sizeof_long_long+:} false; then :
17481 $as_echo_n "(cached) " >&6
17483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
17486 if test "$ac_cv_type_long_long" = yes; then
17487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17489 as_fn_error 77 "cannot compute sizeof (long long)
17490 See \`config.log' for more details" "$LINENO" 5; }
17492 ac_cv_sizeof_long_long=0
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17498 $as_echo "$ac_cv_sizeof_long_long" >&6; }
17502 cat >>confdefs.h <<_ACEOF
17503 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17507 # The cast to long int works around a bug in the HP C Compiler
17508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17510 # This bug is HP SR number 8606223364.
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17512 $as_echo_n "checking size of size_t... " >&6; }
17513 if ${ac_cv_sizeof_size_t+:} false; then :
17514 $as_echo_n "(cached) " >&6
17516 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17519 if test "$ac_cv_type_size_t" = yes; then
17520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 as_fn_error 77 "cannot compute sizeof (size_t)
17523 See \`config.log' for more details" "$LINENO" 5; }
17525 ac_cv_sizeof_size_t=0
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17531 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17535 cat >>confdefs.h <<_ACEOF
17536 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17540 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17541 if test "x$ac_cv_type_size_t" = xyes; then :
17545 cat >>confdefs.h <<_ACEOF
17546 #define size_t unsigned int
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17553 $as_echo_n "checking for unsigned long long int... " >&6; }
17554 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17555 $as_echo_n "(cached) " >&6
17557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17560 /* For now, do not test the preprocessor; as of 2007 there are too many
17561 implementations with broken preprocessors. Perhaps this can
17562 be revisited in 2012. In the meantime, code should not expect
17563 #if to work with literals wider than 32 bits. */
17564 /* Test literals. */
17565 long long int ll = 9223372036854775807ll;
17566 long long int nll = -9223372036854775807LL;
17567 unsigned long long int ull = 18446744073709551615ULL;
17568 /* Test constant expressions. */
17569 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17571 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17577 /* Test availability of runtime routines for shift and division. */
17578 long long int llmax = 9223372036854775807ll;
17579 unsigned long long int ullmax = 18446744073709551615ull;
17580 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17581 | (llmax / ll) | (llmax % ll)
17582 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17583 | (ullmax / ull) | (ullmax % ull));
17589 if ac_fn_c_try_link "$LINENO"; then :
17590 ac_cv_type_unsigned_long_long_int=yes
17592 ac_cv_type_unsigned_long_long_int=no
17594 rm -f core conftest.err conftest.$ac_objext \
17595 conftest$ac_exeext conftest.$ac_ext
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17598 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17599 if test $ac_cv_type_unsigned_long_long_int = yes; then
17601 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17609 for ac_header in $ac_header_list
17611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17615 cat >>confdefs.h <<_ACEOF
17616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17630 for ac_func in getpagesize
17632 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17633 if test "x$ac_cv_func_getpagesize" = xyes; then :
17634 cat >>confdefs.h <<_ACEOF
17635 #define HAVE_GETPAGESIZE 1
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17642 $as_echo_n "checking for working mmap... " >&6; }
17643 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17644 $as_echo_n "(cached) " >&6
17646 if test "$cross_compiling" = yes; then :
17647 ac_cv_func_mmap_fixed_mapped=no
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17651 $ac_includes_default
17652 /* malloc might have been renamed as rpl_malloc. */
17655 /* Thanks to Mike Haertel and Jim Avera for this test.
17656 Here is a matrix of mmap possibilities:
17657 mmap private not fixed
17658 mmap private fixed at somewhere currently unmapped
17659 mmap private fixed at somewhere already mapped
17660 mmap shared not fixed
17661 mmap shared fixed at somewhere currently unmapped
17662 mmap shared fixed at somewhere already mapped
17663 For private mappings, we should verify that changes cannot be read()
17664 back from the file, nor mmap's back from the file at a different
17665 address. (There have been systems where private was not correctly
17666 implemented like the infamous i386 svr4.0, and systems where the
17667 VM page cache was not coherent with the file system buffer cache
17668 like early versions of FreeBSD and possibly contemporary NetBSD.)
17669 For shared mappings, we should conversely verify that changes get
17670 propagated back to all the places they're supposed to be.
17672 Grep wants private fixed already mapped.
17673 The main things grep needs to know about mmap are:
17674 * does it exist and is it safe to write into the mmap'd area
17675 * how to use it (BSD variants) */
17678 #include <sys/mman.h>
17680 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17684 /* This mess was copied from the GNU getpagesize.h. */
17685 #ifndef HAVE_GETPAGESIZE
17686 # ifdef _SC_PAGESIZE
17687 # define getpagesize() sysconf(_SC_PAGESIZE)
17688 # else /* no _SC_PAGESIZE */
17689 # ifdef HAVE_SYS_PARAM_H
17690 # include <sys/param.h>
17691 # ifdef EXEC_PAGESIZE
17692 # define getpagesize() EXEC_PAGESIZE
17693 # else /* no EXEC_PAGESIZE */
17695 # define getpagesize() NBPG * CLSIZE
17698 # endif /* no CLSIZE */
17699 # else /* no NBPG */
17701 # define getpagesize() NBPC
17702 # else /* no NBPC */
17704 # define getpagesize() PAGESIZE
17705 # endif /* PAGESIZE */
17706 # endif /* no NBPC */
17707 # endif /* no NBPG */
17708 # endif /* no EXEC_PAGESIZE */
17709 # else /* no HAVE_SYS_PARAM_H */
17710 # define getpagesize() 8192 /* punt totally */
17711 # endif /* no HAVE_SYS_PARAM_H */
17712 # endif /* no _SC_PAGESIZE */
17714 #endif /* no HAVE_GETPAGESIZE */
17719 char *data, *data2, *data3;
17720 const char *cdata2;
17724 pagesize = getpagesize ();
17726 /* First, make a file with some known garbage in it. */
17727 data = (char *) malloc (pagesize);
17730 for (i = 0; i < pagesize; ++i)
17731 *(data + i) = rand ();
17733 fd = creat ("conftest.mmap", 0600);
17736 if (write (fd, data, pagesize) != pagesize)
17740 /* Next, check that the tail of a page is zero-filled. File must have
17741 non-zero length, otherwise we risk SIGBUS for entire page. */
17742 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17746 if (write (fd2, cdata2, 1) != 1)
17748 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17749 if (data2 == MAP_FAILED)
17751 for (i = 0; i < pagesize; ++i)
17755 if (munmap (data2, pagesize))
17758 /* Next, try to mmap the file at a fixed address which already has
17759 something else allocated at it. If we can, also make sure that
17760 we see the same garbage. */
17761 fd = open ("conftest.mmap", O_RDWR);
17764 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17765 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17767 for (i = 0; i < pagesize; ++i)
17768 if (*(data + i) != *(data2 + i))
17771 /* Finally, make sure that changes to the mapped area do not
17772 percolate back to the file as seen by read(). (This is a bug on
17773 some variants of i386 svr4.0.) */
17774 for (i = 0; i < pagesize; ++i)
17775 *(data2 + i) = *(data2 + i) + 1;
17776 data3 = (char *) malloc (pagesize);
17779 if (read (fd, data3, pagesize) != pagesize)
17781 for (i = 0; i < pagesize; ++i)
17782 if (*(data + i) != *(data3 + i))
17788 if ac_fn_c_try_run "$LINENO"; then :
17789 ac_cv_func_mmap_fixed_mapped=yes
17791 ac_cv_func_mmap_fixed_mapped=no
17793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17794 conftest.$ac_objext conftest.beam conftest.$ac_ext
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17799 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17800 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17802 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17805 rm -f conftest.mmap conftest.txt
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
17808 $as_echo_n "checking for main in -lstdc++... " >&6; }
17809 if ${ac_cv_lib_stdcpp_main+:} false; then :
17810 $as_echo_n "(cached) " >&6
17812 ac_check_lib_save_LIBS=$LIBS
17813 LIBS="-lstdc++ $LIBS"
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_stdcpp_main=yes
17829 ac_cv_lib_stdcpp_main=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
17836 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
17837 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
17838 MECAB_LIBS="-lstdc++"
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17842 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17843 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17844 $as_echo_n "(cached) " >&6
17846 ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-lpthread $LIBS"
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17857 char pthread_create ();
17861 return pthread_create ();
17866 if ac_fn_c_try_link "$LINENO"; then :
17867 ac_cv_lib_pthread_pthread_create=yes
17869 ac_cv_lib_pthread_pthread_create=no
17871 rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17876 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17877 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17878 cat >>confdefs.h <<_ACEOF
17879 #define HAVE_LIBPTHREAD 1
17882 LIBS="-lpthread $LIBS"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
17887 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
17888 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
17889 $as_echo_n "(cached) " >&6
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lpthread $LIBS"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17902 char pthread_join ();
17906 return pthread_join ();
17911 if ac_fn_c_try_link "$LINENO"; then :
17912 ac_cv_lib_pthread_pthread_join=yes
17914 ac_cv_lib_pthread_pthread_join=no
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
17921 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
17922 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
17923 cat >>confdefs.h <<_ACEOF
17924 #define HAVE_LIBPTHREAD 1
17927 LIBS="-lpthread $LIBS"
17931 for ac_func in getenv
17933 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
17934 if test "x$ac_cv_func_getenv" = xyes; then :
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_GETENV 1
17942 for ac_func in opendir
17944 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
17945 if test "x$ac_cv_func_opendir" = xyes; then :
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_OPENDIR 1
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17960 # Check whether --enable-utf8-only was given.
17961 if test "${enable_utf8_only+set}" = set; then :
17962 enableval=$enable_utf8_only;
17965 if test "$enable_utf8_only" = "yes"; then
17966 MECAB_USE_UTF8_ONLY="-DMECAB_USE_UTF8_ONLY"
17968 MECAB_USE_UTF8_ONLY=""
17971 LIBS="$LIBS $MECAB_LIBS $LIBICONV"
17975 MECAB_LIBEXEC_DIR="$libexecdir/mecab"
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU Make" >&5
17979 $as_echo_n "checking whether make is GNU Make... " >&6; }
17980 if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17982 $as_echo "yes" >&6; }
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985 $as_echo "no" >&6; }
17986 if test "$host_vendor" = "sun" ; then
17987 as_fn_error $? "\"SUN make does not work for building MeCab. Please install GNU make\"" "$LINENO" 5
17991 if test -n "$GCC"; then
17992 CFLAGS="-O3 -Wall "
17993 CXXFLAGS="-O3 -Wall "
17997 # Check whether --with-charset was given.
17998 if test "${with_charset+set}" = set; then :
17999 withval=$with_charset; CHARSET=${withval}
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <vector> (required)" >&5
18012 $as_echo_n "checking if ${CXX-c++} supports stl <vector> (required)... " >&6; }
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18028 if ac_fn_cxx_try_compile "$LINENO"; then :
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <vector> does not work" >&5
18036 $as_echo "$as_me: WARNING: ${CXX-c++} stl <vector> does not work" >&2;}
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_vector" >&5
18041 $as_echo "$ac_stl_vector" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <list> (required)" >&5
18045 $as_echo_n "checking if ${CXX-c++} supports stl <list> (required)... " >&6; }
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18061 if ac_fn_cxx_try_compile "$LINENO"; then :
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <list> does not work" >&5
18069 $as_echo "$as_me: WARNING: ${CXX-c++} stl <list> does not work" >&2;}
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_list" >&5
18074 $as_echo "$ac_stl_list" >&6; }
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <map> (required)" >&5
18078 $as_echo_n "checking if ${CXX-c++} supports stl <map> (required)... " >&6; }
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18094 if ac_fn_cxx_try_compile "$LINENO"; then :
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <map> does not work" >&5
18102 $as_echo "$as_me: WARNING: ${CXX-c++} stl <map> does not work" >&2;}
18105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_map" >&5
18107 $as_echo "$ac_stl_map" >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <set> (required)" >&5
18111 $as_echo_n "checking if ${CXX-c++} supports stl <set> (required)... " >&6; }
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18127 if ac_fn_cxx_try_compile "$LINENO"; then :
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <set> does not work" >&5
18135 $as_echo "$as_me: WARNING: ${CXX-c++} stl <set> does not work" >&2;}
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_set" >&5
18140 $as_echo "$ac_stl_set" >&6; }
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <queue> (required)" >&5
18144 $as_echo_n "checking if ${CXX-c++} supports stl <queue> (required)... " >&6; }
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18160 if ac_fn_cxx_try_compile "$LINENO"; then :
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <queue> does not work" >&5
18168 $as_echo "$as_me: WARNING: ${CXX-c++} stl <queue> does not work" >&2;}
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_queue" >&5
18173 $as_echo "$ac_stl_queue" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <functional> (required)" >&5
18177 $as_echo_n "checking if ${CXX-c++} supports stl <functional> (required)... " >&6; }
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18181 #include <functional>
18193 if ac_fn_cxx_try_compile "$LINENO"; then :
18195 ac_stl_functional=yes
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <functional> does not work" >&5
18201 $as_echo "$as_me: WARNING: ${CXX-c++} stl <functional> does not work" >&2;}
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_functional" >&5
18206 $as_echo "$ac_stl_functional" >&6; }
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <algorithm> (required)" >&5
18210 $as_echo_n "checking if ${CXX-c++} supports stl <algorithm> (required)... " >&6; }
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 #include <algorithm>
18226 if ac_fn_cxx_try_compile "$LINENO"; then :
18228 ac_stl_algorithm=yes
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <algorithm> does not work" >&5
18234 $as_echo "$as_me: WARNING: ${CXX-c++} stl <algorithm> does not work" >&2;}
18237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_algorithm" >&5
18239 $as_echo "$ac_stl_algorithm" >&6; }
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <string> (required)" >&5
18243 $as_echo_n "checking if ${CXX-c++} supports stl <string> (required)... " >&6; }
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18259 if ac_fn_cxx_try_compile "$LINENO"; then :
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <string> does not work" >&5
18267 $as_echo "$as_me: WARNING: ${CXX-c++} stl <string> does not work" >&2;}
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_string" >&5
18272 $as_echo "$ac_stl_string" >&6; }
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <iostream> (required)" >&5
18276 $as_echo_n "checking if ${CXX-c++} supports stl <iostream> (required)... " >&6; }
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18280 #include <iostream>
18292 if ac_fn_cxx_try_compile "$LINENO"; then :
18294 ac_stl_iostream=yes
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <iostream> does not work" >&5
18300 $as_echo "$as_me: WARNING: ${CXX-c++} stl <iostream> does not work" >&2;}
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_iostream" >&5
18305 $as_echo "$ac_stl_iostream" >&6; }
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <sstream> (required)" >&5
18309 $as_echo_n "checking if ${CXX-c++} supports stl <sstream> (required)... " >&6; }
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18325 if ac_fn_cxx_try_compile "$LINENO"; then :
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <sstream> does not work" >&5
18333 $as_echo "$as_me: WARNING: ${CXX-c++} stl <sstream> does not work" >&2;}
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_sstream" >&5
18338 $as_echo "$ac_stl_sstream" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <fstream> (required)" >&5
18342 $as_echo_n "checking if ${CXX-c++} supports stl <fstream> (required)... " >&6; }
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18358 if ac_fn_cxx_try_compile "$LINENO"; then :
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <fstream> does not work" >&5
18366 $as_echo "$as_me: WARNING: ${CXX-c++} stl <fstream> does not work" >&2;}
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_fstream" >&5
18371 $as_echo "$ac_stl_fstream" >&6; }
18374 # check for const_cast
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5
18376 $as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; }
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18380 template <class T> T foo (T &i) { return i++; };
18394 if ac_fn_cxx_try_compile "$LINENO"; then :
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5
18401 $as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;}
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5
18407 $as_echo "$ac_template" >&6; }
18409 # check for const_cast
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports const_cast<> (required)" >&5
18411 $as_echo_n "checking if ${CXX-c++} supports const_cast<> (required)... " >&6; }
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h. */
18422 foo *c1=const_cast<foo*>(c);
18428 if ac_fn_cxx_try_compile "$LINENO"; then :
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} const_cast<> does not work" >&5
18435 $as_echo "$as_me: WARNING: ${CXX-c++} const_cast<> does not work" >&2;}
18439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_const_cast" >&5
18441 $as_echo "$ac_const_cast" >&6; }
18443 # check for static_cast<>
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports static_cast<> (required)" >&5
18445 $as_echo_n "checking if ${CXX-c++} supports static_cast<> (required)... " >&6; }
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18456 void *c1 = static_cast<void *>(c);
18462 if ac_fn_cxx_try_compile "$LINENO"; then :
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} static_cast<> does not work" >&5
18469 $as_echo "$as_me: WARNING: ${CXX-c++} static_cast<> does not work" >&2;}
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_static_cast" >&5
18475 $as_echo "$ac_static_cast" >&6; }
18477 # check for reinterpret_cast
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports reinterpret_cast<> (required)" >&5
18479 $as_echo_n "checking if ${CXX-c++} supports reinterpret_cast<> (required)... " >&6; }
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18489 char *p = reinterpret_cast<char *>(a);
18495 if ac_fn_cxx_try_compile "$LINENO"; then :
18497 ac_reinterpret_cast=yes
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} reinterpret_cast<> does not work" >&5
18502 $as_echo "$as_me: WARNING: ${CXX-c++} reinterpret_cast<> does not work" >&2;}
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_reinterpret_cast" >&5
18508 $as_echo "$ac_reinterpret_cast" >&6; }
18510 # check for namespaces
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports namespaces (required) " >&5
18512 $as_echo_n "checking if ${CXX-c++} supports namespaces (required) ... " >&6; }
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18516 namespace Foo { struct A {}; }
18517 using namespace Foo;
18529 if ac_fn_cxx_try_compile "$LINENO"; then :
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_namespaces" >&5
18541 $as_echo "$ac_namespaces" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports __thread (optional)" >&5
18544 $as_echo_n "checking if ${CXX-c++} supports __thread (optional)... " >&6; }
18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546 /* end confdefs.h. */
18548 __thread int a = 0;
18560 if ac_fn_cxx_try_compile "$LINENO"; then :
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tls" >&5
18571 $as_echo "$enable_tls" >&6; }
18573 if test "$enable_tls" = "no"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: __thread keyword is not supported on this environment. \
18575 Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&5
18576 $as_echo "$as_me: WARNING: __thread keyword is not supported on this environment. \
18577 Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&2;}
18579 $as_echo "#define HAVE_TLS_KEYWORD 1" >>confdefs.h
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5
18584 $as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; }
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18588 template <class T> T foo (T &i) { return i++; };
18602 if ac_fn_cxx_try_compile "$LINENO"; then :
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5
18609 $as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;}
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5
18615 $as_echo "$ac_template" >&6; }
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports GCC native atomic operations (optional)" >&5
18618 $as_echo_n "checking if ${CXX-c++} supports GCC native atomic operations (optional)... " >&6; }
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h. */
18629 __sync_fetch_and_add(&a, 10);
18630 __sync_val_compare_and_swap(&a, 0, 10);
18637 if ac_fn_cxx_try_compile "$LINENO"; then :
18639 enable_gcc_atomic_ops=yes
18643 enable_gcc_atomic_ops=no
18646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcc_atomic_ops" >&5
18648 $as_echo "$enable_gcc_atomic_ops" >&6; }
18649 if test "$enable_gcc_atomic_ops" = "yes"; then
18650 $as_echo "#define HAVE_GCC_ATOMIC_OPS 1" >>confdefs.h
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports OSX native atomic operations (optional)" >&5
18655 $as_echo_n "checking if ${CXX-c++} supports OSX native atomic operations (optional)... " >&6; }
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18659 #include <libkern/OSAtomic.h>
18666 OSAtomicAdd32(10, &a);
18667 OSAtomicCompareAndSwapInt(10, 0, &a);
18673 if ac_fn_cxx_try_compile "$LINENO"; then :
18675 enable_osx_atomic_ops=yes
18679 enable_osx_atomic_ops=no
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_osx_atomic_ops" >&5
18684 $as_echo "$enable_osx_atomic_ops" >&6; }
18685 if test "$enable_osx_atomic_ops" = "yes"; then
18686 $as_echo "#define HAVE_OSX_ATOMIC_OPS 1" >>confdefs.h
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} environment provides all required features" >&5
18691 $as_echo_n "checking if ${CXX-c++} environment provides all required features... " >&6; }
18692 if test "x$config_error" = xyes ; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18695 as_fn_error $? "Your compiler is not powerful enough to compile MeCab. \
18696 If it should be, see config.log for more information of why it failed." "$LINENO" 5
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699 $as_echo "yes" >&6; }
18703 MECAB_DEFAULT_RC='c:\\\\Program Files\\\\mecab\\\\etc\\\\mecabrc'
18704 CFLAGS="$CFLAGS -municode -DUNICODE -D_UNICODE"
18705 CXXFLAGS="$CXXFLAGS -municode -DUNICODE -D_UNICODE"
18708 MECAB_DEFAULT_RC="$sysconfdir/mecabrc"
18716 ac_config_headers="$ac_config_headers config.h"
18718 ac_config_files="$ac_config_files Makefile src/Makefile src/Makefile.msvc man/Makefile doc/Makefile tests/Makefile swig/version.h mecab.iss mecab-config mecabrc"
18720 ac_config_commands="$ac_config_commands default"
18722 cat >confcache <<\_ACEOF
18723 # This file is a shell script that caches the results of configure
18724 # tests run on this system so they can be shared between configure
18725 # scripts and configure runs, see configure's option --config-cache.
18726 # It is not useful on other systems. If it contains results you don't
18727 # want to keep, you may remove or edit it.
18729 # config.status only pays attention to the cache file if you give it
18730 # the --recheck option to rerun configure.
18732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18734 # following values.
18738 # The following way of writing the cache mishandles newlines in values,
18739 # but we know of no workaround that is simple, portable, and efficient.
18740 # So, we kill variables containing newlines.
18741 # Ultrix sh set writes to stderr and can't be redirected directly,
18742 # and sets the high bit in the cache file unless we assign to the vars.
18744 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18745 eval ac_val=\$$ac_var
18749 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18750 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18753 _ | IFS | as_nl) ;; #(
18754 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18755 *) { eval $ac_var=; unset $ac_var;} ;;
18761 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18762 *${as_nl}ac_space=\ *)
18763 # `set' does not quote correctly, so add quotes: double-quote
18764 # substitution turns \\\\ into \\, and sed turns \\ into \.
18767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18770 # `set' quotes correctly as required by POSIX, so do not add quotes.
18771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18780 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18782 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18784 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18785 if test -w "$cache_file"; then
18786 if test "x$cache_file" != "x/dev/null"; then
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18788 $as_echo "$as_me: updating cache $cache_file" >&6;}
18789 if test ! -f "$cache_file" || test -h "$cache_file"; then
18790 cat confcache >"$cache_file"
18792 case $cache_file in #(
18794 mv -f confcache "$cache_file"$$ &&
18795 mv -f "$cache_file"$$ "$cache_file" ;; #(
18797 mv -f confcache "$cache_file" ;;
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18803 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18808 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18809 # Let make expand exec_prefix.
18810 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18812 DEFS=-DHAVE_CONFIG_H
18817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18818 # 1. Remove the extension, and $U if already installed.
18819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18820 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18822 # will be set to the directory where LIBOBJS objects are built.
18823 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18824 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18826 LIBOBJS=$ac_libobjs
18828 LTLIBOBJS=$ac_ltlibobjs
18831 if test -n "$EXEEXT"; then
18833 am__EXEEXT_FALSE='#'
18835 am__EXEEXT_TRUE='#'
18839 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18840 as_fn_error $? "conditional \"AMDEP\" was never defined.
18841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18844 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18847 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18848 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18854 : "${CONFIG_STATUS=./config.status}"
18856 ac_clean_files_save=$ac_clean_files
18857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18863 # Generated by $as_me.
18864 # Run this file to recreate the current configuration.
18865 # Compiler output produced by configure, useful for debugging
18866 # configure, is in config.log if it exists.
18869 ac_cs_recheck=false
18872 SHELL=\${CONFIG_SHELL-$SHELL}
18875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18876 ## -------------------- ##
18877 ## M4sh Initialization. ##
18878 ## -------------------- ##
18880 # Be more Bourne compatible
18881 DUALCASE=1; export DUALCASE # for MKS sh
18882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18886 # is contrary to our usage. Disable this feature.
18887 alias -g '${1+"$@"}'='"$@"'
18888 setopt NO_GLOB_SUBST
18890 case `(set -o) 2>/dev/null` in #(
18902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18903 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18906 # Prefer a ksh shell builtin over an external printf program on Solaris,
18907 # but without wasting forks for bash or zsh.
18908 if test -z "$BASH_VERSION$ZSH_VERSION" \
18909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18910 as_echo='print -r --'
18911 as_echo_n='print -rn --'
18912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18913 as_echo='printf %s\n'
18914 as_echo_n='printf %s'
18916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18917 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18918 as_echo_n='/usr/ucb/echo -n'
18920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18921 as_echo_n_body='eval
18925 expr "X$arg" : "X\\(.*\\)$as_nl";
18926 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18928 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18930 export as_echo_n_body
18931 as_echo_n='sh -c $as_echo_n_body as_echo'
18933 export as_echo_body
18934 as_echo='sh -c $as_echo_body as_echo'
18937 # The user is always right.
18938 if test "${PATH_SEPARATOR+set}" != set; then
18940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18948 # We need space, tab and new line, in precisely that order. Quoting is
18949 # there to prevent editors from complaining about space-tab.
18950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18951 # splitting by setting IFS to empty value.)
18954 # Find who we are. Look in the path if we contain no directory separator.
18957 *[\\/]* ) as_myself=$0 ;;
18958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in $PATH
18962 test -z "$as_dir" && as_dir=.
18963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18969 # We did not find ourselves, most probably we were run as `sh COMMAND'
18970 # in which case we are not to be found in the path.
18971 if test "x$as_myself" = x; then
18974 if test ! -f "$as_myself"; then
18975 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18979 # Unset variables that we do not need and which cause bugs (e.g. in
18980 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18981 # suppresses any "Segmentation fault" message there. '((' could
18982 # trigger a bug in pdksh 5.2.14.
18983 for as_var in BASH_ENV ENV MAIL MAILPATH
18984 do eval test x\${$as_var+set} = xset \
18985 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19001 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19002 # ----------------------------------------
19003 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19004 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19005 # script with STATUS, using 1 if that was 0.
19008 as_status=$1; test $as_status -eq 0 && as_status=1
19010 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19011 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19013 $as_echo "$as_me: error: $2" >&2
19014 as_fn_exit $as_status
19018 # as_fn_set_status STATUS
19019 # -----------------------
19020 # Set $? to STATUS, without forking.
19021 as_fn_set_status ()
19024 } # as_fn_set_status
19026 # as_fn_exit STATUS
19027 # -----------------
19028 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19032 as_fn_set_status $1
19038 # Portably unset VAR.
19041 { eval $1=; unset $1;}
19043 as_unset=as_fn_unset
19044 # as_fn_append VAR VALUE
19045 # ----------------------
19046 # Append the text in VALUE to the end of the definition contained in VAR. Take
19047 # advantage of any shell optimizations that allow amortized linear growth over
19048 # repeated appends, instead of the typical quadratic growth present in naive
19050 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19051 eval 'as_fn_append ()
19062 # as_fn_arith ARG...
19063 # ------------------
19064 # Perform arithmetic evaluation on the ARGs, and store the result in the
19065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19066 # must be portable across $(()) and expr.
19067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19068 eval 'as_fn_arith ()
19075 as_val=`expr "$@" || test $? -eq 1`
19080 if expr a : '\(a\)' >/dev/null 2>&1 &&
19081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19087 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19088 as_basename=basename
19093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19099 as_me=`$as_basename -- "$0" ||
19100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19101 X"$0" : 'X\(//\)$' \| \
19102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19104 sed '/^.*\/\([^/][^/]*\)\/*$/{
19118 # Avoid depending upon Character Ranges.
19119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19122 as_cr_digits='0123456789'
19123 as_cr_alnum=$as_cr_Letters$as_cr_digits
19125 ECHO_C= ECHO_N= ECHO_T=
19126 case `echo -n x` in #(((((
19128 case `echo 'xy\c'` in
19129 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19131 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19138 rm -f conf$$ conf$$.exe conf$$.file
19139 if test -d conf$$.dir; then
19140 rm -f conf$$.dir/conf$$.file
19143 mkdir conf$$.dir 2>/dev/null
19145 if (echo >conf$$.file) 2>/dev/null; then
19146 if ln -s conf$$.file conf$$ 2>/dev/null; then
19148 # ... but there are two gotchas:
19149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19151 # In both cases, we have to default to `cp -p'.
19152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19154 elif ln conf$$.file conf$$ 2>/dev/null; then
19162 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19163 rmdir conf$$.dir 2>/dev/null
19168 # Create "$as_dir" as a directory, including parents if necessary.
19173 -*) as_dir=./$as_dir;;
19175 test -d "$as_dir" || eval $as_mkdir_p || {
19179 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19180 *) as_qdir=$as_dir;;
19182 as_dirs="'$as_qdir' $as_dirs"
19183 as_dir=`$as_dirname -- "$as_dir" ||
19184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19185 X"$as_dir" : 'X\(//\)[^/]' \| \
19186 X"$as_dir" : 'X\(//\)$' \| \
19187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19188 $as_echo X"$as_dir" |
19189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19193 /^X\(\/\/\)[^/].*/{
19206 test -d "$as_dir" && break
19208 test -z "$as_dirs" || eval "mkdir $as_dirs"
19209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19213 if mkdir -p . 2>/dev/null; then
19214 as_mkdir_p='mkdir -p "$as_dir"'
19216 test -d ./-p && rmdir ./-p
19220 if test -x / >/dev/null 2>&1; then
19221 as_test_x='test -x'
19223 if ls -dL / >/dev/null 2>&1; then
19230 if test -d "$1"; then
19236 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19237 ???[sx]*):;;*)false;;esac;fi
19241 as_executable_p=$as_test_x
19243 # Sed expression to map a string onto a valid CPP name.
19244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19246 # Sed expression to map a string onto a valid variable name.
19247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19251 ## ----------------------------------- ##
19252 ## Main body of $CONFIG_STATUS script. ##
19253 ## ----------------------------------- ##
19255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19258 # Save the log message, to keep $0 and so on meaningful, and to
19259 # report actual input values of CONFIG_FILES etc. instead of their
19260 # values after options handling.
19262 This file was extended by $as_me, which was
19263 generated by GNU Autoconf 2.68. Invocation command line was
19265 CONFIG_FILES = $CONFIG_FILES
19266 CONFIG_HEADERS = $CONFIG_HEADERS
19267 CONFIG_LINKS = $CONFIG_LINKS
19268 CONFIG_COMMANDS = $CONFIG_COMMANDS
19271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19276 case $ac_config_files in *"
19277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19280 case $ac_config_headers in *"
19281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19286 # Files that config.status was made for.
19287 config_files="$ac_config_files"
19288 config_headers="$ac_config_headers"
19289 config_commands="$ac_config_commands"
19293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19295 \`$as_me' instantiates files and other configuration actions
19296 from templates according to the current configuration. Unless the files
19297 and actions are specified as TAGs, all are instantiated by default.
19299 Usage: $0 [OPTION]... [TAG]...
19301 -h, --help print this help, then exit
19302 -V, --version print version number and configuration settings, then exit
19303 --config print configuration, then exit
19304 -q, --quiet, --silent
19305 do not print progress messages
19306 -d, --debug don't remove temporary files
19307 --recheck update $as_me by reconfiguring in the same conditions
19308 --file=FILE[:TEMPLATE]
19309 instantiate the configuration file FILE
19310 --header=FILE[:TEMPLATE]
19311 instantiate the configuration header FILE
19313 Configuration files:
19316 Configuration headers:
19319 Configuration commands:
19322 Report bugs to the package provider."
19325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19329 configured by $0, generated by GNU Autoconf 2.68,
19330 with options \\"\$ac_cs_config\\"
19332 Copyright (C) 2010 Free Software Foundation, Inc.
19333 This config.status script is free software; the Free Software Foundation
19334 gives unlimited permission to copy, distribute and modify it."
19341 test -n "\$AWK" || AWK=awk
19344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19345 # The default lists apply if the user does not specify any file.
19351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19368 # Handling of the options.
19369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19372 $as_echo "$ac_cs_version"; exit ;;
19373 --config | --confi | --conf | --con | --co | --c )
19374 $as_echo "$ac_cs_config"; exit ;;
19375 --debug | --debu | --deb | --de | --d | -d )
19377 --file | --fil | --fi | --f )
19380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19381 '') as_fn_error $? "missing file argument" ;;
19383 as_fn_append CONFIG_FILES " '$ac_optarg'"
19384 ac_need_defaults=false;;
19385 --header | --heade | --head | --hea )
19388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19391 ac_need_defaults=false;;
19393 # Conflict between --help and --header
19394 as_fn_error $? "ambiguous option: \`$1'
19395 Try \`$0 --help' for more information.";;
19396 --help | --hel | -h )
19397 $as_echo "$ac_cs_usage"; exit ;;
19398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19402 # This is an error.
19403 -*) as_fn_error $? "unrecognized option: \`$1'
19404 Try \`$0 --help' for more information." ;;
19406 *) as_fn_append ac_config_targets " $1"
19407 ac_need_defaults=false ;;
19413 ac_configure_extra_args=
19415 if $ac_cs_silent; then
19417 ac_configure_extra_args="$ac_configure_extra_args --silent"
19421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19422 if \$ac_cs_recheck; then
19423 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19426 CONFIG_SHELL='$SHELL'
19427 export CONFIG_SHELL
19432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19437 ## Running $as_me. ##
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19450 # The HP-UX ksh and POSIX shell print the target directory to stdout
19451 # if CDPATH is set.
19452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19454 sed_quote_subst='$sed_quote_subst'
19455 double_quote_subst='$double_quote_subst'
19456 delay_variable_subst='$delay_variable_subst'
19457 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19458 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19459 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19460 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19461 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19462 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19463 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19464 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19465 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19468 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19469 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19470 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19471 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19472 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19473 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19474 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19475 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19476 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19477 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19478 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19479 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19480 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19481 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19482 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19483 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19484 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19485 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19486 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19487 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19488 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19489 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19490 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19491 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19492 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19493 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19494 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19495 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19496 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19497 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19498 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19500 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19513 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19514 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"`'
19515 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19516 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19517 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19518 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19519 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19520 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19521 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19522 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19523 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19524 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19525 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19526 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19527 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19528 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19529 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19530 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19531 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19532 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19533 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19534 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19535 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19536 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19537 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19538 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19539 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19540 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19541 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19542 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19543 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19544 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19545 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19546 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19547 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19548 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19549 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19550 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19551 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19552 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19553 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19554 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19555 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19556 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19557 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19558 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19559 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19560 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19561 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19562 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19563 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19564 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19565 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19566 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19567 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19568 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19569 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19570 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19571 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19572 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19573 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19574 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19575 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19576 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19577 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19578 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19579 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19580 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19581 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19582 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19583 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19584 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19585 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19586 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19587 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19588 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19589 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19590 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19591 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19592 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19593 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19594 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19595 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19596 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19597 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19598 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19599 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19600 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19601 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19602 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19603 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19604 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19605 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19606 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19607 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19608 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19609 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19610 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19611 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19612 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19613 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19614 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19615 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19616 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19617 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19618 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19619 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19620 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19621 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19622 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19623 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19624 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19625 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19626 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19627 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19628 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19629 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19630 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19631 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19632 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19633 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19634 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19635 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19636 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19637 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19638 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19639 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19640 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19641 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19644 LTCFLAGS='$LTCFLAGS'
19645 compiler='$compiler_DEFAULT'
19647 # A function that is used when there is no print builtin or printf.
19648 func_fallback_echo ()
19650 eval 'cat <<_LTECHO_EOF
19655 # Quote evaled strings.
19672 deplibs_check_method \
19676 sharedlib_from_linklib_cmd \
19679 archiver_list_spec \
19685 lt_cv_sys_global_symbol_pipe \
19686 lt_cv_sys_global_symbol_to_cdecl \
19687 lt_cv_sys_global_symbol_to_c_name_address \
19688 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19689 nm_file_list_spec \
19690 lt_prog_compiler_no_builtin_flag \
19691 lt_prog_compiler_pic \
19692 lt_prog_compiler_wl \
19693 lt_prog_compiler_static \
19694 lt_cv_prog_compiler_c_o \
19703 export_dynamic_flag_spec \
19704 whole_archive_flag_spec \
19705 compiler_needs_object \
19707 allow_undefined_flag \
19708 no_undefined_flag \
19709 hardcode_libdir_flag_spec \
19710 hardcode_libdir_separator \
19714 variables_saved_for_relink \
19716 library_names_spec \
19718 install_override_mode \
19722 compiler_lib_search_dirs \
19727 compiler_lib_search_path \
19731 lt_prog_compiler_no_builtin_flag_CXX \
19732 lt_prog_compiler_pic_CXX \
19733 lt_prog_compiler_wl_CXX \
19734 lt_prog_compiler_static_CXX \
19735 lt_cv_prog_compiler_c_o_CXX \
19736 export_dynamic_flag_spec_CXX \
19737 whole_archive_flag_spec_CXX \
19738 compiler_needs_object_CXX \
19740 allow_undefined_flag_CXX \
19741 no_undefined_flag_CXX \
19742 hardcode_libdir_flag_spec_CXX \
19743 hardcode_libdir_separator_CXX \
19744 exclude_expsyms_CXX \
19745 include_expsyms_CXX \
19746 file_list_spec_CXX \
19747 compiler_lib_search_dirs_CXX \
19748 predep_objects_CXX \
19749 postdep_objects_CXX \
19752 compiler_lib_search_path_CXX; do
19753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19754 *[\\\\\\\`\\"\\\$]*)
19755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19763 # Double-quote double-evaled strings.
19764 for var in reload_cmds \
19765 old_postinstall_cmds \
19766 old_postuninstall_cmds \
19768 extract_expsyms_cmds \
19769 old_archive_from_new_cmds \
19770 old_archive_from_expsyms_cmds \
19772 archive_expsym_cmds \
19774 module_expsym_cmds \
19775 export_symbols_cmds \
19779 postuninstall_cmds \
19781 sys_lib_search_path_spec \
19782 sys_lib_dlsearch_path_spec \
19784 old_archive_cmds_CXX \
19785 old_archive_from_new_cmds_CXX \
19786 old_archive_from_expsyms_cmds_CXX \
19788 archive_expsym_cmds_CXX \
19790 module_expsym_cmds_CXX \
19791 export_symbols_cmds_CXX \
19793 postlink_cmds_CXX; do
19794 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19795 *[\\\\\\\`\\"\\\$]*)
19796 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19799 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19804 ac_aux_dir='$ac_aux_dir'
19805 xsi_shell='$xsi_shell'
19806 lt_shell_append='$lt_shell_append'
19808 # See if we are running on zsh, and set the options which allow our
19809 # commands through without removal of \ escapes INIT.
19810 if test -n "\${ZSH_VERSION+set}" ; then
19811 setopt NO_GLOB_SUBST
19817 TIMESTAMP='$TIMESTAMP'
19828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19830 # Handling of arguments.
19831 for ac_config_target in $ac_config_targets
19833 case $ac_config_target in
19834 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19835 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19836 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19838 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19839 "src/Makefile.msvc") CONFIG_FILES="$CONFIG_FILES src/Makefile.msvc" ;;
19840 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19841 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19842 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19843 "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;;
19844 "mecab.iss") CONFIG_FILES="$CONFIG_FILES mecab.iss" ;;
19845 "mecab-config") CONFIG_FILES="$CONFIG_FILES mecab-config" ;;
19846 "mecabrc") CONFIG_FILES="$CONFIG_FILES mecabrc" ;;
19847 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19849 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19854 # If the user did not use the arguments to specify the items to instantiate,
19855 # then the envvar interface is used. Set only those that are not.
19856 # We use the long form for the default assignment because of an extremely
19857 # bizarre bug on SunOS 4.1.3.
19858 if $ac_need_defaults; then
19859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19864 # Have a temporary directory for convenience. Make it in the build tree
19865 # simply because there is no reason against having it here, and in addition,
19866 # creating and moving files from /tmp can sometimes cause problems.
19867 # Hook for its removal unless debugging.
19868 # Note that there is a small window in which the directory will not be cleaned:
19869 # after its creation but before its name has been assigned to `$tmp'.
19873 trap 'exit_status=$?
19874 : "${ac_tmp:=$tmp}"
19875 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19877 trap 'as_fn_exit 1' 1 2 13 15
19879 # Create a (secure) tmp directory for tmp files.
19882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19886 tmp=./conf$$-$RANDOM
19887 (umask 077 && mkdir "$tmp")
19888 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19891 # Set up the scripts for CONFIG_FILES section.
19892 # No need to generate them if there are no CONFIG_FILES.
19893 # This happens for instance with `./config.status config.h'.
19894 if test -n "$CONFIG_FILES"; then
19897 ac_cr=`echo X | tr X '\015'`
19898 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19899 # But we know of no other shell where ac_cr would be empty at this
19900 # point, so we can use a bashism as a fallback.
19901 if test "x$ac_cr" = x; then
19902 eval ac_cr=\$\'\\r\'
19904 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19905 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19908 ac_cs_awk_cr=$ac_cr
19911 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19916 echo "cat >conf$$subs.awk <<_ACEOF" &&
19917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19919 } >conf$$subs.sh ||
19920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19923 for ac_last_try in false false false false false :; do
19924 . ./conf$$subs.sh ||
19925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19928 if test $ac_delim_n = $ac_delim_num; then
19930 elif $ac_last_try; then
19931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19936 rm -f conf$$subs.sh
19938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19939 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19943 s/^/S["/; s/!.*/"]=/
19953 s/\(.\{148\}\)..*/\1/
19955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19967 s/\(.\{148\}\)..*/\1/
19969 s/["\\]/\\&/g; s/^/"/; s/$/"/
19973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19978 ' <conf$$subs.awk | sed '
19983 ' >>$CONFIG_STATUS || ac_write_fail=1
19984 rm -f conf$$subs.awk
19985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19988 for (key in S) S_is_set[key] = 1
19994 nfields = split(line, field, "@")
19996 len = length(field[1])
19997 for (i = 2; i < nfields; i++) {
19999 keylen = length(key)
20000 if (S_is_set[key]) {
20002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20003 len += length(value) + length(field[++i])
20014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20015 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20016 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20019 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20020 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20023 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20024 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20025 # trailing colons and then remove the whole line if VPATH becomes empty
20026 # (actually we leave an empty line to preserve line numbers).
20027 if test "x$srcdir" = x.; then
20028 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047 fi # test -n "$CONFIG_FILES"
20049 # Set up the scripts for CONFIG_HEADERS section.
20050 # No need to generate them if there are no CONFIG_HEADERS.
20051 # This happens for instance with `./config.status Makefile'.
20052 if test -n "$CONFIG_HEADERS"; then
20053 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20057 # Transform confdefs.h into an awk script `defines.awk', embedded as
20058 # here-document in config.status, that substitutes the proper values into
20059 # config.h.in to produce config.h.
20061 # Create a delimiter string that does not exist in confdefs.h, to ease
20062 # handling of long lines.
20064 for ac_last_try in false false :; do
20065 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20066 if test -z "$ac_tt"; then
20068 elif $ac_last_try; then
20069 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20075 # For the awk script, D is an array of macro values keyed by name,
20076 # likewise P contains macro parameters if any. Preserve backslash
20077 # newline sequences.
20079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20081 s/.\{148\}/&'"$ac_delim"'/g
20084 s/^[ ]*#[ ]*define[ ][ ]*/ /
20091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20098 D["\1"]=" \3\\\\\\n"\\/p
20100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20105 s/.\{148\}/&'"$ac_delim"'/g
20110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20115 ' <confdefs.h | sed '
20116 s/'"$ac_delim"'/"\\\
20117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20120 for (key in D) D_is_set[key] = 1
20123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20125 split(line, arg, " ")
20126 if (arg[1] == "#") {
20130 defundef = substr(arg[1], 2)
20133 split(mac1, mac2, "(") #)
20135 prefix = substr(line, 1, index(line, defundef) - 1)
20136 if (D_is_set[macro]) {
20137 # Preserve the white space surrounding the "#".
20138 print prefix "define", macro P[macro] D[macro]
20141 # Replace #undef with comments. This is necessary, for example,
20142 # in the case of _POSIX_SOURCE, which is predefined and required
20143 # on some systems where configure will not decide to define it.
20144 if (defundef == "undef") {
20145 print "/*", prefix defundef, macro, "*/"
20153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20154 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20155 fi # test -n "$CONFIG_HEADERS"
20158 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20163 :[FHLC]) ac_mode=$ac_tag; continue;;
20165 case $ac_mode$ac_tag in
20167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20168 :[FH]-) ac_tag=-:-;;
20169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20186 -) ac_f="$ac_tmp/stdin";;
20187 *) # Look for the file first in the build tree, then in the source tree
20188 # (if the path is not absolute). The absolute path cannot be DOS-style,
20189 # because $ac_f cannot contain `:'.
20193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20198 as_fn_append ac_file_inputs " '$ac_f'"
20201 # Let's still pretend it is `configure' which instantiates (i.e., don't
20202 # use $as_me), people would be surprised to read:
20203 # /* config.h. Generated by config.status. */
20204 configure_input='Generated from '`
20205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20207 if test x"$ac_file" != x-; then
20208 configure_input="$ac_file. $configure_input"
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20210 $as_echo "$as_me: creating $ac_file" >&6;}
20212 # Neutralize special characters interpreted by sed in replacement strings.
20213 case $configure_input in #(
20214 *\&* | *\|* | *\\* )
20215 ac_sed_conf_input=`$as_echo "$configure_input" |
20216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20217 *) ac_sed_conf_input=$configure_input;;
20221 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20227 ac_dir=`$as_dirname -- "$ac_file" ||
20228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229 X"$ac_file" : 'X\(//\)[^/]' \| \
20230 X"$ac_file" : 'X\(//\)$' \| \
20231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20232 $as_echo X"$ac_file" |
20233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20237 /^X\(\/\/\)[^/].*/{
20250 as_dir="$ac_dir"; as_fn_mkdir_p
20254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20257 # A ".." for each directory in $ac_dir_suffix.
20258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20259 case $ac_top_builddir_sub in
20260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20264 ac_abs_top_builddir=$ac_pwd
20265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20266 # for backward compatibility:
20267 ac_top_builddir=$ac_top_build_prefix
20270 .) # We are building in place.
20272 ac_top_srcdir=$ac_top_builddir_sub
20273 ac_abs_top_srcdir=$ac_pwd ;;
20274 [\\/]* | ?:[\\/]* ) # Absolute name.
20275 ac_srcdir=$srcdir$ac_dir_suffix;
20276 ac_top_srcdir=$srcdir
20277 ac_abs_top_srcdir=$srcdir ;;
20278 *) # Relative name.
20279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20280 ac_top_srcdir=$ac_top_build_prefix$srcdir
20281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20296 ac_MKDIR_P=$MKDIR_P
20298 [\\/$]* | ?:[\\/]* ) ;;
20299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20304 # If the template does not know about datarootdir, expand it.
20305 # FIXME: This hack should be removed a few years after 2.60.
20306 ac_datarootdir_hack=; ac_datarootdir_seen=
20317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20318 *datarootdir*) ac_datarootdir_seen=yes;;
20319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324 ac_datarootdir_hack='
20325 s&@datadir@&$datadir&g
20326 s&@docdir@&$docdir&g
20327 s&@infodir@&$infodir&g
20328 s&@localedir@&$localedir&g
20329 s&@mandir@&$mandir&g
20330 s&\\\${datarootdir}&$datarootdir&g' ;;
20334 # Neutralize VPATH when `$srcdir' = `.'.
20335 # Shell code in configure.ac might set extrasub.
20336 # FIXME: do we really want to maintain this feature?
20337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20338 ac_sed_extra="$ac_vpsub
20341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20344 s|@configure_input@|$ac_sed_conf_input|;t t
20345 s&@top_builddir@&$ac_top_builddir_sub&;t t
20346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20347 s&@srcdir@&$ac_srcdir&;t t
20348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20349 s&@top_srcdir@&$ac_top_srcdir&;t t
20350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20351 s&@builddir@&$ac_builddir&;t t
20352 s&@abs_builddir@&$ac_abs_builddir&;t t
20353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20354 s&@INSTALL@&$ac_INSTALL&;t t
20355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20356 $ac_datarootdir_hack
20358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20364 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20366 which seems to be undefined. Please make sure it is defined" >&5
20367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20368 which seems to be undefined. Please make sure it is defined" >&2;}
20370 rm -f "$ac_tmp/stdin"
20372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20381 if test x"$ac_file" != x-; then
20383 $as_echo "/* $configure_input */" \
20384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20385 } >"$ac_tmp/config.h" \
20386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20392 mv "$ac_tmp/config.h" "$ac_file" \
20393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20396 $as_echo "/* $configure_input */" \
20397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20398 || as_fn_error $? "could not create -" "$LINENO" 5
20400 # Compute "$ac_file"'s index in $config_headers.
20403 for _am_header in $config_headers :; do
20404 case $_am_header in
20405 $_am_arg | $_am_arg:* )
20408 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20411 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20412 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413 X"$_am_arg" : 'X\(//\)[^/]' \| \
20414 X"$_am_arg" : 'X\(//\)$' \| \
20415 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20416 $as_echo X"$_am_arg" |
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421 /^X\(\/\/\)[^/].*/{
20433 s/.*/./; q'`/stamp-h$_am_stamp_count
20436 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20437 $as_echo "$as_me: executing $ac_file commands" >&6;}
20442 case $ac_file$ac_mode in
20443 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20444 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20445 # are listed without --file. Let's play safe and only enable the eval
20446 # if we detect the quoting.
20447 case $CONFIG_FILES in
20448 *\'*) eval set x "$CONFIG_FILES" ;;
20449 *) set x $CONFIG_FILES ;;
20454 # Strip MF so we end up with the name of the file.
20455 mf=`echo "$mf" | sed -e 's/:.*$//'`
20456 # Check whether this is an Automake generated Makefile or not.
20457 # We used to match only the files named `Makefile.in', but
20458 # some people rename them; so instead we look at the file content.
20459 # Grep'ing the first line is not enough: some people post-process
20460 # each Makefile.in and add a new line on top of each file to say so.
20461 # Grep'ing the whole file is not good either: AIX grep has a line
20462 # limit of 2048, but all sed's we know have understand at least 4000.
20463 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20464 dirpart=`$as_dirname -- "$mf" ||
20465 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466 X"$mf" : 'X\(//\)[^/]' \| \
20467 X"$mf" : 'X\(//\)$' \| \
20468 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20474 /^X\(\/\/\)[^/].*/{
20490 # Extract the definition of DEPDIR, am__include, and am__quote
20491 # from the Makefile without running `make'.
20492 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20493 test -z "$DEPDIR" && continue
20494 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20495 test -z "am__include" && continue
20496 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20497 # When using ansi2knr, U may be empty or an underscore; expand it
20498 U=`sed -n 's/^U = //p' < "$mf"`
20499 # Find all dependency output files, they are included files with
20500 # $(DEPDIR) in their names. We invoke sed twice because it is the
20501 # simplest approach to changing $(DEPDIR) to its actual value in the
20503 for file in `sed -n "
20504 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20505 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20506 # Make sure the directory exists.
20507 test -f "$dirpart/$file" && continue
20508 fdir=`$as_dirname -- "$file" ||
20509 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510 X"$file" : 'X\(//\)[^/]' \| \
20511 X"$file" : 'X\(//\)$' \| \
20512 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20513 $as_echo X"$file" |
20514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20518 /^X\(\/\/\)[^/].*/{
20531 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20532 # echo "creating $dirpart/$file"
20533 echo '# dummy' > "$dirpart/$file"
20540 # See if we are running on zsh, and set the options which allow our
20541 # commands through without removal of \ escapes.
20542 if test -n "${ZSH_VERSION+set}" ; then
20543 setopt NO_GLOB_SUBST
20546 cfgfile="${ofile}T"
20547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20550 cat <<_LT_EOF >> "$cfgfile"
20553 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20554 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20556 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20558 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20559 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20561 # Written by Gordon Matzigkeit, 1996
20563 # This file is part of GNU Libtool.
20565 # GNU Libtool is free software; you can redistribute it and/or
20566 # modify it under the terms of the GNU General Public License as
20567 # published by the Free Software Foundation; either version 2 of
20568 # the License, or (at your option) any later version.
20570 # As a special exception to the GNU General Public License,
20571 # if you distribute this file as part of a program or library that
20572 # is built using GNU Libtool, you may include this file under the
20573 # same distribution terms that you use for the rest of that program.
20575 # GNU Libtool is distributed in the hope that it will be useful,
20576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20578 # GNU General Public License for more details.
20580 # You should have received a copy of the GNU General Public License
20581 # along with GNU Libtool; see the file COPYING. If not, a copy
20582 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20583 # obtained by writing to the Free Software Foundation, Inc.,
20584 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20587 # The names of the tagged configurations supported by this script.
20588 available_tags="CXX "
20590 # ### BEGIN LIBTOOL CONFIG
20592 # Assembler program.
20595 # DLL creation program.
20596 DLLTOOL=$lt_DLLTOOL
20598 # Object dumper program.
20599 OBJDUMP=$lt_OBJDUMP
20601 # Which release of libtool.m4 was used?
20602 macro_version=$macro_version
20603 macro_revision=$macro_revision
20605 # Whether or not to build shared libraries.
20606 build_libtool_libs=$enable_shared
20608 # Whether or not to build static libraries.
20609 build_old_libs=$enable_static
20611 # What type of objects to build.
20614 # Whether or not to optimize for fast installation.
20615 fast_install=$enable_fast_install
20617 # Shell to use when invoking shell scripts.
20620 # An echo program that protects backslashes.
20623 # The PATH separator for the build system.
20624 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20627 host_alias=$host_alias
20631 # The build system.
20632 build_alias=$build_alias
20636 # A sed program that does not truncate output.
20639 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20640 Xsed="\$SED -e 1s/^X//"
20642 # A grep program that handles long lines.
20648 # A literal string matcher.
20651 # A BSD- or MS-compatible name lister.
20654 # Whether we need soft or hard links.
20657 # What is the maximum length of a command?
20658 max_cmd_len=$max_cmd_len
20660 # Object file suffix (normally "o").
20663 # Executable file suffix (normally "").
20666 # whether the shell understands "unset".
20669 # turn spaces into newlines.
20672 # turn newlines into spaces.
20675 # convert \$build file names to \$host format.
20676 to_host_file_cmd=$lt_cv_to_host_file_cmd
20678 # convert \$build files to toolchain format.
20679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20681 # Method to check whether dependent libraries are shared objects.
20682 deplibs_check_method=$lt_deplibs_check_method
20684 # Command to use when deplibs_check_method = "file_magic".
20685 file_magic_cmd=$lt_file_magic_cmd
20687 # How to find potential files when deplibs_check_method = "file_magic".
20688 file_magic_glob=$lt_file_magic_glob
20690 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20691 want_nocaseglob=$lt_want_nocaseglob
20693 # Command to associate shared and link libraries.
20694 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20699 # Flags to create an archive.
20700 AR_FLAGS=$lt_AR_FLAGS
20702 # How to feed a file listing to the archiver.
20703 archiver_list_spec=$lt_archiver_list_spec
20705 # A symbol stripping program.
20708 # Commands used to install an old-style archive.
20710 old_postinstall_cmds=$lt_old_postinstall_cmds
20711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20713 # Whether to use a lock for old archive extraction.
20714 lock_old_archive_extraction=$lock_old_archive_extraction
20719 # LTCC compiler flags.
20720 LTCFLAGS=$lt_CFLAGS
20722 # Take the output of nm and produce a listing of raw symbols and C names.
20723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20725 # Transform the output of nm in a proper C declaration.
20726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20728 # Transform the output of nm in a C name address pair.
20729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20731 # Transform the output of nm in a C name address pair when lib prefix is needed.
20732 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20734 # Specify filename containing input files for \$NM.
20735 nm_file_list_spec=$lt_nm_file_list_spec
20737 # The root where to search for dependent libraries,and in which our libraries should be installed.
20738 lt_sysroot=$lt_sysroot
20740 # The name of the directory that contains temporary libtool files.
20743 # Used to examine libraries when file_magic_cmd begins with "file".
20744 MAGIC_CMD=$MAGIC_CMD
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20750 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20753 DSYMUTIL=$lt_DSYMUTIL
20755 # Tool to change global to local symbols on Mac OS X.
20758 # Tool to manipulate fat objects and archives on Mac OS X.
20761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20765 OTOOL64=$lt_OTOOL64
20767 # Old archive suffix (normally "a").
20770 # Shared library suffix (normally ".so").
20771 shrext_cmds=$lt_shrext_cmds
20773 # The commands to extract the exported symbol list from a shared archive.
20774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20776 # Variables whose values should be saved in libtool wrapper scripts and
20777 # restored at link time.
20778 variables_saved_for_relink=$lt_variables_saved_for_relink
20780 # Do we need the "lib" prefix for modules?
20781 need_lib_prefix=$need_lib_prefix
20783 # Do we need a version for libraries?
20784 need_version=$need_version
20786 # Library versioning type.
20787 version_type=$version_type
20789 # Shared library runtime path variable.
20790 runpath_var=$runpath_var
20792 # Shared library path variable.
20793 shlibpath_var=$shlibpath_var
20795 # Is shlibpath searched before the hard-coded library search path?
20796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20798 # Format of library name prefix.
20799 libname_spec=$lt_libname_spec
20801 # List of archive names. First name is the real one, the rest are links.
20802 # The last name is the one that the linker finds with -lNAME
20803 library_names_spec=$lt_library_names_spec
20805 # The coded name of the library, if different from the real name.
20806 soname_spec=$lt_soname_spec
20808 # Permission mode override for installation of shared libraries.
20809 install_override_mode=$lt_install_override_mode
20811 # Command to use after installation of a shared archive.
20812 postinstall_cmds=$lt_postinstall_cmds
20814 # Command to use after uninstallation of a shared archive.
20815 postuninstall_cmds=$lt_postuninstall_cmds
20817 # Commands used to finish a libtool library installation in a directory.
20818 finish_cmds=$lt_finish_cmds
20820 # As "finish_cmds", except a single script fragment to be evaled but
20822 finish_eval=$lt_finish_eval
20824 # Whether we should hardcode library paths into libraries.
20825 hardcode_into_libs=$hardcode_into_libs
20827 # Compile-time system search path for libraries.
20828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20830 # Run-time system search path for libraries.
20831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20833 # Whether dlopen is supported.
20834 dlopen_support=$enable_dlopen
20836 # Whether dlopen of programs is supported.
20837 dlopen_self=$enable_dlopen_self
20839 # Whether dlopen of statically linked programs is supported.
20840 dlopen_self_static=$enable_dlopen_self_static
20842 # Commands to strip libraries.
20843 old_striplib=$lt_old_striplib
20844 striplib=$lt_striplib
20847 # The linker used to build libraries.
20850 # How to create reloadable object files.
20851 reload_flag=$lt_reload_flag
20852 reload_cmds=$lt_reload_cmds
20854 # Commands used to build an old-style archive.
20855 old_archive_cmds=$lt_old_archive_cmds
20857 # A language specific compiler.
20860 # Is the compiler the GNU compiler?
20863 # Compiler flag to turn off builtin functions.
20864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20866 # Additional compiler flags for building library objects.
20867 pic_flag=$lt_lt_prog_compiler_pic
20869 # How to pass a linker flag through the compiler.
20870 wl=$lt_lt_prog_compiler_wl
20872 # Compiler flag to prevent dynamic linking.
20873 link_static_flag=$lt_lt_prog_compiler_static
20875 # Does compiler simultaneously support -c and -o options?
20876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20878 # Whether or not to add -lc for building shared libraries.
20879 build_libtool_need_lc=$archive_cmds_need_lc
20881 # Whether or not to disallow shared libs when runtime libs are static.
20882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20884 # Compiler flag to allow reflexive dlopens.
20885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20887 # Compiler flag to generate shared objects directly from archives.
20888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20890 # Whether the compiler copes with passing no objects directly.
20891 compiler_needs_object=$lt_compiler_needs_object
20893 # Create an old-style archive from a shared archive.
20894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20896 # Create a temporary old-style archive to link instead of a shared archive.
20897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20899 # Commands used to build a shared archive.
20900 archive_cmds=$lt_archive_cmds
20901 archive_expsym_cmds=$lt_archive_expsym_cmds
20903 # Commands used to build a loadable module if different from building
20904 # a shared archive.
20905 module_cmds=$lt_module_cmds
20906 module_expsym_cmds=$lt_module_expsym_cmds
20908 # Whether we are building with GNU ld or not.
20909 with_gnu_ld=$lt_with_gnu_ld
20911 # Flag that allows shared libraries with undefined symbols to be built.
20912 allow_undefined_flag=$lt_allow_undefined_flag
20914 # Flag that enforces no undefined symbols.
20915 no_undefined_flag=$lt_no_undefined_flag
20917 # Flag to hardcode \$libdir into a binary during linking.
20918 # This must work even if \$libdir does not exist
20919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20921 # Whether we need a single "-rpath" flag with a separated argument.
20922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20925 # DIR into the resulting binary.
20926 hardcode_direct=$hardcode_direct
20928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20929 # DIR into the resulting binary and the resulting library dependency is
20930 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20931 # library is relocated.
20932 hardcode_direct_absolute=$hardcode_direct_absolute
20934 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20935 # into the resulting binary.
20936 hardcode_minus_L=$hardcode_minus_L
20938 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20939 # into the resulting binary.
20940 hardcode_shlibpath_var=$hardcode_shlibpath_var
20942 # Set to "yes" if building a shared library automatically hardcodes DIR
20943 # into the library and all subsequent libraries and executables linked
20945 hardcode_automatic=$hardcode_automatic
20947 # Set to yes if linker adds runtime paths of dependent libraries
20948 # to runtime path list.
20949 inherit_rpath=$inherit_rpath
20951 # Whether libtool must link a program against all its dependency libraries.
20952 link_all_deplibs=$link_all_deplibs
20954 # Set to "yes" if exported symbols are required.
20955 always_export_symbols=$always_export_symbols
20957 # The commands to list exported symbols.
20958 export_symbols_cmds=$lt_export_symbols_cmds
20960 # Symbols that should not be listed in the preloaded symbols.
20961 exclude_expsyms=$lt_exclude_expsyms
20963 # Symbols that must always be exported.
20964 include_expsyms=$lt_include_expsyms
20966 # Commands necessary for linking programs (against libraries) with templates.
20967 prelink_cmds=$lt_prelink_cmds
20969 # Commands necessary for finishing linking programs.
20970 postlink_cmds=$lt_postlink_cmds
20972 # Specify filename containing input files.
20973 file_list_spec=$lt_file_list_spec
20975 # How to hardcode a shared library path into an executable.
20976 hardcode_action=$hardcode_action
20978 # The directories searched by this compiler when creating a shared library.
20979 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20981 # Dependencies to place before and after the objects being linked to
20982 # create a shared library.
20983 predep_objects=$lt_predep_objects
20984 postdep_objects=$lt_postdep_objects
20985 predeps=$lt_predeps
20986 postdeps=$lt_postdeps
20988 # The library search path used internally by the compiler when linking
20989 # a shared library.
20990 compiler_lib_search_path=$lt_compiler_lib_search_path
20992 # ### END LIBTOOL CONFIG
20998 cat <<\_LT_EOF >> "$cfgfile"
20999 # AIX sometimes has problems with the GCC collect2 program. For some
21000 # reason, if we set the COLLECT_NAMES environment variable, the problems
21001 # vanish in a puff of smoke.
21002 if test "X${COLLECT_NAMES+set}" != Xset; then
21004 export COLLECT_NAMES
21011 ltmain="$ac_aux_dir/ltmain.sh"
21014 # We use sed instead of cat because bash on DJGPP gets confused if
21015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21016 # text mode, it properly converts lines to CR/LF. This bash problem
21017 # is reportedly fixed, but why not run on old versions too?
21018 sed '$q' "$ltmain" >> "$cfgfile" \
21019 || (rm -f "$cfgfile"; exit 1)
21021 if test x"$xsi_shell" = xyes; then
21022 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21026 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21027 \ * ) func_dirname_result="${3}" ;;\
21029 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21030 && mv -f "$cfgfile.tmp" "$cfgfile" \
21031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21032 test 0 -eq $? || _lt_function_replace_fail=:
21035 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21038 \ func_basename_result="${1##*/}"\
21039 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21040 && mv -f "$cfgfile.tmp" "$cfgfile" \
21041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21042 test 0 -eq $? || _lt_function_replace_fail=:
21045 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21046 func_dirname_and_basename ()\
21049 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21050 \ * ) func_dirname_result="${3}" ;;\
21052 \ func_basename_result="${1##*/}"\
21053 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21054 && mv -f "$cfgfile.tmp" "$cfgfile" \
21055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21056 test 0 -eq $? || _lt_function_replace_fail=:
21059 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21062 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21063 \ # positional parameters, so assign one to ordinary parameter first.\
21064 \ func_stripname_result=${3}\
21065 \ func_stripname_result=${func_stripname_result#"${1}"}\
21066 \ func_stripname_result=${func_stripname_result%"${2}"}\
21067 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21068 && mv -f "$cfgfile.tmp" "$cfgfile" \
21069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21070 test 0 -eq $? || _lt_function_replace_fail=:
21073 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21074 func_split_long_opt ()\
21076 \ func_split_long_opt_name=${1%%=*}\
21077 \ func_split_long_opt_arg=${1#*=}\
21078 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21079 && mv -f "$cfgfile.tmp" "$cfgfile" \
21080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21081 test 0 -eq $? || _lt_function_replace_fail=:
21084 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21085 func_split_short_opt ()\
21087 \ func_split_short_opt_arg=${1#??}\
21088 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21089 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21090 && mv -f "$cfgfile.tmp" "$cfgfile" \
21091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21092 test 0 -eq $? || _lt_function_replace_fail=:
21095 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21099 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21100 \ *) func_lo2o_result=${1} ;;\
21102 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21103 && mv -f "$cfgfile.tmp" "$cfgfile" \
21104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21105 test 0 -eq $? || _lt_function_replace_fail=:
21108 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21111 func_xform_result=${1%.*}.lo\
21112 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21113 && mv -f "$cfgfile.tmp" "$cfgfile" \
21114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21115 test 0 -eq $? || _lt_function_replace_fail=:
21118 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21121 func_arith_result=$(( $* ))\
21122 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21123 && mv -f "$cfgfile.tmp" "$cfgfile" \
21124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21125 test 0 -eq $? || _lt_function_replace_fail=:
21128 sed -e '/^func_len ()$/,/^} # func_len /c\
21131 func_len_result=${#1}\
21132 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21133 && mv -f "$cfgfile.tmp" "$cfgfile" \
21134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21135 test 0 -eq $? || _lt_function_replace_fail=:
21139 if test x"$lt_shell_append" = xyes; then
21140 sed -e '/^func_append ()$/,/^} # func_append /c\
21143 eval "${1}+=\\${2}"\
21144 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21145 && mv -f "$cfgfile.tmp" "$cfgfile" \
21146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21147 test 0 -eq $? || _lt_function_replace_fail=:
21150 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21151 func_append_quoted ()\
21153 \ func_quote_for_eval "${2}"\
21154 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21155 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21156 && mv -f "$cfgfile.tmp" "$cfgfile" \
21157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21158 test 0 -eq $? || _lt_function_replace_fail=:
21161 # Save a `func_append' function call where possible by direct use of '+='
21162 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21163 && mv -f "$cfgfile.tmp" "$cfgfile" \
21164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165 test 0 -eq $? || _lt_function_replace_fail=:
21167 # Save a `func_append' function call even when '+=' is not available
21168 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21169 && mv -f "$cfgfile.tmp" "$cfgfile" \
21170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21171 test 0 -eq $? || _lt_function_replace_fail=:
21174 if test x"$_lt_function_replace_fail" = x":"; then
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21176 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21180 mv -f "$cfgfile" "$ofile" ||
21181 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21185 cat <<_LT_EOF >> "$ofile"
21187 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21189 # The linker used to build libraries.
21192 # How to create reloadable object files.
21193 reload_flag=$lt_reload_flag_CXX
21194 reload_cmds=$lt_reload_cmds_CXX
21196 # Commands used to build an old-style archive.
21197 old_archive_cmds=$lt_old_archive_cmds_CXX
21199 # A language specific compiler.
21200 CC=$lt_compiler_CXX
21202 # Is the compiler the GNU compiler?
21205 # Compiler flag to turn off builtin functions.
21206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21208 # Additional compiler flags for building library objects.
21209 pic_flag=$lt_lt_prog_compiler_pic_CXX
21211 # How to pass a linker flag through the compiler.
21212 wl=$lt_lt_prog_compiler_wl_CXX
21214 # Compiler flag to prevent dynamic linking.
21215 link_static_flag=$lt_lt_prog_compiler_static_CXX
21217 # Does compiler simultaneously support -c and -o options?
21218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21220 # Whether or not to add -lc for building shared libraries.
21221 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21223 # Whether or not to disallow shared libs when runtime libs are static.
21224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21226 # Compiler flag to allow reflexive dlopens.
21227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21229 # Compiler flag to generate shared objects directly from archives.
21230 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21232 # Whether the compiler copes with passing no objects directly.
21233 compiler_needs_object=$lt_compiler_needs_object_CXX
21235 # Create an old-style archive from a shared archive.
21236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21238 # Create a temporary old-style archive to link instead of a shared archive.
21239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21241 # Commands used to build a shared archive.
21242 archive_cmds=$lt_archive_cmds_CXX
21243 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21245 # Commands used to build a loadable module if different from building
21246 # a shared archive.
21247 module_cmds=$lt_module_cmds_CXX
21248 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21250 # Whether we are building with GNU ld or not.
21251 with_gnu_ld=$lt_with_gnu_ld_CXX
21253 # Flag that allows shared libraries with undefined symbols to be built.
21254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21256 # Flag that enforces no undefined symbols.
21257 no_undefined_flag=$lt_no_undefined_flag_CXX
21259 # Flag to hardcode \$libdir into a binary during linking.
21260 # This must work even if \$libdir does not exist
21261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21263 # Whether we need a single "-rpath" flag with a separated argument.
21264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21267 # DIR into the resulting binary.
21268 hardcode_direct=$hardcode_direct_CXX
21270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21271 # DIR into the resulting binary and the resulting library dependency is
21272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21273 # library is relocated.
21274 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21277 # into the resulting binary.
21278 hardcode_minus_L=$hardcode_minus_L_CXX
21280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21281 # into the resulting binary.
21282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21284 # Set to "yes" if building a shared library automatically hardcodes DIR
21285 # into the library and all subsequent libraries and executables linked
21287 hardcode_automatic=$hardcode_automatic_CXX
21289 # Set to yes if linker adds runtime paths of dependent libraries
21290 # to runtime path list.
21291 inherit_rpath=$inherit_rpath_CXX
21293 # Whether libtool must link a program against all its dependency libraries.
21294 link_all_deplibs=$link_all_deplibs_CXX
21296 # Set to "yes" if exported symbols are required.
21297 always_export_symbols=$always_export_symbols_CXX
21299 # The commands to list exported symbols.
21300 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21302 # Symbols that should not be listed in the preloaded symbols.
21303 exclude_expsyms=$lt_exclude_expsyms_CXX
21305 # Symbols that must always be exported.
21306 include_expsyms=$lt_include_expsyms_CXX
21308 # Commands necessary for linking programs (against libraries) with templates.
21309 prelink_cmds=$lt_prelink_cmds_CXX
21311 # Commands necessary for finishing linking programs.
21312 postlink_cmds=$lt_postlink_cmds_CXX
21314 # Specify filename containing input files.
21315 file_list_spec=$lt_file_list_spec_CXX
21317 # How to hardcode a shared library path into an executable.
21318 hardcode_action=$hardcode_action_CXX
21320 # The directories searched by this compiler when creating a shared library.
21321 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21323 # Dependencies to place before and after the objects being linked to
21324 # create a shared library.
21325 predep_objects=$lt_predep_objects_CXX
21326 postdep_objects=$lt_postdep_objects_CXX
21327 predeps=$lt_predeps_CXX
21328 postdeps=$lt_postdeps_CXX
21330 # The library search path used internally by the compiler when linking
21331 # a shared library.
21332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21334 # ### END LIBTOOL TAG CONFIG: CXX
21338 "default":C) chmod +x mecab-config \
21347 ac_clean_files=$ac_clean_files_save
21349 test $ac_write_fail = 0 ||
21350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21353 # configure is writing to config.log, and then calls config.status.
21354 # config.status does its own redirection, appending to config.log.
21355 # Unfortunately, on DOS this fails, as config.log is still kept open
21356 # by configure, so config.status won't be able to write to it; its
21357 # output is simply discarded. So we exec the FD to /dev/null,
21358 # effectively closing config.log, so it can be properly (re)opened and
21359 # appended to by config.status. When coming back to configure, we
21360 # need to make the FD available again.
21361 if test "$no_create" != yes; then
21363 ac_config_status_args=
21364 test "$silent" = yes &&
21365 ac_config_status_args="$ac_config_status_args --quiet"
21367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21370 # would make configure fail if this is the last instruction.
21371 $ac_cs_success || as_fn_exit 1
21373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}