2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libchise 0.5.0.
5 # Report bugs to <chise-en@lists.chise.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: chise-en@lists.chise.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
605 echo_test_string="`eval $cmd`" &&
606 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
637 if test "X$echo" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
644 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 echo="$CONFIG_SHELL $0 --fallback-echo"
675 # maybe with a smaller string...
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691 # Oops. We lost completely, so just stick with echo.
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 tagnames=${tagnames+${tagnames},}CXX
712 tagnames=${tagnames+${tagnames},}F77
714 test -n "$DJDIR" || exec 7<&0 </dev/null
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
725 ac_default_prefix=/usr/local
727 ac_config_libobj_dir=.
734 # Identity of this package.
735 PACKAGE_NAME='libchise'
736 PACKAGE_TARNAME='libchise'
737 PACKAGE_VERSION='0.5.0'
738 PACKAGE_STRING='libchise 0.5.0'
739 PACKAGE_BUGREPORT='chise-en@lists.chise.org'
742 ac_unique_file="chise.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
756 # ifdef HAVE_STDLIB_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
779 ac_subst_vars='LTLIBOBJS
844 program_transform_name
857 enable_option_checking
868 ac_precious_vars='build_alias
885 # Initialize some variables set by options.
887 ac_init_version=false
888 ac_unrecognized_opts=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name=s,x,x,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
945 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=no ;;
1251 # Obsolete; use --with-x.
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error $? "missing argument to $ac_option"
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1319 # Be sure to have absolute directory names.
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 elif test "x$build_alias" != "x$host_alias"; then
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346 test "$silent" = yes && exec 6>/dev/null
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error $? "pwd does not report name of working directory"
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1389 ac_srcdir_defaulted=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1423 \`configure' configures libchise 0.5.0 to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking ...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libchise]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 --target=TARGET configure for building compilers for TARGET [HOST]
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of libchise 0.5.0:";;
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-static[=PKGS] build static libraries [default=yes]
1499 --enable-fast-install[=PKGS]
1500 optimize for fast installation [default=yes]
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-pic try to use only PIC/non-PIC objects [default=use
1509 --with-tags[=TAGS] include additional configurations [automatic]
1510 --with-site-includes=PATH List of directories to search first for header files
1512 --with-site-libraries=PATH List of directories to search first for libraries
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <chise-en@lists.chise.org>.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1596 libchise configure 0.5.0
1597 generated by GNU Autoconf 2.69
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_link
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734 # the include files in INCLUDES and setting the cache variable VAR
1736 ac_fn_c_check_header_mongrel ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if eval \${$3+:} false; then :
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1749 # Is the header compilable?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751 $as_echo_n "checking $2 usability... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_header_compiler=yes
1760 ac_header_compiler=no
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764 $as_echo "$ac_header_compiler" >&6; }
1766 # Is the header present?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768 $as_echo_n "checking $2 presence... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1773 if ac_fn_c_try_cpp "$LINENO"; then :
1774 ac_header_preproc=yes
1776 ac_header_preproc=no
1778 rm -f conftest.err conftest.i conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1782 # So? What about this header?
1783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ( $as_echo "## --------------------------------------- ##
1802 ## Report this to chise-en@lists.chise.org ##
1803 ## --------------------------------------- ##"
1804 ) | sed "s/^/$as_me: WARNING: /" >&2
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 eval "$3=\$ac_header_compiler"
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile "$LINENO"; then :
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1918 # include <limits.h>
1920 # include <assert.h>
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1947 if ac_fn_c_try_link "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_func
1962 # ac_fn_cxx_try_compile LINENO
1963 # ----------------------------
1964 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_cxx_try_compile ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext
1969 if { { ac_try="$ac_compile"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_compile") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest.$ac_objext; then :
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_cxx_try_compile
2000 # ac_fn_cxx_try_cpp LINENO
2001 # ------------------------
2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_cpp ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_cpp conftest.$ac_ext"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } > conftest.i && {
2022 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2023 test ! -s conftest.err
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2035 } # ac_fn_cxx_try_cpp
2037 # ac_fn_cxx_try_link LINENO
2038 # -------------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_cxx_try_link ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 rm -f conftest.$ac_objext conftest$ac_exeext
2044 if { { ac_try="$ac_link"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>conftest.err
2053 if test -s conftest.err; then
2054 grep -v '^ *+' conftest.err >conftest.er1
2055 cat conftest.er1 >&5
2056 mv -f conftest.er1 conftest.err
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && {
2060 test -z "$ac_cxx_werror_flag" ||
2061 test ! -s conftest.err
2062 } && test -s conftest$ac_exeext && {
2063 test "$cross_compiling" = yes ||
2064 test -x conftest$ac_exeext
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2074 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2075 # interfere with the next link command; also delete a directory that is
2076 # left behind by Apple's compiler. We do this before executing the actions.
2077 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_cxx_try_link
2083 # ac_fn_cxx_check_func LINENO FUNC VAR
2084 # ------------------------------------
2085 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2086 ac_fn_cxx_check_func ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2098 #define $2 innocuous_$2
2100 /* System header to define __stub macros and hopefully few prototypes,
2101 which can conflict with char $2 (); below.
2102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103 <limits.h> exists even on freestanding compilers. */
2106 # include <limits.h>
2108 # include <assert.h>
2113 /* Override any GCC internal prototype to avoid an error.
2114 Use char because int might match the return type of a GCC
2115 builtin and then its argument prototype would still apply. */
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined __stub_$2 || defined __stub___$2
2135 if ac_fn_cxx_try_link "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext \
2141 conftest$ac_exeext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_cxx_check_func
2150 # ac_fn_f77_try_compile LINENO
2151 # ----------------------------
2152 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_f77_try_compile ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 rm -f conftest.$ac_objext
2157 if { { ac_try="$ac_compile"
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_compile") 2>conftest.err
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && {
2173 test -z "$ac_f77_werror_flag" ||
2174 test ! -s conftest.err
2175 } && test -s conftest.$ac_objext; then :
2178 $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 as_fn_set_status $ac_retval
2186 } # ac_fn_f77_try_compile
2188 # ac_fn_f77_try_link LINENO
2189 # -------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded.
2191 ac_fn_f77_try_link ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 rm -f conftest.$ac_objext conftest$ac_exeext
2195 if { { ac_try="$ac_link"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>conftest.err
2204 if test -s conftest.err; then
2205 grep -v '^ *+' conftest.err >conftest.er1
2206 cat conftest.er1 >&5
2207 mv -f conftest.er1 conftest.err
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; } && {
2211 test -z "$ac_f77_werror_flag" ||
2212 test ! -s conftest.err
2213 } && test -s conftest$ac_exeext && {
2214 test "$cross_compiling" = yes ||
2215 test -x conftest$ac_exeext
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2224 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2225 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2226 # interfere with the next link command; also delete a directory that is
2227 # left behind by Apple's compiler. We do this before executing the actions.
2228 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 as_fn_set_status $ac_retval
2232 } # ac_fn_f77_try_link
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2272 if ac_fn_c_try_compile "$LINENO"; then :
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_type
2287 cat >config.log <<_ACEOF
2288 This file contains any messages produced by compilers while
2289 running configure, to aid debugging if configure makes a mistake.
2291 It was created by libchise $as_me 0.5.0, which was
2292 generated by GNU Autoconf 2.69. Invocation command line was
2304 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2310 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2313 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2314 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2315 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2317 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2318 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2319 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 $as_echo "PATH: $as_dir"
2344 # Keep a trace of the command line.
2345 # Strip out --no-create and --no-recursion so they do not pile up.
2346 # Strip out --silent because we don't want to record it for future runs.
2347 # Also quote any args containing shell meta-characters.
2348 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_must_keep_next=false
2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360 | -silent | --silent | --silen | --sile | --sil)
2363 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2368 as_fn_append ac_configure_args1 " '$ac_arg'"
2369 if test $ac_must_keep_next = true; then
2370 ac_must_keep_next=false # Got value, back to normal.
2373 *=* | --config-cache | -C | -disable-* | --disable-* \
2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376 | -with-* | --with-* | -without-* | --without-* | --x)
2377 case "$ac_configure_args0 " in
2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381 -* ) ac_must_keep_next=true ;;
2384 as_fn_append ac_configure_args " '$ac_arg'"
2389 { ac_configure_args0=; unset ac_configure_args0;}
2390 { ac_configure_args1=; unset ac_configure_args1;}
2392 # When interrupted or exit'd, cleanup temporary files, and complete
2393 # config.log. We remove comments because anyway the quotes in there
2394 # would cause problems or look ugly.
2395 # WARNING: Use '\'' to represent an apostrophe within the trap.
2396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397 trap 'exit_status=$?
2398 # Save into config.log some information that might help in debugging.
2402 $as_echo "## ---------------- ##
2403 ## Cache variables. ##
2404 ## ---------------- ##"
2406 # The following way of writing the cache mishandles newlines in values,
2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409 eval ac_val=\$$ac_var
2413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 _ | IFS | as_nl) ;; #(
2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419 *) { eval $ac_var=; unset $ac_var;} ;;
2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425 *${as_nl}ac_space=\ *)
2427 "s/'\''/'\''\\\\'\'''\''/g;
2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438 $as_echo "## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##"
2442 for ac_var in $ac_subst_vars
2444 eval ac_val=\$$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2452 if test -n "$ac_subst_files"; then
2453 $as_echo "## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##"
2457 for ac_var in $ac_subst_files
2459 eval ac_val=\$$ac_var
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 $as_echo "$ac_var='\''$ac_val'\''"
2468 if test -s confdefs.h; then
2469 $as_echo "## ----------- ##
2476 test "$ac_signal" != 0 &&
2477 $as_echo "$as_me: caught signal $ac_signal"
2478 $as_echo "$as_me: exit $exit_status"
2480 rm -f core *.core core.conftest.* &&
2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 for ac_signal in 1 2 13 15; do
2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2492 $as_echo "/* confdefs.h */" > confdefs.h
2494 # Predefined preprocessor variables.
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2525 if test -n "$CONFIG_SITE"; then
2526 # We do not want a PATH search for config.site.
2527 case $CONFIG_SITE in #((
2528 -*) ac_site_file1=./$CONFIG_SITE;;
2529 */*) ac_site_file1=$CONFIG_SITE;;
2530 *) ac_site_file1=./$CONFIG_SITE;;
2532 elif test "x$prefix" != xNONE; then
2533 ac_site_file1=$prefix/share/config.site
2534 ac_site_file2=$prefix/etc/config.site
2536 ac_site_file1=$ac_default_prefix/share/config.site
2537 ac_site_file2=$ac_default_prefix/etc/config.site
2539 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541 test "x$ac_site_file" = xNONE && continue
2542 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545 sed 's/^/| /' "$ac_site_file" >&5
2547 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $? "failed to load site script $ac_site_file
2550 See \`config.log' for more details" "$LINENO" 5; }
2554 if test -r "$cache_file"; then
2555 # Some versions of bash will fail to source /dev/null (special files
2556 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2557 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2559 $as_echo "$as_me: loading cache $cache_file" >&6;}
2561 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562 *) . "./$cache_file";;
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2567 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 # Check that the precious variables saved in the cache have kept the same
2573 ac_cache_corrupted=false
2574 for ac_var in $ac_precious_vars; do
2575 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576 eval ac_new_set=\$ac_env_${ac_var}_set
2577 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578 eval ac_new_val=\$ac_env_${ac_var}_value
2579 case $ac_old_set,$ac_new_set in
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587 ac_cache_corrupted=: ;;
2590 if test "x$ac_old_val" != "x$ac_new_val"; then
2591 # differences in whitespace do not lead to failure.
2592 ac_old_val_w=`echo x $ac_old_val`
2593 ac_new_val_w=`echo x $ac_new_val`
2594 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597 ac_cache_corrupted=:
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601 eval $ac_var=\$ac_old_val
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2604 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2606 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2609 # Pass precious variables to config.status.
2610 if test "$ac_new_set" = set; then
2612 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613 *) ac_arg=$ac_var=$ac_new_val ;;
2615 case " $ac_configure_args " in
2616 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2617 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 if $ac_cache_corrupted; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2628 ## -------------------- ##
2629 ## Main body of script. ##
2630 ## -------------------- ##
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640 ac_config_headers="$ac_config_headers config.h"
2644 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2645 if test -f "$ac_dir/install-sh"; then
2647 ac_install_sh="$ac_aux_dir/install-sh -c"
2649 elif test -f "$ac_dir/install.sh"; then
2651 ac_install_sh="$ac_aux_dir/install.sh -c"
2653 elif test -f "$ac_dir/shtool"; then
2655 ac_install_sh="$ac_aux_dir/shtool install -c"
2659 if test -z "$ac_aux_dir"; then
2660 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2663 # These three variables are undocumented and unsupported,
2664 # and are intended to be withdrawn in a future Autoconf release.
2665 # They can cause serious problems if a builder's source tree is in a directory
2666 # whose full name contains unusual characters.
2667 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2668 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2669 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2672 # Make sure we can run config.sub.
2673 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if ${ac_cv_build+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691 $as_echo "$ac_cv_build" >&6; }
2692 case $ac_cv_build in
2694 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2697 ac_save_IFS=$IFS; IFS='-'
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711 $as_echo_n "checking host system type... " >&6; }
2712 if ${ac_cv_host+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 if test "x$host_alias" = x; then
2716 ac_cv_host=$ac_cv_build
2718 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2727 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2730 ac_save_IFS=$IFS; IFS='-'
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2744 $as_echo_n "checking target system type... " >&6; }
2745 if ${ac_cv_target+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 if test "x$target_alias" = x; then
2749 ac_cv_target=$ac_cv_host
2751 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2752 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2757 $as_echo "$ac_cv_target" >&6; }
2758 case $ac_cv_target in
2760 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2762 target=$ac_cv_target
2763 ac_save_IFS=$IFS; IFS='-'
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2773 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2776 # The aliases save the names the user supplied, while $host etc.
2777 # will get canonicalized.
2778 test -n "$target_alias" &&
2779 test "$program_prefix$program_suffix$program_transform_name" = \
2781 program_prefix=${target_alias}-
2783 # Checks for programs.
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$ac_cv_prog_CC"; then
2830 # Extract the first word of "gcc", so it can be a program name with args.
2831 set dummy gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_ac_ct_CC="gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2866 if test "x$ac_ct_CC" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_CC="${ac_tool_prefix}cc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2922 if test -z "$CC"; then
2923 # Extract the first word of "cc", so it can be a program name with args.
2924 set dummy cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942 ac_prog_rejected=yes
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 if test $ac_prog_rejected = yes; then
2954 # We found a bogon in the path, so make sure we never use it.
2955 set dummy $ac_cv_prog_CC
2957 if test $# != 0; then
2958 # We chose a different compiler from the bogus one.
2959 # However, it has the same basename, so the bogon will be chosen
2960 # first if we set CC to just the basename; use the full file name.
2962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog in cl.exe
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$CC" && break
3022 if test -z "$CC"; then
3024 for ac_prog in cl.exe
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_ac_ct_CC="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$ac_ct_CC" && break
3066 if test "x$ac_ct_CC" = x; then
3069 case $cross_compiling:$ac_tool_warned in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details" "$LINENO" 5; }
3087 # Provide some information about the compiler.
3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3091 for ac_option in --version -v -V -qversion; do
3092 { { ac_try="$ac_compiler $ac_option >&5"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101 if test -s conftest.err; then
3103 ... rest of stderr output deleted ...
3104 10q' conftest.err >conftest.er1
3105 cat conftest.er1 >&5
3107 rm -f conftest.er1 conftest.err
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3125 # Try to create an executable without -o first, disregard a.out.
3126 # It will help us diagnose broken compilers, and finding out an intuition
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3129 $as_echo_n "checking whether the C compiler works... " >&6; }
3130 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132 # The possible output files:
3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3136 for ac_file in $ac_files
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 if { { ac_try="$ac_link_default"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link_default") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3159 # so that the user can short-circuit this test for compilers unknown to
3161 for ac_file in $ac_files ''
3163 test -f "$ac_file" || continue
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3168 # We found the default executable, but exeext='' is most
3172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 # We set ac_cv_exeext here because the later test for it is not
3177 # safe: cross compilers may not add the suffix if given an `-o'
3178 # argument, so we may need to know it at that point already.
3179 # Even if this section looks crufty: it has the advantage of
3186 test "$ac_cv_exeext" = no && ac_cv_exeext=
3191 if test -z "$ac_file"; then :
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error 77 "C compiler cannot create executables
3200 See \`config.log' for more details" "$LINENO" 5; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3206 $as_echo_n "checking for C compiler default output file name... " >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3208 $as_echo "$ac_file" >&6; }
3209 ac_exeext=$ac_cv_exeext
3211 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3212 ac_clean_files=$ac_clean_files_save
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3214 $as_echo_n "checking for suffix of executables... " >&6; }
3215 if { { ac_try="$ac_link"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_link") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3228 # work properly (i.e., refer to `conftest.exe'), while it won't with
3230 for ac_file in conftest.exe conftest conftest.*; do
3231 test -f "$ac_file" || continue
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 rm -f conftest conftest$ac_cv_exeext
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3247 $as_echo "$ac_cv_exeext" >&6; }
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3258 FILE *f = fopen ("conftest.out", "w");
3259 return ferror (f) || fclose (f) != 0;
3265 ac_clean_files="$ac_clean_files conftest.out"
3266 # Check that the compiler produces executables we can run. If not, either
3267 # the compiler is broken, or we cross compile.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3269 $as_echo_n "checking whether we are cross compiling... " >&6; }
3270 if test "$cross_compiling" != yes; then
3271 { { ac_try="$ac_link"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 if { ac_try='./conftest$ac_cv_exeext'
3283 { { case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_try") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; }; then
3295 if test "$cross_compiling" = maybe; then
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details" "$LINENO" 5; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307 $as_echo "$cross_compiling" >&6; }
3309 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3310 ac_clean_files=$ac_clean_files_save
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3312 $as_echo_n "checking for suffix of object files... " >&6; }
3313 if ${ac_cv_objext+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3327 rm -f conftest.o conftest.obj
3328 if { { ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compile") 2>&5
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 for ac_file in conftest.o conftest.obj conftest.*; do
3340 test -f "$ac_file" || continue;
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 $as_echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of object files: cannot compile
3354 See \`config.log' for more details" "$LINENO" 5; }
3356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3359 $as_echo "$ac_cv_objext" >&6; }
3360 OBJEXT=$ac_cv_objext
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3363 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3364 if ${ac_cv_c_compiler_gnu+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3391 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3392 if test $ac_compiler_gnu = yes; then
3397 ac_test_CFLAGS=${CFLAGS+set}
3398 ac_save_CFLAGS=$CFLAGS
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3400 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3401 if ${ac_cv_prog_cc_g+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 ac_save_c_werror_flag=$ac_c_werror_flag
3405 ac_c_werror_flag=yes
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3419 if ac_fn_c_try_compile "$LINENO"; then :
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3450 if ac_fn_c_try_compile "$LINENO"; then :
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_c_werror_flag=$ac_save_c_werror_flag
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3461 $as_echo "$ac_cv_prog_cc_g" >&6; }
3462 if test "$ac_test_CFLAGS" = set; then
3463 CFLAGS=$ac_save_CFLAGS
3464 elif test $ac_cv_prog_cc_g = yes; then
3465 if test "$GCC" = yes; then
3471 if test "$GCC" = yes; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3478 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3479 if ${ac_cv_prog_cc_c89+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 ac_cv_prog_cc_c89=no
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490 struct buf { int x; };
3491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492 static char *e (p, i)
3498 static char *f (char * (*g) (char **, int), char **p, ...)
3503 s = g (p, va_arg (v,int));
3508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
3511 as 'x'. The following induces an error, until -std is added to get
3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
3514 that's true only with -std. */
3515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3517 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3518 inside strings and character constants. */
3520 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3522 int test (int i, double x);
3523 struct s1 {int (*f) (int a);};
3524 struct s2 {int (*f) (double a);};
3525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3539 CC="$ac_save_CC $ac_arg"
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_cv_prog_cc_c89=$ac_arg
3543 rm -f core conftest.err conftest.$ac_objext
3544 test "x$ac_cv_prog_cc_c89" != "xno" && break
3546 rm -f conftest.$ac_ext
3551 case "x$ac_cv_prog_cc_c89" in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554 $as_echo "none needed" >&6; } ;;
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3557 $as_echo "unsupported" >&6; } ;;
3559 CC="$CC $ac_cv_prog_cc_c89"
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3561 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3563 if test "x$ac_cv_prog_cc_c89" != xno; then :
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 # Check whether --enable-shared was given.
3574 if test "${enable_shared+set}" = set; then :
3575 enableval=$enable_shared; p=${PACKAGE-default}
3577 yes) enable_shared=yes ;;
3578 no) enable_shared=no ;;
3581 # Look at the argument we got. We use all the common list separators.
3582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3583 for pkg in $enableval; do
3585 if test "X$pkg" = "X$p"; then
3597 # Check whether --enable-static was given.
3598 if test "${enable_static+set}" = set; then :
3599 enableval=$enable_static; p=${PACKAGE-default}
3601 yes) enable_static=yes ;;
3602 no) enable_static=no ;;
3605 # Look at the argument we got. We use all the common list separators.
3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607 for pkg in $enableval; do
3609 if test "X$pkg" = "X$p"; then
3621 # Check whether --enable-fast-install was given.
3622 if test "${enable_fast_install+set}" = set; then :
3623 enableval=$enable_fast_install; p=${PACKAGE-default}
3625 yes) enable_fast_install=yes ;;
3626 no) enable_fast_install=no ;;
3628 enable_fast_install=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3633 if test "X$pkg" = "X$p"; then
3634 enable_fast_install=yes
3641 enable_fast_install=yes
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3646 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3647 if ${lt_cv_path_SED+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 # Loop through the user's path and test for sed and gsed.
3651 # Then use that list of sed's as ones to test for truncation.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for lt_ac_prog in sed gsed; do
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3660 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3667 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3668 # along with /bin/sed that truncates output.
3669 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3670 test ! -f $lt_ac_sed && break
3671 cat /dev/null > conftest.in
3673 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3674 # Check for GNU sed and select it if it is found.
3675 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3676 lt_cv_path_SED=$lt_ac_sed
3680 cat conftest.in conftest.in >conftest.tmp
3681 mv conftest.tmp conftest.in
3682 cp conftest.in conftest.nl
3684 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3685 cmp -s conftest.out conftest.nl || break
3686 # 10000 chars as input seems more than enough
3687 test $lt_ac_count -gt 10 && break
3688 lt_ac_count=`expr $lt_ac_count + 1`
3689 if test $lt_ac_count -gt $lt_ac_max; then
3690 lt_ac_max=$lt_ac_count
3691 lt_cv_path_SED=$lt_ac_sed
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3700 $as_echo "$SED" >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3704 if ${ac_cv_path_GREP+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -z "$GREP"; then
3708 ac_path_GREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in grep ggrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718 as_fn_executable_p "$ac_path_GREP" || continue
3719 # Check for GNU ac_path_GREP and select it if it is found.
3720 # Check for GNU $ac_path_GREP
3721 case `"$ac_path_GREP" --version 2>&1` in
3723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3726 $as_echo_n 0123456789 >"conftest.in"
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 $as_echo 'GREP' >> "conftest.nl"
3733 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 as_fn_arith $ac_count + 1 && ac_count=$as_val
3736 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_GREP="$ac_path_GREP"
3739 ac_path_GREP_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_GREP_found && break 3
3752 if test -z "$ac_cv_path_GREP"; then
3753 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3756 ac_cv_path_GREP=$GREP
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3761 $as_echo "$ac_cv_path_GREP" >&6; }
3762 GREP="$ac_cv_path_GREP"
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3766 $as_echo_n "checking for egrep... " >&6; }
3767 if ${ac_cv_path_EGREP+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771 then ac_cv_path_EGREP="$GREP -E"
3773 if test -z "$EGREP"; then
3774 ac_path_EGREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in egrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3784 as_fn_executable_p "$ac_path_EGREP" || continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786 # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792 $as_echo_n 0123456789 >"conftest.in"
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 $as_echo 'EGREP' >> "conftest.nl"
3799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 as_fn_arith $ac_count + 1 && ac_count=$as_val
3802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_EGREP="$ac_path_EGREP"
3805 ac_path_EGREP_max=$ac_count
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813 $ac_path_EGREP_found && break 3
3818 if test -z "$ac_cv_path_EGREP"; then
3819 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 ac_cv_path_EGREP=$EGREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3828 $as_echo "$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3833 # Check whether --with-gnu-ld was given.
3834 if test "${with_gnu_ld+set}" = set; then :
3835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3841 if test "$GCC" = yes; then
3842 # Check if gcc -print-prog-name=ld gives a path.
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3844 $as_echo_n "checking for ld used by $CC... " >&6; }
3847 # gcc leaves a trailing carriage return which upsets mingw
3848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3853 # Accept absolute paths.
3855 re_direlt='/[^/][^/]*/\.\./'
3856 # Canonicalize the pathname of ld
3857 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3858 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3859 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3861 test -z "$LD" && LD="$ac_prog"
3864 # If it fails, then pretend we aren't using GCC.
3868 # If it is relative, then search for the first ld in PATH.
3872 elif test "$with_gnu_ld" = yes; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3874 $as_echo_n "checking for GNU ld... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3877 $as_echo_n "checking for non-GNU ld... " >&6; }
3879 if ${lt_cv_path_LD+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -z "$LD"; then
3883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3884 for ac_dir in $PATH; do
3886 test -z "$ac_dir" && ac_dir=.
3887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3888 lt_cv_path_LD="$ac_dir/$ac_prog"
3889 # Check to see if the program is GNU ld. I'd rather use --version,
3890 # but apparently some GNU ld's only accept -v.
3891 # Break only if it was the GNU/non-GNU ld that we prefer.
3892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3893 *GNU* | *'with BFD'*)
3894 test "$with_gnu_ld" != no && break
3897 test "$with_gnu_ld" != yes && break
3904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3909 if test -n "$LD"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3911 $as_echo "$LD" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3919 if ${lt_cv_prog_gnu_ld+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3923 case `$LD -v 2>&1 </dev/null` in
3924 *GNU* | *'with BFD'*)
3925 lt_cv_prog_gnu_ld=yes
3928 lt_cv_prog_gnu_ld=no
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3934 with_gnu_ld=$lt_cv_prog_gnu_ld
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
3938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3939 if ${lt_cv_ld_reload_flag+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 lt_cv_ld_reload_flag='-r'
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
3945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3946 reload_flag=$lt_cv_ld_reload_flag
3947 case $reload_flag in
3949 *) reload_flag=" $reload_flag" ;;
3951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
3954 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3955 if ${lt_cv_path_NM+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 if test -n "$NM"; then
3959 # Let the user override the test.
3962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3963 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3965 test -z "$ac_dir" && ac_dir=.
3966 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3967 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3968 # Check to see if the nm accepts a BSD-compat flag.
3969 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3970 # nm: unknown option "B" ignored
3971 # Tru64's nm complains that /dev/null is an invalid object file
3972 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3973 */dev/null* | *'Invalid file or object type'*)
3974 lt_cv_path_NM="$tmp_nm -B"
3978 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3980 lt_cv_path_NM="$tmp_nm -p"
3984 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3985 continue # so that we can try to find one that supports BSD flags
3992 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3996 $as_echo "$lt_cv_path_NM" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4000 $as_echo_n "checking whether ln -s works... " >&6; }
4002 if test "$LN_S" = "ln -s"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4004 $as_echo "yes" >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4007 $as_echo "no, using $LN_S" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4011 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4012 if ${lt_cv_deplibs_check_method+:} false; then :
4013 $as_echo_n "(cached) " >&6
4015 lt_cv_file_magic_cmd='$MAGIC_CMD'
4016 lt_cv_file_magic_test_file=
4017 lt_cv_deplibs_check_method='unknown'
4018 # Need to set the preceding variable on all platforms that support
4019 # interlibrary dependencies.
4020 # 'none' -- dependencies not supported.
4021 # `unknown' -- same as none, but documents that we really don't know.
4022 # 'pass_all' -- all dependencies passed with no checks.
4023 # 'test_compile' -- check by making test program.
4024 # 'file_magic [[regex]]' -- check by looking for files in library path
4025 # which responds to the $file_magic_cmd with a given extended regex.
4026 # If you have `file' or equivalent on your system and you're not sure
4027 # whether `pass_all' will *always* work, you probably want this one.
4031 lt_cv_deplibs_check_method=pass_all
4035 lt_cv_deplibs_check_method=pass_all
4039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4040 lt_cv_file_magic_cmd='/usr/bin/file -L'
4041 lt_cv_file_magic_test_file=/shlib/libc.so
4044 cygwin* | mingw* | pw32*)
4045 # win32_libid is a shell function defined in ltmain.sh
4046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4047 lt_cv_file_magic_cmd='win32_libid'
4050 darwin* | rhapsody*)
4051 # this will be overwritten by pass_all, but leave it in just in case
4052 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4053 lt_cv_file_magic_cmd='/usr/bin/file -L'
4055 rhapsody* | darwin1.[012])
4056 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4059 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4062 lt_cv_deplibs_check_method=pass_all
4065 freebsd* | kfreebsd*-gnu)
4066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4069 # Not sure whether the presence of OpenBSD here was a mistake.
4070 # Let's accept both of them until this is cleared up.
4071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4072 lt_cv_file_magic_cmd=/usr/bin/file
4073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4077 lt_cv_deplibs_check_method=pass_all
4082 lt_cv_deplibs_check_method=pass_all
4085 hpux10.20* | hpux11*)
4086 lt_cv_file_magic_cmd=/usr/bin/file
4089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4103 irix5* | irix6* | nonstopux*)
4105 irix5* | nonstopux*)
4106 # this will be overridden with pass_all, but let us keep it just in case
4107 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4111 *-32|*"-32 ") libmagic=32-bit;;
4112 *-n32|*"-n32 ") libmagic=N32;;
4113 *-64|*"-64 ") libmagic=64-bit;;
4114 *) libmagic=never-match;;
4116 # this will be overridden with pass_all, but let us keep it just in case
4117 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4120 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4121 lt_cv_deplibs_check_method=pass_all
4124 # This must be Linux ELF.
4126 # linux always uses pass_all now, this code is the old way (tm)
4128 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4129 lt_cv_deplibs_check_method=pass_all ;;
4131 # glibc up to 2.1.1 does not perform some relocations on ARM
4132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4134 lt_cv_deplibs_check_method=pass_all
4135 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4148 lt_cv_file_magic_cmd=/usr/bin/file
4149 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4153 lt_cv_deplibs_check_method=unknown
4157 lt_cv_file_magic_cmd=/usr/bin/file
4158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4162 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4166 osf3* | osf4* | osf5*)
4167 # this will be overridden with pass_all, but let us keep it just in case
4168 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4169 lt_cv_file_magic_test_file=/shlib/libc.so
4170 lt_cv_deplibs_check_method=pass_all
4174 lt_cv_deplibs_check_method=pass_all
4178 lt_cv_deplibs_check_method=pass_all
4179 lt_cv_file_magic_test_file=/lib/libc.so
4182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4183 case $host_vendor in
4185 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]'
4186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4189 lt_cv_deplibs_check_method=pass_all
4192 lt_cv_file_magic_cmd='/bin/file'
4193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4196 lt_cv_file_magic_cmd='/bin/file'
4197 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4198 lt_cv_file_magic_test_file=/lib/libc.so
4201 lt_cv_deplibs_check_method=pass_all
4206 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4207 lt_cv_deplibs_check_method=pass_all
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4213 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4214 file_magic_cmd=$lt_cv_file_magic_cmd
4215 deplibs_check_method=$lt_cv_deplibs_check_method
4216 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4221 # If no C compiler was specified, use CC.
4224 # Allow CC to be a program name with arguments.
4228 # Check whether --enable-libtool-lock was given.
4229 if test "${enable_libtool_lock+set}" = set; then :
4230 enableval=$enable_libtool_lock;
4233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4235 # Some flags need to be propagated to the compiler or linker for good
4239 # Find out which ABI we are using.
4240 echo 'int i;' > conftest.$ac_ext
4241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4242 (eval $ac_compile) 2>&5
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then
4246 case `/usr/bin/file conftest.$ac_objext` in
4258 # Find out which ABI we are using.
4259 echo '#line 4259 "configure"' > conftest.$ac_ext
4260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4261 (eval $ac_compile) 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; then
4265 if test "$lt_cv_prog_gnu_ld" = yes; then
4266 case `/usr/bin/file conftest.$ac_objext` in
4268 LD="${LD-ld} -melf32bsmip"
4271 LD="${LD-ld} -melf32bmipn32"
4274 LD="${LD-ld} -melf64bmip"
4278 case `/usr/bin/file conftest.$ac_objext` in
4294 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4295 # Find out which ABI we are using.
4296 echo 'int i;' > conftest.$ac_ext
4297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4298 (eval $ac_compile) 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then
4302 case "`/usr/bin/file conftest.o`" in
4306 LD="${LD-ld} -m elf_i386"
4308 ppc64-*linux*|powerpc64-*linux*)
4309 LD="${LD-ld} -m elf32ppclinux"
4312 LD="${LD-ld} -m elf_s390"
4315 LD="${LD-ld} -m elf32_sparc"
4322 LD="${LD-ld} -m elf_x86_64"
4324 ppc*-*linux*|powerpc*-*linux*)
4325 LD="${LD-ld} -m elf64ppc"
4328 LD="${LD-ld} -m elf64_s390"
4331 LD="${LD-ld} -m elf64_sparc"
4341 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4342 SAVE_CFLAGS="$CFLAGS"
4343 CFLAGS="$CFLAGS -belf"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4345 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4346 if ${lt_cv_cc_needs_belf+:} false; then :
4347 $as_echo_n "(cached) " >&6
4350 ac_cpp='$CPP $CPPFLAGS'
4351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_c_try_link "$LINENO"; then :
4367 lt_cv_cc_needs_belf=yes
4369 lt_cv_cc_needs_belf=no
4371 rm -f core conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4382 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4384 CFLAGS="$SAVE_CFLAGS"
4390 need_locks="$enable_libtool_lock"
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4400 # On Suns, sometimes $CPP names a directory.
4401 if test -n "$CPP" && test -d "$CPP"; then
4404 if test -z "$CPP"; then
4405 if ${ac_cv_prog_CPP+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 # Double quotes because CPP needs to be expanded
4409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4412 for ac_c_preproc_warn_flag in '' yes
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 # include <limits.h>
4425 # include <assert.h>
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444 # Broken: success on invalid input.
4447 # Passes both tests.
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4469 $as_echo "$CPP" >&6; }
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 :
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details" "$LINENO" 5; }
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4532 $as_echo_n "checking for ANSI C header files... " >&6; }
4533 if ${ac_cv_header_stdc+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552 ac_cv_header_stdc=yes
4554 ac_cv_header_stdc=no
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 if test $ac_cv_header_stdc = yes; then
4559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "memchr" >/dev/null 2>&1; then :
4569 ac_cv_header_stdc=no
4575 if test $ac_cv_header_stdc = yes; then
4576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 $EGREP "free" >/dev/null 2>&1; then :
4586 ac_cv_header_stdc=no
4592 if test $ac_cv_header_stdc = yes; then
4593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4594 if test "$cross_compiling" = yes; then :
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4601 #if ((' ' & 0x0FF) == 0x020)
4602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4605 # define ISLOWER(c) \
4606 (('a' <= (c) && (c) <= 'i') \
4607 || ('j' <= (c) && (c) <= 'r') \
4608 || ('s' <= (c) && (c) <= 'z'))
4609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4617 for (i = 0; i < 256; i++)
4618 if (XOR (islower (i), ISLOWER (i))
4619 || toupper (i) != TOUPPER (i))
4624 if ac_fn_c_try_run "$LINENO"; then :
4627 ac_cv_header_stdc=no
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4630 conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4636 $as_echo "$ac_cv_header_stdc" >&6; }
4637 if test $ac_cv_header_stdc = yes; then
4639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4645 inttypes.h stdint.h unistd.h
4647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4651 cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4660 for ac_header in dlfcn.h
4662 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4663 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4664 cat >>confdefs.h <<_ACEOF
4665 #define HAVE_DLFCN_H 1
4673 ac_cpp='$CXXCPP $CPPFLAGS'
4674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4677 if test -z "$CXX"; then
4678 if test -n "$CCC"; then
4681 if test -n "$ac_tool_prefix"; then
4682 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_CXX+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CXX"; then
4692 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CXX"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4714 $as_echo "$CXX" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$CXX" && break
4724 if test -z "$CXX"; then
4726 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 if test -n "$ac_ct_CXX"; then
4736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_ac_ct_CXX="$ac_prog"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4756 if test -n "$ac_ct_CXX"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4758 $as_echo "$ac_ct_CXX" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4765 test -n "$ac_ct_CXX" && break
4768 if test "x$ac_ct_CXX" = x; then
4771 case $cross_compiling:$ac_tool_warned in
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4783 # Provide some information about the compiler.
4784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4787 for ac_option in --version -v -V -qversion; do
4788 { { ac_try="$ac_compiler $ac_option >&5"
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794 $as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4797 if test -s conftest.err; then
4799 ... rest of stderr output deleted ...
4800 10q' conftest.err >conftest.er1
4801 cat conftest.er1 >&5
4803 rm -f conftest.er1 conftest.err
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4809 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4810 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4811 $as_echo_n "(cached) " >&6
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4827 if ac_fn_cxx_try_compile "$LINENO"; then :
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4837 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4838 if test $ac_compiler_gnu = yes; then
4843 ac_test_CXXFLAGS=${CXXFLAGS+set}
4844 ac_save_CXXFLAGS=$CXXFLAGS
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4846 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4847 if ${ac_cv_prog_cxx_g+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4851 ac_cxx_werror_flag=yes
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_cxx_try_compile "$LINENO"; then :
4866 ac_cv_prog_cxx_g=yes
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4880 if ac_fn_cxx_try_compile "$LINENO"; then :
4883 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4896 if ac_fn_cxx_try_compile "$LINENO"; then :
4897 ac_cv_prog_cxx_g=yes
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4907 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4908 if test "$ac_test_CXXFLAGS" = set; then
4909 CXXFLAGS=$ac_save_CXXFLAGS
4910 elif test $ac_cv_prog_cxx_g = yes; then
4911 if test "$GXX" = yes; then
4917 if test "$GXX" = yes; then
4924 ac_cpp='$CXXCPP $CPPFLAGS'
4925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930 ac_cpp='$CXXCPP $CPPFLAGS'
4931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4935 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4936 if test -z "$CXXCPP"; then
4937 if ${ac_cv_prog_CXXCPP+:} false; then :
4938 $as_echo_n "(cached) " >&6
4940 # Double quotes because CXXCPP needs to be expanded
4941 for CXXCPP in "$CXX -E" "/lib/cpp"
4944 for ac_cxx_preproc_warn_flag in '' yes
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4955 # include <limits.h>
4957 # include <assert.h>
4961 if ac_fn_cxx_try_cpp "$LINENO"; then :
4964 # Broken: fails on valid input.
4967 rm -f conftest.err conftest.i conftest.$ac_ext
4969 # OK, works on sane cases. Now check whether nonexistent headers
4970 # can be detected and how.
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <ac_nonexistent.h>
4975 if ac_fn_cxx_try_cpp "$LINENO"; then :
4976 # Broken: success on invalid input.
4979 # Passes both tests.
4983 rm -f conftest.err conftest.i conftest.$ac_ext
4986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4987 rm -f conftest.i conftest.err conftest.$ac_ext
4988 if $ac_preproc_ok; then :
4993 ac_cv_prog_CXXCPP=$CXXCPP
4996 CXXCPP=$ac_cv_prog_CXXCPP
4998 ac_cv_prog_CXXCPP=$CXXCPP
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5001 $as_echo "$CXXCPP" >&6; }
5003 for ac_cxx_preproc_warn_flag in '' yes
5005 # Use a header file that comes with gcc, so configuring glibc
5006 # with a fresh cross-compiler works.
5007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008 # <limits.h> exists even on freestanding compilers.
5009 # On the NeXT, cc -E runs the code through the compiler's parser,
5010 # not just through cpp. "Syntax error" is here to catch this case.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5014 # include <limits.h>
5016 # include <assert.h>
5020 if ac_fn_cxx_try_cpp "$LINENO"; then :
5023 # Broken: fails on valid input.
5026 rm -f conftest.err conftest.i conftest.$ac_ext
5028 # OK, works on sane cases. Now check whether nonexistent headers
5029 # can be detected and how.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #include <ac_nonexistent.h>
5034 if ac_fn_cxx_try_cpp "$LINENO"; then :
5035 # Broken: success on invalid input.
5038 # Passes both tests.
5042 rm -f conftest.err conftest.i conftest.$ac_ext
5045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5046 rm -f conftest.i conftest.err conftest.$ac_ext
5047 if $ac_preproc_ok; then :
5050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5053 See \`config.log' for more details" "$LINENO" 5; }
5057 ac_cpp='$CXXCPP $CPPFLAGS'
5058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5064 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5065 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5067 if test -n "$ac_tool_prefix"; then
5068 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_F77+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 if test -n "$F77"; then
5078 ac_cv_prog_F77="$F77" # Let the user override the test.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 if test -n "$F77"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5100 $as_echo "$F77" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 test -n "$F77" && break
5110 if test -z "$F77"; then
5112 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5114 # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 if test -n "$ac_ct_F77"; then
5122 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_ac_ct_F77="$ac_prog"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5142 if test -n "$ac_ct_F77"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5144 $as_echo "$ac_ct_F77" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5151 test -n "$ac_ct_F77" && break
5154 if test "x$ac_ct_F77" = x; then
5157 case $cross_compiling:$ac_tool_warned in
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5168 # Provide some information about the compiler.
5169 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5172 for ac_option in --version -v -V -qversion; do
5173 { { ac_try="$ac_compiler $ac_option >&5"
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 $as_echo "$ac_try_echo"; } >&5
5180 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5182 if test -s conftest.err; then
5184 ... rest of stderr output deleted ...
5185 10q' conftest.err >conftest.er1
5186 cat conftest.er1 >&5
5188 rm -f conftest.er1 conftest.err
5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190 test $ac_status = 0; }
5194 # If we don't use `.F' as extension, the preprocessor is not run on the
5195 # input file. (Note that this only needs to work for GNU compilers.)
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5199 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5200 if ${ac_cv_f77_compiler_gnu+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 cat > conftest.$ac_ext <<_ACEOF
5211 if ac_fn_f77_try_compile "$LINENO"; then :
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5221 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5223 ac_test_FFLAGS=${FFLAGS+set}
5224 ac_save_FFLAGS=$FFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5227 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5228 if ${ac_cv_prog_f77_g+:} false; then :
5229 $as_echo_n "(cached) " >&6
5232 cat > conftest.$ac_ext <<_ACEOF
5237 if ac_fn_f77_try_compile "$LINENO"; then :
5238 ac_cv_prog_f77_g=yes
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5246 $as_echo "$ac_cv_prog_f77_g" >&6; }
5247 if test "$ac_test_FFLAGS" = set; then
5248 FFLAGS=$ac_save_FFLAGS
5249 elif test $ac_cv_prog_f77_g = yes; then
5250 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5256 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5263 if test $ac_compiler_gnu = yes; then
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5278 # find the maximum length of command line arguments
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5280 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5281 if ${lt_cv_sys_max_cmd_len+:} false; then :
5282 $as_echo_n "(cached) " >&6
5289 # On DJGPP, this test can blow up pretty badly due to problems in libc
5290 # (any single argument exceeding 2000 bytes causes a buffer overrun
5291 # during glob expansion). Even if it were fixed, the result of this
5292 # check would be larger than it should be.
5293 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5297 # Under GNU Hurd, this test is not required because there is
5298 # no limit to the length of command line arguments.
5299 # Libtool will interpret -1 as no limit whatsoever
5300 lt_cv_sys_max_cmd_len=-1;
5304 # On Win9x/ME, this test blows up -- it succeeds, but takes
5305 # about 5 minutes as the teststring grows exponentially.
5306 # Worse, since 9x/ME are not pre-emptively multitasking,
5307 # you end up with a "frozen" computer, even though with patience
5308 # the test eventually succeeds (with a max line length of 256k).
5309 # Instead, let's just punt: use the minimum linelength reported by
5310 # all of the supported platforms: 8192 (on NT/2K/XP).
5311 lt_cv_sys_max_cmd_len=8192;
5315 # On AmigaOS with pdksh, this test takes hours, literally.
5316 # So we just punt and use a minimum line length of 8192.
5317 lt_cv_sys_max_cmd_len=8192;
5321 # If test is not a shell built-in, we'll probably end up computing a
5322 # maximum length that is only half of the actual maximum length, but
5324 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5325 = "XX$testring") >/dev/null 2>&1 &&
5326 new_result=`expr "X$testring" : ".*" 2>&1` &&
5327 lt_cv_sys_max_cmd_len=$new_result &&
5328 test $i != 17 # 1/2 MB should be enough
5331 testring=$testring$testring
5334 # Add a significant safety factor because C++ compilers can tack on massive
5335 # amounts of additional arguments before passing them to the linker.
5336 # It appears as though 1/2 is a usable value.
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5343 if test -n $lt_cv_sys_max_cmd_len ; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5345 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5348 $as_echo "none" >&6; }
5354 # Check for command to grab the raw symbol name followed by C symbol from nm.
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5356 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5357 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5358 $as_echo_n "(cached) " >&6
5361 # These are sane defaults that work on at least a few old systems.
5362 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5364 # Character class describing NM global symbol codes.
5365 symcode='[BCDEGRST]'
5367 # Regexp to match symbols that can be accessed directly from C.
5368 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5370 # Transform the above into a raw symbol and a C symbol.
5371 symxfrm='\1 \2\3 \3'
5373 # Transform an extracted symbol line into a proper C declaration
5374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5376 # Transform an extracted symbol line into symbol name and symbol address
5377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5379 # Define system-specific variables.
5384 cygwin* | mingw* | pw32*)
5385 symcode='[ABCDGISTW]'
5387 hpux*) # Its linker distinguishes data from code symbols
5388 if test "$host_cpu" = ia64; then
5389 symcode='[ABCDEGRST]'
5391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5392 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5395 symcode='[BCDEGRST]'
5398 symcode='[BCDEGQRST]'
5408 # Handle CRLF in mingw tool chain
5412 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5416 # If we're using GNU nm, then use its standard symbol codes.
5417 case `$NM -V 2>&1` in
5418 *GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5422 # Try without a prefix undercore, then with it.
5423 for ac_symprfx in "" "_"; do
5425 # Write the raw and C identifiers.
5426 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5428 # Check to see that the pipe works correctly.
5432 cat > conftest.$ac_ext <<EOF
5437 void nm_test_func(){}
5441 int main(){nm_test_var='a';nm_test_func();return(0);}
5444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5445 (eval $ac_compile) 2>&5
5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448 test $ac_status = 0; }; then
5449 # Now try to grab the symbols.
5451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; } && test -s "$nlist"; then
5456 # Try sorting and uniquifying the output.
5457 if sort "$nlist" | uniq > "$nlist"T; then
5458 mv -f "$nlist"T "$nlist"
5463 # Make sure that we snagged all the symbols we need.
5464 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5465 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5466 cat <<EOF > conftest.$ac_ext
5472 # Now generate the symbol file.
5473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5475 cat <<EOF >> conftest.$ac_ext
5476 #if defined (__STDC__) && __STDC__
5477 # define lt_ptr_t void *
5479 # define lt_ptr_t char *
5483 /* The mapping between symbol names and symbols. */
5488 lt_preloaded_symbols[] =
5491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5492 cat <<\EOF >> conftest.$ac_ext
5500 # Now try linking the two files.
5501 mv conftest.$ac_objext conftstm.$ac_objext
5502 lt_save_LIBS="$LIBS"
5503 lt_save_CFLAGS="$CFLAGS"
5504 LIBS="conftstm.$ac_objext"
5505 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5507 (eval $ac_link) 2>&5
5509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5513 LIBS="$lt_save_LIBS"
5514 CFLAGS="$lt_save_CFLAGS"
5516 echo "cannot find nm_test_func in $nlist" >&5
5519 echo "cannot find nm_test_var in $nlist" >&5
5522 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5525 echo "$progname: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5528 rm -f conftest* conftst*
5530 # Do not use the global_symbol_pipe unless it works.
5531 if test "$pipe_works" = yes; then
5534 lt_cv_sys_global_symbol_pipe=
5540 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5541 lt_cv_sys_global_symbol_to_cdecl=
5543 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5545 $as_echo "failed" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5548 $as_echo "ok" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5552 $as_echo_n "checking for objdir... " >&6; }
5553 if ${lt_cv_objdir+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 rm -f .libs 2>/dev/null
5557 mkdir .libs 2>/dev/null
5558 if test -d .libs; then
5561 # MS-DOS does not allow filenames that begin with a dot.
5564 rmdir .libs 2>/dev/null
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5567 $as_echo "$lt_cv_objdir" >&6; }
5568 objdir=$lt_cv_objdir
5576 # AIX sometimes has problems with the GCC collect2 program. For some
5577 # reason, if we set the COLLECT_NAMES environment variable, the problems
5578 # vanish in a puff of smoke.
5579 if test "X${COLLECT_NAMES+set}" != Xset; then
5581 export COLLECT_NAMES
5586 # Sed substitution that helps us do robust quoting. It backslashifies
5587 # metacharacters that are still active within double-quoted strings.
5588 Xsed='sed -e s/^X//'
5589 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5598 # Sed substitution to avoid accidental globbing in evaled expressions
5599 no_glob_subst='s/\*/\\\*/g'
5605 default_ofile=libtool
5606 can_build_shared=yes
5608 # All known linkers require a `.a' archive for static linking (except M$VC,
5609 # which needs '.lib').
5611 ltmain="$ac_aux_dir/ltmain.sh"
5612 ofile="$default_ofile"
5613 with_gnu_ld="$lt_cv_prog_gnu_ld"
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}ar; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AR+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$AR"; then
5624 ac_cv_prog_AR="$AR" # Let the user override the test.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_AR="${ac_tool_prefix}ar"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 if test -n "$AR"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646 $as_echo "$AR" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 if test -z "$ac_cv_prog_AR"; then
5656 # Extract the first word of "ar", so it can be a program name with args.
5657 set dummy ar; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 if test -n "$ac_ct_AR"; then
5664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_AR="ar"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5684 if test -n "$ac_ct_AR"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5686 $as_echo "$ac_ct_AR" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5692 if test "x$ac_ct_AR" = x; then
5695 case $cross_compiling:$ac_tool_warned in
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_RANLIB+:} false; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$RANLIB"; then
5716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 RANLIB=$ac_cv_prog_RANLIB
5736 if test -n "$RANLIB"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5738 $as_echo "$RANLIB" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 if test -z "$ac_cv_prog_RANLIB"; then
5747 ac_ct_RANLIB=$RANLIB
5748 # Extract the first word of "ranlib", so it can be a program name with args.
5749 set dummy ranlib; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -n "$ac_ct_RANLIB"; then
5756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_RANLIB="ranlib"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5776 if test -n "$ac_ct_RANLIB"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5778 $as_echo "$ac_ct_RANLIB" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5784 if test "x$ac_ct_RANLIB" = x; then
5787 case $cross_compiling:$ac_tool_warned in
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5793 RANLIB=$ac_ct_RANLIB
5796 RANLIB="$ac_cv_prog_RANLIB"
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}strip; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_STRIP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$STRIP"; then
5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 STRIP=$ac_cv_prog_STRIP
5828 if test -n "$STRIP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830 $as_echo "$STRIP" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5838 if test -z "$ac_cv_prog_STRIP"; then
5840 # Extract the first word of "strip", so it can be a program name with args.
5841 set dummy strip; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$ac_ct_STRIP"; then
5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_STRIP="strip"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868 if test -n "$ac_ct_STRIP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870 $as_echo "$ac_ct_STRIP" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5876 if test "x$ac_ct_STRIP" = x; then
5879 case $cross_compiling:$ac_tool_warned in
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5888 STRIP="$ac_cv_prog_STRIP"
5893 old_CFLAGS="$CFLAGS"
5895 # Set sane defaults for various variables
5896 test -z "$AR" && AR=ar
5897 test -z "$AR_FLAGS" && AR_FLAGS=cru
5898 test -z "$AS" && AS=as
5899 test -z "$CC" && CC=cc
5900 test -z "$LTCC" && LTCC=$CC
5901 test -z "$DLLTOOL" && DLLTOOL=dlltool
5902 test -z "$LD" && LD=ld
5903 test -z "$LN_S" && LN_S="ln -s"
5904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5905 test -z "$NM" && NM=nm
5906 test -z "$SED" && SED=sed
5907 test -z "$OBJDUMP" && OBJDUMP=objdump
5908 test -z "$RANLIB" && RANLIB=:
5909 test -z "$STRIP" && STRIP=:
5910 test -z "$ac_objext" && ac_objext=o
5912 # Determine commands to create old-style static archives.
5913 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5914 old_postinstall_cmds='chmod 644 $oldlib'
5915 old_postuninstall_cmds=
5917 if test -n "$RANLIB"; then
5920 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5923 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5929 # Only perform the check for file, if the check method requires it
5930 case $deplibs_check_method in
5932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
5934 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
5935 if ${lt_cv_path_MAGIC_CMD+:} false; then :
5936 $as_echo_n "(cached) " >&6
5940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5943 lt_save_MAGIC_CMD="$MAGIC_CMD"
5944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5946 for ac_dir in $ac_dummy; do
5948 test -z "$ac_dir" && ac_dir=.
5949 if test -f $ac_dir/${ac_tool_prefix}file; then
5950 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5951 if test -n "$file_magic_test_file"; then
5952 case $deplibs_check_method in
5954 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5957 $EGREP "$file_magic_regex" > /dev/null; then
5962 *** Warning: the command libtool uses to detect shared libraries,
5963 *** $file_magic_cmd, produces output that libtool cannot recognize.
5964 *** The result is that libtool may fail to recognize shared libraries
5965 *** as such. This will affect the creation of libtool libraries that
5966 *** depend on shared libraries, but programs linked with such libtool
5967 *** libraries will work regardless of this problem. Nevertheless, you
5968 *** may want to report the problem to your system manager and/or to
5969 *** bug-libtool@gnu.org
5979 MAGIC_CMD="$lt_save_MAGIC_CMD"
5984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5985 if test -n "$MAGIC_CMD"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
5987 $as_echo "$MAGIC_CMD" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5993 if test -z "$lt_cv_path_MAGIC_CMD"; then
5994 if test -n "$ac_tool_prefix"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
5996 $as_echo_n "checking for file... " >&6; }
5997 if ${lt_cv_path_MAGIC_CMD+:} false; then :
5998 $as_echo_n "(cached) " >&6
6002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 lt_save_MAGIC_CMD="$MAGIC_CMD"
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/file; then
6012 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6013 if test -n "$file_magic_test_file"; then
6014 case $deplibs_check_method in
6016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019 $EGREP "$file_magic_regex" > /dev/null; then
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such. This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem. Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6041 MAGIC_CMD="$lt_save_MAGIC_CMD"
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6049 $as_echo "$MAGIC_CMD" >&6; }
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6067 # Check whether --enable-libtool-lock was given.
6068 if test "${enable_libtool_lock+set}" = set; then :
6069 enableval=$enable_libtool_lock;
6072 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6075 # Check whether --with-pic was given.
6076 if test "${with_pic+set}" = set; then :
6077 withval=$with_pic; pic_mode="$withval"
6082 test -z "$pic_mode" && pic_mode=default
6084 # Use C for the default configuration in the libtool script
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094 # Source file extension for C test sources.
6097 # Object file extension for compiled C test sources.
6101 # Code to be used in simple compile tests
6102 lt_simple_compile_test_code="int some_variable = 0;\n"
6104 # Code to be used in simple link tests
6105 lt_simple_link_test_code='int main(){return(0);}\n'
6108 # If no C compiler was specified, use CC.
6111 # Allow CC to be a program name with arguments.
6116 # Check for any special shared library compilation flags.
6119 if test "$GCC" = no; then
6122 lt_prog_cc_shlib='-belf'
6126 if test -n "$lt_prog_cc_shlib"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6128 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6129 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6132 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6133 lt_cv_prog_cc_can_build_shared=no
6139 # Check to make sure the static flag actually works.
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6142 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6143 if ${lt_prog_compiler_static_works+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 lt_prog_compiler_static_works=no
6147 save_LDFLAGS="$LDFLAGS"
6148 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6149 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6151 # The compiler can only warn and ignore the option if not recognized
6152 # So say no if there are warnings
6153 if test -s conftest.err; then
6154 # Append any errors to the config.log.
6155 cat conftest.err 1>&5
6157 lt_prog_compiler_static_works=yes
6161 LDFLAGS="$save_LDFLAGS"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6165 $as_echo "$lt_prog_compiler_static_works" >&6; }
6167 if test x"$lt_prog_compiler_static_works" = xyes; then
6170 lt_prog_compiler_static=
6176 ## There is no encapsulation within the following macros, do not change
6177 ## the running order or otherwise move them around unless you know exactly
6178 ## what you are doing...
6180 lt_prog_compiler_no_builtin_flag=
6182 if test "$GCC" = yes; then
6183 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6187 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6188 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6189 $as_echo_n "(cached) " >&6
6191 lt_cv_prog_compiler_rtti_exceptions=no
6192 ac_outfile=conftest.$ac_objext
6193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6194 lt_compiler_flag="-fno-rtti -fno-exceptions"
6195 # Insert the option either (1) after the last *FLAGS variable, or
6196 # (2) before a word containing "conftest.", or (3) at the end.
6197 # Note that $ac_compile itself does not contain backslashes and begins
6198 # with a dollar sign (not a hyphen), so the echo should work correctly.
6199 # The option is referenced via a variable to avoid confusing sed.
6200 lt_compile=`echo "$ac_compile" | $SED \
6201 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203 -e 's:$: $lt_compiler_flag:'`
6204 (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
6205 (eval "$lt_compile" 2>conftest.err)
6207 cat conftest.err >&5
6208 echo "$as_me:6208: \$? = $ac_status" >&5
6209 if (exit $ac_status) && test -s "$ac_outfile"; then
6210 # The compiler can only warn and ignore the option if not recognized
6211 # So say no if there are warnings
6212 if test ! -s conftest.err; then
6213 lt_cv_prog_compiler_rtti_exceptions=yes
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6222 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6223 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6230 lt_prog_compiler_wl=
6231 lt_prog_compiler_pic=
6232 lt_prog_compiler_static=
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6237 if test "$GCC" = yes; then
6238 lt_prog_compiler_wl='-Wl,'
6239 lt_prog_compiler_static='-static'
6243 # All AIX code is PIC.
6244 if test "$host_cpu" = ia64; then
6245 # AIX 5 now supports IA64 processor
6246 lt_prog_compiler_static='-Bstatic'
6251 # FIXME: we need at least 68020 code to build shared libraries, but
6252 # adding the `-m68020' flag to GCC prevents building anything better,
6254 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6257 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6258 # PIC is the default for these OSes.
6261 mingw* | pw32* | os2*)
6262 # This hack is so that the source file can tell whether it is being
6263 # built for inclusion in a dll (and should export symbols for example).
6264 lt_prog_compiler_pic='-DDLL_EXPORT'
6267 darwin* | rhapsody*)
6268 # PIC is the default on this platform
6269 # Common symbols not allowed in MH_DYLIB files
6270 lt_prog_compiler_pic='-fno-common'
6274 # Just because we use GCC doesn't mean we suddenly get shared libraries
6275 # on systems that don't support them.
6276 lt_prog_compiler_can_build_shared=no
6281 if test -d /usr/nec; then
6282 lt_prog_compiler_pic=-Kconform_pic
6287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6294 lt_prog_compiler_pic='-fPIC'
6300 lt_prog_compiler_pic='-fPIC'
6304 # PORTME Check for flag to pass linker flags through the system compiler.
6307 lt_prog_compiler_wl='-Wl,'
6308 if test "$host_cpu" = ia64; then
6309 # AIX 5 now supports IA64 processor
6310 lt_prog_compiler_static='-Bstatic'
6312 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6316 mingw* | pw32* | os2*)
6317 # This hack is so that the source file can tell whether it is being
6318 # built for inclusion in a dll (and should export symbols for example).
6319 lt_prog_compiler_pic='-DDLL_EXPORT'
6322 hpux9* | hpux10* | hpux11*)
6323 lt_prog_compiler_wl='-Wl,'
6324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6331 lt_prog_compiler_pic='+Z'
6334 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6335 lt_prog_compiler_static='${wl}-a ${wl}archive'
6338 irix5* | irix6* | nonstopux*)
6339 lt_prog_compiler_wl='-Wl,'
6340 # PIC (with -KPIC) is the default.
6341 lt_prog_compiler_static='-non_shared'
6345 lt_prog_compiler_pic='-KPIC'
6346 lt_prog_compiler_static='-Bstatic'
6352 lt_prog_compiler_wl='-Wl,'
6353 lt_prog_compiler_pic='-KPIC'
6354 lt_prog_compiler_static='-static'
6357 lt_prog_compiler_wl='-Wl,'
6358 # All Alpha code is PIC.
6359 lt_prog_compiler_static='-non_shared'
6364 osf3* | osf4* | osf5*)
6365 lt_prog_compiler_wl='-Wl,'
6366 # All OSF/1 code is PIC.
6367 lt_prog_compiler_static='-non_shared'
6371 lt_prog_compiler_pic='-Kpic'
6372 lt_prog_compiler_static='-dn'
6376 lt_prog_compiler_wl='-Wl,'
6377 lt_prog_compiler_pic='-KPIC'
6378 lt_prog_compiler_static='-Bstatic'
6382 lt_prog_compiler_wl='-Qoption ld '
6383 lt_prog_compiler_pic='-PIC'
6384 lt_prog_compiler_static='-Bstatic'
6387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6388 lt_prog_compiler_wl='-Wl,'
6389 lt_prog_compiler_pic='-KPIC'
6390 lt_prog_compiler_static='-Bstatic'
6394 if test -d /usr/nec ;then
6395 lt_prog_compiler_pic='-Kconform_pic'
6396 lt_prog_compiler_static='-Bstatic'
6401 lt_prog_compiler_pic='-pic'
6402 lt_prog_compiler_static='-Bstatic'
6406 lt_prog_compiler_can_build_shared=no
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6412 $as_echo "$lt_prog_compiler_pic" >&6; }
6415 # Check to make sure the PIC flag actually works.
6417 if test -n "$lt_prog_compiler_pic"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6420 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6421 if ${lt_prog_compiler_pic_works+:} false; then :
6422 $as_echo_n "(cached) " >&6
6424 lt_prog_compiler_pic_works=no
6425 ac_outfile=conftest.$ac_objext
6426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6428 # Insert the option either (1) after the last *FLAGS variable, or
6429 # (2) before a word containing "conftest.", or (3) at the end.
6430 # Note that $ac_compile itself does not contain backslashes and begins
6431 # with a dollar sign (not a hyphen), so the echo should work correctly.
6432 # The option is referenced via a variable to avoid confusing sed.
6433 lt_compile=`echo "$ac_compile" | $SED \
6434 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6436 -e 's:$: $lt_compiler_flag:'`
6437 (eval echo "\"\$as_me:6437: $lt_compile\"" >&5)
6438 (eval "$lt_compile" 2>conftest.err)
6440 cat conftest.err >&5
6441 echo "$as_me:6441: \$? = $ac_status" >&5
6442 if (exit $ac_status) && test -s "$ac_outfile"; then
6443 # The compiler can only warn and ignore the option if not recognized
6444 # So say no if there are warnings
6445 if test ! -s conftest.err; then
6446 lt_prog_compiler_pic_works=yes
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6453 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6455 if test x"$lt_prog_compiler_pic_works" = xyes; then
6456 case $lt_prog_compiler_pic in
6458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6461 lt_prog_compiler_pic=
6462 lt_prog_compiler_can_build_shared=no
6467 # For platforms which do not support PIC, -DPIC is meaningless:
6469 lt_prog_compiler_pic=
6472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6478 if ${lt_cv_prog_compiler_c_o+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 lt_cv_prog_compiler_c_o=no
6482 $rm -r conftest 2>/dev/null
6486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6488 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6489 # that will create temporary files in the current directory regardless of
6490 # the output directory. Thus, making CWD read-only will cause this test
6491 # to fail, enabling locking or at least warning the user not to do parallel
6495 lt_compiler_flag="-o out/conftest2.$ac_objext"
6496 # Insert the option either (1) after the last *FLAGS variable, or
6497 # (2) before a word containing "conftest.", or (3) at the end.
6498 # Note that $ac_compile itself does not contain backslashes and begins
6499 # with a dollar sign (not a hyphen), so the echo should work correctly.
6500 lt_compile=`echo "$ac_compile" | $SED \
6501 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6503 -e 's:$: $lt_compiler_flag:'`
6504 (eval echo "\"\$as_me:6504: $lt_compile\"" >&5)
6505 (eval "$lt_compile" 2>out/conftest.err)
6507 cat out/conftest.err >&5
6508 echo "$as_me:6508: \$? = $ac_status" >&5
6509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6511 # The compiler can only warn and ignore the option if not recognized
6512 # So say no if there are warnings
6513 if test ! -s out/conftest.err; then
6514 lt_cv_prog_compiler_c_o=yes
6519 # SGI C++ compiler will create directory out/ii_files/ for
6520 # template instantiation
6521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6522 $rm out/* && rmdir out
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6529 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6532 hard_links="nottested"
6533 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6534 # do not overwrite the value of need_locks provided by the user
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6536 $as_echo_n "checking if we can lock with hard links... " >&6; }
6539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6541 ln conftest.a conftest.b 2>&5 || hard_links=no
6542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6544 $as_echo "$hard_links" >&6; }
6545 if test "$hard_links" = no; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6558 allow_undefined_flag=
6559 enable_shared_with_static_runtimes=no
6561 archive_expsym_cmds=
6562 old_archive_From_new_cmds=
6563 old_archive_from_expsyms_cmds=
6564 export_dynamic_flag_spec=
6565 whole_archive_flag_spec=
6566 thread_safe_flag_spec=
6567 hardcode_libdir_flag_spec=
6568 hardcode_libdir_flag_spec_ld=
6569 hardcode_libdir_separator=
6572 hardcode_shlibpath_var=unsupported
6573 link_all_deplibs=unknown
6574 hardcode_automatic=no
6577 always_export_symbols=no
6578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6579 # include_expsyms should be a list of space-separated symbols to be *always*
6580 # included in the symbol list
6582 # exclude_expsyms can be an extended regexp of symbols to exclude
6583 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6584 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6585 # as well as any symbol that contains `d'.
6586 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6588 # platforms (ab)use it in PIC code, but their linkers get confused if
6589 # the symbol is explicitly referenced. Since portable code cannot
6590 # rely on this symbol name, it's probably fine to never include it in
6591 # preloaded symbol tables.
6592 extract_expsyms_cmds=
6595 cygwin* | mingw* | pw32*)
6596 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6597 # When not using gcc, we currently assume that we are using
6598 # Microsoft Visual C++.
6599 if test "$GCC" != yes; then
6609 if test "$with_gnu_ld" = yes; then
6610 # If archive_cmds runs LD, not CC, wlarc should be empty
6613 # See if GNU ld supports shared libraries.
6615 aix3* | aix4* | aix5*)
6616 # On AIX/PPC, the GNU linker is very broken
6617 if test "$host_cpu" != ia64; then
6621 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6622 *** to be unable to reliably create shared libraries on AIX.
6623 *** Therefore, libtool is disabling shared libraries support. If you
6624 *** really care for shared libraries, you may want to modify your PATH
6625 *** so that a non-GNU linker is found, and then restart.
6632 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)'
6633 hardcode_libdir_flag_spec='-L$libdir'
6634 hardcode_minus_L=yes
6636 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6637 # that the semantics of dynamic libraries on AmigaOS, at least up
6638 # to version 4, is to share data among multiple programs linked
6639 # with the same dynamic library. Since this doesn't match the
6640 # behavior of shared libraries on other platforms, we can't use
6646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6647 allow_undefined_flag=unsupported
6648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6649 # support --undefined. This deserves some investigation. FIXME
6650 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6656 cygwin* | mingw* | pw32*)
6657 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6658 # as there is no search path for DLLs.
6659 hardcode_libdir_flag_spec='-L$libdir'
6660 allow_undefined_flag=unsupported
6661 always_export_symbols=no
6662 enable_shared_with_static_runtimes=yes
6663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6667 # If the export-symbols file already is a .def file (1st line
6668 # is EXPORTS), use it as is; otherwise, prepend...
6669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6670 cp $export_symbols $output_objdir/$soname.def;
6672 echo EXPORTS > $output_objdir/$soname.def;
6673 cat $export_symbols >> $output_objdir/$soname.def;
6675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6683 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6692 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6697 *** create shared libraries on Solaris systems. Therefore, libtool
6698 *** is disabling shared libraries support. We urge you to upgrade GNU
6699 *** binutils to release 2.9.1 or newer. Another option is to modify
6700 *** your PATH or compiler configuration so that the native linker is
6701 *** used, and then restart.
6704 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6716 hardcode_shlibpath_var=no
6720 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6721 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722 archive_cmds="$tmp_archive_cmds"
6723 supports_anon_versioning=no
6724 case `$LD -v 2>/dev/null` in
6725 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6726 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6727 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6728 *\ 2.11.*) ;; # other 2.11 versions
6729 *) supports_anon_versioning=yes ;;
6731 if test $supports_anon_versioning = yes; then
6732 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6734 $echo "local: *; };" >> $output_objdir/$libname.ver~
6735 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6737 archive_expsym_cmds="$tmp_archive_cmds"
6745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754 if test "$ld_shlibs" = yes; then
6755 runpath_var=LD_RUN_PATH
6756 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6757 export_dynamic_flag_spec='${wl}--export-dynamic'
6758 # ancient GNU ld didn't support --whole-archive et. al.
6759 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6760 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6762 whole_archive_flag_spec=
6766 # PORTME fill in a description of your system's linker (not GNU ld)
6769 allow_undefined_flag=unsupported
6770 always_export_symbols=yes
6771 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'
6772 # Note: this linker hardcodes the directories in LIBPATH if there
6773 # are no directories specified by -L.
6774 hardcode_minus_L=yes
6775 if test "$GCC" = yes && test -z "$link_static_flag"; then
6776 # Neither direct hardcoding nor static linking is supported with a
6778 hardcode_direct=unsupported
6783 if test "$host_cpu" = ia64; then
6784 # On IA64, the linker does run time linking by default, so we don't
6785 # have to do anything special.
6786 aix_use_runtimelinking=no
6787 exp_sym_flag='-Bexport'
6790 # If we're using GNU nm, then we don't want the "-C" option.
6791 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6792 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6793 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6795 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'
6797 aix_use_runtimelinking=no
6799 # Test if we are trying to use run time linking or normal
6800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6801 # need to do runtime linking.
6802 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6803 for ld_flag in $LDFLAGS; do
6804 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6805 aix_use_runtimelinking=yes
6811 exp_sym_flag='-bexport'
6812 no_entry_flag='-bnoentry'
6815 # When large executables or shared objects are built, AIX ld can
6816 # have problems creating the table of contents. If linking a library
6817 # or program results in "error TOC overflow" add -mminimal-toc to
6818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6823 hardcode_libdir_separator=':'
6824 link_all_deplibs=yes
6826 if test "$GCC" = yes; then
6827 case $host_os in aix4.012|aix4.012.*)
6828 # We only want to do this on AIX 4.2 and lower, the check
6829 # below for broken collect2 doesn't work under 4.3+
6830 collect2name=`${CC} -print-prog-name=collect2`
6831 if test -f "$collect2name" && \
6832 strings "$collect2name" | grep resolve_lib_name >/dev/null
6834 # We have reworked collect2
6837 # We have old collect2
6838 hardcode_direct=unsupported
6839 # It fails to find uninstalled libraries when the uninstalled
6840 # path is not listed in the libpath. Setting hardcode_minus_L
6841 # to unsupported forces relinking
6842 hardcode_minus_L=yes
6843 hardcode_libdir_flag_spec='-L$libdir'
6844 hardcode_libdir_separator=
6847 shared_flag='-shared'
6850 if test "$host_cpu" = ia64; then
6851 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6852 # chokes on -Wl,-G. The following line is correct:
6855 if test "$aix_use_runtimelinking" = yes; then
6856 shared_flag='${wl}-G'
6858 shared_flag='${wl}-bM:SRE'
6863 # It seems that -bexpall does not export symbols beginning with
6864 # underscore (_), so it is better to generate a list of symbols to export.
6865 always_export_symbols=yes
6866 if test "$aix_use_runtimelinking" = yes; then
6867 # Warning - without using the other runtime loading flags (-brtl),
6868 # -berok will link without error, but may produce a broken library.
6869 allow_undefined_flag='-berok'
6870 # Determine the default libpath from the value encoded in an empty executable.
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6882 if ac_fn_c_try_link "$LINENO"; then :
6884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6886 # Check for a 64-bit object if we didn't find anything.
6887 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6895 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6897 if test "$host_cpu" = ia64; then
6898 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6899 allow_undefined_flag="-z nodefs"
6900 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6902 # Determine the default libpath from the value encoded in an empty executable.
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6914 if ac_fn_c_try_link "$LINENO"; then :
6916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6918 # Check for a 64-bit object if we didn't find anything.
6919 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6922 rm -f core conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6927 # Warning - without using the other run time loading flags,
6928 # -berok will link without error, but may produce a broken library.
6929 no_undefined_flag=' ${wl}-bernotok'
6930 allow_undefined_flag=' ${wl}-berok'
6931 # -bexpall does not export symbols beginning with underscore (_)
6932 always_export_symbols=yes
6933 # Exported symbols can be pulled into shared objects from archives
6934 whole_archive_flag_spec=' '
6935 archive_cmds_need_lc=yes
6936 # This is similar to how AIX traditionally builds it's shared libraries.
6937 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6943 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)'
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_minus_L=yes
6946 # see comment about different semantics on the GNU ld section
6951 export_dynamic_flag_spec=-rdynamic
6954 cygwin* | mingw* | pw32*)
6955 # When not using gcc, we currently assume that we are using
6956 # Microsoft Visual C++.
6957 # hardcode_libdir_flag_spec is actually meaningless, as there is
6958 # no search path for DLLs.
6959 hardcode_libdir_flag_spec=' '
6960 allow_undefined_flag=unsupported
6961 # Tell ltmain to make .lib files, not .a files.
6963 # Tell ltmain to make .dll files, not .so files.
6965 # FIXME: Setting linknames here is a bad hack.
6966 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6967 # The linker will automatically build a .lib file if we build a DLL.
6968 old_archive_From_new_cmds='true'
6969 # FIXME: Should let the user specify the lib program.
6970 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6971 fix_srcfile_path='`cygpath -w "$srcfile"`'
6972 enable_shared_with_static_runtimes=yes
6975 darwin* | rhapsody*)
6976 if test "$GXX" = yes ; then
6977 archive_cmds_need_lc=no
6979 rhapsody* | darwin1.[012])
6980 allow_undefined_flag='-undefined suppress'
6983 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6984 allow_undefined_flag='-flat_namespace -undefined suppress'
6986 case ${MACOSX_DEPLOYMENT_TARGET} in
6988 allow_undefined_flag='-flat_namespace -undefined suppress'
6991 allow_undefined_flag='-undefined dynamic_lookup'
6997 lt_int_apple_cc_single_mod=no
6998 output_verbose_link_cmd='echo'
6999 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7000 lt_int_apple_cc_single_mod=yes
7002 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7003 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7005 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7007 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7009 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7010 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7012 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7014 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7016 hardcode_automatic=yes
7017 hardcode_shlibpath_var=unsupported
7018 whole_archive_flag_spec='-all_load $convenience'
7019 link_all_deplibs=yes
7026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_libdir_flag_spec='-L$libdir'
7028 hardcode_shlibpath_var=no
7035 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7036 # support. Future versions do this automatically, but an explicit c++rt0.o
7037 # does not break anything, and helps significantly (at the cost of a little
7040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7041 hardcode_libdir_flag_spec='-R$libdir'
7043 hardcode_shlibpath_var=no
7046 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7050 hardcode_minus_L=yes
7051 hardcode_shlibpath_var=no
7054 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7055 freebsd* | kfreebsd*-gnu)
7056 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7057 hardcode_libdir_flag_spec='-R$libdir'
7059 hardcode_shlibpath_var=no
7063 if test "$GCC" = yes; then
7064 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7066 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'
7068 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7069 hardcode_libdir_separator=:
7072 # hardcode_minus_L: Not really in the search PATH,
7073 # but as the default location of the library.
7074 hardcode_minus_L=yes
7075 export_dynamic_flag_spec='${wl}-E'
7079 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7091 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7098 if test "$with_gnu_ld" = no; then
7101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7102 hardcode_libdir_flag_spec_ld='+b $libdir'
7103 hardcode_libdir_separator=:
7105 hardcode_shlibpath_var=no
7108 hardcode_libdir_flag_spec='-L$libdir'
7110 hardcode_shlibpath_var=no
7112 # hardcode_minus_L: Not really in the search PATH,
7113 # but as the default location of the library.
7114 hardcode_minus_L=yes
7117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7118 hardcode_libdir_separator=:
7120 export_dynamic_flag_spec='${wl}-E'
7122 # hardcode_minus_L: Not really in the search PATH,
7123 # but as the default location of the library.
7124 hardcode_minus_L=yes
7130 irix5* | irix6* | nonstopux*)
7131 if test "$GCC" = yes; then
7132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7134 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7135 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7138 hardcode_libdir_separator=:
7139 link_all_deplibs=yes
7143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7146 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7148 hardcode_libdir_flag_spec='-R$libdir'
7150 hardcode_shlibpath_var=no
7154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7157 hardcode_libdir_separator=:
7158 hardcode_shlibpath_var=no
7163 hardcode_shlibpath_var=no
7164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7167 export_dynamic_flag_spec='${wl}-E'
7170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7172 hardcode_libdir_flag_spec='-R$libdir'
7175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7183 hardcode_libdir_flag_spec='-L$libdir'
7184 hardcode_minus_L=yes
7185 allow_undefined_flag=unsupported
7186 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'
7187 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7191 if test "$GCC" = yes; then
7192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7193 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7195 allow_undefined_flag=' -expect_unresolved \*'
7196 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199 hardcode_libdir_separator=:
7202 osf4* | osf5*) # as osf3* with the addition of -msym flag
7203 if test "$GCC" = yes; then
7204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7205 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7208 allow_undefined_flag=' -expect_unresolved \*'
7209 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7210 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7211 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7213 # Both c and cxx compiler support -rpath directly
7214 hardcode_libdir_flag_spec='-rpath $libdir'
7216 hardcode_libdir_separator=:
7220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7221 hardcode_shlibpath_var=no
7222 export_dynamic_flag_spec='${wl}-Bexport'
7223 runpath_var=LD_RUN_PATH
7224 hardcode_runpath_var=yes
7228 no_undefined_flag=' -z text'
7229 if test "$GCC" = yes; then
7230 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7231 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7234 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7235 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7238 hardcode_libdir_flag_spec='-R$libdir'
7239 hardcode_shlibpath_var=no
7241 solaris2.[0-5] | solaris2.[0-5].*) ;;
7242 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7245 link_all_deplibs=yes
7249 if test "x$host_vendor" = xsequent; then
7250 # Use $CC to link under sequent, because it throws in some extra .o
7251 # files that make .init and .fini sections work.
7252 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7254 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7256 hardcode_libdir_flag_spec='-L$libdir'
7258 hardcode_minus_L=yes
7259 hardcode_shlibpath_var=no
7263 case $host_vendor in
7265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266 hardcode_direct=yes # is this really true???
7269 ## LD is ld it makes a PLAMLIB
7270 ## CC just makes a GrossModule.
7271 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7272 reload_cmds='$CC -r -o $output$reload_objs'
7276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7280 runpath_var='LD_RUN_PATH'
7281 hardcode_shlibpath_var=no
7285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_shlibpath_var=no
7287 export_dynamic_flag_spec='-Bexport'
7291 if test -d /usr/nec; then
7292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_shlibpath_var=no
7294 runpath_var=LD_RUN_PATH
7295 hardcode_runpath_var=yes
7301 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7304 hardcode_shlibpath_var=no
7305 hardcode_runpath_var=yes
7306 runpath_var=LD_RUN_PATH
7309 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7310 no_undefined_flag='${wl}-z ${wl}text'
7311 if test "$GCC" = yes; then
7312 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7314 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7316 runpath_var='LD_RUN_PATH'
7317 hardcode_shlibpath_var=no
7321 no_undefined_flag=' -z text'
7322 # $CC -shared without GNU ld will not create a library from C++
7323 # object files and a static libstdc++, better avoid it by now
7324 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7326 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7327 hardcode_libdir_flag_spec=
7328 hardcode_shlibpath_var=no
7329 runpath_var='LD_RUN_PATH'
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_libdir_flag_spec='-L$libdir'
7335 hardcode_shlibpath_var=no
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7345 $as_echo "$ld_shlibs" >&6; }
7346 test "$ld_shlibs" = no && can_build_shared=no
7348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7349 if test "$GCC" = yes; then
7350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7354 # Do we need to explicitly link libc?
7356 case "x$archive_cmds_need_lc" in
7358 # Assume -lc should be added
7359 archive_cmds_need_lc=yes
7361 if test "$enable_shared" = yes && test "$GCC" = yes; then
7362 case $archive_cmds in
7364 # FIXME: we may have to deal with multi-command sequences.
7367 # Test whether the compiler implicitly links with -lc since on some
7368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7369 # to ld, don't add -lc before -lgcc.
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376 (eval $ac_compile) 2>&5
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; } 2>conftest.err; then
7382 libobjs=conftest.$ac_objext
7384 wl=$lt_prog_compiler_wl
7390 lt_save_allow_undefined_flag=$allow_undefined_flag
7391 allow_undefined_flag=
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7393 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }
7398 archive_cmds_need_lc=no
7400 archive_cmds_need_lc=yes
7402 allow_undefined_flag=$lt_save_allow_undefined_flag
7404 cat conftest.err 1>&5
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7408 $as_echo "$archive_cmds_need_lc" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7416 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7418 libname_spec='lib$name'
7426 shlibpath_overrides_runpath=unknown
7428 dynamic_linker="$host_os ld.so"
7429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7430 if test "$GCC" = yes; then
7431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7432 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7433 # if the path contains ";" then we assume it to be the separator
7434 # otherwise default to the standard path separator (i.e. ":") - it is
7435 # assumed that no part of a normal pathname contains ";" but that should
7436 # okay in the real world where ";" in dirpaths is itself problematic.
7437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7444 need_lib_prefix=unknown
7445 hardcode_into_libs=no
7447 # when you set need_version to no, make sure it does not cause -set_version
7448 # flags to be left without arguments
7449 need_version=unknown
7454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7455 shlibpath_var=LIBPATH
7457 # AIX 3 has no versioning support, so we append a major version to the name.
7458 soname_spec='${libname}${release}${shared_ext}$major'
7465 hardcode_into_libs=yes
7466 if test "$host_cpu" = ia64; then
7467 # AIX 5 supports IA64
7468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7469 shlibpath_var=LD_LIBRARY_PATH
7471 # With GCC up to 2.95.x, collect2 would create an import file
7472 # for dependence libraries. The import file would start with
7473 # the line `#! .'. This would cause the generated library to
7474 # depend on `.', always an invalid library. This was fixed in
7475 # development snapshots of GCC prior to 3.0.
7477 aix4 | aix4.[01] | aix4.[01].*)
7478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7480 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7488 # soname into executable. Probably we can add versioning support to
7489 # collect2, so additional links can be useful in future.
7490 if test "$aix_use_runtimelinking" = yes; then
7491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7492 # instead of lib<name>.a to let people know that these are not
7493 # typical AIX shared libraries.
7494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 # We preserve .a as extension for shared libraries through AIX4.2
7497 # and later when we are not doing run time linking.
7498 library_names_spec='${libname}${release}.a $libname.a'
7499 soname_spec='${libname}${release}${shared_ext}$major'
7501 shlibpath_var=LIBPATH
7506 library_names_spec='$libname.ixlibrary $libname.a'
7507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7508 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7512 library_names_spec='${libname}${shared_ext}'
7513 dynamic_linker="$host_os ld.so"
7514 shlibpath_var=LIBRARY_PATH
7520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7521 soname_spec='${libname}${release}${shared_ext}$major'
7522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7523 shlibpath_var=LD_LIBRARY_PATH
7524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7526 # the default ld.so.conf also contains /usr/contrib/lib and
7527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7528 # libtool to hard-code these into programs
7531 cygwin* | mingw* | pw32*)
7532 version_type=windows
7537 case $GCC,$host_os in
7538 yes,cygwin* | yes,mingw* | yes,pw32*)
7539 library_names_spec='$libname.dll.a'
7540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7541 postinstall_cmds='base_file=`basename \${file}`~
7542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7543 dldir=$destdir/`dirname \$dlpath`~
7544 test -d \$dldir || mkdir -p \$dldir~
7545 $install_prog $dir/$dlname \$dldir/$dlname'
7546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7547 dlpath=$dir/\$dldll~
7549 shlibpath_overrides_runpath=yes
7553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7554 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7555 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7558 # MinGW DLLs use traditional 'lib' prefix
7559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7562 # It is most probably a Windows format PATH printed by
7563 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7564 # path with ; separators, and with drive letters. We can handle the
7565 # drive letters (cygwin fileutils understands them), so leave them,
7566 # especially as we might pass files found there to a mingw objdump,
7567 # which wouldn't understand a cygwinified path. Ahh.
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7574 # pw32 DLLs use 'pw' prefix rather than 'lib'
7575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7581 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7584 dynamic_linker='Win32 ld.exe'
7585 # FIXME: first we should search . and the directory the executable is in
7589 darwin* | rhapsody*)
7590 dynamic_linker="$host_os dyld"
7594 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7595 soname_spec='${libname}${release}${major}$shared_ext'
7596 shlibpath_overrides_runpath=yes
7597 shlibpath_var=DYLD_LIBRARY_PATH
7598 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7599 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7600 if test "$GCC" = yes; then
7601 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7603 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7605 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7613 soname_spec='${libname}${release}${shared_ext}$major'
7614 shlibpath_var=LD_LIBRARY_PATH
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7626 soname_spec='${libname}${release}${shared_ext}$major'
7627 shlibpath_var=LD_LIBRARY_PATH
7628 shlibpath_overrides_runpath=no
7629 hardcode_into_libs=yes
7630 dynamic_linker='GNU ld.so'
7634 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7635 version_type=freebsd-$objformat
7636 case $version_type in
7638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7647 shlibpath_var=LD_LIBRARY_PATH
7650 shlibpath_overrides_runpath=yes
7652 freebsd3.01* | freebsdelf3.01*)
7653 shlibpath_overrides_runpath=yes
7654 hardcode_into_libs=yes
7657 shlibpath_overrides_runpath=no
7658 hardcode_into_libs=yes
7667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7668 soname_spec='${libname}${release}${shared_ext}$major'
7669 shlibpath_var=LD_LIBRARY_PATH
7670 hardcode_into_libs=yes
7673 hpux9* | hpux10* | hpux11*)
7674 # Give a soname corresponding to the major version so that dld.sl refuses to
7675 # link against other versions.
7682 hardcode_into_libs=yes
7683 dynamic_linker="$host_os dld.so"
7684 shlibpath_var=LD_LIBRARY_PATH
7685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687 soname_spec='${libname}${release}${shared_ext}$major'
7688 if test "X$HPUX_IA64_MODE" = X32; then
7689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7697 hardcode_into_libs=yes
7698 dynamic_linker="$host_os dld.sl"
7699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7702 soname_spec='${libname}${release}${shared_ext}$major'
7703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7708 dynamic_linker="$host_os dld.sl"
7709 shlibpath_var=SHLIB_PATH
7710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7712 soname_spec='${libname}${release}${shared_ext}$major'
7715 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7716 postinstall_cmds='chmod 555 $lib'
7719 irix5* | irix6* | nonstopux*)
7721 nonstopux*) version_type=nonstopux ;;
7723 if test "$lt_cv_prog_gnu_ld" = yes; then
7731 soname_spec='${libname}${release}${shared_ext}$major'
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7734 irix5* | nonstopux*)
7738 case $LD in # libtool.m4 will add one of these switches to LD
7739 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7740 libsuff= shlibsuff= libmagic=32-bit;;
7741 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7742 libsuff=32 shlibsuff=N32 libmagic=N32;;
7743 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7744 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7745 *) libsuff= shlibsuff= libmagic=never-match;;
7749 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7750 shlibpath_overrides_runpath=no
7751 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7752 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7753 hardcode_into_libs=yes
7756 # No shared lib support for Linux oldld, aout, or coff.
7757 linux*oldld* | linux*aout* | linux*coff*)
7761 # This must be Linux ELF.
7766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7767 soname_spec='${libname}${release}${shared_ext}$major'
7768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7769 shlibpath_var=LD_LIBRARY_PATH
7770 shlibpath_overrides_runpath=no
7771 # This implies no fast_install, which is unacceptable.
7772 # Some rework will be needed to allow for fast_install
7773 # before this can be enabled.
7774 hardcode_into_libs=yes
7776 # We used to test for /lib/ld.so.1 and disable shared libraries on
7777 # powerpc, because MkLinux only supported shared libraries with the
7778 # GNU dynamic linker. Since this was broken with cross compilers,
7779 # most powerpc-linux boxes support dynamic linking these days and
7780 # people can always --disable-shared, the test was removed, and we
7781 # assume the GNU/Linux dynamic linker is in use.
7782 dynamic_linker='GNU/Linux ld.so'
7789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792 dynamic_linker='NetBSD (a.out) ld.so'
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7795 soname_spec='${libname}${release}${shared_ext}$major'
7796 dynamic_linker='NetBSD ld.elf_so'
7798 shlibpath_var=LD_LIBRARY_PATH
7799 shlibpath_overrides_runpath=yes
7800 hardcode_into_libs=yes
7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=yes
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
7816 shlibpath_var=LD_LIBRARY_PATH
7817 shlibpath_overrides_runpath=yes
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7826 shlibpath_var=LD_LIBRARY_PATH
7827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7829 openbsd2.[89] | openbsd2.[89].*)
7830 shlibpath_overrides_runpath=no
7833 shlibpath_overrides_runpath=yes
7837 shlibpath_overrides_runpath=yes
7842 libname_spec='$name'
7845 library_names_spec='$libname${shared_ext} $libname.a'
7846 dynamic_linker='OS/2 ld.exe'
7847 shlibpath_var=LIBPATH
7850 osf3* | osf4* | osf5*)
7854 soname_spec='${libname}${release}${shared_ext}$major'
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856 shlibpath_var=LD_LIBRARY_PATH
7857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865 shlibpath_var=LD_LIBRARY_PATH
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 shlibpath_overrides_runpath=yes
7876 hardcode_into_libs=yes
7877 # ldd complains unless libraries are executable
7878 postinstall_cmds='chmod +x $lib'
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7885 shlibpath_var=LD_LIBRARY_PATH
7886 shlibpath_overrides_runpath=yes
7887 if test "$with_gnu_ld" = yes; then
7893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 shlibpath_var=LD_LIBRARY_PATH
7898 case $host_vendor in
7900 shlibpath_overrides_runpath=no
7902 export_dynamic_flag_spec='${wl}-Blargedynsym'
7903 runpath_var=LD_RUN_PATH
7911 shlibpath_overrides_runpath=no
7912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7918 if test -d /usr/nec ;then
7920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7921 soname_spec='$libname${shared_ext}.$major'
7922 shlibpath_var=LD_LIBRARY_PATH
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
7938 $as_echo "$dynamic_linker" >&6; }
7939 test "$dynamic_linker" = no && can_build_shared=no
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
7942 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
7944 if test -n "$hardcode_libdir_flag_spec" || \
7945 test -n "$runpath_var " || \
7946 test "X$hardcode_automatic"="Xyes" ; then
7948 # We can hardcode non-existant directories.
7949 if test "$hardcode_direct" != no &&
7950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7951 # have to relink, otherwise we might link with an installed library
7952 # when we should be linking with a yet-to-be-installed one
7953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7954 test "$hardcode_minus_L" != no; then
7955 # Linking always hardcodes the temporary library directory.
7956 hardcode_action=relink
7958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7959 hardcode_action=immediate
7962 # We cannot hardcode anything, or else we can only hardcode existing
7964 hardcode_action=unsupported
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
7967 $as_echo "$hardcode_action" >&6; }
7969 if test "$hardcode_action" = relink; then
7970 # Fast installation is not supported
7971 enable_fast_install=no
7972 elif test "$shlibpath_overrides_runpath" = yes ||
7973 test "$enable_shared" = no; then
7974 # Fast installation is not necessary
7975 enable_fast_install=needless
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
7981 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
7982 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7988 # FIXME - insert some real tests, host_os isn't really good enough
7991 if test -n "$STRIP" ; then
7992 striplib="$STRIP -x"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8007 if test "x$enable_dlopen" != xyes; then
8008 enable_dlopen=unknown
8009 enable_dlopen_self=unknown
8010 enable_dlopen_self_static=unknown
8017 lt_cv_dlopen="load_add_on"
8019 lt_cv_dlopen_self=yes
8023 lt_cv_dlopen="LoadLibrary"
8028 lt_cv_dlopen="dlopen"
8033 # if libdl is installed we need to link against it
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8036 if ${ac_cv_lib_dl_dlopen+:} false; then :
8037 $as_echo_n "(cached) " >&6
8039 ac_check_lib_save_LIBS=$LIBS
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 ac_cv_lib_dl_dlopen=yes
8062 ac_cv_lib_dl_dlopen=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8069 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8070 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8076 lt_cv_dlopen_self=yes
8083 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8084 if test "x$ac_cv_func_shl_load" = xyes; then :
8085 lt_cv_dlopen="shl_load"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8088 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8089 if ${ac_cv_lib_dld_shl_load+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 ac_check_lib_save_LIBS=$LIBS
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8097 /* Override any GCC internal prototype to avoid an error.
8098 Use char because int might match the return type of a GCC
8099 builtin and then its argument prototype would still apply. */
8112 if ac_fn_c_try_link "$LINENO"; then :
8113 ac_cv_lib_dld_shl_load=yes
8115 ac_cv_lib_dld_shl_load=no
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8122 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8123 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8124 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8126 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8127 if test "x$ac_cv_func_dlopen" = xyes; then :
8128 lt_cv_dlopen="dlopen"
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8132 if ${ac_cv_lib_dl_dlopen+:} false; then :
8133 $as_echo_n "(cached) " >&6
8135 ac_check_lib_save_LIBS=$LIBS
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 ac_cv_lib_dl_dlopen=yes
8158 ac_cv_lib_dl_dlopen=no
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8166 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8170 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8171 if ${ac_cv_lib_svld_dlopen+:} false; then :
8172 $as_echo_n "(cached) " >&6
8174 ac_check_lib_save_LIBS=$LIBS
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8179 /* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 ac_cv_lib_svld_dlopen=yes
8197 ac_cv_lib_svld_dlopen=no
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 LIBS=$ac_check_lib_save_LIBS
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8204 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8205 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8209 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8210 if ${ac_cv_lib_dld_dld_link+:} false; then :
8211 $as_echo_n "(cached) " >&6
8213 ac_check_lib_save_LIBS=$LIBS
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 ac_cv_lib_dld_dld_link=yes
8236 ac_cv_lib_dld_dld_link=no
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8243 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8244 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8266 if test "x$lt_cv_dlopen" != xno; then
8272 case $lt_cv_dlopen in
8274 save_CPPFLAGS="$CPPFLAGS"
8275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8277 save_LDFLAGS="$LDFLAGS"
8278 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8281 LIBS="$lt_cv_dlopen_libs $LIBS"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8284 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8285 if ${lt_cv_dlopen_self+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 if test "$cross_compiling" = yes; then :
8289 lt_cv_dlopen_self=cross
8291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8292 lt_status=$lt_dlunknown
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8304 # define LT_DLGLOBAL RTLD_GLOBAL
8307 # define LT_DLGLOBAL DL_GLOBAL
8309 # define LT_DLGLOBAL 0
8313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314 find out it does not work in some platform. */
8315 #ifndef LT_DLLAZY_OR_NOW
8317 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8320 # define LT_DLLAZY_OR_NOW DL_LAZY
8323 # define LT_DLLAZY_OR_NOW RTLD_NOW
8326 # define LT_DLLAZY_OR_NOW DL_NOW
8328 # define LT_DLLAZY_OR_NOW 0
8336 extern "C" void exit (int);
8339 void fnord() { int i=42;}
8342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343 int status = $lt_dlunknown;
8347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349 /* dlclose (self); */
8355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8356 (eval $ac_link) 2>&5
8358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8360 (./conftest; exit; ) 2>/dev/null
8363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8365 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8368 # compilation failed
8369 lt_cv_dlopen_self=no
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8377 $as_echo "$lt_cv_dlopen_self" >&6; }
8379 if test "x$lt_cv_dlopen_self" = xyes; then
8380 LDFLAGS="$LDFLAGS $link_static_flag"
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8382 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8383 if ${lt_cv_dlopen_self_static+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 if test "$cross_compiling" = yes; then :
8387 lt_cv_dlopen_self_static=cross
8389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8390 lt_status=$lt_dlunknown
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8392 "configure"
8393 #include "confdefs.h"
8402 # define LT_DLGLOBAL RTLD_GLOBAL
8405 # define LT_DLGLOBAL DL_GLOBAL
8407 # define LT_DLGLOBAL 0
8411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8412 find out it does not work in some platform. */
8413 #ifndef LT_DLLAZY_OR_NOW
8415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8418 # define LT_DLLAZY_OR_NOW DL_LAZY
8421 # define LT_DLLAZY_OR_NOW RTLD_NOW
8424 # define LT_DLLAZY_OR_NOW DL_NOW
8426 # define LT_DLLAZY_OR_NOW 0
8434 extern "C" void exit (int);
8437 void fnord() { int i=42;}
8440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8441 int status = $lt_dlunknown;
8445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8447 /* dlclose (self); */
8453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8454 (eval $ac_link) 2>&5
8456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8458 (./conftest; exit; ) 2>/dev/null
8461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8463 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8466 # compilation failed
8467 lt_cv_dlopen_self_static=no
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8475 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8478 CPPFLAGS="$save_CPPFLAGS"
8479 LDFLAGS="$save_LDFLAGS"
8484 case $lt_cv_dlopen_self in
8485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8486 *) enable_dlopen_self=unknown ;;
8489 case $lt_cv_dlopen_self_static in
8490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8491 *) enable_dlopen_self_static=unknown ;;
8496 # Report which librarie types wil actually be built
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8500 $as_echo "$can_build_shared" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8503 $as_echo_n "checking whether to build shared libraries... " >&6; }
8504 test "$can_build_shared" = "no" && enable_shared=no
8506 # On AIX, shared libraries and static libraries use the same namespace, and
8507 # are all built from PIC.
8510 test "$enable_shared" = yes && enable_static=no
8511 if test -n "$RANLIB"; then
8512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8513 postinstall_cmds='$RANLIB $lib'
8518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8519 test "$enable_shared" = yes && enable_static=no
8522 darwin* | rhapsody*)
8523 if test "$GCC" = yes; then
8524 archive_cmds_need_lc=no
8526 rhapsody* | darwin1.[012])
8527 allow_undefined_flag='-undefined suppress'
8530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8531 allow_undefined_flag='-flat_namespace -undefined suppress'
8533 case ${MACOSX_DEPLOYMENT_TARGET} in
8535 allow_undefined_flag='-flat_namespace -undefined suppress'
8538 allow_undefined_flag='-undefined dynamic_lookup'
8544 output_verbose_link_cmd='echo'
8545 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8546 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8548 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8549 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8551 hardcode_automatic=yes
8552 hardcode_shlibpath_var=unsupported
8553 whole_archive_flag_spec='-all_load $convenience'
8554 link_all_deplibs=yes
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8561 $as_echo "$enable_shared" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8564 $as_echo_n "checking whether to build static libraries... " >&6; }
8565 # Make sure either enable_shared or enable_static is yes.
8566 test "$enable_shared" = yes || enable_static=yes
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8568 $as_echo "$enable_static" >&6; }
8570 # The else clause should only fire when bootstrapping the
8571 # libtool distribution, otherwise you forgot to ship ltmain.sh
8572 # with your package, and you will get complaints that there are
8573 # no rules to generate ltmain.sh.
8574 if test -f "$ltmain"; then
8575 # See if we are running on zsh, and set the options which allow our commands through
8576 # without removal of \ escapes.
8577 if test -n "${ZSH_VERSION+set}" ; then
8578 setopt NO_GLOB_SUBST
8580 # Now quote all the things that may contain metacharacters while being
8581 # careful not to overquote the AC_SUBSTed values. We take copies of the
8582 # variables and quote the copies for generation of the libtool script.
8583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8587 deplibs_check_method reload_flag reload_cmds need_locks \
8588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8589 lt_cv_sys_global_symbol_to_c_name_address \
8590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8591 old_postinstall_cmds old_postuninstall_cmds \
8595 lt_prog_compiler_wl \
8596 lt_prog_compiler_pic \
8597 lt_prog_compiler_static \
8598 lt_prog_compiler_no_builtin_flag \
8599 export_dynamic_flag_spec \
8600 thread_safe_flag_spec \
8601 whole_archive_flag_spec \
8602 enable_shared_with_static_runtimes \
8604 old_archive_from_new_cmds \
8609 compiler_lib_search_path \
8611 archive_expsym_cmds \
8613 postuninstall_cmds \
8614 old_archive_from_expsyms_cmds \
8615 allow_undefined_flag \
8617 export_symbols_cmds \
8618 hardcode_libdir_flag_spec \
8619 hardcode_libdir_flag_spec_ld \
8620 hardcode_libdir_separator \
8621 hardcode_automatic \
8623 module_expsym_cmds \
8624 lt_cv_prog_compiler_c_o \
8629 old_archive_cmds | \
8630 old_archive_from_new_cmds | \
8632 archive_expsym_cmds | \
8634 module_expsym_cmds | \
8635 old_archive_from_expsyms_cmds | \
8636 export_symbols_cmds | \
8637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8638 postinstall_cmds | postuninstall_cmds | \
8639 old_postinstall_cmds | old_postuninstall_cmds | \
8640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8641 # Double-quote double-evaled strings.
8642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8651 *'\$0 --fallback-echo"')
8652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8657 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8660 $as_echo "$as_me: creating $ofile" >&6;}
8662 cat <<__EOF__ >> "$cfgfile"
8665 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8666 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8669 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8670 # Free Software Foundation, Inc.
8672 # This file is part of GNU Libtool:
8673 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8675 # This program is free software; you can redistribute it and/or modify
8676 # it under the terms of the GNU General Public License as published by
8677 # the Free Software Foundation; either version 2 of the License, or
8678 # (at your option) any later version.
8680 # This program is distributed in the hope that it will be useful, but
8681 # WITHOUT ANY WARRANTY; without even the implied warranty of
8682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8683 # General Public License for more details.
8685 # You should have received a copy of the GNU General Public License
8686 # along with this program; if not, write to the Free Software
8687 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8689 # As a special exception to the GNU General Public License, if you
8690 # distribute this file as part of a program that contains a
8691 # configuration script generated by Autoconf, you may include it under
8692 # the same distribution terms that you use for the rest of that program.
8694 # A sed program that does not truncate output.
8697 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8698 Xsed="$SED -e s/^X//"
8700 # The HP-UX ksh and POSIX shell print the target directory to stdout
8702 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8704 # The names of the tagged configurations supported by this script.
8707 # ### BEGIN LIBTOOL CONFIG
8709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8711 # Shell to use when invoking shell scripts.
8714 # Whether or not to build shared libraries.
8715 build_libtool_libs=$enable_shared
8717 # Whether or not to build static libraries.
8718 build_old_libs=$enable_static
8720 # Whether or not to add -lc for building shared libraries.
8721 build_libtool_need_lc=$archive_cmds_need_lc
8723 # Whether or not to disallow shared libs when runtime libs are static
8724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8726 # Whether or not to optimize for fast installation.
8727 fast_install=$enable_fast_install
8730 host_alias=$host_alias
8733 # An echo program that does not interpret backslashes.
8738 AR_FLAGS=$lt_AR_FLAGS
8743 # A language-specific compiler.
8746 # Is the compiler the GNU C compiler?
8752 # The linker used to build libraries.
8755 # Whether we need hard or soft links.
8758 # A BSD-compatible nm program.
8761 # A symbol stripping program
8764 # Used to examine libraries when file_magic_cmd begins "file"
8765 MAGIC_CMD=$MAGIC_CMD
8767 # Used on cygwin: DLL creation program.
8770 # Used on cygwin: object dumper.
8773 # Used on cygwin: assembler.
8776 # The name of the directory that contains temporary libtool files.
8779 # How to create reloadable object files.
8780 reload_flag=$lt_reload_flag
8781 reload_cmds=$lt_reload_cmds
8783 # How to pass a linker flag through the compiler.
8784 wl=$lt_lt_prog_compiler_wl
8786 # Object file suffix (normally "o").
8789 # Old archive suffix (normally "a").
8792 # Shared library suffix (normally ".so").
8795 # Executable file suffix (normally "").
8798 # Additional compiler flags for building library objects.
8799 pic_flag=$lt_lt_prog_compiler_pic
8802 # What is the maximum length of a command?
8803 max_cmd_len=$lt_cv_sys_max_cmd_len
8805 # Does compiler simultaneously support -c and -o options?
8806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8808 # Must we lock files when doing compilation ?
8809 need_locks=$lt_need_locks
8811 # Do we need the lib prefix for modules?
8812 need_lib_prefix=$need_lib_prefix
8814 # Do we need a version for libraries?
8815 need_version=$need_version
8817 # Whether dlopen is supported.
8818 dlopen_support=$enable_dlopen
8820 # Whether dlopen of programs is supported.
8821 dlopen_self=$enable_dlopen_self
8823 # Whether dlopen of statically linked programs is supported.
8824 dlopen_self_static=$enable_dlopen_self_static
8826 # Compiler flag to prevent dynamic linking.
8827 link_static_flag=$lt_lt_prog_compiler_static
8829 # Compiler flag to turn off builtin functions.
8830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8832 # Compiler flag to allow reflexive dlopens.
8833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8835 # Compiler flag to generate shared objects directly from archives.
8836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8838 # Compiler flag to generate thread-safe objects.
8839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8841 # Library versioning type.
8842 version_type=$version_type
8844 # Format of library name prefix.
8845 libname_spec=$lt_libname_spec
8847 # List of archive names. First name is the real one, the rest are links.
8848 # The last name is the one that the linker finds with -lNAME.
8849 library_names_spec=$lt_library_names_spec
8851 # The coded name of the library, if different from the real name.
8852 soname_spec=$lt_soname_spec
8854 # Commands used to build and install an old-style archive.
8856 old_archive_cmds=$lt_old_archive_cmds
8857 old_postinstall_cmds=$lt_old_postinstall_cmds
8858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8860 # Create an old-style archive from a shared archive.
8861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8863 # Create a temporary old-style archive to link instead of a shared archive.
8864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8866 # Commands used to build and install a shared archive.
8867 archive_cmds=$lt_archive_cmds
8868 archive_expsym_cmds=$lt_archive_expsym_cmds
8869 postinstall_cmds=$lt_postinstall_cmds
8870 postuninstall_cmds=$lt_postuninstall_cmds
8872 # Commands used to build a loadable module (assumed same as above if empty)
8873 module_cmds=$lt_module_cmds
8874 module_expsym_cmds=$lt_module_expsym_cmds
8876 # Commands to strip libraries.
8877 old_striplib=$lt_old_striplib
8878 striplib=$lt_striplib
8880 # Dependencies to place before the objects being linked to create a
8882 predep_objects=$lt_predep_objects
8884 # Dependencies to place after the objects being linked to create a
8886 postdep_objects=$lt_postdep_objects
8888 # Dependencies to place before the objects being linked to create a
8892 # Dependencies to place after the objects being linked to create a
8894 postdeps=$lt_postdeps
8896 # The library search path used internally by the compiler when linking
8898 compiler_lib_search_path=$lt_compiler_lib_search_path
8900 # Method to check whether dependent libraries are shared objects.
8901 deplibs_check_method=$lt_deplibs_check_method
8903 # Command to use when deplibs_check_method == file_magic.
8904 file_magic_cmd=$lt_file_magic_cmd
8906 # Flag that allows shared libraries with undefined symbols to be built.
8907 allow_undefined_flag=$lt_allow_undefined_flag
8909 # Flag that forces no undefined symbols.
8910 no_undefined_flag=$lt_no_undefined_flag
8912 # Commands used to finish a libtool library installation in a directory.
8913 finish_cmds=$lt_finish_cmds
8915 # Same as above, but a single script fragment to be evaled but not shown.
8916 finish_eval=$lt_finish_eval
8918 # Take the output of nm and produce a listing of raw symbols and C names.
8919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8921 # Transform the output of nm in a proper C declaration
8922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8924 # Transform the output of nm in a C name address pair
8925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8927 # This is the shared library runtime path variable.
8928 runpath_var=$runpath_var
8930 # This is the shared library path variable.
8931 shlibpath_var=$shlibpath_var
8933 # Is shlibpath searched before the hard-coded library search path?
8934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8936 # How to hardcode a shared library path into an executable.
8937 hardcode_action=$hardcode_action
8939 # Whether we should hardcode library paths into libraries.
8940 hardcode_into_libs=$hardcode_into_libs
8942 # Flag to hardcode \$libdir into a binary during linking.
8943 # This must work even if \$libdir does not exist.
8944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8946 # If ld is used when linking, flag to hardcode \$libdir into
8947 # a binary during linking. This must work even if \$libdir does
8949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8951 # Whether we need a single -rpath flag with a separated argument.
8952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8956 hardcode_direct=$hardcode_direct
8958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8960 hardcode_minus_L=$hardcode_minus_L
8962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8963 # the resulting binary.
8964 hardcode_shlibpath_var=$hardcode_shlibpath_var
8966 # Set to yes if building a shared library automatically hardcodes DIR into the library
8967 # and all subsequent libraries and executables linked against it.
8968 hardcode_automatic=$hardcode_automatic
8970 # Variables whose values should be saved in libtool wrapper scripts and
8971 # restored at relink time.
8972 variables_saved_for_relink="$variables_saved_for_relink"
8974 # Whether libtool must link a program against all its dependency libraries.
8975 link_all_deplibs=$link_all_deplibs
8977 # Compile-time system search path for libraries
8978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8980 # Run-time system search path for libraries
8981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8983 # Fix the shell variable \$srcfile for the compiler.
8984 fix_srcfile_path="$fix_srcfile_path"
8986 # Set to yes if exported symbols are required.
8987 always_export_symbols=$always_export_symbols
8989 # The commands to list exported symbols.
8990 export_symbols_cmds=$lt_export_symbols_cmds
8992 # The commands to extract the exported symbol list from a shared archive.
8993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8995 # Symbols that should not be listed in the preloaded symbols.
8996 exclude_expsyms=$lt_exclude_expsyms
8998 # Symbols that must always be exported.
8999 include_expsyms=$lt_include_expsyms
9001 # ### END LIBTOOL CONFIG
9008 cat <<\EOF >> "$cfgfile"
9010 # AIX sometimes has problems with the GCC collect2 program. For some
9011 # reason, if we set the COLLECT_NAMES environment variable, the problems
9012 # vanish in a puff of smoke.
9013 if test "X${COLLECT_NAMES+set}" != Xset; then
9015 export COLLECT_NAMES
9021 # We use sed instead of cat because bash on DJGPP gets confused if
9022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9023 # text mode, it properly converts lines to CR/LF. This bash problem
9024 # is reportedly fixed, but why not run on old versions too?
9025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9027 mv -f "$cfgfile" "$ofile" || \
9028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9032 # If there is no Makefile yet, we rely on a make rule to execute
9033 # `config.status --recheck' to rerun these tests and create the
9034 # libtool script then.
9035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9036 if test -f "$ltmain_in"; then
9037 test -f Makefile && make "$ltmain"
9043 ac_cpp='$CPP $CPPFLAGS'
9044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051 # Check whether --with-tags was given.
9052 if test "${with_tags+set}" = set; then :
9053 withval=$with_tags; tagnames="$withval"
9057 if test -f "$ltmain" && test -n "$tagnames"; then
9058 if test ! -f "${ofile}"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9060 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9063 if test -z "$LTCC"; then
9064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9065 if test -z "$LTCC"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9067 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9070 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9074 # Extract list of available tagged configurations in $ofile.
9075 # Note that this assumes the entire list is on one line.
9076 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9079 for tagname in $tagnames; do
9081 # Check whether tagname contains only valid characters
9082 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9084 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9088 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9090 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9093 # Update the list of available tags.
9094 if test -n "$tagname"; then
9095 echo appending configuration tag \"$tagname\" to $ofile
9099 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9109 archive_cmds_need_lc_CXX=no
9110 allow_undefined_flag_CXX=
9111 always_export_symbols_CXX=no
9112 archive_expsym_cmds_CXX=
9113 export_dynamic_flag_spec_CXX=
9114 hardcode_direct_CXX=no
9115 hardcode_libdir_flag_spec_CXX=
9116 hardcode_libdir_flag_spec_ld_CXX=
9117 hardcode_libdir_separator_CXX=
9118 hardcode_minus_L_CXX=no
9119 hardcode_automatic_CXX=no
9121 module_expsym_cmds_CXX=
9122 link_all_deplibs_CXX=unknown
9123 old_archive_cmds_CXX=$old_archive_cmds
9124 no_undefined_flag_CXX=
9125 whole_archive_flag_spec_CXX=
9126 enable_shared_with_static_runtimes_CXX=no
9128 # Dependencies to place before and after the object being linked:
9130 postdep_objects_CXX=
9133 compiler_lib_search_path_CXX=
9135 # Source file extension for C++ test sources.
9138 # Object file extension for compiled C++ test sources.
9142 # Code to be used in simple compile tests
9143 lt_simple_compile_test_code="int some_variable = 0;\n"
9145 # Code to be used in simple link tests
9146 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9150 # If no C compiler was specified, use CC.
9153 # Allow CC to be a program name with arguments.
9157 # Allow CC to be a program name with arguments.
9162 lt_save_with_gnu_ld=$with_gnu_ld
9163 lt_save_path_LD=$lt_cv_path_LD
9164 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9165 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9167 unset lt_cv_prog_gnu_ld
9169 if test -n "${lt_cv_path_LDCXX+set}"; then
9170 lt_cv_path_LD=$lt_cv_path_LDCXX
9174 test -z "${LDCXX+set}" || LD=$LDCXX
9178 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9180 # We don't want -fno-exception wen compiling C++ code, so set the
9181 # no_builtin_flag separately
9182 if test "$GXX" = yes; then
9183 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9185 lt_prog_compiler_no_builtin_flag_CXX=
9188 if test "$GXX" = yes; then
9189 # Set up default GNU C++ configuration
9192 # Check whether --with-gnu-ld was given.
9193 if test "${with_gnu_ld+set}" = set; then :
9194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9200 if test "$GCC" = yes; then
9201 # Check if gcc -print-prog-name=ld gives a path.
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9203 $as_echo_n "checking for ld used by $CC... " >&6; }
9206 # gcc leaves a trailing carriage return which upsets mingw
9207 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9209 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9212 # Accept absolute paths.
9214 re_direlt='/[^/][^/]*/\.\./'
9215 # Canonicalize the pathname of ld
9216 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9217 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9218 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9220 test -z "$LD" && LD="$ac_prog"
9223 # If it fails, then pretend we aren't using GCC.
9227 # If it is relative, then search for the first ld in PATH.
9231 elif test "$with_gnu_ld" = yes; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9233 $as_echo_n "checking for GNU ld... " >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9236 $as_echo_n "checking for non-GNU ld... " >&6; }
9238 if ${lt_cv_path_LD+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 if test -z "$LD"; then
9242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9243 for ac_dir in $PATH; do
9245 test -z "$ac_dir" && ac_dir=.
9246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9247 lt_cv_path_LD="$ac_dir/$ac_prog"
9248 # Check to see if the program is GNU ld. I'd rather use --version,
9249 # but apparently some GNU ld's only accept -v.
9250 # Break only if it was the GNU/non-GNU ld that we prefer.
9251 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9252 *GNU* | *'with BFD'*)
9253 test "$with_gnu_ld" != no && break
9256 test "$with_gnu_ld" != yes && break
9263 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9268 if test -n "$LD"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9270 $as_echo "$LD" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9277 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9278 if ${lt_cv_prog_gnu_ld+:} false; then :
9279 $as_echo_n "(cached) " >&6
9281 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9282 case `$LD -v 2>&1 </dev/null` in
9283 *GNU* | *'with BFD'*)
9284 lt_cv_prog_gnu_ld=yes
9287 lt_cv_prog_gnu_ld=no
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9292 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9293 with_gnu_ld=$lt_cv_prog_gnu_ld
9297 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9298 # archiving commands below assume that GNU ld is being used.
9299 if test "$with_gnu_ld" = yes; then
9300 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9307 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9308 # investigate it a little bit more. (MM)
9311 # ancient GNU ld didn't support --whole-archive et. al.
9312 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9313 grep 'no-whole-archive' > /dev/null; then
9314 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9316 whole_archive_flag_spec_CXX=
9322 # A generic and very simple default shared library creation
9323 # command for GNU C++ for the case where it uses the native
9324 # linker, instead of GNU ld. If possible, this setting should
9325 # overridden to take advantage of the native linker features on
9326 # the platform it is being used on.
9327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9330 # Commands to make compiler produce verbose output that lists
9331 # what "hidden" libraries, object files and flags are used when
9332 # linking a shared library.
9333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9341 # PORTME: fill in a description of your system's C++ link characteristics
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9347 # FIXME: insert proper C++ library support
9351 if test "$host_cpu" = ia64; then
9352 # On IA64, the linker does run time linking by default, so we don't
9353 # have to do anything special.
9354 aix_use_runtimelinking=no
9355 exp_sym_flag='-Bexport'
9358 aix_use_runtimelinking=no
9360 # Test if we are trying to use run time linking or normal
9361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9362 # need to do runtime linking.
9363 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9364 for ld_flag in $LDFLAGS; do
9367 aix_use_runtimelinking=yes
9374 exp_sym_flag='-bexport'
9375 no_entry_flag='-bnoentry'
9378 # When large executables or shared objects are built, AIX ld can
9379 # have problems creating the table of contents. If linking a library
9380 # or program results in "error TOC overflow" add -mminimal-toc to
9381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9385 hardcode_direct_CXX=yes
9386 hardcode_libdir_separator_CXX=':'
9387 link_all_deplibs_CXX=yes
9389 if test "$GXX" = yes; then
9390 case $host_os in aix4.012|aix4.012.*)
9391 # We only want to do this on AIX 4.2 and lower, the check
9392 # below for broken collect2 doesn't work under 4.3+
9393 collect2name=`${CC} -print-prog-name=collect2`
9394 if test -f "$collect2name" && \
9395 strings "$collect2name" | grep resolve_lib_name >/dev/null
9397 # We have reworked collect2
9398 hardcode_direct_CXX=yes
9400 # We have old collect2
9401 hardcode_direct_CXX=unsupported
9402 # It fails to find uninstalled libraries when the uninstalled
9403 # path is not listed in the libpath. Setting hardcode_minus_L
9404 # to unsupported forces relinking
9405 hardcode_minus_L_CXX=yes
9406 hardcode_libdir_flag_spec_CXX='-L$libdir'
9407 hardcode_libdir_separator_CXX=
9410 shared_flag='-shared'
9413 if test "$host_cpu" = ia64; then
9414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9415 # chokes on -Wl,-G. The following line is correct:
9418 if test "$aix_use_runtimelinking" = yes; then
9419 shared_flag='${wl}-G'
9421 shared_flag='${wl}-bM:SRE'
9426 # It seems that -bexpall does not export symbols beginning with
9427 # underscore (_), so it is better to generate a list of symbols to export.
9428 always_export_symbols_CXX=yes
9429 if test "$aix_use_runtimelinking" = yes; then
9430 # Warning - without using the other runtime loading flags (-brtl),
9431 # -berok will link without error, but may produce a broken library.
9432 allow_undefined_flag_CXX='-berok'
9433 # Determine the default libpath from the value encoded in an empty executable.
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9445 if ac_fn_cxx_try_link "$LINENO"; then :
9447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9449 # Check for a 64-bit object if we didn't find anything.
9450 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9459 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9461 if test "$host_cpu" = ia64; then
9462 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9463 allow_undefined_flag_CXX="-z nodefs"
9464 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9466 # Determine the default libpath from the value encoded in an empty executable.
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9478 if ac_fn_cxx_try_link "$LINENO"; then :
9480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9482 # Check for a 64-bit object if we didn't find anything.
9483 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9491 # Warning - without using the other run time loading flags,
9492 # -berok will link without error, but may produce a broken library.
9493 no_undefined_flag_CXX=' ${wl}-bernotok'
9494 allow_undefined_flag_CXX=' ${wl}-berok'
9495 # -bexpall does not export symbols beginning with underscore (_)
9496 always_export_symbols_CXX=yes
9497 # Exported symbols can be pulled into shared objects from archives
9498 whole_archive_flag_spec_CXX=' '
9499 archive_cmds_need_lc_CXX=yes
9500 # This is similar to how AIX traditionally builds it's shared libraries.
9501 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9506 case $cc_basename in
9508 # FIXME: insert proper C++ library support
9514 cygwin* | mingw* | pw32*)
9515 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9516 # as there is no search path for DLLs.
9517 hardcode_libdir_flag_spec_CXX='-L$libdir'
9518 allow_undefined_flag_CXX=unsupported
9519 always_export_symbols_CXX=no
9520 enable_shared_with_static_runtimes_CXX=yes
9522 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9524 # If the export-symbols file already is a .def file (1st line
9525 # is EXPORTS), use it as is; otherwise, prepend...
9526 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9527 cp $export_symbols $output_objdir/$soname.def;
9529 echo EXPORTS > $output_objdir/$soname.def;
9530 cat $export_symbols >> $output_objdir/$soname.def;
9532 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9538 darwin* | rhapsody*)
9539 if test "$GXX" = yes; then
9540 archive_cmds_need_lc_CXX=no
9542 rhapsody* | darwin1.[012])
9543 allow_undefined_flag_CXX='-undefined suppress'
9546 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9547 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9549 case ${MACOSX_DEPLOYMENT_TARGET} in
9551 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9554 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9560 lt_int_apple_cc_single_mod=no
9561 output_verbose_link_cmd='echo'
9562 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9563 lt_int_apple_cc_single_mod=yes
9565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9566 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9568 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9570 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9574 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9576 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9578 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9579 hardcode_direct_CXX=no
9580 hardcode_automatic_CXX=yes
9581 hardcode_shlibpath_var_CXX=unsupported
9582 whole_archive_flag_spec_CXX='-all_load $convenience'
9583 link_all_deplibs_CXX=yes
9590 case $cc_basename in
9592 # FIXME: insert proper C++ library support
9596 # Green Hills C++ Compiler
9597 # FIXME: insert proper C++ library support
9601 # FIXME: insert proper C++ library support
9607 # C++ shared libraries reported to be fairly broken before switch to ELF
9611 archive_cmds_need_lc_CXX=no
9613 freebsd* | kfreebsd*-gnu)
9614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9622 hardcode_libdir_separator_CXX=:
9623 export_dynamic_flag_spec_CXX='${wl}-E'
9624 hardcode_direct_CXX=yes
9625 hardcode_minus_L_CXX=yes # Not in the search PATH,
9626 # but as the default
9627 # location of the library.
9629 case $cc_basename in
9631 # FIXME: insert proper C++ library support
9635 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'
9636 # Commands to make compiler produce verbose output that lists
9637 # what "hidden" libraries, object files and flags are used when
9638 # linking a shared library.
9640 # There doesn't appear to be a way to prevent this compiler from
9641 # explicitly linking system object files so we need to strip them
9642 # from the output so that they don't get included in the library
9644 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; echo $list'
9647 if test "$GXX" = yes; then
9648 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
9650 # FIXME: insert proper C++ library support
9657 if test $with_gnu_ld = no; then
9660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9661 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9662 hardcode_libdir_separator_CXX=:
9665 hardcode_libdir_flag_spec_CXX='-L$libdir'
9668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9669 hardcode_libdir_separator_CXX=:
9670 export_dynamic_flag_spec_CXX='${wl}-E'
9676 hardcode_direct_CXX=no
9677 hardcode_shlibpath_var_CXX=no
9680 hardcode_direct_CXX=no
9681 hardcode_shlibpath_var_CXX=no
9682 hardcode_minus_L_CXX=yes # Not in the search PATH,
9683 # but as the default
9684 # location of the library.
9687 hardcode_direct_CXX=yes
9688 hardcode_minus_L_CXX=yes # Not in the search PATH,
9689 # but as the default
9690 # location of the library.
9694 case $cc_basename in
9696 # FIXME: insert proper C++ library support
9702 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9708 # Commands to make compiler produce verbose output that lists
9709 # what "hidden" libraries, object files and flags are used when
9710 # linking a shared library.
9712 # There doesn't appear to be a way to prevent this compiler from
9713 # explicitly linking system object files so we need to strip them
9714 # from the output so that they don't get included in the library
9716 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; echo $list'
9719 if test "$GXX" = yes; then
9720 if test $with_gnu_ld = no; then
9723 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9731 # FIXME: insert proper C++ library support
9738 case $cc_basename in
9741 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9743 # Archives containing C++ object files must be created using
9744 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9745 # necessary to make sure instantiated templates are included
9747 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9750 if test "$GXX" = yes; then
9751 if test "$with_gnu_ld" = no; then
9752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9757 link_all_deplibs_CXX=yes
9760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9761 hardcode_libdir_separator_CXX=:
9764 case $cc_basename in
9766 # Kuck and Associates, Inc. (KAI) C++ Compiler
9768 # KCC will only create a shared library if the output file
9769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9770 # to its proper name (with version) after linking.
9771 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'
9772 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'
9773 # Commands to make compiler produce verbose output that lists
9774 # what "hidden" libraries, object files and flags are used when
9775 # linking a shared library.
9777 # There doesn't appear to be a way to prevent this compiler from
9778 # explicitly linking system object files so we need to strip them
9779 # from the output so that they don't get included in the library
9781 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; echo $list'
9783 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9786 # Archives containing C++ object files must be created using
9787 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9788 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9793 archive_cmds_need_lc_CXX=no
9794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795 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'
9796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9798 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9802 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 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'
9805 runpath_var=LD_RUN_PATH
9806 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9807 hardcode_libdir_separator_CXX=:
9809 # Commands to make compiler produce verbose output that lists
9810 # what "hidden" libraries, object files and flags are used when
9811 # linking a shared library.
9813 # There doesn't appear to be a way to prevent this compiler from
9814 # explicitly linking system object files so we need to strip them
9815 # from the output so that they don't get included in the library
9817 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
9822 # FIXME: insert proper C++ library support
9826 # FIXME: insert proper C++ library support
9830 case $cc_basename in
9832 # FIXME: insert proper C++ library support
9836 # FIXME: insert proper C++ library support
9842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9843 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9845 hardcode_libdir_flag_spec_CXX='-R$libdir'
9846 hardcode_direct_CXX=yes
9847 hardcode_shlibpath_var_CXX=no
9849 # Workaround some broken pre-1.5 toolchains
9850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9853 case $cc_basename in
9855 # Kuck and Associates, Inc. (KAI) C++ Compiler
9857 # KCC will only create a shared library if the output file
9858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9859 # to its proper name (with version) after linking.
9860 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'
9862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9863 hardcode_libdir_separator_CXX=:
9865 # Archives containing C++ object files must be created using
9866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9871 # Rational C++ 2.4.1
9872 # FIXME: insert proper C++ library support
9876 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9877 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9880 hardcode_libdir_separator_CXX=:
9882 # Commands to make compiler produce verbose output that lists
9883 # what "hidden" libraries, object files and flags are used when
9884 # linking a shared library.
9886 # There doesn't appear to be a way to prevent this compiler from
9887 # explicitly linking system object files so we need to strip them
9888 # from the output so that they don't get included in the library
9890 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
9893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9895 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9898 hardcode_libdir_separator_CXX=:
9900 # Commands to make compiler produce verbose output that lists
9901 # what "hidden" libraries, object files and flags are used when
9902 # linking a shared library.
9903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9906 # FIXME: insert proper C++ library support
9913 case $cc_basename in
9915 # Kuck and Associates, Inc. (KAI) C++ Compiler
9917 # KCC will only create a shared library if the output file
9918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9919 # to its proper name (with version) after linking.
9920 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'
9922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9923 hardcode_libdir_separator_CXX=:
9925 # Archives containing C++ object files must be created using
9926 # the KAI C++ compiler.
9927 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9930 # Rational C++ 2.4.1
9931 # FIXME: insert proper C++ library support
9935 allow_undefined_flag_CXX=' -expect_unresolved \*'
9936 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9937 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9938 echo "-hidden">> $lib.exp~
9939 $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 $objdir/so_locations -o $lib~
9942 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9943 hardcode_libdir_separator_CXX=:
9945 # Commands to make compiler produce verbose output that lists
9946 # what "hidden" libraries, object files and flags are used when
9947 # linking a shared library.
9949 # There doesn't appear to be a way to prevent this compiler from
9950 # explicitly linking system object files so we need to strip them
9951 # from the output so that they don't get included in the library
9953 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
9956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9958 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9961 hardcode_libdir_separator_CXX=:
9963 # Commands to make compiler produce verbose output that lists
9964 # what "hidden" libraries, object files and flags are used when
9965 # linking a shared library.
9966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9969 # FIXME: insert proper C++ library support
9976 # FIXME: insert proper C++ library support
9980 archive_cmds_need_lc_CXX=no
9981 case $cc_basename in
9983 # FIXME: insert proper C++ library support
9987 # FIXME: insert proper C++ library support
9993 case $cc_basename in
9996 # FIXME: insert proper C++ library support
10001 # FIXME: insert proper C++ library support
10005 # FIXME: insert proper C++ library support
10011 case $cc_basename in
10013 # Sun C++ 4.2, 5.x and Centerline C++
10014 no_undefined_flag_CXX=' -zdefs'
10015 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10016 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10017 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10019 hardcode_libdir_flag_spec_CXX='-R$libdir'
10020 hardcode_shlibpath_var_CXX=no
10022 solaris2.0-5 | solaris2.0-5.*) ;;
10024 # The C++ compiler is used as linker so we must use $wl
10025 # flag to pass the commands to the underlying system
10027 # Supported since Solaris 2.6 (maybe 2.5.1?)
10028 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10031 link_all_deplibs_CXX=yes
10033 # Commands to make compiler produce verbose output that lists
10034 # what "hidden" libraries, object files and flags are used when
10035 # linking a shared library.
10037 # There doesn't appear to be a way to prevent this compiler from
10038 # explicitly linking system object files so we need to strip them
10039 # from the output so that they don't get included in the library
10041 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10043 # Archives containing C++ object files must be created using
10044 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10045 # necessary to make sure instantiated templates are included
10047 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10050 # Green Hills C++ Compiler
10051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10053 # The C++ compiler must be used to create the archive.
10054 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10057 # GNU C++ compiler with Solaris linker
10058 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10059 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10060 if $CC --version | grep -v '^2\.7' > /dev/null; then
10061 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10062 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10063 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10068 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10070 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10072 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10074 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10076 # Commands to make compiler produce verbose output that lists
10077 # what "hidden" libraries, object files and flags are used when
10078 # linking a shared library.
10079 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10082 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10087 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10088 archive_cmds_need_lc_CXX=no
10091 case $cc_basename in
10093 # NonStop-UX NCC 3.20
10094 # FIXME: insert proper C++ library support
10098 # FIXME: insert proper C++ library support
10104 # FIXME: insert proper C++ library support
10108 # FIXME: insert proper C++ library support
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10113 $as_echo "$ld_shlibs_CXX" >&6; }
10114 test "$ld_shlibs_CXX" = no && can_build_shared=no
10120 ## There is no encapsulation within the following macros, do not change
10121 ## the running order or otherwise move them around unless you know exactly
10122 ## what you are doing...
10124 cat > conftest.$ac_ext <<EOF
10128 Foo (void) { a = 0; }
10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10135 (eval $ac_compile) 2>&5
10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138 test $ac_status = 0; }; then
10139 # Parse the compiler output and extract the necessary
10140 # objects, libraries and library flags.
10142 # Sentinel used to keep track of whether or not we are before
10143 # the conftest object file.
10144 pre_test_object_deps_done=no
10146 # The `*' in the case matches for architectures that use `case' in
10147 # $output_verbose_cmd can trigger glob expansion during the loop
10148 # eval without this substitution.
10149 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10151 for p in `eval $output_verbose_link_cmd`; do
10155 # Some compilers place space between "-{L,R}" and the path.
10156 # Remove the space.
10157 if test $p = "-L" \
10158 || test $p = "-R"; then
10165 if test "$pre_test_object_deps_done" = no; then
10168 # Internal compiler library paths should come after those
10169 # provided the user. The postdeps already come after the
10170 # user supplied libs so there is no need to process them.
10171 if test -z "$compiler_lib_search_path_CXX"; then
10172 compiler_lib_search_path_CXX="${prev}${p}"
10174 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10177 # The "-l" case would never come before the object being
10178 # linked, so don't bother handling this case.
10181 if test -z "$postdeps_CXX"; then
10182 postdeps_CXX="${prev}${p}"
10184 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10190 # This assumes that the test object file only shows up
10191 # once in the compiler output.
10192 if test "$p" = "conftest.$objext"; then
10193 pre_test_object_deps_done=yes
10197 if test "$pre_test_object_deps_done" = no; then
10198 if test -z "$predep_objects_CXX"; then
10199 predep_objects_CXX="$p"
10201 predep_objects_CXX="$predep_objects_CXX $p"
10204 if test -z "$postdep_objects_CXX"; then
10205 postdep_objects_CXX="$p"
10207 postdep_objects_CXX="$postdep_objects_CXX $p"
10212 *) ;; # Ignore the rest.
10220 echo "libtool.m4: error: problem compiling CXX test program"
10223 $rm -f confest.$objext
10225 case " $postdeps_CXX " in
10226 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10229 lt_prog_compiler_wl_CXX=
10230 lt_prog_compiler_pic_CXX=
10231 lt_prog_compiler_static_CXX=
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10236 # C++ specific cases for pic, static, wl, etc.
10237 if test "$GXX" = yes; then
10238 lt_prog_compiler_wl_CXX='-Wl,'
10239 lt_prog_compiler_static_CXX='-static'
10243 # All AIX code is PIC.
10244 if test "$host_cpu" = ia64; then
10245 # AIX 5 now supports IA64 processor
10246 lt_prog_compiler_static_CXX='-Bstatic'
10250 # FIXME: we need at least 68020 code to build shared libraries, but
10251 # adding the `-m68020' flag to GCC prevents building anything better,
10253 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10255 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10256 # PIC is the default for these OSes.
10258 mingw* | os2* | pw32*)
10259 # This hack is so that the source file can tell whether it is being
10260 # built for inclusion in a dll (and should export symbols for example).
10261 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10263 darwin* | rhapsody*)
10264 # PIC is the default on this platform
10265 # Common symbols not allowed in MH_DYLIB files
10266 lt_prog_compiler_pic_CXX='-fno-common'
10269 # DJGPP does not support shared libraries at all
10270 lt_prog_compiler_pic_CXX=
10273 if test -d /usr/nec; then
10274 lt_prog_compiler_pic_CXX=-Kconform_pic
10278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10279 # not for PA HP-UX.
10280 case "$host_cpu" in
10284 lt_prog_compiler_pic_CXX='-fPIC'
10289 lt_prog_compiler_pic_CXX='-fPIC'
10295 # All AIX code is PIC.
10296 if test "$host_cpu" = ia64; then
10297 # AIX 5 now supports IA64 processor
10298 lt_prog_compiler_static_CXX='-Bstatic'
10300 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10304 case $cc_basename in
10306 # Green Hills C++ Compiler
10307 # _LT_AC_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"
10312 case $cc_basename in
10314 lt_prog_compiler_pic_CXX='-KPIC'
10317 # Green Hills C++ Compiler
10318 lt_prog_compiler_pic_CXX='-pic'
10324 freebsd* | kfreebsd*-gnu)
10325 # FreeBSD uses GNU C++
10327 hpux9* | hpux10* | hpux11*)
10328 case $cc_basename in
10330 lt_prog_compiler_wl_CXX='-Wl,'
10331 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10332 if test "$host_cpu" != ia64; then
10333 lt_prog_compiler_pic_CXX='+Z'
10337 lt_prog_compiler_wl_CXX='-Wl,'
10338 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10339 case "$host_cpu" in
10344 lt_prog_compiler_pic_CXX='+Z'
10352 irix5* | irix6* | nonstopux*)
10353 case $cc_basename in
10355 lt_prog_compiler_wl_CXX='-Wl,'
10356 lt_prog_compiler_static_CXX='-non_shared'
10357 # CC pic flag -KPIC is the default.
10364 case $cc_basename in
10367 lt_prog_compiler_wl_CXX='--backend -Wl,'
10368 lt_prog_compiler_pic_CXX='-fPIC'
10372 lt_prog_compiler_wl_CXX='-Wl,'
10373 lt_prog_compiler_pic_CXX='-KPIC'
10374 lt_prog_compiler_static_CXX='-static'
10378 # Make sure the PIC flag is empty. It appears that all Alpha
10379 # Linux and Compaq Tru64 Unix objects are PIC.
10380 lt_prog_compiler_pic_CXX=
10381 lt_prog_compiler_static_CXX='-non_shared'
10392 case $cc_basename in
10394 lt_prog_compiler_pic_CXX='-W c,exportall'
10402 osf3* | osf4* | osf5*)
10403 case $cc_basename in
10405 lt_prog_compiler_wl_CXX='--backend -Wl,'
10408 # Rational C++ 2.4.1
10409 lt_prog_compiler_pic_CXX='-pic'
10412 # Digital/Compaq C++
10413 lt_prog_compiler_wl_CXX='-Wl,'
10414 # Make sure the PIC flag is empty. It appears that all Alpha
10415 # Linux and Compaq Tru64 Unix objects are PIC.
10416 lt_prog_compiler_pic_CXX=
10417 lt_prog_compiler_static_CXX='-non_shared'
10426 case $cc_basename in
10428 lt_prog_compiler_pic_CXX='-fPIC'
10435 case $cc_basename in
10437 # Sun C++ 4.2, 5.x and Centerline C++
10438 lt_prog_compiler_pic_CXX='-KPIC'
10439 lt_prog_compiler_static_CXX='-Bstatic'
10440 lt_prog_compiler_wl_CXX='-Qoption ld '
10443 # Green Hills C++ Compiler
10444 lt_prog_compiler_pic_CXX='-PIC'
10451 case $cc_basename in
10454 lt_prog_compiler_pic_CXX='-pic'
10455 lt_prog_compiler_static_CXX='-Bstatic'
10459 lt_prog_compiler_pic_CXX='-pic'
10466 case $cc_basename in
10468 # NonStop-UX NCC 3.20
10469 lt_prog_compiler_pic_CXX='-KPIC'
10480 lt_prog_compiler_can_build_shared_CXX=no
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
10486 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
10489 # Check to make sure the PIC flag actually works.
10491 if test -n "$lt_prog_compiler_pic_CXX"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
10495 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
10496 $as_echo_n "(cached) " >&6
10498 lt_prog_compiler_pic_works_CXX=no
10499 ac_outfile=conftest.$ac_objext
10500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10501 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10502 # Insert the option either (1) after the last *FLAGS variable, or
10503 # (2) before a word containing "conftest.", or (3) at the end.
10504 # Note that $ac_compile itself does not contain backslashes and begins
10505 # with a dollar sign (not a hyphen), so the echo should work correctly.
10506 # The option is referenced via a variable to avoid confusing sed.
10507 lt_compile=`echo "$ac_compile" | $SED \
10508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10510 -e 's:$: $lt_compiler_flag:'`
10511 (eval echo "\"\$as_me:10511: $lt_compile\"" >&5)
10512 (eval "$lt_compile" 2>conftest.err)
10514 cat conftest.err >&5
10515 echo "$as_me:10515: \$? = $ac_status" >&5
10516 if (exit $ac_status) && test -s "$ac_outfile"; then
10517 # The compiler can only warn and ignore the option if not recognized
10518 # So say no if there are warnings
10519 if test ! -s conftest.err; then
10520 lt_prog_compiler_pic_works_CXX=yes
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
10527 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
10529 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10530 case $lt_prog_compiler_pic_CXX in
10532 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10535 lt_prog_compiler_pic_CXX=
10536 lt_prog_compiler_can_build_shared_CXX=no
10541 # For platforms which do not support PIC, -DPIC is meaningless:
10543 lt_prog_compiler_pic_CXX=
10546 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10551 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10552 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
10553 $as_echo_n "(cached) " >&6
10555 lt_cv_prog_compiler_c_o_CXX=no
10556 $rm -r conftest 2>/dev/null
10560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10562 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10563 # that will create temporary files in the current directory regardless of
10564 # the output directory. Thus, making CWD read-only will cause this test
10565 # to fail, enabling locking or at least warning the user not to do parallel
10569 lt_compiler_flag="-o out/conftest2.$ac_objext"
10570 # Insert the option either (1) after the last *FLAGS variable, or
10571 # (2) before a word containing "conftest.", or (3) at the end.
10572 # Note that $ac_compile itself does not contain backslashes and begins
10573 # with a dollar sign (not a hyphen), so the echo should work correctly.
10574 lt_compile=`echo "$ac_compile" | $SED \
10575 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10577 -e 's:$: $lt_compiler_flag:'`
10578 (eval echo "\"\$as_me:10578: $lt_compile\"" >&5)
10579 (eval "$lt_compile" 2>out/conftest.err)
10581 cat out/conftest.err >&5
10582 echo "$as_me:10582: \$? = $ac_status" >&5
10583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10585 # The compiler can only warn and ignore the option if not recognized
10586 # So say no if there are warnings
10587 if test ! -s out/conftest.err; then
10588 lt_cv_prog_compiler_c_o_CXX=yes
10593 # SGI C++ compiler will create directory out/ii_files/ for
10594 # template instantiation
10595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10596 $rm out/* && rmdir out
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10603 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
10606 hard_links="nottested"
10607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10608 # do not overwrite the value of need_locks provided by the user
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10610 $as_echo_n "checking if we can lock with hard links... " >&6; }
10613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10615 ln conftest.a conftest.b 2>&5 || hard_links=no
10616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10618 $as_echo "$hard_links" >&6; }
10619 if test "$hard_links" = no; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10621 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10634 # If we're using GNU nm, then we don't want the "-C" option.
10635 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10636 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10637 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10639 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'
10643 export_symbols_cmds_CXX="$ltdll_cmds"
10646 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10649 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10654 $as_echo "$ld_shlibs_CXX" >&6; }
10655 test "$ld_shlibs_CXX" = no && can_build_shared=no
10657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10658 if test "$GCC" = yes; then
10659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10663 # Do we need to explicitly link libc?
10665 case "x$archive_cmds_need_lc_CXX" in
10667 # Assume -lc should be added
10668 archive_cmds_need_lc_CXX=yes
10670 if test "$enable_shared" = yes && test "$GCC" = yes; then
10671 case $archive_cmds_CXX in
10673 # FIXME: we may have to deal with multi-command sequences.
10676 # Test whether the compiler implicitly links with -lc since on some
10677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10678 # to ld, don't add -lc before -lgcc.
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10680 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10685 (eval $ac_compile) 2>&5
10687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688 test $ac_status = 0; } 2>conftest.err; then
10691 libobjs=conftest.$ac_objext
10693 wl=$lt_prog_compiler_wl_CXX
10699 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10700 allow_undefined_flag_CXX=
10701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10702 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705 test $ac_status = 0; }
10707 archive_cmds_need_lc_CXX=no
10709 archive_cmds_need_lc_CXX=yes
10711 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10713 cat conftest.err 1>&5
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
10717 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10726 library_names_spec=
10727 libname_spec='lib$name'
10731 postuninstall_cmds=
10735 shlibpath_overrides_runpath=unknown
10737 dynamic_linker="$host_os ld.so"
10738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10739 if test "$GCC" = yes; then
10740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10741 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10742 # if the path contains ";" then we assume it to be the separator
10743 # otherwise default to the standard path separator (i.e. ":") - it is
10744 # assumed that no part of a normal pathname contains ";" but that should
10745 # okay in the real world where ";" in dirpaths is itself problematic.
10746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10753 need_lib_prefix=unknown
10754 hardcode_into_libs=no
10756 # when you set need_version to no, make sure it does not cause -set_version
10757 # flags to be left without arguments
10758 need_version=unknown
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10764 shlibpath_var=LIBPATH
10766 # AIX 3 has no versioning support, so we append a major version to the name.
10767 soname_spec='${libname}${release}${shared_ext}$major'
10774 hardcode_into_libs=yes
10775 if test "$host_cpu" = ia64; then
10776 # AIX 5 supports IA64
10777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10778 shlibpath_var=LD_LIBRARY_PATH
10780 # With GCC up to 2.95.x, collect2 would create an import file
10781 # for dependence libraries. The import file would start with
10782 # the line `#! .'. This would cause the generated library to
10783 # depend on `.', always an invalid library. This was fixed in
10784 # development snapshots of GCC prior to 3.0.
10786 aix4 | aix4.[01] | aix4.[01].*)
10787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10792 can_build_shared=no
10796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10797 # soname into executable. Probably we can add versioning support to
10798 # collect2, so additional links can be useful in future.
10799 if test "$aix_use_runtimelinking" = yes; then
10800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10801 # instead of lib<name>.a to let people know that these are not
10802 # typical AIX shared libraries.
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 # We preserve .a as extension for shared libraries through AIX4.2
10806 # and later when we are not doing run time linking.
10807 library_names_spec='${libname}${release}.a $libname.a'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LIBPATH
10815 library_names_spec='$libname.ixlibrary $libname.a'
10816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10817 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
10821 library_names_spec='${libname}${shared_ext}'
10822 dynamic_linker="$host_os ld.so"
10823 shlibpath_var=LIBRARY_PATH
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10835 # the default ld.so.conf also contains /usr/contrib/lib and
10836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10837 # libtool to hard-code these into programs
10840 cygwin* | mingw* | pw32*)
10841 version_type=windows
10846 case $GCC,$host_os in
10847 yes,cygwin* | yes,mingw* | yes,pw32*)
10848 library_names_spec='$libname.dll.a'
10849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10850 postinstall_cmds='base_file=`basename \${file}`~
10851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10852 dldir=$destdir/`dirname \$dlpath`~
10853 test -d \$dldir || mkdir -p \$dldir~
10854 $install_prog $dir/$dlname \$dldir/$dlname'
10855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10856 dlpath=$dir/\$dldll~
10858 shlibpath_overrides_runpath=yes
10862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10867 # MinGW DLLs use traditional 'lib' prefix
10868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10869 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10870 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10871 # It is most probably a Windows format PATH printed by
10872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10873 # path with ; separators, and with drive letters. We can handle the
10874 # drive letters (cygwin fileutils understands them), so leave them,
10875 # especially as we might pass files found there to a mingw objdump,
10876 # which wouldn't understand a cygwinified path. Ahh.
10877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10883 # pw32 DLLs use 'pw' prefix rather than 'lib'
10884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10893 dynamic_linker='Win32 ld.exe'
10894 # FIXME: first we should search . and the directory the executable is in
10898 darwin* | rhapsody*)
10899 dynamic_linker="$host_os dyld"
10900 version_type=darwin
10903 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10904 soname_spec='${libname}${release}${major}$shared_ext'
10905 shlibpath_overrides_runpath=yes
10906 shlibpath_var=DYLD_LIBRARY_PATH
10907 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10908 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10909 if test "$GCC" = yes; then
10910 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10912 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10939 dynamic_linker='GNU ld.so'
10943 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10944 version_type=freebsd-$objformat
10945 case $version_type in
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10956 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10961 freebsd3.01* | freebsdelf3.01*)
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 hardcode_into_libs=yes
10982 hpux9* | hpux10* | hpux11*)
10983 # Give a soname corresponding to the major version so that dld.sl refuses to
10984 # link against other versions.
10988 case "$host_cpu" in
10991 hardcode_into_libs=yes
10992 dynamic_linker="$host_os dld.so"
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 if test "X$HPUX_IA64_MODE" = X32; then
10998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11006 hardcode_into_libs=yes
11007 dynamic_linker="$host_os dld.sl"
11008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017 dynamic_linker="$host_os dld.sl"
11018 shlibpath_var=SHLIB_PATH
11019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11025 postinstall_cmds='chmod 555 $lib'
11028 irix5* | irix6* | nonstopux*)
11030 nonstopux*) version_type=nonstopux ;;
11032 if test "$lt_cv_prog_gnu_ld" = yes; then
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11043 irix5* | nonstopux*)
11044 libsuff= shlibsuff=
11047 case $LD in # libtool.m4 will add one of these switches to LD
11048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11049 libsuff= shlibsuff= libmagic=32-bit;;
11050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11051 libsuff=32 shlibsuff=N32 libmagic=N32;;
11052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11054 *) libsuff= shlibsuff= libmagic=never-match;;
11058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11059 shlibpath_overrides_runpath=no
11060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11062 hardcode_into_libs=yes
11065 # No shared lib support for Linux oldld, aout, or coff.
11066 linux*oldld* | linux*aout* | linux*coff*)
11070 # This must be Linux ELF.
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 # This implies no fast_install, which is unacceptable.
11081 # Some rework will be needed to allow for fast_install
11082 # before this can be enabled.
11083 hardcode_into_libs=yes
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11138 openbsd2.[89] | openbsd2.[89].*)
11139 shlibpath_overrides_runpath=no
11142 shlibpath_overrides_runpath=yes
11146 shlibpath_overrides_runpath=yes
11151 libname_spec='$name'
11154 library_names_spec='$libname${shared_ext} $libname.a'
11155 dynamic_linker='OS/2 ld.exe'
11156 shlibpath_var=LIBPATH
11159 osf3* | osf4* | osf5*)
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 shlibpath_var=LD_LIBRARY_PATH
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 # ldd complains unless libraries are executable
11187 postinstall_cmds='chmod +x $lib'
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 if test "$with_gnu_ld" = yes; then
11202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 case $host_vendor in
11209 shlibpath_overrides_runpath=no
11211 export_dynamic_flag_spec='${wl}-Blargedynsym'
11212 runpath_var=LD_RUN_PATH
11220 shlibpath_overrides_runpath=no
11221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11227 if test -d /usr/nec ;then
11229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11230 soname_spec='$libname${shared_ext}.$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11247 $as_echo "$dynamic_linker" >&6; }
11248 test "$dynamic_linker" = no && can_build_shared=no
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11252 hardcode_action_CXX=
11253 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11254 test -n "$runpath_var CXX" || \
11255 test "X$hardcode_automatic_CXX"="Xyes" ; then
11257 # We can hardcode non-existant directories.
11258 if test "$hardcode_direct_CXX" != no &&
11259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11260 # have to relink, otherwise we might link with an installed library
11261 # when we should be linking with a yet-to-be-installed one
11262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11263 test "$hardcode_minus_L_CXX" != no; then
11264 # Linking always hardcodes the temporary library directory.
11265 hardcode_action_CXX=relink
11267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11268 hardcode_action_CXX=immediate
11271 # We cannot hardcode anything, or else we can only hardcode existing
11273 hardcode_action_CXX=unsupported
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11276 $as_echo "$hardcode_action_CXX" >&6; }
11278 if test "$hardcode_action_CXX" = relink; then
11279 # Fast installation is not supported
11280 enable_fast_install=no
11281 elif test "$shlibpath_overrides_runpath" = yes ||
11282 test "$enable_shared" = no; then
11283 # Fast installation is not necessary
11284 enable_fast_install=needless
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11290 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11293 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295 $as_echo "yes" >&6; }
11297 # FIXME - insert some real tests, host_os isn't really good enough
11300 if test -n "$STRIP" ; then
11301 striplib="$STRIP -x"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 if test "x$enable_dlopen" != xyes; then
11317 enable_dlopen=unknown
11318 enable_dlopen_self=unknown
11319 enable_dlopen_self_static=unknown
11326 lt_cv_dlopen="load_add_on"
11328 lt_cv_dlopen_self=yes
11332 lt_cv_dlopen="LoadLibrary"
11337 lt_cv_dlopen="dlopen"
11342 # if libdl is installed we need to link against it
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11345 if ${ac_cv_lib_dl_dlopen+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 ac_check_lib_save_LIBS=$LIBS
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11368 if ac_fn_cxx_try_link "$LINENO"; then :
11369 ac_cv_lib_dl_dlopen=yes
11371 ac_cv_lib_dl_dlopen=no
11373 rm -f core conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11383 lt_cv_dlopen="dyld"
11385 lt_cv_dlopen_self=yes
11392 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11393 if test "x$ac_cv_func_shl_load" = xyes; then :
11394 lt_cv_dlopen="shl_load"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11397 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11398 if ${ac_cv_lib_dld_shl_load+:} false; then :
11399 $as_echo_n "(cached) " >&6
11401 ac_check_lib_save_LIBS=$LIBS
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11416 return shl_load ();
11421 if ac_fn_cxx_try_link "$LINENO"; then :
11422 ac_cv_lib_dld_shl_load=yes
11424 ac_cv_lib_dld_shl_load=no
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11431 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11432 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11433 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11435 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11436 if test "x$ac_cv_func_dlopen" = xyes; then :
11437 lt_cv_dlopen="dlopen"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11441 if ${ac_cv_lib_dl_dlopen+:} false; then :
11442 $as_echo_n "(cached) " >&6
11444 ac_check_lib_save_LIBS=$LIBS
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11449 /* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11464 if ac_fn_cxx_try_link "$LINENO"; then :
11465 ac_cv_lib_dl_dlopen=yes
11467 ac_cv_lib_dl_dlopen=no
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11479 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11480 if ${ac_cv_lib_svld_dlopen+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-lsvld $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11503 if ac_fn_cxx_try_link "$LINENO"; then :
11504 ac_cv_lib_svld_dlopen=yes
11506 ac_cv_lib_svld_dlopen=no
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11513 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11514 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11518 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11519 if ${ac_cv_lib_dld_dld_link+:} false; then :
11520 $as_echo_n "(cached) " >&6
11522 ac_check_lib_save_LIBS=$LIBS
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11537 return dld_link ();
11542 if ac_fn_cxx_try_link "$LINENO"; then :
11543 ac_cv_lib_dld_dld_link=yes
11545 ac_cv_lib_dld_dld_link=no
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11552 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11553 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11554 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11575 if test "x$lt_cv_dlopen" != xno; then
11581 case $lt_cv_dlopen in
11583 save_CPPFLAGS="$CPPFLAGS"
11584 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11586 save_LDFLAGS="$LDFLAGS"
11587 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11590 LIBS="$lt_cv_dlopen_libs $LIBS"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11593 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self+:} false; then :
11595 $as_echo_n "(cached) " >&6
11597 if test "$cross_compiling" = yes; then :
11598 lt_cv_dlopen_self=cross
11600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601 lt_status=$lt_dlunknown
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11603 "configure"
11604 #include "confdefs.h"
11613 # define LT_DLGLOBAL RTLD_GLOBAL
11616 # define LT_DLGLOBAL DL_GLOBAL
11618 # define LT_DLGLOBAL 0
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623 find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11626 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11629 # define LT_DLLAZY_OR_NOW DL_LAZY
11632 # define LT_DLLAZY_OR_NOW RTLD_NOW
11635 # define LT_DLLAZY_OR_NOW DL_NOW
11637 # define LT_DLLAZY_OR_NOW 0
11645 extern "C" void exit (int);
11648 void fnord() { int i=42;}
11651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652 int status = $lt_dlunknown;
11656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11657 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658 /* dlclose (self); */
11664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11665 (eval $ac_link) 2>&5
11667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11668 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11669 (./conftest; exit; ) 2>/dev/null
11671 case x$lt_status in
11672 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11673 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11674 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11677 # compilation failed
11678 lt_cv_dlopen_self=no
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11686 $as_echo "$lt_cv_dlopen_self" >&6; }
11688 if test "x$lt_cv_dlopen_self" = xyes; then
11689 LDFLAGS="$LDFLAGS $link_static_flag"
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11691 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11692 if ${lt_cv_dlopen_self_static+:} false; then :
11693 $as_echo_n "(cached) " >&6
11695 if test "$cross_compiling" = yes; then :
11696 lt_cv_dlopen_self_static=cross
11698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11699 lt_status=$lt_dlunknown
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11701 "configure"
11702 #include "confdefs.h"
11711 # define LT_DLGLOBAL RTLD_GLOBAL
11714 # define LT_DLGLOBAL DL_GLOBAL
11716 # define LT_DLGLOBAL 0
11720 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11721 find out it does not work in some platform. */
11722 #ifndef LT_DLLAZY_OR_NOW
11724 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11727 # define LT_DLLAZY_OR_NOW DL_LAZY
11730 # define LT_DLLAZY_OR_NOW RTLD_NOW
11733 # define LT_DLLAZY_OR_NOW DL_NOW
11735 # define LT_DLLAZY_OR_NOW 0
11743 extern "C" void exit (int);
11746 void fnord() { int i=42;}
11749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11750 int status = $lt_dlunknown;
11754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11755 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11756 /* dlclose (self); */
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11763 (eval $ac_link) 2>&5
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11767 (./conftest; exit; ) 2>/dev/null
11769 case x$lt_status in
11770 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11771 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11772 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11775 # compilation failed
11776 lt_cv_dlopen_self_static=no
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11784 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11787 CPPFLAGS="$save_CPPFLAGS"
11788 LDFLAGS="$save_LDFLAGS"
11793 case $lt_cv_dlopen_self in
11794 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11795 *) enable_dlopen_self=unknown ;;
11798 case $lt_cv_dlopen_self_static in
11799 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11800 *) enable_dlopen_self_static=unknown ;;
11805 # The else clause should only fire when bootstrapping the
11806 # libtool distribution, otherwise you forgot to ship ltmain.sh
11807 # with your package, and you will get complaints that there are
11808 # no rules to generate ltmain.sh.
11809 if test -f "$ltmain"; then
11810 # See if we are running on zsh, and set the options which allow our commands through
11811 # without removal of \ escapes.
11812 if test -n "${ZSH_VERSION+set}" ; then
11813 setopt NO_GLOB_SUBST
11815 # Now quote all the things that may contain metacharacters while being
11816 # careful not to overquote the AC_SUBSTed values. We take copies of the
11817 # variables and quote the copies for generation of the libtool script.
11818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11820 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11821 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11822 deplibs_check_method reload_flag reload_cmds need_locks \
11823 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11824 lt_cv_sys_global_symbol_to_c_name_address \
11825 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11826 old_postinstall_cmds old_postuninstall_cmds \
11830 lt_prog_compiler_wl_CXX \
11831 lt_prog_compiler_pic_CXX \
11832 lt_prog_compiler_static_CXX \
11833 lt_prog_compiler_no_builtin_flag_CXX \
11834 export_dynamic_flag_spec_CXX \
11835 thread_safe_flag_spec_CXX \
11836 whole_archive_flag_spec_CXX \
11837 enable_shared_with_static_runtimes_CXX \
11838 old_archive_cmds_CXX \
11839 old_archive_from_new_cmds_CXX \
11840 predep_objects_CXX \
11841 postdep_objects_CXX \
11844 compiler_lib_search_path_CXX \
11846 archive_expsym_cmds_CXX \
11847 postinstall_cmds_CXX \
11848 postuninstall_cmds_CXX \
11849 old_archive_from_expsyms_cmds_CXX \
11850 allow_undefined_flag_CXX \
11851 no_undefined_flag_CXX \
11852 export_symbols_cmds_CXX \
11853 hardcode_libdir_flag_spec_CXX \
11854 hardcode_libdir_flag_spec_ld_CXX \
11855 hardcode_libdir_separator_CXX \
11856 hardcode_automatic_CXX \
11858 module_expsym_cmds_CXX \
11859 lt_cv_prog_compiler_c_o_CXX \
11860 exclude_expsyms_CXX \
11861 include_expsyms_CXX; do
11864 old_archive_cmds_CXX | \
11865 old_archive_from_new_cmds_CXX | \
11866 archive_cmds_CXX | \
11867 archive_expsym_cmds_CXX | \
11868 module_cmds_CXX | \
11869 module_expsym_cmds_CXX | \
11870 old_archive_from_expsyms_cmds_CXX | \
11871 export_symbols_cmds_CXX | \
11872 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11873 postinstall_cmds | postuninstall_cmds | \
11874 old_postinstall_cmds | old_postuninstall_cmds | \
11875 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11876 # Double-quote double-evaled strings.
11877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11886 *'\$0 --fallback-echo"')
11887 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11893 cat <<__EOF__ >> "$cfgfile"
11894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11898 # Shell to use when invoking shell scripts.
11901 # Whether or not to build shared libraries.
11902 build_libtool_libs=$enable_shared
11904 # Whether or not to build static libraries.
11905 build_old_libs=$enable_static
11907 # Whether or not to add -lc for building shared libraries.
11908 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11910 # Whether or not to disallow shared libs when runtime libs are static
11911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11913 # Whether or not to optimize for fast installation.
11914 fast_install=$enable_fast_install
11917 host_alias=$host_alias
11920 # An echo program that does not interpret backslashes.
11925 AR_FLAGS=$lt_AR_FLAGS
11930 # A language-specific compiler.
11931 CC=$lt_compiler_CXX
11933 # Is the compiler the GNU C compiler?
11939 # The linker used to build libraries.
11942 # Whether we need hard or soft links.
11945 # A BSD-compatible nm program.
11948 # A symbol stripping program
11951 # Used to examine libraries when file_magic_cmd begins "file"
11952 MAGIC_CMD=$MAGIC_CMD
11954 # Used on cygwin: DLL creation program.
11957 # Used on cygwin: object dumper.
11960 # Used on cygwin: assembler.
11963 # The name of the directory that contains temporary libtool files.
11966 # How to create reloadable object files.
11967 reload_flag=$lt_reload_flag
11968 reload_cmds=$lt_reload_cmds
11970 # How to pass a linker flag through the compiler.
11971 wl=$lt_lt_prog_compiler_wl_CXX
11973 # Object file suffix (normally "o").
11974 objext="$ac_objext"
11976 # Old archive suffix (normally "a").
11979 # Shared library suffix (normally ".so").
11982 # Executable file suffix (normally "").
11985 # Additional compiler flags for building library objects.
11986 pic_flag=$lt_lt_prog_compiler_pic_CXX
11989 # What is the maximum length of a command?
11990 max_cmd_len=$lt_cv_sys_max_cmd_len
11992 # Does compiler simultaneously support -c and -o options?
11993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11995 # Must we lock files when doing compilation ?
11996 need_locks=$lt_need_locks
11998 # Do we need the lib prefix for modules?
11999 need_lib_prefix=$need_lib_prefix
12001 # Do we need a version for libraries?
12002 need_version=$need_version
12004 # Whether dlopen is supported.
12005 dlopen_support=$enable_dlopen
12007 # Whether dlopen of programs is supported.
12008 dlopen_self=$enable_dlopen_self
12010 # Whether dlopen of statically linked programs is supported.
12011 dlopen_self_static=$enable_dlopen_self_static
12013 # Compiler flag to prevent dynamic linking.
12014 link_static_flag=$lt_lt_prog_compiler_static_CXX
12016 # Compiler flag to turn off builtin functions.
12017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12019 # Compiler flag to allow reflexive dlopens.
12020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12022 # Compiler flag to generate shared objects directly from archives.
12023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12025 # Compiler flag to generate thread-safe objects.
12026 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12028 # Library versioning type.
12029 version_type=$version_type
12031 # Format of library name prefix.
12032 libname_spec=$lt_libname_spec
12034 # List of archive names. First name is the real one, the rest are links.
12035 # The last name is the one that the linker finds with -lNAME.
12036 library_names_spec=$lt_library_names_spec
12038 # The coded name of the library, if different from the real name.
12039 soname_spec=$lt_soname_spec
12041 # Commands used to build and install an old-style archive.
12043 old_archive_cmds=$lt_old_archive_cmds_CXX
12044 old_postinstall_cmds=$lt_old_postinstall_cmds
12045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12047 # Create an old-style archive from a shared archive.
12048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12050 # Create a temporary old-style archive to link instead of a shared archive.
12051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12053 # Commands used to build and install a shared archive.
12054 archive_cmds=$lt_archive_cmds_CXX
12055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12056 postinstall_cmds=$lt_postinstall_cmds
12057 postuninstall_cmds=$lt_postuninstall_cmds
12059 # Commands used to build a loadable module (assumed same as above if empty)
12060 module_cmds=$lt_module_cmds_CXX
12061 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12063 # Commands to strip libraries.
12064 old_striplib=$lt_old_striplib
12065 striplib=$lt_striplib
12067 # Dependencies to place before the objects being linked to create a
12069 predep_objects=$lt_predep_objects_CXX
12071 # Dependencies to place after the objects being linked to create a
12073 postdep_objects=$lt_postdep_objects_CXX
12075 # Dependencies to place before the objects being linked to create a
12077 predeps=$lt_predeps_CXX
12079 # Dependencies to place after the objects being linked to create a
12081 postdeps=$lt_postdeps_CXX
12083 # The library search path used internally by the compiler when linking
12084 # a shared library.
12085 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12087 # Method to check whether dependent libraries are shared objects.
12088 deplibs_check_method=$lt_deplibs_check_method
12090 # Command to use when deplibs_check_method == file_magic.
12091 file_magic_cmd=$lt_file_magic_cmd
12093 # Flag that allows shared libraries with undefined symbols to be built.
12094 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12096 # Flag that forces no undefined symbols.
12097 no_undefined_flag=$lt_no_undefined_flag_CXX
12099 # Commands used to finish a libtool library installation in a directory.
12100 finish_cmds=$lt_finish_cmds
12102 # Same as above, but a single script fragment to be evaled but not shown.
12103 finish_eval=$lt_finish_eval
12105 # Take the output of nm and produce a listing of raw symbols and C names.
12106 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12108 # Transform the output of nm in a proper C declaration
12109 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12111 # Transform the output of nm in a C name address pair
12112 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12114 # This is the shared library runtime path variable.
12115 runpath_var=$runpath_var
12117 # This is the shared library path variable.
12118 shlibpath_var=$shlibpath_var
12120 # Is shlibpath searched before the hard-coded library search path?
12121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12123 # How to hardcode a shared library path into an executable.
12124 hardcode_action=$hardcode_action_CXX
12126 # Whether we should hardcode library paths into libraries.
12127 hardcode_into_libs=$hardcode_into_libs
12129 # Flag to hardcode \$libdir into a binary during linking.
12130 # This must work even if \$libdir does not exist.
12131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12133 # If ld is used when linking, flag to hardcode \$libdir into
12134 # a binary during linking. This must work even if \$libdir does
12136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12138 # Whether we need a single -rpath flag with a separated argument.
12139 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12141 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12142 # resulting binary.
12143 hardcode_direct=$hardcode_direct_CXX
12145 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12146 # resulting binary.
12147 hardcode_minus_L=$hardcode_minus_L_CXX
12149 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12150 # the resulting binary.
12151 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12153 # Set to yes if building a shared library automatically hardcodes DIR into the library
12154 # and all subsequent libraries and executables linked against it.
12155 hardcode_automatic=$hardcode_automatic_CXX
12157 # Variables whose values should be saved in libtool wrapper scripts and
12158 # restored at relink time.
12159 variables_saved_for_relink="$variables_saved_for_relink"
12161 # Whether libtool must link a program against all its dependency libraries.
12162 link_all_deplibs=$link_all_deplibs_CXX
12164 # Compile-time system search path for libraries
12165 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12167 # Run-time system search path for libraries
12168 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12170 # Fix the shell variable \$srcfile for the compiler.
12171 fix_srcfile_path="$fix_srcfile_path_CXX"
12173 # Set to yes if exported symbols are required.
12174 always_export_symbols=$always_export_symbols_CXX
12176 # The commands to list exported symbols.
12177 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12179 # The commands to extract the exported symbol list from a shared archive.
12180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12182 # Symbols that should not be listed in the preloaded symbols.
12183 exclude_expsyms=$lt_exclude_expsyms_CXX
12185 # Symbols that must always be exported.
12186 include_expsyms=$lt_include_expsyms_CXX
12188 # ### END LIBTOOL TAG CONFIG: $tagname
12194 # If there is no Makefile yet, we rely on a make rule to execute
12195 # `config.status --recheck' to rerun these tests and create the
12196 # libtool script then.
12197 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12198 if test -f "$ltmain_in"; then
12199 test -f Makefile && make "$ltmain"
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214 with_gnu_ldcxx=$with_gnu_ld
12215 with_gnu_ld=$lt_save_with_gnu_ld
12216 lt_cv_path_LDCXX=$lt_cv_path_LD
12217 lt_cv_path_LD=$lt_save_path_LD
12218 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12219 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12227 if test -n "$F77" && test "X$F77" != "Xno"; then
12230 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12231 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12235 archive_cmds_need_lc_F77=no
12236 allow_undefined_flag_F77=
12237 always_export_symbols_F77=no
12238 archive_expsym_cmds_F77=
12239 export_dynamic_flag_spec_F77=
12240 hardcode_direct_F77=no
12241 hardcode_libdir_flag_spec_F77=
12242 hardcode_libdir_flag_spec_ld_F77=
12243 hardcode_libdir_separator_F77=
12244 hardcode_minus_L_F77=no
12245 hardcode_automatic_F77=no
12247 module_expsym_cmds_F77=
12248 link_all_deplibs_F77=unknown
12249 old_archive_cmds_F77=$old_archive_cmds
12250 no_undefined_flag_F77=
12251 whole_archive_flag_spec_F77=
12252 enable_shared_with_static_runtimes_F77=no
12254 # Source file extension for f77 test sources.
12257 # Object file extension for compiled f77 test sources.
12261 # Code to be used in simple compile tests
12262 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12264 # Code to be used in simple link tests
12265 lt_simple_link_test_code=" program t\n end\n"
12267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12269 # If no C compiler was specified, use CC.
12272 # Allow CC to be a program name with arguments.
12276 # Allow CC to be a program name with arguments.
12281 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12284 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12286 $as_echo "$can_build_shared" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12289 $as_echo_n "checking whether to build shared libraries... " >&6; }
12290 test "$can_build_shared" = "no" && enable_shared=no
12292 # On AIX, shared libraries and static libraries use the same namespace, and
12293 # are all built from PIC.
12296 test "$enable_shared" = yes && enable_static=no
12297 if test -n "$RANLIB"; then
12298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12299 postinstall_cmds='$RANLIB $lib'
12303 test "$enable_shared" = yes && enable_static=no
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12307 $as_echo "$enable_shared" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12310 $as_echo_n "checking whether to build static libraries... " >&6; }
12311 # Make sure either enable_shared or enable_static is yes.
12312 test "$enable_shared" = yes || enable_static=yes
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12314 $as_echo "$enable_static" >&6; }
12316 test "$ld_shlibs_F77" = no && can_build_shared=no
12321 lt_prog_compiler_wl_F77=
12322 lt_prog_compiler_pic_F77=
12323 lt_prog_compiler_static_F77=
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12326 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12328 if test "$GCC" = yes; then
12329 lt_prog_compiler_wl_F77='-Wl,'
12330 lt_prog_compiler_static_F77='-static'
12334 # All AIX code is PIC.
12335 if test "$host_cpu" = ia64; then
12336 # AIX 5 now supports IA64 processor
12337 lt_prog_compiler_static_F77='-Bstatic'
12342 # FIXME: we need at least 68020 code to build shared libraries, but
12343 # adding the `-m68020' flag to GCC prevents building anything better,
12345 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12348 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12349 # PIC is the default for these OSes.
12352 mingw* | pw32* | os2*)
12353 # This hack is so that the source file can tell whether it is being
12354 # built for inclusion in a dll (and should export symbols for example).
12355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12358 darwin* | rhapsody*)
12359 # PIC is the default on this platform
12360 # Common symbols not allowed in MH_DYLIB files
12361 lt_prog_compiler_pic_F77='-fno-common'
12365 # Just because we use GCC doesn't mean we suddenly get shared libraries
12366 # on systems that don't support them.
12367 lt_prog_compiler_can_build_shared_F77=no
12372 if test -d /usr/nec; then
12373 lt_prog_compiler_pic_F77=-Kconform_pic
12378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12379 # not for PA HP-UX.
12380 case "$host_cpu" in
12385 lt_prog_compiler_pic_F77='-fPIC'
12391 lt_prog_compiler_pic_F77='-fPIC'
12395 # PORTME Check for flag to pass linker flags through the system compiler.
12398 lt_prog_compiler_wl_F77='-Wl,'
12399 if test "$host_cpu" = ia64; then
12400 # AIX 5 now supports IA64 processor
12401 lt_prog_compiler_static_F77='-Bstatic'
12403 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12407 mingw* | pw32* | os2*)
12408 # This hack is so that the source file can tell whether it is being
12409 # built for inclusion in a dll (and should export symbols for example).
12410 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12413 hpux9* | hpux10* | hpux11*)
12414 lt_prog_compiler_wl_F77='-Wl,'
12415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12416 # not for PA HP-UX.
12417 case "$host_cpu" in
12422 lt_prog_compiler_pic_F77='+Z'
12425 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12426 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12429 irix5* | irix6* | nonstopux*)
12430 lt_prog_compiler_wl_F77='-Wl,'
12431 # PIC (with -KPIC) is the default.
12432 lt_prog_compiler_static_F77='-non_shared'
12436 lt_prog_compiler_pic_F77='-KPIC'
12437 lt_prog_compiler_static_F77='-Bstatic'
12443 lt_prog_compiler_wl_F77='-Wl,'
12444 lt_prog_compiler_pic_F77='-KPIC'
12445 lt_prog_compiler_static_F77='-static'
12448 lt_prog_compiler_wl_F77='-Wl,'
12449 # All Alpha code is PIC.
12450 lt_prog_compiler_static_F77='-non_shared'
12455 osf3* | osf4* | osf5*)
12456 lt_prog_compiler_wl_F77='-Wl,'
12457 # All OSF/1 code is PIC.
12458 lt_prog_compiler_static_F77='-non_shared'
12462 lt_prog_compiler_pic_F77='-Kpic'
12463 lt_prog_compiler_static_F77='-dn'
12467 lt_prog_compiler_wl_F77='-Wl,'
12468 lt_prog_compiler_pic_F77='-KPIC'
12469 lt_prog_compiler_static_F77='-Bstatic'
12473 lt_prog_compiler_wl_F77='-Qoption ld '
12474 lt_prog_compiler_pic_F77='-PIC'
12475 lt_prog_compiler_static_F77='-Bstatic'
12478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12479 lt_prog_compiler_wl_F77='-Wl,'
12480 lt_prog_compiler_pic_F77='-KPIC'
12481 lt_prog_compiler_static_F77='-Bstatic'
12485 if test -d /usr/nec ;then
12486 lt_prog_compiler_pic_F77='-Kconform_pic'
12487 lt_prog_compiler_static_F77='-Bstatic'
12492 lt_prog_compiler_pic_F77='-pic'
12493 lt_prog_compiler_static_F77='-Bstatic'
12497 lt_prog_compiler_can_build_shared_F77=no
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
12503 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
12506 # Check to make sure the PIC flag actually works.
12508 if test -n "$lt_prog_compiler_pic_F77"; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12511 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12512 if ${lt_prog_compiler_pic_works_F77+:} false; then :
12513 $as_echo_n "(cached) " >&6
12515 lt_prog_compiler_pic_works_F77=no
12516 ac_outfile=conftest.$ac_objext
12517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12519 # Insert the option either (1) after the last *FLAGS variable, or
12520 # (2) before a word containing "conftest.", or (3) at the end.
12521 # Note that $ac_compile itself does not contain backslashes and begins
12522 # with a dollar sign (not a hyphen), so the echo should work correctly.
12523 # The option is referenced via a variable to avoid confusing sed.
12524 lt_compile=`echo "$ac_compile" | $SED \
12525 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527 -e 's:$: $lt_compiler_flag:'`
12528 (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529 (eval "$lt_compile" 2>conftest.err)
12531 cat conftest.err >&5
12532 echo "$as_me:12532: \$? = $ac_status" >&5
12533 if (exit $ac_status) && test -s "$ac_outfile"; then
12534 # The compiler can only warn and ignore the option if not recognized
12535 # So say no if there are warnings
12536 if test ! -s conftest.err; then
12537 lt_prog_compiler_pic_works_F77=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
12544 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
12546 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12547 case $lt_prog_compiler_pic_F77 in
12549 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12552 lt_prog_compiler_pic_F77=
12553 lt_prog_compiler_can_build_shared_F77=no
12558 # For platforms which do not support PIC, -DPIC is meaningless:
12560 lt_prog_compiler_pic_F77=
12563 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12569 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12570 $as_echo_n "(cached) " >&6
12572 lt_cv_prog_compiler_c_o_F77=no
12573 $rm -r conftest 2>/dev/null
12577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12579 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12580 # that will create temporary files in the current directory regardless of
12581 # the output directory. Thus, making CWD read-only will cause this test
12582 # to fail, enabling locking or at least warning the user not to do parallel
12586 lt_compiler_flag="-o out/conftest2.$ac_objext"
12587 # Insert the option either (1) after the last *FLAGS variable, or
12588 # (2) before a word containing "conftest.", or (3) at the end.
12589 # Note that $ac_compile itself does not contain backslashes and begins
12590 # with a dollar sign (not a hyphen), so the echo should work correctly.
12591 lt_compile=`echo "$ac_compile" | $SED \
12592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12594 -e 's:$: $lt_compiler_flag:'`
12595 (eval echo "\"\$as_me:12595: $lt_compile\"" >&5)
12596 (eval "$lt_compile" 2>out/conftest.err)
12598 cat out/conftest.err >&5
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12602 # The compiler can only warn and ignore the option if not recognized
12603 # So say no if there are warnings
12604 if test ! -s out/conftest.err; then
12605 lt_cv_prog_compiler_c_o_F77=yes
12610 # SGI C++ compiler will create directory out/ii_files/ for
12611 # template instantiation
12612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12613 $rm out/* && rmdir out
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12620 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12623 hard_links="nottested"
12624 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12625 # do not overwrite the value of need_locks provided by the user
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12627 $as_echo_n "checking if we can lock with hard links... " >&6; }
12630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12632 ln conftest.a conftest.b 2>&5 || hard_links=no
12633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12635 $as_echo "$hard_links" >&6; }
12636 if test "$hard_links" = no; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12649 allow_undefined_flag_F77=
12650 enable_shared_with_static_runtimes_F77=no
12652 archive_expsym_cmds_F77=
12653 old_archive_From_new_cmds_F77=
12654 old_archive_from_expsyms_cmds_F77=
12655 export_dynamic_flag_spec_F77=
12656 whole_archive_flag_spec_F77=
12657 thread_safe_flag_spec_F77=
12658 hardcode_libdir_flag_spec_F77=
12659 hardcode_libdir_flag_spec_ld_F77=
12660 hardcode_libdir_separator_F77=
12661 hardcode_direct_F77=no
12662 hardcode_minus_L_F77=no
12663 hardcode_shlibpath_var_F77=unsupported
12664 link_all_deplibs_F77=unknown
12665 hardcode_automatic_F77=no
12667 module_expsym_cmds_F77=
12668 always_export_symbols_F77=no
12669 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12670 # include_expsyms should be a list of space-separated symbols to be *always*
12671 # included in the symbol list
12672 include_expsyms_F77=
12673 # exclude_expsyms can be an extended regexp of symbols to exclude
12674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12676 # as well as any symbol that contains `d'.
12677 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12679 # platforms (ab)use it in PIC code, but their linkers get confused if
12680 # the symbol is explicitly referenced. Since portable code cannot
12681 # rely on this symbol name, it's probably fine to never include it in
12682 # preloaded symbol tables.
12683 extract_expsyms_cmds=
12686 cygwin* | mingw* | pw32*)
12687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12688 # When not using gcc, we currently assume that we are using
12689 # Microsoft Visual C++.
12690 if test "$GCC" != yes; then
12700 if test "$with_gnu_ld" = yes; then
12701 # If archive_cmds runs LD, not CC, wlarc should be empty
12704 # See if GNU ld supports shared libraries.
12706 aix3* | aix4* | aix5*)
12707 # On AIX/PPC, the GNU linker is very broken
12708 if test "$host_cpu" != ia64; then
12712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12713 *** to be unable to reliably create shared libraries on AIX.
12714 *** Therefore, libtool is disabling shared libraries support. If you
12715 *** really care for shared libraries, you may want to modify your PATH
12716 *** so that a non-GNU linker is found, and then restart.
12723 archive_cmds_F77='$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)'
12724 hardcode_libdir_flag_spec_F77='-L$libdir'
12725 hardcode_minus_L_F77=yes
12727 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12728 # that the semantics of dynamic libraries on AmigaOS, at least up
12729 # to version 4, is to share data among multiple programs linked
12730 # with the same dynamic library. Since this doesn't match the
12731 # behavior of shared libraries on other platforms, we can't use
12737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12738 allow_undefined_flag_F77=unsupported
12739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12740 # support --undefined. This deserves some investigation. FIXME
12741 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12747 cygwin* | mingw* | pw32*)
12748 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12749 # as there is no search path for DLLs.
12750 hardcode_libdir_flag_spec_F77='-L$libdir'
12751 allow_undefined_flag_F77=unsupported
12752 always_export_symbols_F77=no
12753 enable_shared_with_static_runtimes_F77=yes
12754 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12757 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12758 # If the export-symbols file already is a .def file (1st line
12759 # is EXPORTS), use it as is; otherwise, prepend...
12760 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12761 cp $export_symbols $output_objdir/$soname.def;
12763 echo EXPORTS > $output_objdir/$soname.def;
12764 cat $export_symbols >> $output_objdir/$soname.def;
12766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems. Therefore, libtool
12789 *** is disabling shared libraries support. We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer. Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12804 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12806 hardcode_direct_F77=yes
12807 hardcode_shlibpath_var_F77=no
12811 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12812 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813 archive_cmds_F77="$tmp_archive_cmds"
12814 supports_anon_versioning=no
12815 case `$LD -v 2>/dev/null` in
12816 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12819 *\ 2.11.*) ;; # other 2.11 versions
12820 *) supports_anon_versioning=yes ;;
12822 if test $supports_anon_versioning = yes; then
12823 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12825 $echo "local: *; };" >> $output_objdir/$libname.ver~
12826 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12828 archive_expsym_cmds_F77="$tmp_archive_cmds"
12836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 if test "$ld_shlibs_F77" = yes; then
12846 runpath_var=LD_RUN_PATH
12847 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12848 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12849 # ancient GNU ld didn't support --whole-archive et. al.
12850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12851 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12853 whole_archive_flag_spec_F77=
12857 # PORTME fill in a description of your system's linker (not GNU ld)
12860 allow_undefined_flag_F77=unsupported
12861 always_export_symbols_F77=yes
12862 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12863 # Note: this linker hardcodes the directories in LIBPATH if there
12864 # are no directories specified by -L.
12865 hardcode_minus_L_F77=yes
12866 if test "$GCC" = yes && test -z "$link_static_flag"; then
12867 # Neither direct hardcoding nor static linking is supported with a
12869 hardcode_direct_F77=unsupported
12874 if test "$host_cpu" = ia64; then
12875 # On IA64, the linker does run time linking by default, so we don't
12876 # have to do anything special.
12877 aix_use_runtimelinking=no
12878 exp_sym_flag='-Bexport'
12881 # If we're using GNU nm, then we don't want the "-C" option.
12882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12884 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12886 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12888 aix_use_runtimelinking=no
12890 # Test if we are trying to use run time linking or normal
12891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12892 # need to do runtime linking.
12893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12894 for ld_flag in $LDFLAGS; do
12895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12896 aix_use_runtimelinking=yes
12902 exp_sym_flag='-bexport'
12903 no_entry_flag='-bnoentry'
12906 # When large executables or shared objects are built, AIX ld can
12907 # have problems creating the table of contents. If linking a library
12908 # or program results in "error TOC overflow" add -mminimal-toc to
12909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12912 archive_cmds_F77=''
12913 hardcode_direct_F77=yes
12914 hardcode_libdir_separator_F77=':'
12915 link_all_deplibs_F77=yes
12917 if test "$GCC" = yes; then
12918 case $host_os in aix4.012|aix4.012.*)
12919 # We only want to do this on AIX 4.2 and lower, the check
12920 # below for broken collect2 doesn't work under 4.3+
12921 collect2name=`${CC} -print-prog-name=collect2`
12922 if test -f "$collect2name" && \
12923 strings "$collect2name" | grep resolve_lib_name >/dev/null
12925 # We have reworked collect2
12926 hardcode_direct_F77=yes
12928 # We have old collect2
12929 hardcode_direct_F77=unsupported
12930 # It fails to find uninstalled libraries when the uninstalled
12931 # path is not listed in the libpath. Setting hardcode_minus_L
12932 # to unsupported forces relinking
12933 hardcode_minus_L_F77=yes
12934 hardcode_libdir_flag_spec_F77='-L$libdir'
12935 hardcode_libdir_separator_F77=
12938 shared_flag='-shared'
12941 if test "$host_cpu" = ia64; then
12942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12943 # chokes on -Wl,-G. The following line is correct:
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag='${wl}-G'
12949 shared_flag='${wl}-bM:SRE'
12954 # It seems that -bexpall does not export symbols beginning with
12955 # underscore (_), so it is better to generate a list of symbols to export.
12956 always_export_symbols_F77=yes
12957 if test "$aix_use_runtimelinking" = yes; then
12958 # Warning - without using the other runtime loading flags (-brtl),
12959 # -berok will link without error, but may produce a broken library.
12960 allow_undefined_flag_F77='-berok'
12961 # Determine the default libpath from the value encoded in an empty executable.
12962 cat > conftest.$ac_ext <<_ACEOF
12967 if ac_fn_f77_try_link "$LINENO"; then :
12969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12971 # Check for a 64-bit object if we didn't find anything.
12972 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12979 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12980 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12982 if test "$host_cpu" = ia64; then
12983 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12984 allow_undefined_flag_F77="-z nodefs"
12985 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12987 # Determine the default libpath from the value encoded in an empty executable.
12988 cat > conftest.$ac_ext <<_ACEOF
12993 if ac_fn_f77_try_link "$LINENO"; then :
12995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12997 # Check for a 64-bit object if we didn't find anything.
12998 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13001 rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext conftest.$ac_ext
13003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13005 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13006 # Warning - without using the other run time loading flags,
13007 # -berok will link without error, but may produce a broken library.
13008 no_undefined_flag_F77=' ${wl}-bernotok'
13009 allow_undefined_flag_F77=' ${wl}-berok'
13010 # -bexpall does not export symbols beginning with underscore (_)
13011 always_export_symbols_F77=yes
13012 # Exported symbols can be pulled into shared objects from archives
13013 whole_archive_flag_spec_F77=' '
13014 archive_cmds_need_lc_F77=yes
13015 # This is similar to how AIX traditionally builds it's shared libraries.
13016 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13022 archive_cmds_F77='$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)'
13023 hardcode_libdir_flag_spec_F77='-L$libdir'
13024 hardcode_minus_L_F77=yes
13025 # see comment about different semantics on the GNU ld section
13030 export_dynamic_flag_spec_F77=-rdynamic
13033 cygwin* | mingw* | pw32*)
13034 # When not using gcc, we currently assume that we are using
13035 # Microsoft Visual C++.
13036 # hardcode_libdir_flag_spec is actually meaningless, as there is
13037 # no search path for DLLs.
13038 hardcode_libdir_flag_spec_F77=' '
13039 allow_undefined_flag_F77=unsupported
13040 # Tell ltmain to make .lib files, not .a files.
13042 # Tell ltmain to make .dll files, not .so files.
13044 # FIXME: Setting linknames here is a bad hack.
13045 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13046 # The linker will automatically build a .lib file if we build a DLL.
13047 old_archive_From_new_cmds_F77='true'
13048 # FIXME: Should let the user specify the lib program.
13049 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13050 fix_srcfile_path='`cygpath -w "$srcfile"`'
13051 enable_shared_with_static_runtimes_F77=yes
13054 darwin* | rhapsody*)
13055 if test "$GXX" = yes ; then
13056 archive_cmds_need_lc_F77=no
13058 rhapsody* | darwin1.[012])
13059 allow_undefined_flag_F77='-undefined suppress'
13062 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13063 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13065 case ${MACOSX_DEPLOYMENT_TARGET} in
13067 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13070 allow_undefined_flag_F77='-undefined dynamic_lookup'
13076 lt_int_apple_cc_single_mod=no
13077 output_verbose_link_cmd='echo'
13078 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13079 lt_int_apple_cc_single_mod=yes
13081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13082 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13084 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13086 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13089 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13091 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13093 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13094 hardcode_direct_F77=no
13095 hardcode_automatic_F77=yes
13096 hardcode_shlibpath_var_F77=unsupported
13097 whole_archive_flag_spec_F77='-all_load $convenience'
13098 link_all_deplibs_F77=yes
13105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13106 hardcode_libdir_flag_spec_F77='-L$libdir'
13107 hardcode_shlibpath_var_F77=no
13114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13115 # support. Future versions do this automatically, but an explicit c++rt0.o
13116 # does not break anything, and helps significantly (at the cost of a little
13119 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13120 hardcode_libdir_flag_spec_F77='-R$libdir'
13121 hardcode_direct_F77=yes
13122 hardcode_shlibpath_var_F77=no
13125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13128 hardcode_direct_F77=yes
13129 hardcode_minus_L_F77=yes
13130 hardcode_shlibpath_var_F77=no
13133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13134 freebsd* | kfreebsd*-gnu)
13135 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13136 hardcode_libdir_flag_spec_F77='-R$libdir'
13137 hardcode_direct_F77=yes
13138 hardcode_shlibpath_var_F77=no
13142 if test "$GCC" = yes; then
13143 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13145 archive_cmds_F77='$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'
13147 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13148 hardcode_libdir_separator_F77=:
13149 hardcode_direct_F77=yes
13151 # hardcode_minus_L: Not really in the search PATH,
13152 # but as the default location of the library.
13153 hardcode_minus_L_F77=yes
13154 export_dynamic_flag_spec_F77='${wl}-E'
13158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13159 case "$host_cpu" in
13161 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13164 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13168 case "$host_cpu" in
13170 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13173 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13177 if test "$with_gnu_ld" = no; then
13178 case "$host_cpu" in
13180 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13181 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13182 hardcode_libdir_separator_F77=:
13183 hardcode_direct_F77=no
13184 hardcode_shlibpath_var_F77=no
13187 hardcode_libdir_flag_spec_F77='-L$libdir'
13188 hardcode_direct_F77=no
13189 hardcode_shlibpath_var_F77=no
13191 # hardcode_minus_L: Not really in the search PATH,
13192 # but as the default location of the library.
13193 hardcode_minus_L_F77=yes
13196 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13197 hardcode_libdir_separator_F77=:
13198 hardcode_direct_F77=yes
13199 export_dynamic_flag_spec_F77='${wl}-E'
13201 # hardcode_minus_L: Not really in the search PATH,
13202 # but as the default location of the library.
13203 hardcode_minus_L_F77=yes
13209 irix5* | irix6* | nonstopux*)
13210 if test "$GCC" = yes; then
13211 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13213 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13214 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13216 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13217 hardcode_libdir_separator_F77=:
13218 link_all_deplibs_F77=yes
13222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13223 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13225 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13227 hardcode_libdir_flag_spec_F77='-R$libdir'
13228 hardcode_direct_F77=yes
13229 hardcode_shlibpath_var_F77=no
13233 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234 hardcode_direct_F77=yes
13235 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13236 hardcode_libdir_separator_F77=:
13237 hardcode_shlibpath_var_F77=no
13241 hardcode_direct_F77=yes
13242 hardcode_shlibpath_var_F77=no
13243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13244 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13245 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13246 export_dynamic_flag_spec_F77='${wl}-E'
13249 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_libdir_flag_spec_F77='-R$libdir'
13254 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13255 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13262 hardcode_libdir_flag_spec_F77='-L$libdir'
13263 hardcode_minus_L_F77=yes
13264 allow_undefined_flag_F77=unsupported
13265 archive_cmds_F77='$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'
13266 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13270 if test "$GCC" = yes; then
13271 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13272 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13274 allow_undefined_flag_F77=' -expect_unresolved \*'
13275 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13278 hardcode_libdir_separator_F77=:
13281 osf4* | osf5*) # as osf3* with the addition of -msym flag
13282 if test "$GCC" = yes; then
13283 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13284 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13285 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13287 allow_undefined_flag_F77=' -expect_unresolved \*'
13288 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13289 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13290 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13292 # Both c and cxx compiler support -rpath directly
13293 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13295 hardcode_libdir_separator_F77=:
13299 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13300 hardcode_shlibpath_var_F77=no
13301 export_dynamic_flag_spec_F77='${wl}-Bexport'
13302 runpath_var=LD_RUN_PATH
13303 hardcode_runpath_var=yes
13307 no_undefined_flag_F77=' -z text'
13308 if test "$GCC" = yes; then
13309 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13310 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13311 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13313 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13317 hardcode_libdir_flag_spec_F77='-R$libdir'
13318 hardcode_shlibpath_var_F77=no
13320 solaris2.[0-5] | solaris2.[0-5].*) ;;
13321 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13322 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13324 link_all_deplibs_F77=yes
13328 if test "x$host_vendor" = xsequent; then
13329 # Use $CC to link under sequent, because it throws in some extra .o
13330 # files that make .init and .fini sections work.
13331 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13333 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec_F77='-L$libdir'
13336 hardcode_direct_F77=yes
13337 hardcode_minus_L_F77=yes
13338 hardcode_shlibpath_var_F77=no
13342 case $host_vendor in
13344 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13345 hardcode_direct_F77=yes # is this really true???
13348 ## LD is ld it makes a PLAMLIB
13349 ## CC just makes a GrossModule.
13350 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13351 reload_cmds_F77='$CC -r -o $output$reload_objs'
13352 hardcode_direct_F77=no
13355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13359 runpath_var='LD_RUN_PATH'
13360 hardcode_shlibpath_var_F77=no
13364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 hardcode_shlibpath_var_F77=no
13366 export_dynamic_flag_spec_F77='-Bexport'
13370 if test -d /usr/nec; then
13371 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13372 hardcode_shlibpath_var_F77=no
13373 runpath_var=LD_RUN_PATH
13374 hardcode_runpath_var=yes
13380 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13381 hardcode_direct_F77=yes
13382 hardcode_minus_L_F77=no
13383 hardcode_shlibpath_var_F77=no
13384 hardcode_runpath_var=yes
13385 runpath_var=LD_RUN_PATH
13388 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13389 no_undefined_flag_F77='${wl}-z ${wl}text'
13390 if test "$GCC" = yes; then
13391 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13395 runpath_var='LD_RUN_PATH'
13396 hardcode_shlibpath_var_F77=no
13400 no_undefined_flag_F77=' -z text'
13401 # $CC -shared without GNU ld will not create a library from C++
13402 # object files and a static libstdc++, better avoid it by now
13403 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13405 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13406 hardcode_libdir_flag_spec_F77=
13407 hardcode_shlibpath_var_F77=no
13408 runpath_var='LD_RUN_PATH'
13412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_libdir_flag_spec_F77='-L$libdir'
13414 hardcode_shlibpath_var_F77=no
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13424 $as_echo "$ld_shlibs_F77" >&6; }
13425 test "$ld_shlibs_F77" = no && can_build_shared=no
13427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13428 if test "$GCC" = yes; then
13429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13433 # Do we need to explicitly link libc?
13435 case "x$archive_cmds_need_lc_F77" in
13437 # Assume -lc should be added
13438 archive_cmds_need_lc_F77=yes
13440 if test "$enable_shared" = yes && test "$GCC" = yes; then
13441 case $archive_cmds_F77 in
13443 # FIXME: we may have to deal with multi-command sequences.
13446 # Test whether the compiler implicitly links with -lc since on some
13447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13448 # to ld, don't add -lc before -lgcc.
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13455 (eval $ac_compile) 2>&5
13457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 test $ac_status = 0; } 2>conftest.err; then
13461 libobjs=conftest.$ac_objext
13463 wl=$lt_prog_compiler_wl_F77
13469 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13470 allow_undefined_flag_F77=
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }
13477 archive_cmds_need_lc_F77=no
13479 archive_cmds_need_lc_F77=yes
13481 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13483 cat conftest.err 1>&5
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
13487 $as_echo "$archive_cmds_need_lc_F77" >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13495 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13496 library_names_spec=
13497 libname_spec='lib$name'
13501 postuninstall_cmds=
13505 shlibpath_overrides_runpath=unknown
13507 dynamic_linker="$host_os ld.so"
13508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13509 if test "$GCC" = yes; then
13510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13511 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13512 # if the path contains ";" then we assume it to be the separator
13513 # otherwise default to the standard path separator (i.e. ":") - it is
13514 # assumed that no part of a normal pathname contains ";" but that should
13515 # okay in the real world where ";" in dirpaths is itself problematic.
13516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13523 need_lib_prefix=unknown
13524 hardcode_into_libs=no
13526 # when you set need_version to no, make sure it does not cause -set_version
13527 # flags to be left without arguments
13528 need_version=unknown
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13534 shlibpath_var=LIBPATH
13536 # AIX 3 has no versioning support, so we append a major version to the name.
13537 soname_spec='${libname}${release}${shared_ext}$major'
13544 hardcode_into_libs=yes
13545 if test "$host_cpu" = ia64; then
13546 # AIX 5 supports IA64
13547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13548 shlibpath_var=LD_LIBRARY_PATH
13550 # With GCC up to 2.95.x, collect2 would create an import file
13551 # for dependence libraries. The import file would start with
13552 # the line `#! .'. This would cause the generated library to
13553 # depend on `.', always an invalid library. This was fixed in
13554 # development snapshots of GCC prior to 3.0.
13556 aix4 | aix4.[01] | aix4.[01].*)
13557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13559 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13562 can_build_shared=no
13566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13567 # soname into executable. Probably we can add versioning support to
13568 # collect2, so additional links can be useful in future.
13569 if test "$aix_use_runtimelinking" = yes; then
13570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13571 # instead of lib<name>.a to let people know that these are not
13572 # typical AIX shared libraries.
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13575 # We preserve .a as extension for shared libraries through AIX4.2
13576 # and later when we are not doing run time linking.
13577 library_names_spec='${libname}${release}.a $libname.a'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13580 shlibpath_var=LIBPATH
13585 library_names_spec='$libname.ixlibrary $libname.a'
13586 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13587 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13591 library_names_spec='${libname}${shared_ext}'
13592 dynamic_linker="$host_os ld.so"
13593 shlibpath_var=LIBRARY_PATH
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13605 # the default ld.so.conf also contains /usr/contrib/lib and
13606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13607 # libtool to hard-code these into programs
13610 cygwin* | mingw* | pw32*)
13611 version_type=windows
13616 case $GCC,$host_os in
13617 yes,cygwin* | yes,mingw* | yes,pw32*)
13618 library_names_spec='$libname.dll.a'
13619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13620 postinstall_cmds='base_file=`basename \${file}`~
13621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13622 dldir=$destdir/`dirname \$dlpath`~
13623 test -d \$dldir || mkdir -p \$dldir~
13624 $install_prog $dir/$dlname \$dldir/$dlname'
13625 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13626 dlpath=$dir/\$dldll~
13628 shlibpath_overrides_runpath=yes
13632 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13633 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13634 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13637 # MinGW DLLs use traditional 'lib' prefix
13638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13640 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13641 # It is most probably a Windows format PATH printed by
13642 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13643 # path with ; separators, and with drive letters. We can handle the
13644 # drive letters (cygwin fileutils understands them), so leave them,
13645 # especially as we might pass files found there to a mingw objdump,
13646 # which wouldn't understand a cygwinified path. Ahh.
13647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13653 # pw32 DLLs use 'pw' prefix rather than 'lib'
13654 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13663 dynamic_linker='Win32 ld.exe'
13664 # FIXME: first we should search . and the directory the executable is in
13668 darwin* | rhapsody*)
13669 dynamic_linker="$host_os dyld"
13670 version_type=darwin
13673 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13674 soname_spec='${libname}${release}${major}$shared_ext'
13675 shlibpath_overrides_runpath=yes
13676 shlibpath_var=DYLD_LIBRARY_PATH
13677 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13678 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13679 if test "$GCC" = yes; then
13680 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13682 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13692 soname_spec='${libname}${release}${shared_ext}$major'
13693 shlibpath_var=LD_LIBRARY_PATH
13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13705 soname_spec='${libname}${release}${shared_ext}$major'
13706 shlibpath_var=LD_LIBRARY_PATH
13707 shlibpath_overrides_runpath=no
13708 hardcode_into_libs=yes
13709 dynamic_linker='GNU ld.so'
13713 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13714 version_type=freebsd-$objformat
13715 case $version_type in
13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13726 shlibpath_var=LD_LIBRARY_PATH
13729 shlibpath_overrides_runpath=yes
13731 freebsd3.01* | freebsdelf3.01*)
13732 shlibpath_overrides_runpath=yes
13733 hardcode_into_libs=yes
13736 shlibpath_overrides_runpath=no
13737 hardcode_into_libs=yes
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 hardcode_into_libs=yes
13752 hpux9* | hpux10* | hpux11*)
13753 # Give a soname corresponding to the major version so that dld.sl refuses to
13754 # link against other versions.
13758 case "$host_cpu" in
13761 hardcode_into_libs=yes
13762 dynamic_linker="$host_os dld.so"
13763 shlibpath_var=LD_LIBRARY_PATH
13764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766 soname_spec='${libname}${release}${shared_ext}$major'
13767 if test "X$HPUX_IA64_MODE" = X32; then
13768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13776 hardcode_into_libs=yes
13777 dynamic_linker="$host_os dld.sl"
13778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781 soname_spec='${libname}${release}${shared_ext}$major'
13782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13787 dynamic_linker="$host_os dld.sl"
13788 shlibpath_var=SHLIB_PATH
13789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791 soname_spec='${libname}${release}${shared_ext}$major'
13794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13795 postinstall_cmds='chmod 555 $lib'
13798 irix5* | irix6* | nonstopux*)
13800 nonstopux*) version_type=nonstopux ;;
13802 if test "$lt_cv_prog_gnu_ld" = yes; then
13810 soname_spec='${libname}${release}${shared_ext}$major'
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13813 irix5* | nonstopux*)
13814 libsuff= shlibsuff=
13817 case $LD in # libtool.m4 will add one of these switches to LD
13818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13819 libsuff= shlibsuff= libmagic=32-bit;;
13820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13821 libsuff=32 shlibsuff=N32 libmagic=N32;;
13822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13824 *) libsuff= shlibsuff= libmagic=never-match;;
13828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13829 shlibpath_overrides_runpath=no
13830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13832 hardcode_into_libs=yes
13835 # No shared lib support for Linux oldld, aout, or coff.
13836 linux*oldld* | linux*aout* | linux*coff*)
13840 # This must be Linux ELF.
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=no
13850 # This implies no fast_install, which is unacceptable.
13851 # Some rework will be needed to allow for fast_install
13852 # before this can be enabled.
13853 hardcode_into_libs=yes
13855 # We used to test for /lib/ld.so.1 and disable shared libraries on
13856 # powerpc, because MkLinux only supported shared libraries with the
13857 # GNU dynamic linker. Since this was broken with cross compilers,
13858 # most powerpc-linux boxes support dynamic linking these days and
13859 # people can always --disable-shared, the test was removed, and we
13860 # assume the GNU/Linux dynamic linker is in use.
13861 dynamic_linker='GNU/Linux ld.so'
13868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13871 dynamic_linker='NetBSD (a.out) ld.so'
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 dynamic_linker='NetBSD ld.elf_so'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=yes
13879 hardcode_into_libs=yes
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=yes
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 shlibpath_overrides_runpath=yes
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908 openbsd2.[89] | openbsd2.[89].*)
13909 shlibpath_overrides_runpath=no
13912 shlibpath_overrides_runpath=yes
13916 shlibpath_overrides_runpath=yes
13921 libname_spec='$name'
13924 library_names_spec='$libname${shared_ext} $libname.a'
13925 dynamic_linker='OS/2 ld.exe'
13926 shlibpath_var=LIBPATH
13929 osf3* | osf4* | osf5*)
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 shlibpath_var=LD_LIBRARY_PATH
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 shlibpath_var=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath=yes
13955 hardcode_into_libs=yes
13956 # ldd complains unless libraries are executable
13957 postinstall_cmds='chmod +x $lib'
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 shlibpath_overrides_runpath=yes
13966 if test "$with_gnu_ld" = yes; then
13972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 case $host_vendor in
13979 shlibpath_overrides_runpath=no
13981 export_dynamic_flag_spec='${wl}-Blargedynsym'
13982 runpath_var=LD_RUN_PATH
13990 shlibpath_overrides_runpath=no
13991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13997 if test -d /usr/nec ;then
13999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14000 soname_spec='$libname${shared_ext}.$major'
14001 shlibpath_var=LD_LIBRARY_PATH
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 shlibpath_var=LD_LIBRARY_PATH
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14017 $as_echo "$dynamic_linker" >&6; }
14018 test "$dynamic_linker" = no && can_build_shared=no
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14022 hardcode_action_F77=
14023 if test -n "$hardcode_libdir_flag_spec_F77" || \
14024 test -n "$runpath_var F77" || \
14025 test "X$hardcode_automatic_F77"="Xyes" ; then
14027 # We can hardcode non-existant directories.
14028 if test "$hardcode_direct_F77" != no &&
14029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14030 # have to relink, otherwise we might link with an installed library
14031 # when we should be linking with a yet-to-be-installed one
14032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14033 test "$hardcode_minus_L_F77" != no; then
14034 # Linking always hardcodes the temporary library directory.
14035 hardcode_action_F77=relink
14037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14038 hardcode_action_F77=immediate
14041 # We cannot hardcode anything, or else we can only hardcode existing
14043 hardcode_action_F77=unsupported
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14046 $as_echo "$hardcode_action_F77" >&6; }
14048 if test "$hardcode_action_F77" = relink; then
14049 # Fast installation is not supported
14050 enable_fast_install=no
14051 elif test "$shlibpath_overrides_runpath" = yes ||
14052 test "$enable_shared" = no; then
14053 # Fast installation is not necessary
14054 enable_fast_install=needless
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14060 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14061 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14062 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14063 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14065 $as_echo "yes" >&6; }
14067 # FIXME - insert some real tests, host_os isn't really good enough
14070 if test -n "$STRIP" ; then
14071 striplib="$STRIP -x"
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14073 $as_echo "yes" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14088 # The else clause should only fire when bootstrapping the
14089 # libtool distribution, otherwise you forgot to ship ltmain.sh
14090 # with your package, and you will get complaints that there are
14091 # no rules to generate ltmain.sh.
14092 if test -f "$ltmain"; then
14093 # See if we are running on zsh, and set the options which allow our commands through
14094 # without removal of \ escapes.
14095 if test -n "${ZSH_VERSION+set}" ; then
14096 setopt NO_GLOB_SUBST
14098 # Now quote all the things that may contain metacharacters while being
14099 # careful not to overquote the AC_SUBSTed values. We take copies of the
14100 # variables and quote the copies for generation of the libtool script.
14101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14105 deplibs_check_method reload_flag reload_cmds need_locks \
14106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14107 lt_cv_sys_global_symbol_to_c_name_address \
14108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14109 old_postinstall_cmds old_postuninstall_cmds \
14113 lt_prog_compiler_wl_F77 \
14114 lt_prog_compiler_pic_F77 \
14115 lt_prog_compiler_static_F77 \
14116 lt_prog_compiler_no_builtin_flag_F77 \
14117 export_dynamic_flag_spec_F77 \
14118 thread_safe_flag_spec_F77 \
14119 whole_archive_flag_spec_F77 \
14120 enable_shared_with_static_runtimes_F77 \
14121 old_archive_cmds_F77 \
14122 old_archive_from_new_cmds_F77 \
14123 predep_objects_F77 \
14124 postdep_objects_F77 \
14127 compiler_lib_search_path_F77 \
14129 archive_expsym_cmds_F77 \
14130 postinstall_cmds_F77 \
14131 postuninstall_cmds_F77 \
14132 old_archive_from_expsyms_cmds_F77 \
14133 allow_undefined_flag_F77 \
14134 no_undefined_flag_F77 \
14135 export_symbols_cmds_F77 \
14136 hardcode_libdir_flag_spec_F77 \
14137 hardcode_libdir_flag_spec_ld_F77 \
14138 hardcode_libdir_separator_F77 \
14139 hardcode_automatic_F77 \
14141 module_expsym_cmds_F77 \
14142 lt_cv_prog_compiler_c_o_F77 \
14143 exclude_expsyms_F77 \
14144 include_expsyms_F77; do
14147 old_archive_cmds_F77 | \
14148 old_archive_from_new_cmds_F77 | \
14149 archive_cmds_F77 | \
14150 archive_expsym_cmds_F77 | \
14151 module_cmds_F77 | \
14152 module_expsym_cmds_F77 | \
14153 old_archive_from_expsyms_cmds_F77 | \
14154 export_symbols_cmds_F77 | \
14155 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14156 postinstall_cmds | postuninstall_cmds | \
14157 old_postinstall_cmds | old_postuninstall_cmds | \
14158 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14159 # Double-quote double-evaled strings.
14160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14169 *'\$0 --fallback-echo"')
14170 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14176 cat <<__EOF__ >> "$cfgfile"
14177 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14181 # Shell to use when invoking shell scripts.
14184 # Whether or not to build shared libraries.
14185 build_libtool_libs=$enable_shared
14187 # Whether or not to build static libraries.
14188 build_old_libs=$enable_static
14190 # Whether or not to add -lc for building shared libraries.
14191 build_libtool_need_lc=$archive_cmds_need_lc_F77
14193 # Whether or not to disallow shared libs when runtime libs are static
14194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14196 # Whether or not to optimize for fast installation.
14197 fast_install=$enable_fast_install
14200 host_alias=$host_alias
14203 # An echo program that does not interpret backslashes.
14208 AR_FLAGS=$lt_AR_FLAGS
14213 # A language-specific compiler.
14214 CC=$lt_compiler_F77
14216 # Is the compiler the GNU C compiler?
14222 # The linker used to build libraries.
14225 # Whether we need hard or soft links.
14228 # A BSD-compatible nm program.
14231 # A symbol stripping program
14234 # Used to examine libraries when file_magic_cmd begins "file"
14235 MAGIC_CMD=$MAGIC_CMD
14237 # Used on cygwin: DLL creation program.
14240 # Used on cygwin: object dumper.
14243 # Used on cygwin: assembler.
14246 # The name of the directory that contains temporary libtool files.
14249 # How to create reloadable object files.
14250 reload_flag=$lt_reload_flag
14251 reload_cmds=$lt_reload_cmds
14253 # How to pass a linker flag through the compiler.
14254 wl=$lt_lt_prog_compiler_wl_F77
14256 # Object file suffix (normally "o").
14257 objext="$ac_objext"
14259 # Old archive suffix (normally "a").
14262 # Shared library suffix (normally ".so").
14265 # Executable file suffix (normally "").
14268 # Additional compiler flags for building library objects.
14269 pic_flag=$lt_lt_prog_compiler_pic_F77
14272 # What is the maximum length of a command?
14273 max_cmd_len=$lt_cv_sys_max_cmd_len
14275 # Does compiler simultaneously support -c and -o options?
14276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14278 # Must we lock files when doing compilation ?
14279 need_locks=$lt_need_locks
14281 # Do we need the lib prefix for modules?
14282 need_lib_prefix=$need_lib_prefix
14284 # Do we need a version for libraries?
14285 need_version=$need_version
14287 # Whether dlopen is supported.
14288 dlopen_support=$enable_dlopen
14290 # Whether dlopen of programs is supported.
14291 dlopen_self=$enable_dlopen_self
14293 # Whether dlopen of statically linked programs is supported.
14294 dlopen_self_static=$enable_dlopen_self_static
14296 # Compiler flag to prevent dynamic linking.
14297 link_static_flag=$lt_lt_prog_compiler_static_F77
14299 # Compiler flag to turn off builtin functions.
14300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14302 # Compiler flag to allow reflexive dlopens.
14303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14305 # Compiler flag to generate shared objects directly from archives.
14306 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14308 # Compiler flag to generate thread-safe objects.
14309 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14311 # Library versioning type.
14312 version_type=$version_type
14314 # Format of library name prefix.
14315 libname_spec=$lt_libname_spec
14317 # List of archive names. First name is the real one, the rest are links.
14318 # The last name is the one that the linker finds with -lNAME.
14319 library_names_spec=$lt_library_names_spec
14321 # The coded name of the library, if different from the real name.
14322 soname_spec=$lt_soname_spec
14324 # Commands used to build and install an old-style archive.
14326 old_archive_cmds=$lt_old_archive_cmds_F77
14327 old_postinstall_cmds=$lt_old_postinstall_cmds
14328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14330 # Create an old-style archive from a shared archive.
14331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14333 # Create a temporary old-style archive to link instead of a shared archive.
14334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14336 # Commands used to build and install a shared archive.
14337 archive_cmds=$lt_archive_cmds_F77
14338 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14339 postinstall_cmds=$lt_postinstall_cmds
14340 postuninstall_cmds=$lt_postuninstall_cmds
14342 # Commands used to build a loadable module (assumed same as above if empty)
14343 module_cmds=$lt_module_cmds_F77
14344 module_expsym_cmds=$lt_module_expsym_cmds_F77
14346 # Commands to strip libraries.
14347 old_striplib=$lt_old_striplib
14348 striplib=$lt_striplib
14350 # Dependencies to place before the objects being linked to create a
14352 predep_objects=$lt_predep_objects_F77
14354 # Dependencies to place after the objects being linked to create a
14356 postdep_objects=$lt_postdep_objects_F77
14358 # Dependencies to place before the objects being linked to create a
14360 predeps=$lt_predeps_F77
14362 # Dependencies to place after the objects being linked to create a
14364 postdeps=$lt_postdeps_F77
14366 # The library search path used internally by the compiler when linking
14367 # a shared library.
14368 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14370 # Method to check whether dependent libraries are shared objects.
14371 deplibs_check_method=$lt_deplibs_check_method
14373 # Command to use when deplibs_check_method == file_magic.
14374 file_magic_cmd=$lt_file_magic_cmd
14376 # Flag that allows shared libraries with undefined symbols to be built.
14377 allow_undefined_flag=$lt_allow_undefined_flag_F77
14379 # Flag that forces no undefined symbols.
14380 no_undefined_flag=$lt_no_undefined_flag_F77
14382 # Commands used to finish a libtool library installation in a directory.
14383 finish_cmds=$lt_finish_cmds
14385 # Same as above, but a single script fragment to be evaled but not shown.
14386 finish_eval=$lt_finish_eval
14388 # Take the output of nm and produce a listing of raw symbols and C names.
14389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14391 # Transform the output of nm in a proper C declaration
14392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14394 # Transform the output of nm in a C name address pair
14395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14397 # This is the shared library runtime path variable.
14398 runpath_var=$runpath_var
14400 # This is the shared library path variable.
14401 shlibpath_var=$shlibpath_var
14403 # Is shlibpath searched before the hard-coded library search path?
14404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14406 # How to hardcode a shared library path into an executable.
14407 hardcode_action=$hardcode_action_F77
14409 # Whether we should hardcode library paths into libraries.
14410 hardcode_into_libs=$hardcode_into_libs
14412 # Flag to hardcode \$libdir into a binary during linking.
14413 # This must work even if \$libdir does not exist.
14414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14416 # If ld is used when linking, flag to hardcode \$libdir into
14417 # a binary during linking. This must work even if \$libdir does
14419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14421 # Whether we need a single -rpath flag with a separated argument.
14422 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14425 # resulting binary.
14426 hardcode_direct=$hardcode_direct_F77
14428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14429 # resulting binary.
14430 hardcode_minus_L=$hardcode_minus_L_F77
14432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14433 # the resulting binary.
14434 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14436 # Set to yes if building a shared library automatically hardcodes DIR into the library
14437 # and all subsequent libraries and executables linked against it.
14438 hardcode_automatic=$hardcode_automatic_F77
14440 # Variables whose values should be saved in libtool wrapper scripts and
14441 # restored at relink time.
14442 variables_saved_for_relink="$variables_saved_for_relink"
14444 # Whether libtool must link a program against all its dependency libraries.
14445 link_all_deplibs=$link_all_deplibs_F77
14447 # Compile-time system search path for libraries
14448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14450 # Run-time system search path for libraries
14451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14453 # Fix the shell variable \$srcfile for the compiler.
14454 fix_srcfile_path="$fix_srcfile_path_F77"
14456 # Set to yes if exported symbols are required.
14457 always_export_symbols=$always_export_symbols_F77
14459 # The commands to list exported symbols.
14460 export_symbols_cmds=$lt_export_symbols_cmds_F77
14462 # The commands to extract the exported symbol list from a shared archive.
14463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14465 # Symbols that should not be listed in the preloaded symbols.
14466 exclude_expsyms=$lt_exclude_expsyms_F77
14468 # Symbols that must always be exported.
14469 include_expsyms=$lt_include_expsyms_F77
14471 # ### END LIBTOOL TAG CONFIG: $tagname
14477 # If there is no Makefile yet, we rely on a make rule to execute
14478 # `config.status --recheck' to rerun these tests and create the
14479 # libtool script then.
14480 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14481 if test -f "$ltmain_in"; then
14482 test -f Makefile && make "$ltmain"
14488 ac_cpp='$CPP $CPPFLAGS'
14489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14501 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14504 # Source file extension for Java test sources.
14507 # Object file extension for compiled Java test sources.
14511 # Code to be used in simple compile tests
14512 lt_simple_compile_test_code="class foo {}\n"
14514 # Code to be used in simple link tests
14515 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14519 # If no C compiler was specified, use CC.
14522 # Allow CC to be a program name with arguments.
14526 # Allow CC to be a program name with arguments.
14532 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14533 archive_cmds_need_lc_GCJ=no
14536 ## There is no encapsulation within the following macros, do not change
14537 ## the running order or otherwise move them around unless you know exactly
14538 ## what you are doing...
14540 lt_prog_compiler_no_builtin_flag_GCJ=
14542 if test "$GCC" = yes; then
14543 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14549 $as_echo_n "(cached) " >&6
14551 lt_cv_prog_compiler_rtti_exceptions=no
14552 ac_outfile=conftest.$ac_objext
14553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14554 lt_compiler_flag="-fno-rtti -fno-exceptions"
14555 # Insert the option either (1) after the last *FLAGS variable, or
14556 # (2) before a word containing "conftest.", or (3) at the end.
14557 # Note that $ac_compile itself does not contain backslashes and begins
14558 # with a dollar sign (not a hyphen), so the echo should work correctly.
14559 # The option is referenced via a variable to avoid confusing sed.
14560 lt_compile=`echo "$ac_compile" | $SED \
14561 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
14564 (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
14565 (eval "$lt_compile" 2>conftest.err)
14567 cat conftest.err >&5
14568 echo "$as_me:14568: \$? = $ac_status" >&5
14569 if (exit $ac_status) && test -s "$ac_outfile"; then
14570 # The compiler can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
14572 if test ! -s conftest.err; then
14573 lt_cv_prog_compiler_rtti_exceptions=yes
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14583 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14590 lt_prog_compiler_wl_GCJ=
14591 lt_prog_compiler_pic_GCJ=
14592 lt_prog_compiler_static_GCJ=
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14597 if test "$GCC" = yes; then
14598 lt_prog_compiler_wl_GCJ='-Wl,'
14599 lt_prog_compiler_static_GCJ='-static'
14603 # All AIX code is PIC.
14604 if test "$host_cpu" = ia64; then
14605 # AIX 5 now supports IA64 processor
14606 lt_prog_compiler_static_GCJ='-Bstatic'
14611 # FIXME: we need at least 68020 code to build shared libraries, but
14612 # adding the `-m68020' flag to GCC prevents building anything better,
14614 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14617 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14618 # PIC is the default for these OSes.
14621 mingw* | pw32* | os2*)
14622 # This hack is so that the source file can tell whether it is being
14623 # built for inclusion in a dll (and should export symbols for example).
14624 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14627 darwin* | rhapsody*)
14628 # PIC is the default on this platform
14629 # Common symbols not allowed in MH_DYLIB files
14630 lt_prog_compiler_pic_GCJ='-fno-common'
14634 # Just because we use GCC doesn't mean we suddenly get shared libraries
14635 # on systems that don't support them.
14636 lt_prog_compiler_can_build_shared_GCJ=no
14641 if test -d /usr/nec; then
14642 lt_prog_compiler_pic_GCJ=-Kconform_pic
14647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14648 # not for PA HP-UX.
14649 case "$host_cpu" in
14654 lt_prog_compiler_pic_GCJ='-fPIC'
14660 lt_prog_compiler_pic_GCJ='-fPIC'
14664 # PORTME Check for flag to pass linker flags through the system compiler.
14667 lt_prog_compiler_wl_GCJ='-Wl,'
14668 if test "$host_cpu" = ia64; then
14669 # AIX 5 now supports IA64 processor
14670 lt_prog_compiler_static_GCJ='-Bstatic'
14672 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14676 mingw* | pw32* | os2*)
14677 # This hack is so that the source file can tell whether it is being
14678 # built for inclusion in a dll (and should export symbols for example).
14679 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14682 hpux9* | hpux10* | hpux11*)
14683 lt_prog_compiler_wl_GCJ='-Wl,'
14684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14685 # not for PA HP-UX.
14686 case "$host_cpu" in
14691 lt_prog_compiler_pic_GCJ='+Z'
14694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14695 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14698 irix5* | irix6* | nonstopux*)
14699 lt_prog_compiler_wl_GCJ='-Wl,'
14700 # PIC (with -KPIC) is the default.
14701 lt_prog_compiler_static_GCJ='-non_shared'
14705 lt_prog_compiler_pic_GCJ='-KPIC'
14706 lt_prog_compiler_static_GCJ='-Bstatic'
14712 lt_prog_compiler_wl_GCJ='-Wl,'
14713 lt_prog_compiler_pic_GCJ='-KPIC'
14714 lt_prog_compiler_static_GCJ='-static'
14717 lt_prog_compiler_wl_GCJ='-Wl,'
14718 # All Alpha code is PIC.
14719 lt_prog_compiler_static_GCJ='-non_shared'
14724 osf3* | osf4* | osf5*)
14725 lt_prog_compiler_wl_GCJ='-Wl,'
14726 # All OSF/1 code is PIC.
14727 lt_prog_compiler_static_GCJ='-non_shared'
14731 lt_prog_compiler_pic_GCJ='-Kpic'
14732 lt_prog_compiler_static_GCJ='-dn'
14736 lt_prog_compiler_wl_GCJ='-Wl,'
14737 lt_prog_compiler_pic_GCJ='-KPIC'
14738 lt_prog_compiler_static_GCJ='-Bstatic'
14742 lt_prog_compiler_wl_GCJ='-Qoption ld '
14743 lt_prog_compiler_pic_GCJ='-PIC'
14744 lt_prog_compiler_static_GCJ='-Bstatic'
14747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14748 lt_prog_compiler_wl_GCJ='-Wl,'
14749 lt_prog_compiler_pic_GCJ='-KPIC'
14750 lt_prog_compiler_static_GCJ='-Bstatic'
14754 if test -d /usr/nec ;then
14755 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14756 lt_prog_compiler_static_GCJ='-Bstatic'
14761 lt_prog_compiler_pic_GCJ='-pic'
14762 lt_prog_compiler_static_GCJ='-Bstatic'
14766 lt_prog_compiler_can_build_shared_GCJ=no
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14772 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14775 # Check to make sure the PIC flag actually works.
14777 if test -n "$lt_prog_compiler_pic_GCJ"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14780 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14781 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
14782 $as_echo_n "(cached) " >&6
14784 lt_prog_compiler_pic_works_GCJ=no
14785 ac_outfile=conftest.$ac_objext
14786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14787 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14788 # Insert the option either (1) after the last *FLAGS variable, or
14789 # (2) before a word containing "conftest.", or (3) at the end.
14790 # Note that $ac_compile itself does not contain backslashes and begins
14791 # with a dollar sign (not a hyphen), so the echo should work correctly.
14792 # The option is referenced via a variable to avoid confusing sed.
14793 lt_compile=`echo "$ac_compile" | $SED \
14794 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796 -e 's:$: $lt_compiler_flag:'`
14797 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798 (eval "$lt_compile" 2>conftest.err)
14800 cat conftest.err >&5
14801 echo "$as_me:14801: \$? = $ac_status" >&5
14802 if (exit $ac_status) && test -s "$ac_outfile"; then
14803 # The compiler can only warn and ignore the option if not recognized
14804 # So say no if there are warnings
14805 if test ! -s conftest.err; then
14806 lt_prog_compiler_pic_works_GCJ=yes
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14813 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14815 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14816 case $lt_prog_compiler_pic_GCJ in
14818 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14821 lt_prog_compiler_pic_GCJ=
14822 lt_prog_compiler_can_build_shared_GCJ=no
14827 # For platforms which do not support PIC, -DPIC is meaningless:
14829 lt_prog_compiler_pic_GCJ=
14832 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14838 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
14839 $as_echo_n "(cached) " >&6
14841 lt_cv_prog_compiler_c_o_GCJ=no
14842 $rm -r conftest 2>/dev/null
14846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14848 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14849 # that will create temporary files in the current directory regardless of
14850 # the output directory. Thus, making CWD read-only will cause this test
14851 # to fail, enabling locking or at least warning the user not to do parallel
14855 lt_compiler_flag="-o out/conftest2.$ac_objext"
14856 # Insert the option either (1) after the last *FLAGS variable, or
14857 # (2) before a word containing "conftest.", or (3) at the end.
14858 # Note that $ac_compile itself does not contain backslashes and begins
14859 # with a dollar sign (not a hyphen), so the echo should work correctly.
14860 lt_compile=`echo "$ac_compile" | $SED \
14861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863 -e 's:$: $lt_compiler_flag:'`
14864 (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
14865 (eval "$lt_compile" 2>out/conftest.err)
14867 cat out/conftest.err >&5
14868 echo "$as_me:14868: \$? = $ac_status" >&5
14869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14871 # The compiler can only warn and ignore the option if not recognized
14872 # So say no if there are warnings
14873 if test ! -s out/conftest.err; then
14874 lt_cv_prog_compiler_c_o_GCJ=yes
14879 # SGI C++ compiler will create directory out/ii_files/ for
14880 # template instantiation
14881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14882 $rm out/* && rmdir out
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14889 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
14892 hard_links="nottested"
14893 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14894 # do not overwrite the value of need_locks provided by the user
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14896 $as_echo_n "checking if we can lock with hard links... " >&6; }
14899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14901 ln conftest.a conftest.b 2>&5 || hard_links=no
14902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14904 $as_echo "$hard_links" >&6; }
14905 if test "$hard_links" = no; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14918 allow_undefined_flag_GCJ=
14919 enable_shared_with_static_runtimes_GCJ=no
14921 archive_expsym_cmds_GCJ=
14922 old_archive_From_new_cmds_GCJ=
14923 old_archive_from_expsyms_cmds_GCJ=
14924 export_dynamic_flag_spec_GCJ=
14925 whole_archive_flag_spec_GCJ=
14926 thread_safe_flag_spec_GCJ=
14927 hardcode_libdir_flag_spec_GCJ=
14928 hardcode_libdir_flag_spec_ld_GCJ=
14929 hardcode_libdir_separator_GCJ=
14930 hardcode_direct_GCJ=no
14931 hardcode_minus_L_GCJ=no
14932 hardcode_shlibpath_var_GCJ=unsupported
14933 link_all_deplibs_GCJ=unknown
14934 hardcode_automatic_GCJ=no
14936 module_expsym_cmds_GCJ=
14937 always_export_symbols_GCJ=no
14938 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14939 # include_expsyms should be a list of space-separated symbols to be *always*
14940 # included in the symbol list
14941 include_expsyms_GCJ=
14942 # exclude_expsyms can be an extended regexp of symbols to exclude
14943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14945 # as well as any symbol that contains `d'.
14946 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14948 # platforms (ab)use it in PIC code, but their linkers get confused if
14949 # the symbol is explicitly referenced. Since portable code cannot
14950 # rely on this symbol name, it's probably fine to never include it in
14951 # preloaded symbol tables.
14952 extract_expsyms_cmds=
14955 cygwin* | mingw* | pw32*)
14956 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14957 # When not using gcc, we currently assume that we are using
14958 # Microsoft Visual C++.
14959 if test "$GCC" != yes; then
14969 if test "$with_gnu_ld" = yes; then
14970 # If archive_cmds runs LD, not CC, wlarc should be empty
14973 # See if GNU ld supports shared libraries.
14975 aix3* | aix4* | aix5*)
14976 # On AIX/PPC, the GNU linker is very broken
14977 if test "$host_cpu" != ia64; then
14981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14982 *** to be unable to reliably create shared libraries on AIX.
14983 *** Therefore, libtool is disabling shared libraries support. If you
14984 *** really care for shared libraries, you may want to modify your PATH
14985 *** so that a non-GNU linker is found, and then restart.
14992 archive_cmds_GCJ='$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)'
14993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14994 hardcode_minus_L_GCJ=yes
14996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14997 # that the semantics of dynamic libraries on AmigaOS, at least up
14998 # to version 4, is to share data among multiple programs linked
14999 # with the same dynamic library. Since this doesn't match the
15000 # behavior of shared libraries on other platforms, we can't use
15006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007 allow_undefined_flag_GCJ=unsupported
15008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15009 # support --undefined. This deserves some investigation. FIXME
15010 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 cygwin* | mingw* | pw32*)
15017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15018 # as there is no search path for DLLs.
15019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15020 allow_undefined_flag_GCJ=unsupported
15021 always_export_symbols_GCJ=no
15022 enable_shared_with_static_runtimes_GCJ=yes
15023 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15027 # If the export-symbols file already is a .def file (1st line
15028 # is EXPORTS), use it as is; otherwise, prepend...
15029 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15030 cp $export_symbols $output_objdir/$soname.def;
15032 echo EXPORTS > $output_objdir/$soname.def;
15033 cat $export_symbols >> $output_objdir/$soname.def;
15035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15056 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057 *** create shared libraries on Solaris systems. Therefore, libtool
15058 *** is disabling shared libraries support. We urge you to upgrade GNU
15059 *** binutils to release 2.9.1 or newer. Another option is to modify
15060 *** your PATH or compiler configuration so that the native linker is
15061 *** used, and then restart.
15064 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15073 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_direct_GCJ=yes
15076 hardcode_shlibpath_var_GCJ=no
15080 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15081 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15082 archive_cmds_GCJ="$tmp_archive_cmds"
15083 supports_anon_versioning=no
15084 case `$LD -v 2>/dev/null` in
15085 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15088 *\ 2.11.*) ;; # other 2.11 versions
15089 *) supports_anon_versioning=yes ;;
15091 if test $supports_anon_versioning = yes; then
15092 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15094 $echo "local: *; };" >> $output_objdir/$libname.ver~
15095 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15097 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15114 if test "$ld_shlibs_GCJ" = yes; then
15115 runpath_var=LD_RUN_PATH
15116 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15117 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15118 # ancient GNU ld didn't support --whole-archive et. al.
15119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15120 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15122 whole_archive_flag_spec_GCJ=
15126 # PORTME fill in a description of your system's linker (not GNU ld)
15129 allow_undefined_flag_GCJ=unsupported
15130 always_export_symbols_GCJ=yes
15131 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15132 # Note: this linker hardcodes the directories in LIBPATH if there
15133 # are no directories specified by -L.
15134 hardcode_minus_L_GCJ=yes
15135 if test "$GCC" = yes && test -z "$link_static_flag"; then
15136 # Neither direct hardcoding nor static linking is supported with a
15138 hardcode_direct_GCJ=unsupported
15143 if test "$host_cpu" = ia64; then
15144 # On IA64, the linker does run time linking by default, so we don't
15145 # have to do anything special.
15146 aix_use_runtimelinking=no
15147 exp_sym_flag='-Bexport'
15150 # If we're using GNU nm, then we don't want the "-C" option.
15151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15153 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15155 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15157 aix_use_runtimelinking=no
15159 # Test if we are trying to use run time linking or normal
15160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15161 # need to do runtime linking.
15162 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15163 for ld_flag in $LDFLAGS; do
15164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15165 aix_use_runtimelinking=yes
15171 exp_sym_flag='-bexport'
15172 no_entry_flag='-bnoentry'
15175 # When large executables or shared objects are built, AIX ld can
15176 # have problems creating the table of contents. If linking a library
15177 # or program results in "error TOC overflow" add -mminimal-toc to
15178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15181 archive_cmds_GCJ=''
15182 hardcode_direct_GCJ=yes
15183 hardcode_libdir_separator_GCJ=':'
15184 link_all_deplibs_GCJ=yes
15186 if test "$GCC" = yes; then
15187 case $host_os in aix4.012|aix4.012.*)
15188 # We only want to do this on AIX 4.2 and lower, the check
15189 # below for broken collect2 doesn't work under 4.3+
15190 collect2name=`${CC} -print-prog-name=collect2`
15191 if test -f "$collect2name" && \
15192 strings "$collect2name" | grep resolve_lib_name >/dev/null
15194 # We have reworked collect2
15195 hardcode_direct_GCJ=yes
15197 # We have old collect2
15198 hardcode_direct_GCJ=unsupported
15199 # It fails to find uninstalled libraries when the uninstalled
15200 # path is not listed in the libpath. Setting hardcode_minus_L
15201 # to unsupported forces relinking
15202 hardcode_minus_L_GCJ=yes
15203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15204 hardcode_libdir_separator_GCJ=
15207 shared_flag='-shared'
15210 if test "$host_cpu" = ia64; then
15211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15212 # chokes on -Wl,-G. The following line is correct:
15215 if test "$aix_use_runtimelinking" = yes; then
15216 shared_flag='${wl}-G'
15218 shared_flag='${wl}-bM:SRE'
15223 # It seems that -bexpall does not export symbols beginning with
15224 # underscore (_), so it is better to generate a list of symbols to export.
15225 always_export_symbols_GCJ=yes
15226 if test "$aix_use_runtimelinking" = yes; then
15227 # Warning - without using the other runtime loading flags (-brtl),
15228 # -berok will link without error, but may produce a broken library.
15229 allow_undefined_flag_GCJ='-berok'
15230 # Determine the default libpath from the value encoded in an empty executable.
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15242 if ac_fn_c_try_link "$LINENO"; then :
15244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15246 # Check for a 64-bit object if we didn't find anything.
15247 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15250 rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15255 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15257 if test "$host_cpu" = ia64; then
15258 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15259 allow_undefined_flag_GCJ="-z nodefs"
15260 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15262 # Determine the default libpath from the value encoded in an empty executable.
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15274 if ac_fn_c_try_link "$LINENO"; then :
15276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15278 # Check for a 64-bit object if we didn't find anything.
15279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15282 rm -f core conftest.err conftest.$ac_objext \
15283 conftest$ac_exeext conftest.$ac_ext
15284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15287 # Warning - without using the other run time loading flags,
15288 # -berok will link without error, but may produce a broken library.
15289 no_undefined_flag_GCJ=' ${wl}-bernotok'
15290 allow_undefined_flag_GCJ=' ${wl}-berok'
15291 # -bexpall does not export symbols beginning with underscore (_)
15292 always_export_symbols_GCJ=yes
15293 # Exported symbols can be pulled into shared objects from archives
15294 whole_archive_flag_spec_GCJ=' '
15295 archive_cmds_need_lc_GCJ=yes
15296 # This is similar to how AIX traditionally builds it's shared libraries.
15297 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15303 archive_cmds_GCJ='$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)'
15304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15305 hardcode_minus_L_GCJ=yes
15306 # see comment about different semantics on the GNU ld section
15311 export_dynamic_flag_spec_GCJ=-rdynamic
15314 cygwin* | mingw* | pw32*)
15315 # When not using gcc, we currently assume that we are using
15316 # Microsoft Visual C++.
15317 # hardcode_libdir_flag_spec is actually meaningless, as there is
15318 # no search path for DLLs.
15319 hardcode_libdir_flag_spec_GCJ=' '
15320 allow_undefined_flag_GCJ=unsupported
15321 # Tell ltmain to make .lib files, not .a files.
15323 # Tell ltmain to make .dll files, not .so files.
15325 # FIXME: Setting linknames here is a bad hack.
15326 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15327 # The linker will automatically build a .lib file if we build a DLL.
15328 old_archive_From_new_cmds_GCJ='true'
15329 # FIXME: Should let the user specify the lib program.
15330 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15331 fix_srcfile_path='`cygpath -w "$srcfile"`'
15332 enable_shared_with_static_runtimes_GCJ=yes
15335 darwin* | rhapsody*)
15336 if test "$GXX" = yes ; then
15337 archive_cmds_need_lc_GCJ=no
15339 rhapsody* | darwin1.[012])
15340 allow_undefined_flag_GCJ='-undefined suppress'
15343 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15346 case ${MACOSX_DEPLOYMENT_TARGET} in
15348 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15351 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15357 lt_int_apple_cc_single_mod=no
15358 output_verbose_link_cmd='echo'
15359 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15360 lt_int_apple_cc_single_mod=yes
15362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15363 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15365 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15367 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15368 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15369 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15370 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15372 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15374 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15375 hardcode_direct_GCJ=no
15376 hardcode_automatic_GCJ=yes
15377 hardcode_shlibpath_var_GCJ=unsupported
15378 whole_archive_flag_spec_GCJ='-all_load $convenience'
15379 link_all_deplibs_GCJ=yes
15386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15388 hardcode_shlibpath_var_GCJ=no
15395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15396 # support. Future versions do this automatically, but an explicit c++rt0.o
15397 # does not break anything, and helps significantly (at the cost of a little
15400 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15401 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15402 hardcode_direct_GCJ=yes
15403 hardcode_shlibpath_var_GCJ=no
15406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15408 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_direct_GCJ=yes
15410 hardcode_minus_L_GCJ=yes
15411 hardcode_shlibpath_var_GCJ=no
15414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15415 freebsd* | kfreebsd*-gnu)
15416 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15418 hardcode_direct_GCJ=yes
15419 hardcode_shlibpath_var_GCJ=no
15423 if test "$GCC" = yes; then
15424 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15426 archive_cmds_GCJ='$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'
15428 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15429 hardcode_libdir_separator_GCJ=:
15430 hardcode_direct_GCJ=yes
15432 # hardcode_minus_L: Not really in the search PATH,
15433 # but as the default location of the library.
15434 hardcode_minus_L_GCJ=yes
15435 export_dynamic_flag_spec_GCJ='${wl}-E'
15439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15440 case "$host_cpu" in
15442 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15445 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15449 case "$host_cpu" in
15451 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15458 if test "$with_gnu_ld" = no; then
15459 case "$host_cpu" in
15461 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15462 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15463 hardcode_libdir_separator_GCJ=:
15464 hardcode_direct_GCJ=no
15465 hardcode_shlibpath_var_GCJ=no
15468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15469 hardcode_direct_GCJ=no
15470 hardcode_shlibpath_var_GCJ=no
15472 # hardcode_minus_L: Not really in the search PATH,
15473 # but as the default location of the library.
15474 hardcode_minus_L_GCJ=yes
15477 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator_GCJ=:
15479 hardcode_direct_GCJ=yes
15480 export_dynamic_flag_spec_GCJ='${wl}-E'
15482 # hardcode_minus_L: Not really in the search PATH,
15483 # but as the default location of the library.
15484 hardcode_minus_L_GCJ=yes
15490 irix5* | irix6* | nonstopux*)
15491 if test "$GCC" = yes; then
15492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15494 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15495 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15498 hardcode_libdir_separator_GCJ=:
15499 link_all_deplibs_GCJ=yes
15503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15506 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15509 hardcode_direct_GCJ=yes
15510 hardcode_shlibpath_var_GCJ=no
15514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515 hardcode_direct_GCJ=yes
15516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15517 hardcode_libdir_separator_GCJ=:
15518 hardcode_shlibpath_var_GCJ=no
15522 hardcode_direct_GCJ=yes
15523 hardcode_shlibpath_var_GCJ=no
15524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15525 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15526 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15527 export_dynamic_flag_spec_GCJ='${wl}-E'
15530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15531 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15535 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15544 hardcode_minus_L_GCJ=yes
15545 allow_undefined_flag_GCJ=unsupported
15546 archive_cmds_GCJ='$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'
15547 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15551 if test "$GCC" = yes; then
15552 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15553 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15555 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15556 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15559 hardcode_libdir_separator_GCJ=:
15562 osf4* | osf5*) # as osf3* with the addition of -msym flag
15563 if test "$GCC" = yes; then
15564 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15565 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15566 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15568 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15569 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15570 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15571 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15573 # Both c and cxx compiler support -rpath directly
15574 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15576 hardcode_libdir_separator_GCJ=:
15580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var_GCJ=no
15582 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15583 runpath_var=LD_RUN_PATH
15584 hardcode_runpath_var=yes
15588 no_undefined_flag_GCJ=' -z text'
15589 if test "$GCC" = yes; then
15590 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15592 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15594 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15598 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15599 hardcode_shlibpath_var_GCJ=no
15601 solaris2.[0-5] | solaris2.[0-5].*) ;;
15602 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15603 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15605 link_all_deplibs_GCJ=yes
15609 if test "x$host_vendor" = xsequent; then
15610 # Use $CC to link under sequent, because it throws in some extra .o
15611 # files that make .init and .fini sections work.
15612 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15617 hardcode_direct_GCJ=yes
15618 hardcode_minus_L_GCJ=yes
15619 hardcode_shlibpath_var_GCJ=no
15623 case $host_vendor in
15625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_direct_GCJ=yes # is this really true???
15629 ## LD is ld it makes a PLAMLIB
15630 ## CC just makes a GrossModule.
15631 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15632 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15633 hardcode_direct_GCJ=no
15636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15640 runpath_var='LD_RUN_PATH'
15641 hardcode_shlibpath_var_GCJ=no
15645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646 hardcode_shlibpath_var_GCJ=no
15647 export_dynamic_flag_spec_GCJ='-Bexport'
15651 if test -d /usr/nec; then
15652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653 hardcode_shlibpath_var_GCJ=no
15654 runpath_var=LD_RUN_PATH
15655 hardcode_runpath_var=yes
15661 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15662 hardcode_direct_GCJ=yes
15663 hardcode_minus_L_GCJ=no
15664 hardcode_shlibpath_var_GCJ=no
15665 hardcode_runpath_var=yes
15666 runpath_var=LD_RUN_PATH
15669 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15670 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15671 if test "$GCC" = yes; then
15672 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15674 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 runpath_var='LD_RUN_PATH'
15677 hardcode_shlibpath_var_GCJ=no
15681 no_undefined_flag_GCJ=' -z text'
15682 # $CC -shared without GNU ld will not create a library from C++
15683 # object files and a static libstdc++, better avoid it by now
15684 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15687 hardcode_libdir_flag_spec_GCJ=
15688 hardcode_shlibpath_var_GCJ=no
15689 runpath_var='LD_RUN_PATH'
15693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15695 hardcode_shlibpath_var_GCJ=no
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15705 $as_echo "$ld_shlibs_GCJ" >&6; }
15706 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15708 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15709 if test "$GCC" = yes; then
15710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15714 # Do we need to explicitly link libc?
15716 case "x$archive_cmds_need_lc_GCJ" in
15718 # Assume -lc should be added
15719 archive_cmds_need_lc_GCJ=yes
15721 if test "$enable_shared" = yes && test "$GCC" = yes; then
15722 case $archive_cmds_GCJ in
15724 # FIXME: we may have to deal with multi-command sequences.
15727 # Test whether the compiler implicitly links with -lc since on some
15728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15729 # to ld, don't add -lc before -lgcc.
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15736 (eval $ac_compile) 2>&5
15738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739 test $ac_status = 0; } 2>conftest.err; then
15742 libobjs=conftest.$ac_objext
15744 wl=$lt_prog_compiler_wl_GCJ
15750 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15751 allow_undefined_flag_GCJ=
15752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15753 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756 test $ac_status = 0; }
15758 archive_cmds_need_lc_GCJ=no
15760 archive_cmds_need_lc_GCJ=yes
15762 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15764 cat conftest.err 1>&5
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15768 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15777 library_names_spec=
15778 libname_spec='lib$name'
15782 postuninstall_cmds=
15786 shlibpath_overrides_runpath=unknown
15788 dynamic_linker="$host_os ld.so"
15789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15790 if test "$GCC" = yes; then
15791 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15792 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15793 # if the path contains ";" then we assume it to be the separator
15794 # otherwise default to the standard path separator (i.e. ":") - it is
15795 # assumed that no part of a normal pathname contains ";" but that should
15796 # okay in the real world where ";" in dirpaths is itself problematic.
15797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15804 need_lib_prefix=unknown
15805 hardcode_into_libs=no
15807 # when you set need_version to no, make sure it does not cause -set_version
15808 # flags to be left without arguments
15809 need_version=unknown
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15815 shlibpath_var=LIBPATH
15817 # AIX 3 has no versioning support, so we append a major version to the name.
15818 soname_spec='${libname}${release}${shared_ext}$major'
15825 hardcode_into_libs=yes
15826 if test "$host_cpu" = ia64; then
15827 # AIX 5 supports IA64
15828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15829 shlibpath_var=LD_LIBRARY_PATH
15831 # With GCC up to 2.95.x, collect2 would create an import file
15832 # for dependence libraries. The import file would start with
15833 # the line `#! .'. This would cause the generated library to
15834 # depend on `.', always an invalid library. This was fixed in
15835 # development snapshots of GCC prior to 3.0.
15837 aix4 | aix4.[01] | aix4.[01].*)
15838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15840 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15843 can_build_shared=no
15847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15848 # soname into executable. Probably we can add versioning support to
15849 # collect2, so additional links can be useful in future.
15850 if test "$aix_use_runtimelinking" = yes; then
15851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15852 # instead of lib<name>.a to let people know that these are not
15853 # typical AIX shared libraries.
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856 # We preserve .a as extension for shared libraries through AIX4.2
15857 # and later when we are not doing run time linking.
15858 library_names_spec='${libname}${release}.a $libname.a'
15859 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LIBPATH
15866 library_names_spec='$libname.ixlibrary $libname.a'
15867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15868 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15872 library_names_spec='${libname}${shared_ext}'
15873 dynamic_linker="$host_os ld.so"
15874 shlibpath_var=LIBRARY_PATH
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15886 # the default ld.so.conf also contains /usr/contrib/lib and
15887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15888 # libtool to hard-code these into programs
15891 cygwin* | mingw* | pw32*)
15892 version_type=windows
15897 case $GCC,$host_os in
15898 yes,cygwin* | yes,mingw* | yes,pw32*)
15899 library_names_spec='$libname.dll.a'
15900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15901 postinstall_cmds='base_file=`basename \${file}`~
15902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15903 dldir=$destdir/`dirname \$dlpath`~
15904 test -d \$dldir || mkdir -p \$dldir~
15905 $install_prog $dir/$dlname \$dldir/$dlname'
15906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15907 dlpath=$dir/\$dldll~
15909 shlibpath_overrides_runpath=yes
15913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15918 # MinGW DLLs use traditional 'lib' prefix
15919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15922 # It is most probably a Windows format PATH printed by
15923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15924 # path with ; separators, and with drive letters. We can handle the
15925 # drive letters (cygwin fileutils understands them), so leave them,
15926 # especially as we might pass files found there to a mingw objdump,
15927 # which wouldn't understand a cygwinified path. Ahh.
15928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15934 # pw32 DLLs use 'pw' prefix rather than 'lib'
15935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15944 dynamic_linker='Win32 ld.exe'
15945 # FIXME: first we should search . and the directory the executable is in
15949 darwin* | rhapsody*)
15950 dynamic_linker="$host_os dyld"
15951 version_type=darwin
15954 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15955 soname_spec='${libname}${release}${major}$shared_ext'
15956 shlibpath_overrides_runpath=yes
15957 shlibpath_var=DYLD_LIBRARY_PATH
15958 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15959 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15960 if test "$GCC" = yes; then
15961 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15963 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 shlibpath_var=LD_LIBRARY_PATH
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=no
15989 hardcode_into_libs=yes
15990 dynamic_linker='GNU ld.so'
15994 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15995 version_type=freebsd-$objformat
15996 case $version_type in
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16007 shlibpath_var=LD_LIBRARY_PATH
16010 shlibpath_overrides_runpath=yes
16012 freebsd3.01* | freebsdelf3.01*)
16013 shlibpath_overrides_runpath=yes
16014 hardcode_into_libs=yes
16017 shlibpath_overrides_runpath=no
16018 hardcode_into_libs=yes
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 hardcode_into_libs=yes
16033 hpux9* | hpux10* | hpux11*)
16034 # Give a soname corresponding to the major version so that dld.sl refuses to
16035 # link against other versions.
16039 case "$host_cpu" in
16042 hardcode_into_libs=yes
16043 dynamic_linker="$host_os dld.so"
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 if test "X$HPUX_IA64_MODE" = X32; then
16049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16057 hardcode_into_libs=yes
16058 dynamic_linker="$host_os dld.sl"
16059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16068 dynamic_linker="$host_os dld.sl"
16069 shlibpath_var=SHLIB_PATH
16070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16075 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16076 postinstall_cmds='chmod 555 $lib'
16079 irix5* | irix6* | nonstopux*)
16081 nonstopux*) version_type=nonstopux ;;
16083 if test "$lt_cv_prog_gnu_ld" = yes; then
16091 soname_spec='${libname}${release}${shared_ext}$major'
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16094 irix5* | nonstopux*)
16095 libsuff= shlibsuff=
16098 case $LD in # libtool.m4 will add one of these switches to LD
16099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16100 libsuff= shlibsuff= libmagic=32-bit;;
16101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16102 libsuff=32 shlibsuff=N32 libmagic=N32;;
16103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16105 *) libsuff= shlibsuff= libmagic=never-match;;
16109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16110 shlibpath_overrides_runpath=no
16111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16113 hardcode_into_libs=yes
16116 # No shared lib support for Linux oldld, aout, or coff.
16117 linux*oldld* | linux*aout* | linux*coff*)
16121 # This must be Linux ELF.
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=no
16131 # This implies no fast_install, which is unacceptable.
16132 # Some rework will be needed to allow for fast_install
16133 # before this can be enabled.
16134 hardcode_into_libs=yes
16136 # We used to test for /lib/ld.so.1 and disable shared libraries on
16137 # powerpc, because MkLinux only supported shared libraries with the
16138 # GNU dynamic linker. Since this was broken with cross compilers,
16139 # most powerpc-linux boxes support dynamic linking these days and
16140 # people can always --disable-shared, the test was removed, and we
16141 # assume the GNU/Linux dynamic linker is in use.
16142 dynamic_linker='GNU/Linux ld.so'
16149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16152 dynamic_linker='NetBSD (a.out) ld.so'
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 dynamic_linker='NetBSD ld.elf_so'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=yes
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16189 openbsd2.[89] | openbsd2.[89].*)
16190 shlibpath_overrides_runpath=no
16193 shlibpath_overrides_runpath=yes
16197 shlibpath_overrides_runpath=yes
16202 libname_spec='$name'
16205 library_names_spec='$libname${shared_ext} $libname.a'
16206 dynamic_linker='OS/2 ld.exe'
16207 shlibpath_var=LIBPATH
16210 osf3* | osf4* | osf5*)
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16218 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 shlibpath_var=LD_LIBRARY_PATH
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233 soname_spec='${libname}${release}${shared_ext}$major'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath=yes
16236 hardcode_into_libs=yes
16237 # ldd complains unless libraries are executable
16238 postinstall_cmds='chmod +x $lib'
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes
16247 if test "$with_gnu_ld" = yes; then
16253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 case $host_vendor in
16260 shlibpath_overrides_runpath=no
16262 export_dynamic_flag_spec='${wl}-Blargedynsym'
16263 runpath_var=LD_RUN_PATH
16271 shlibpath_overrides_runpath=no
16272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16278 if test -d /usr/nec ;then
16280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16281 soname_spec='$libname${shared_ext}.$major'
16282 shlibpath_var=LD_LIBRARY_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16298 $as_echo "$dynamic_linker" >&6; }
16299 test "$dynamic_linker" = no && can_build_shared=no
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16302 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16303 hardcode_action_GCJ=
16304 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16305 test -n "$runpath_var GCJ" || \
16306 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16308 # We can hardcode non-existant directories.
16309 if test "$hardcode_direct_GCJ" != no &&
16310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16311 # have to relink, otherwise we might link with an installed library
16312 # when we should be linking with a yet-to-be-installed one
16313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16314 test "$hardcode_minus_L_GCJ" != no; then
16315 # Linking always hardcodes the temporary library directory.
16316 hardcode_action_GCJ=relink
16318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16319 hardcode_action_GCJ=immediate
16322 # We cannot hardcode anything, or else we can only hardcode existing
16324 hardcode_action_GCJ=unsupported
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16327 $as_echo "$hardcode_action_GCJ" >&6; }
16329 if test "$hardcode_action_GCJ" = relink; then
16330 # Fast installation is not supported
16331 enable_fast_install=no
16332 elif test "$shlibpath_overrides_runpath" = yes ||
16333 test "$enable_shared" = no; then
16334 # Fast installation is not necessary
16335 enable_fast_install=needless
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16342 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16348 # FIXME - insert some real tests, host_os isn't really good enough
16351 if test -n "$STRIP" ; then
16352 striplib="$STRIP -x"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354 $as_echo "yes" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362 $as_echo "no" >&6; }
16367 if test "x$enable_dlopen" != xyes; then
16368 enable_dlopen=unknown
16369 enable_dlopen_self=unknown
16370 enable_dlopen_self_static=unknown
16377 lt_cv_dlopen="load_add_on"
16379 lt_cv_dlopen_self=yes
16383 lt_cv_dlopen="LoadLibrary"
16388 lt_cv_dlopen="dlopen"
16393 # if libdl is installed we need to link against it
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16396 if ${ac_cv_lib_dl_dlopen+:} false; then :
16397 $as_echo_n "(cached) " >&6
16399 ac_check_lib_save_LIBS=$LIBS
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16404 /* Override any GCC internal prototype to avoid an error.
16405 Use char because int might match the return type of a GCC
16406 builtin and then its argument prototype would still apply. */
16419 if ac_fn_c_try_link "$LINENO"; then :
16420 ac_cv_lib_dl_dlopen=yes
16422 ac_cv_lib_dl_dlopen=no
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16434 lt_cv_dlopen="dyld"
16436 lt_cv_dlopen_self=yes
16443 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16444 if test "x$ac_cv_func_shl_load" = xyes; then :
16445 lt_cv_dlopen="shl_load"
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16449 if ${ac_cv_lib_dld_shl_load+:} false; then :
16450 $as_echo_n "(cached) " >&6
16452 ac_check_lib_save_LIBS=$LIBS
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16467 return shl_load ();
16472 if ac_fn_c_try_link "$LINENO"; then :
16473 ac_cv_lib_dld_shl_load=yes
16475 ac_cv_lib_dld_shl_load=no
16477 rm -f core conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16483 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16484 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16486 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16487 if test "x$ac_cv_func_dlopen" = xyes; then :
16488 lt_cv_dlopen="dlopen"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16492 if ${ac_cv_lib_dl_dlopen+:} false; then :
16493 $as_echo_n "(cached) " >&6
16495 ac_check_lib_save_LIBS=$LIBS
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16515 if ac_fn_c_try_link "$LINENO"; then :
16516 ac_cv_lib_dl_dlopen=yes
16518 ac_cv_lib_dl_dlopen=no
16520 rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16522 LIBS=$ac_check_lib_save_LIBS
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16531 if ${ac_cv_lib_svld_dlopen+:} false; then :
16532 $as_echo_n "(cached) " >&6
16534 ac_check_lib_save_LIBS=$LIBS
16535 LIBS="-lsvld $LIBS"
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16554 if ac_fn_c_try_link "$LINENO"; then :
16555 ac_cv_lib_svld_dlopen=yes
16557 ac_cv_lib_svld_dlopen=no
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16565 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_dld_link+:} false; then :
16571 $as_echo_n "(cached) " >&6
16573 ac_check_lib_save_LIBS=$LIBS
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16588 return dld_link ();
16593 if ac_fn_c_try_link "$LINENO"; then :
16594 ac_cv_lib_dld_dld_link=yes
16596 ac_cv_lib_dld_dld_link=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16626 if test "x$lt_cv_dlopen" != xno; then
16632 case $lt_cv_dlopen in
16634 save_CPPFLAGS="$CPPFLAGS"
16635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16637 save_LDFLAGS="$LDFLAGS"
16638 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16641 LIBS="$lt_cv_dlopen_libs $LIBS"
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16645 if ${lt_cv_dlopen_self+:} false; then :
16646 $as_echo_n "(cached) " >&6
16648 if test "$cross_compiling" = yes; then :
16649 lt_cv_dlopen_self=cross
16651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16652 lt_status=$lt_dlunknown
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16654 "configure"
16655 #include "confdefs.h"
16664 # define LT_DLGLOBAL RTLD_GLOBAL
16667 # define LT_DLGLOBAL DL_GLOBAL
16669 # define LT_DLGLOBAL 0
16673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16674 find out it does not work in some platform. */
16675 #ifndef LT_DLLAZY_OR_NOW
16677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16680 # define LT_DLLAZY_OR_NOW DL_LAZY
16683 # define LT_DLLAZY_OR_NOW RTLD_NOW
16686 # define LT_DLLAZY_OR_NOW DL_NOW
16688 # define LT_DLLAZY_OR_NOW 0
16696 extern "C" void exit (int);
16699 void fnord() { int i=42;}
16702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16703 int status = $lt_dlunknown;
16707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16709 /* dlclose (self); */
16715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16716 (eval $ac_link) 2>&5
16718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16720 (./conftest; exit; ) 2>/dev/null
16722 case x$lt_status in
16723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16725 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16728 # compilation failed
16729 lt_cv_dlopen_self=no
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16737 $as_echo "$lt_cv_dlopen_self" >&6; }
16739 if test "x$lt_cv_dlopen_self" = xyes; then
16740 LDFLAGS="$LDFLAGS $link_static_flag"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16742 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16743 if ${lt_cv_dlopen_self_static+:} false; then :
16744 $as_echo_n "(cached) " >&6
16746 if test "$cross_compiling" = yes; then :
16747 lt_cv_dlopen_self_static=cross
16749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16750 lt_status=$lt_dlunknown
16751 cat > conftest.$ac_ext <<EOF
16752 #line 16752 "configure"
16753 #include "confdefs.h"
16762 # define LT_DLGLOBAL RTLD_GLOBAL
16765 # define LT_DLGLOBAL DL_GLOBAL
16767 # define LT_DLGLOBAL 0
16771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16772 find out it does not work in some platform. */
16773 #ifndef LT_DLLAZY_OR_NOW
16775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16778 # define LT_DLLAZY_OR_NOW DL_LAZY
16781 # define LT_DLLAZY_OR_NOW RTLD_NOW
16784 # define LT_DLLAZY_OR_NOW DL_NOW
16786 # define LT_DLLAZY_OR_NOW 0
16794 extern "C" void exit (int);
16797 void fnord() { int i=42;}
16800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16801 int status = $lt_dlunknown;
16805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16807 /* dlclose (self); */
16813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16814 (eval $ac_link) 2>&5
16816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16818 (./conftest; exit; ) 2>/dev/null
16820 case x$lt_status in
16821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16823 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16826 # compilation failed
16827 lt_cv_dlopen_self_static=no
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16838 CPPFLAGS="$save_CPPFLAGS"
16839 LDFLAGS="$save_LDFLAGS"
16844 case $lt_cv_dlopen_self in
16845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16846 *) enable_dlopen_self=unknown ;;
16849 case $lt_cv_dlopen_self_static in
16850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16851 *) enable_dlopen_self_static=unknown ;;
16856 # The else clause should only fire when bootstrapping the
16857 # libtool distribution, otherwise you forgot to ship ltmain.sh
16858 # with your package, and you will get complaints that there are
16859 # no rules to generate ltmain.sh.
16860 if test -f "$ltmain"; then
16861 # See if we are running on zsh, and set the options which allow our commands through
16862 # without removal of \ escapes.
16863 if test -n "${ZSH_VERSION+set}" ; then
16864 setopt NO_GLOB_SUBST
16866 # Now quote all the things that may contain metacharacters while being
16867 # careful not to overquote the AC_SUBSTed values. We take copies of the
16868 # variables and quote the copies for generation of the libtool script.
16869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16873 deplibs_check_method reload_flag reload_cmds need_locks \
16874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16875 lt_cv_sys_global_symbol_to_c_name_address \
16876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16877 old_postinstall_cmds old_postuninstall_cmds \
16881 lt_prog_compiler_wl_GCJ \
16882 lt_prog_compiler_pic_GCJ \
16883 lt_prog_compiler_static_GCJ \
16884 lt_prog_compiler_no_builtin_flag_GCJ \
16885 export_dynamic_flag_spec_GCJ \
16886 thread_safe_flag_spec_GCJ \
16887 whole_archive_flag_spec_GCJ \
16888 enable_shared_with_static_runtimes_GCJ \
16889 old_archive_cmds_GCJ \
16890 old_archive_from_new_cmds_GCJ \
16891 predep_objects_GCJ \
16892 postdep_objects_GCJ \
16895 compiler_lib_search_path_GCJ \
16897 archive_expsym_cmds_GCJ \
16898 postinstall_cmds_GCJ \
16899 postuninstall_cmds_GCJ \
16900 old_archive_from_expsyms_cmds_GCJ \
16901 allow_undefined_flag_GCJ \
16902 no_undefined_flag_GCJ \
16903 export_symbols_cmds_GCJ \
16904 hardcode_libdir_flag_spec_GCJ \
16905 hardcode_libdir_flag_spec_ld_GCJ \
16906 hardcode_libdir_separator_GCJ \
16907 hardcode_automatic_GCJ \
16909 module_expsym_cmds_GCJ \
16910 lt_cv_prog_compiler_c_o_GCJ \
16911 exclude_expsyms_GCJ \
16912 include_expsyms_GCJ; do
16915 old_archive_cmds_GCJ | \
16916 old_archive_from_new_cmds_GCJ | \
16917 archive_cmds_GCJ | \
16918 archive_expsym_cmds_GCJ | \
16919 module_cmds_GCJ | \
16920 module_expsym_cmds_GCJ | \
16921 old_archive_from_expsyms_cmds_GCJ | \
16922 export_symbols_cmds_GCJ | \
16923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16924 postinstall_cmds | postuninstall_cmds | \
16925 old_postinstall_cmds | old_postuninstall_cmds | \
16926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16927 # Double-quote double-evaled strings.
16928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16937 *'\$0 --fallback-echo"')
16938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16944 cat <<__EOF__ >> "$cfgfile"
16945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16949 # Shell to use when invoking shell scripts.
16952 # Whether or not to build shared libraries.
16953 build_libtool_libs=$enable_shared
16955 # Whether or not to build static libraries.
16956 build_old_libs=$enable_static
16958 # Whether or not to add -lc for building shared libraries.
16959 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16961 # Whether or not to disallow shared libs when runtime libs are static
16962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16964 # Whether or not to optimize for fast installation.
16965 fast_install=$enable_fast_install
16968 host_alias=$host_alias
16971 # An echo program that does not interpret backslashes.
16976 AR_FLAGS=$lt_AR_FLAGS
16981 # A language-specific compiler.
16982 CC=$lt_compiler_GCJ
16984 # Is the compiler the GNU C compiler?
16990 # The linker used to build libraries.
16993 # Whether we need hard or soft links.
16996 # A BSD-compatible nm program.
16999 # A symbol stripping program
17002 # Used to examine libraries when file_magic_cmd begins "file"
17003 MAGIC_CMD=$MAGIC_CMD
17005 # Used on cygwin: DLL creation program.
17008 # Used on cygwin: object dumper.
17011 # Used on cygwin: assembler.
17014 # The name of the directory that contains temporary libtool files.
17017 # How to create reloadable object files.
17018 reload_flag=$lt_reload_flag
17019 reload_cmds=$lt_reload_cmds
17021 # How to pass a linker flag through the compiler.
17022 wl=$lt_lt_prog_compiler_wl_GCJ
17024 # Object file suffix (normally "o").
17025 objext="$ac_objext"
17027 # Old archive suffix (normally "a").
17030 # Shared library suffix (normally ".so").
17033 # Executable file suffix (normally "").
17036 # Additional compiler flags for building library objects.
17037 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17040 # What is the maximum length of a command?
17041 max_cmd_len=$lt_cv_sys_max_cmd_len
17043 # Does compiler simultaneously support -c and -o options?
17044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17046 # Must we lock files when doing compilation ?
17047 need_locks=$lt_need_locks
17049 # Do we need the lib prefix for modules?
17050 need_lib_prefix=$need_lib_prefix
17052 # Do we need a version for libraries?
17053 need_version=$need_version
17055 # Whether dlopen is supported.
17056 dlopen_support=$enable_dlopen
17058 # Whether dlopen of programs is supported.
17059 dlopen_self=$enable_dlopen_self
17061 # Whether dlopen of statically linked programs is supported.
17062 dlopen_self_static=$enable_dlopen_self_static
17064 # Compiler flag to prevent dynamic linking.
17065 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17067 # Compiler flag to turn off builtin functions.
17068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17070 # Compiler flag to allow reflexive dlopens.
17071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17073 # Compiler flag to generate shared objects directly from archives.
17074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17076 # Compiler flag to generate thread-safe objects.
17077 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17079 # Library versioning type.
17080 version_type=$version_type
17082 # Format of library name prefix.
17083 libname_spec=$lt_libname_spec
17085 # List of archive names. First name is the real one, the rest are links.
17086 # The last name is the one that the linker finds with -lNAME.
17087 library_names_spec=$lt_library_names_spec
17089 # The coded name of the library, if different from the real name.
17090 soname_spec=$lt_soname_spec
17092 # Commands used to build and install an old-style archive.
17094 old_archive_cmds=$lt_old_archive_cmds_GCJ
17095 old_postinstall_cmds=$lt_old_postinstall_cmds
17096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17098 # Create an old-style archive from a shared archive.
17099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17101 # Create a temporary old-style archive to link instead of a shared archive.
17102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17104 # Commands used to build and install a shared archive.
17105 archive_cmds=$lt_archive_cmds_GCJ
17106 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17107 postinstall_cmds=$lt_postinstall_cmds
17108 postuninstall_cmds=$lt_postuninstall_cmds
17110 # Commands used to build a loadable module (assumed same as above if empty)
17111 module_cmds=$lt_module_cmds_GCJ
17112 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17114 # Commands to strip libraries.
17115 old_striplib=$lt_old_striplib
17116 striplib=$lt_striplib
17118 # Dependencies to place before the objects being linked to create a
17120 predep_objects=$lt_predep_objects_GCJ
17122 # Dependencies to place after the objects being linked to create a
17124 postdep_objects=$lt_postdep_objects_GCJ
17126 # Dependencies to place before the objects being linked to create a
17128 predeps=$lt_predeps_GCJ
17130 # Dependencies to place after the objects being linked to create a
17132 postdeps=$lt_postdeps_GCJ
17134 # The library search path used internally by the compiler when linking
17135 # a shared library.
17136 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17138 # Method to check whether dependent libraries are shared objects.
17139 deplibs_check_method=$lt_deplibs_check_method
17141 # Command to use when deplibs_check_method == file_magic.
17142 file_magic_cmd=$lt_file_magic_cmd
17144 # Flag that allows shared libraries with undefined symbols to be built.
17145 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17147 # Flag that forces no undefined symbols.
17148 no_undefined_flag=$lt_no_undefined_flag_GCJ
17150 # Commands used to finish a libtool library installation in a directory.
17151 finish_cmds=$lt_finish_cmds
17153 # Same as above, but a single script fragment to be evaled but not shown.
17154 finish_eval=$lt_finish_eval
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17159 # Transform the output of nm in a proper C declaration
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17162 # Transform the output of nm in a C name address pair
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17165 # This is the shared library runtime path variable.
17166 runpath_var=$runpath_var
17168 # This is the shared library path variable.
17169 shlibpath_var=$shlibpath_var
17171 # Is shlibpath searched before the hard-coded library search path?
17172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action_GCJ
17177 # Whether we should hardcode library paths into libraries.
17178 hardcode_into_libs=$hardcode_into_libs
17180 # Flag to hardcode \$libdir into a binary during linking.
17181 # This must work even if \$libdir does not exist.
17182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17184 # If ld is used when linking, flag to hardcode \$libdir into
17185 # a binary during linking. This must work even if \$libdir does
17187 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17189 # Whether we need a single -rpath flag with a separated argument.
17190 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17192 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_direct=$hardcode_direct_GCJ
17196 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17197 # resulting binary.
17198 hardcode_minus_L=$hardcode_minus_L_GCJ
17200 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17201 # the resulting binary.
17202 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17204 # Set to yes if building a shared library automatically hardcodes DIR into the library
17205 # and all subsequent libraries and executables linked against it.
17206 hardcode_automatic=$hardcode_automatic_GCJ
17208 # Variables whose values should be saved in libtool wrapper scripts and
17209 # restored at relink time.
17210 variables_saved_for_relink="$variables_saved_for_relink"
17212 # Whether libtool must link a program against all its dependency libraries.
17213 link_all_deplibs=$link_all_deplibs_GCJ
17215 # Compile-time system search path for libraries
17216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17218 # Run-time system search path for libraries
17219 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17221 # Fix the shell variable \$srcfile for the compiler.
17222 fix_srcfile_path="$fix_srcfile_path_GCJ"
17224 # Set to yes if exported symbols are required.
17225 always_export_symbols=$always_export_symbols_GCJ
17227 # The commands to list exported symbols.
17228 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17230 # The commands to extract the exported symbol list from a shared archive.
17231 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17233 # Symbols that should not be listed in the preloaded symbols.
17234 exclude_expsyms=$lt_exclude_expsyms_GCJ
17236 # Symbols that must always be exported.
17237 include_expsyms=$lt_include_expsyms_GCJ
17239 # ### END LIBTOOL TAG CONFIG: $tagname
17245 # If there is no Makefile yet, we rely on a make rule to execute
17246 # `config.status --recheck' to rerun these tests and create the
17247 # libtool script then.
17248 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17249 if test -f "$ltmain_in"; then
17250 test -f Makefile && make "$ltmain"
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17271 # Source file extension for RC test sources.
17274 # Object file extension for compiled RC test sources.
17278 # Code to be used in simple compile tests
17279 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17281 # Code to be used in simple link tests
17282 lt_simple_link_test_code="$lt_simple_compile_test_code"
17284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17286 # If no C compiler was specified, use CC.
17289 # Allow CC to be a program name with arguments.
17293 # Allow CC to be a program name with arguments.
17298 lt_cv_prog_compiler_c_o_RC=yes
17300 # The else clause should only fire when bootstrapping the
17301 # libtool distribution, otherwise you forgot to ship ltmain.sh
17302 # with your package, and you will get complaints that there are
17303 # no rules to generate ltmain.sh.
17304 if test -f "$ltmain"; then
17305 # See if we are running on zsh, and set the options which allow our commands through
17306 # without removal of \ escapes.
17307 if test -n "${ZSH_VERSION+set}" ; then
17308 setopt NO_GLOB_SUBST
17310 # Now quote all the things that may contain metacharacters while being
17311 # careful not to overquote the AC_SUBSTed values. We take copies of the
17312 # variables and quote the copies for generation of the libtool script.
17313 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17317 deplibs_check_method reload_flag reload_cmds need_locks \
17318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17319 lt_cv_sys_global_symbol_to_c_name_address \
17320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17321 old_postinstall_cmds old_postuninstall_cmds \
17325 lt_prog_compiler_wl_RC \
17326 lt_prog_compiler_pic_RC \
17327 lt_prog_compiler_static_RC \
17328 lt_prog_compiler_no_builtin_flag_RC \
17329 export_dynamic_flag_spec_RC \
17330 thread_safe_flag_spec_RC \
17331 whole_archive_flag_spec_RC \
17332 enable_shared_with_static_runtimes_RC \
17333 old_archive_cmds_RC \
17334 old_archive_from_new_cmds_RC \
17335 predep_objects_RC \
17336 postdep_objects_RC \
17339 compiler_lib_search_path_RC \
17341 archive_expsym_cmds_RC \
17342 postinstall_cmds_RC \
17343 postuninstall_cmds_RC \
17344 old_archive_from_expsyms_cmds_RC \
17345 allow_undefined_flag_RC \
17346 no_undefined_flag_RC \
17347 export_symbols_cmds_RC \
17348 hardcode_libdir_flag_spec_RC \
17349 hardcode_libdir_flag_spec_ld_RC \
17350 hardcode_libdir_separator_RC \
17351 hardcode_automatic_RC \
17353 module_expsym_cmds_RC \
17354 lt_cv_prog_compiler_c_o_RC \
17355 exclude_expsyms_RC \
17356 include_expsyms_RC; do
17359 old_archive_cmds_RC | \
17360 old_archive_from_new_cmds_RC | \
17361 archive_cmds_RC | \
17362 archive_expsym_cmds_RC | \
17364 module_expsym_cmds_RC | \
17365 old_archive_from_expsyms_cmds_RC | \
17366 export_symbols_cmds_RC | \
17367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17368 postinstall_cmds | postuninstall_cmds | \
17369 old_postinstall_cmds | old_postuninstall_cmds | \
17370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17371 # Double-quote double-evaled strings.
17372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17381 *'\$0 --fallback-echo"')
17382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17388 cat <<__EOF__ >> "$cfgfile"
17389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17393 # Shell to use when invoking shell scripts.
17396 # Whether or not to build shared libraries.
17397 build_libtool_libs=$enable_shared
17399 # Whether or not to build static libraries.
17400 build_old_libs=$enable_static
17402 # Whether or not to add -lc for building shared libraries.
17403 build_libtool_need_lc=$archive_cmds_need_lc_RC
17405 # Whether or not to disallow shared libs when runtime libs are static
17406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17408 # Whether or not to optimize for fast installation.
17409 fast_install=$enable_fast_install
17412 host_alias=$host_alias
17415 # An echo program that does not interpret backslashes.
17420 AR_FLAGS=$lt_AR_FLAGS
17425 # A language-specific compiler.
17428 # Is the compiler the GNU C compiler?
17434 # The linker used to build libraries.
17437 # Whether we need hard or soft links.
17440 # A BSD-compatible nm program.
17443 # A symbol stripping program
17446 # Used to examine libraries when file_magic_cmd begins "file"
17447 MAGIC_CMD=$MAGIC_CMD
17449 # Used on cygwin: DLL creation program.
17452 # Used on cygwin: object dumper.
17455 # Used on cygwin: assembler.
17458 # The name of the directory that contains temporary libtool files.
17461 # How to create reloadable object files.
17462 reload_flag=$lt_reload_flag
17463 reload_cmds=$lt_reload_cmds
17465 # How to pass a linker flag through the compiler.
17466 wl=$lt_lt_prog_compiler_wl_RC
17468 # Object file suffix (normally "o").
17469 objext="$ac_objext"
17471 # Old archive suffix (normally "a").
17474 # Shared library suffix (normally ".so").
17477 # Executable file suffix (normally "").
17480 # Additional compiler flags for building library objects.
17481 pic_flag=$lt_lt_prog_compiler_pic_RC
17484 # What is the maximum length of a command?
17485 max_cmd_len=$lt_cv_sys_max_cmd_len
17487 # Does compiler simultaneously support -c and -o options?
17488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17490 # Must we lock files when doing compilation ?
17491 need_locks=$lt_need_locks
17493 # Do we need the lib prefix for modules?
17494 need_lib_prefix=$need_lib_prefix
17496 # Do we need a version for libraries?
17497 need_version=$need_version
17499 # Whether dlopen is supported.
17500 dlopen_support=$enable_dlopen
17502 # Whether dlopen of programs is supported.
17503 dlopen_self=$enable_dlopen_self
17505 # Whether dlopen of statically linked programs is supported.
17506 dlopen_self_static=$enable_dlopen_self_static
17508 # Compiler flag to prevent dynamic linking.
17509 link_static_flag=$lt_lt_prog_compiler_static_RC
17511 # Compiler flag to turn off builtin functions.
17512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17514 # Compiler flag to allow reflexive dlopens.
17515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17517 # Compiler flag to generate shared objects directly from archives.
17518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17520 # Compiler flag to generate thread-safe objects.
17521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17523 # Library versioning type.
17524 version_type=$version_type
17526 # Format of library name prefix.
17527 libname_spec=$lt_libname_spec
17529 # List of archive names. First name is the real one, the rest are links.
17530 # The last name is the one that the linker finds with -lNAME.
17531 library_names_spec=$lt_library_names_spec
17533 # The coded name of the library, if different from the real name.
17534 soname_spec=$lt_soname_spec
17536 # Commands used to build and install an old-style archive.
17538 old_archive_cmds=$lt_old_archive_cmds_RC
17539 old_postinstall_cmds=$lt_old_postinstall_cmds
17540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17542 # Create an old-style archive from a shared archive.
17543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17545 # Create a temporary old-style archive to link instead of a shared archive.
17546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17548 # Commands used to build and install a shared archive.
17549 archive_cmds=$lt_archive_cmds_RC
17550 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17551 postinstall_cmds=$lt_postinstall_cmds
17552 postuninstall_cmds=$lt_postuninstall_cmds
17554 # Commands used to build a loadable module (assumed same as above if empty)
17555 module_cmds=$lt_module_cmds_RC
17556 module_expsym_cmds=$lt_module_expsym_cmds_RC
17558 # Commands to strip libraries.
17559 old_striplib=$lt_old_striplib
17560 striplib=$lt_striplib
17562 # Dependencies to place before the objects being linked to create a
17564 predep_objects=$lt_predep_objects_RC
17566 # Dependencies to place after the objects being linked to create a
17568 postdep_objects=$lt_postdep_objects_RC
17570 # Dependencies to place before the objects being linked to create a
17572 predeps=$lt_predeps_RC
17574 # Dependencies to place after the objects being linked to create a
17576 postdeps=$lt_postdeps_RC
17578 # The library search path used internally by the compiler when linking
17579 # a shared library.
17580 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17582 # Method to check whether dependent libraries are shared objects.
17583 deplibs_check_method=$lt_deplibs_check_method
17585 # Command to use when deplibs_check_method == file_magic.
17586 file_magic_cmd=$lt_file_magic_cmd
17588 # Flag that allows shared libraries with undefined symbols to be built.
17589 allow_undefined_flag=$lt_allow_undefined_flag_RC
17591 # Flag that forces no undefined symbols.
17592 no_undefined_flag=$lt_no_undefined_flag_RC
17594 # Commands used to finish a libtool library installation in a directory.
17595 finish_cmds=$lt_finish_cmds
17597 # Same as above, but a single script fragment to be evaled but not shown.
17598 finish_eval=$lt_finish_eval
17600 # Take the output of nm and produce a listing of raw symbols and C names.
17601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17603 # Transform the output of nm in a proper C declaration
17604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17606 # Transform the output of nm in a C name address pair
17607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17609 # This is the shared library runtime path variable.
17610 runpath_var=$runpath_var
17612 # This is the shared library path variable.
17613 shlibpath_var=$shlibpath_var
17615 # Is shlibpath searched before the hard-coded library search path?
17616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17618 # How to hardcode a shared library path into an executable.
17619 hardcode_action=$hardcode_action_RC
17621 # Whether we should hardcode library paths into libraries.
17622 hardcode_into_libs=$hardcode_into_libs
17624 # Flag to hardcode \$libdir into a binary during linking.
17625 # This must work even if \$libdir does not exist.
17626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17628 # If ld is used when linking, flag to hardcode \$libdir into
17629 # a binary during linking. This must work even if \$libdir does
17631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17633 # Whether we need a single -rpath flag with a separated argument.
17634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17637 # resulting binary.
17638 hardcode_direct=$hardcode_direct_RC
17640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17641 # resulting binary.
17642 hardcode_minus_L=$hardcode_minus_L_RC
17644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17645 # the resulting binary.
17646 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17648 # Set to yes if building a shared library automatically hardcodes DIR into the library
17649 # and all subsequent libraries and executables linked against it.
17650 hardcode_automatic=$hardcode_automatic_RC
17652 # Variables whose values should be saved in libtool wrapper scripts and
17653 # restored at relink time.
17654 variables_saved_for_relink="$variables_saved_for_relink"
17656 # Whether libtool must link a program against all its dependency libraries.
17657 link_all_deplibs=$link_all_deplibs_RC
17659 # Compile-time system search path for libraries
17660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17662 # Run-time system search path for libraries
17663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17665 # Fix the shell variable \$srcfile for the compiler.
17666 fix_srcfile_path="$fix_srcfile_path_RC"
17668 # Set to yes if exported symbols are required.
17669 always_export_symbols=$always_export_symbols_RC
17671 # The commands to list exported symbols.
17672 export_symbols_cmds=$lt_export_symbols_cmds_RC
17674 # The commands to extract the exported symbol list from a shared archive.
17675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17677 # Symbols that should not be listed in the preloaded symbols.
17678 exclude_expsyms=$lt_exclude_expsyms_RC
17680 # Symbols that must always be exported.
17681 include_expsyms=$lt_include_expsyms_RC
17683 # ### END LIBTOOL TAG CONFIG: $tagname
17689 # If there is no Makefile yet, we rely on a make rule to execute
17690 # `config.status --recheck' to rerun these tests and create the
17691 # libtool script then.
17692 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17693 if test -f "$ltmain_in"; then
17694 test -f Makefile && make "$ltmain"
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17710 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
17714 # Append the new tag name to the list of available tags.
17715 if test -n "$tagname" ; then
17716 available_tags="$available_tags $tagname"
17722 # Now substitute the updated list of available tags.
17723 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17724 mv "${ofile}T" "$ofile"
17728 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
17734 # This can be used to rebuild libtool when needed
17735 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17737 # Always use our own libtool.
17738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17740 # Prevent multiple expansion
17761 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17762 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17764 # Settings for optional paths
17766 # Check whether --with-site_includes was given.
17767 if test "${with_site_includes+set}" = set; then :
17768 withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
17770 SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
17772 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'`
17775 if test -f /sw/include/db3/db.h; then
17776 CFLAGS="-I/sw/include/db3 $CFLAGS"
17777 elif test -f /sw/include/db4/db.h; then
17778 CFLAGS="-I/sw/include/db4 $CFLAGS"
17785 # Check whether --with-site_libraries was given.
17786 if test "${with_site_libraries+set}" = set; then :
17787 withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
17789 SITE_LIBS="$SITE_LIBS -L$dir"
17791 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'`
17796 # Checks for libraries.
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for concord_open_env in -lconcord" >&5
17798 $as_echo_n "checking for concord_open_env in -lconcord... " >&6; }
17799 if ${ac_cv_lib_concord_concord_open_env+:} false; then :
17800 $as_echo_n "(cached) " >&6
17802 ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lconcord $LIBS"
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17807 /* Override any GCC internal prototype to avoid an error.
17808 Use char because int might match the return type of a GCC
17809 builtin and then its argument prototype would still apply. */
17813 char concord_open_env ();
17817 return concord_open_env ();
17822 if ac_fn_c_try_link "$LINENO"; then :
17823 ac_cv_lib_concord_concord_open_env=yes
17825 ac_cv_lib_concord_concord_open_env=no
17827 rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829 LIBS=$ac_check_lib_save_LIBS
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_concord_concord_open_env" >&5
17832 $as_echo "$ac_cv_lib_concord_concord_open_env" >&6; }
17833 if test "x$ac_cv_lib_concord_concord_open_env" = xyes; then :
17834 cat >>confdefs.h <<_ACEOF
17835 #define HAVE_LIBCONCORD 1
17838 LIBS="-lconcord $LIBS"
17841 as_fn_error $? "Please install Concord Ver.0.9 or later." "$LINENO" 5
17845 # Checks for header files.
17847 # Checks for typedefs, structures, and compiler characteristics.
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17849 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17850 if ${ac_cv_c_const+:} false; then :
17851 $as_echo_n "(cached) " >&6
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17860 #ifndef __cplusplus
17861 /* Ultrix mips cc rejects this sort of thing. */
17862 typedef int charset[2];
17863 const charset cs = { 0, 0 };
17864 /* SunOS 4.1.1 cc rejects this. */
17865 char const *const *pcpcc;
17867 /* NEC SVR4.0.2 mips cc rejects this. */
17868 struct point {int x, y;};
17869 static struct point const zero = {0,0};
17870 /* AIX XL C 1.02.0.0 rejects this.
17871 It does not let you subtract one const X* pointer from another in
17872 an arm of an if-expression whose if-part is not a constant
17874 const char *g = "string";
17875 pcpcc = &g + (g ? g-g : 0);
17876 /* HPUX 7.0 cc rejects these. */
17878 ppc = (char**) pcpcc;
17879 pcpcc = (char const *const *) ppc;
17880 { /* SCO 3.2v4 cc rejects this sort of thing. */
17883 char const *s = 0 ? (char *) 0 : (char const *) 0;
17888 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17889 int x[] = {25, 17};
17890 const int *foo = &x[0];
17893 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17894 typedef const int *iptr;
17898 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17900 struct s { int j; const int *ap[3]; } bx;
17901 struct s *b = &bx; b->j = 5;
17903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17904 const int foo = 10;
17905 if (!foo) return 0;
17907 return !cs[0] && !zero.x;
17914 if ac_fn_c_try_compile "$LINENO"; then :
17919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17922 $as_echo "$ac_cv_c_const" >&6; }
17923 if test $ac_cv_c_const = no; then
17925 $as_echo "#define const /**/" >>confdefs.h
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17930 $as_echo_n "checking for inline... " >&6; }
17931 if ${ac_cv_c_inline+:} false; then :
17932 $as_echo_n "(cached) " >&6
17935 for ac_kw in inline __inline__ __inline; do
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17938 #ifndef __cplusplus
17940 static $ac_kw foo_t static_foo () {return 0; }
17941 $ac_kw foo_t foo () {return 0; }
17945 if ac_fn_c_try_compile "$LINENO"; then :
17946 ac_cv_c_inline=$ac_kw
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 test "$ac_cv_c_inline" != no && break
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17954 $as_echo "$ac_cv_c_inline" >&6; }
17956 case $ac_cv_c_inline in
17959 case $ac_cv_c_inline in
17961 *) ac_val=$ac_cv_c_inline;;
17963 cat >>confdefs.h <<_ACEOF
17964 #ifndef __cplusplus
17965 #define inline $ac_val
17972 # Checks for library functions.
17973 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17974 if test "x$ac_cv_type_size_t" = xyes; then :
17978 cat >>confdefs.h <<_ACEOF
17979 #define size_t unsigned int
17984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17985 # for constant arguments. Useless!
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17987 $as_echo_n "checking for working alloca.h... " >&6; }
17988 if ${ac_cv_working_alloca_h+:} false; then :
17989 $as_echo_n "(cached) " >&6
17991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17993 #include <alloca.h>
17997 char *p = (char *) alloca (2 * sizeof (int));
18003 if ac_fn_c_try_link "$LINENO"; then :
18004 ac_cv_working_alloca_h=yes
18006 ac_cv_working_alloca_h=no
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18012 $as_echo "$ac_cv_working_alloca_h" >&6; }
18013 if test $ac_cv_working_alloca_h = yes; then
18015 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18020 $as_echo_n "checking for alloca... " >&6; }
18021 if ${ac_cv_func_alloca_works+:} false; then :
18022 $as_echo_n "(cached) " >&6
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18027 # define alloca __builtin_alloca
18030 # include <malloc.h>
18031 # define alloca _alloca
18033 # ifdef HAVE_ALLOCA_H
18034 # include <alloca.h>
18039 # ifndef alloca /* predefined by HP cc +Olibcalls */
18040 void *alloca (size_t);
18050 char *p = (char *) alloca (1);
18056 if ac_fn_c_try_link "$LINENO"; then :
18057 ac_cv_func_alloca_works=yes
18059 ac_cv_func_alloca_works=no
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18065 $as_echo "$ac_cv_func_alloca_works" >&6; }
18067 if test $ac_cv_func_alloca_works = yes; then
18069 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18073 # that cause trouble. Some versions do not even contain alloca or
18074 # contain a buggy version. If you still want to use their alloca,
18075 # use ar to extract alloca.o from them instead of compiling alloca.c.
18077 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18079 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18083 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18084 if ${ac_cv_os_cray+:} false; then :
18085 $as_echo_n "(cached) " >&6
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 #if defined CRAY && ! defined CRAY2
18096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18097 $EGREP "webecray" >/dev/null 2>&1; then :
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18106 $as_echo "$ac_cv_os_cray" >&6; }
18107 if test $ac_cv_os_cray = yes; then
18108 for ac_func in _getb67 GETB67 getb67; do
18109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define CRAY_STACKSEG_END $ac_func
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18124 $as_echo_n "checking stack direction for C alloca... " >&6; }
18125 if ${ac_cv_c_stack_direction+:} false; then :
18126 $as_echo_n "(cached) " >&6
18128 if test "$cross_compiling" = yes; then :
18129 ac_cv_c_stack_direction=0
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133 $ac_includes_default
18135 find_stack_direction (int *addr, int depth)
18137 int dir, dummy = 0;
18140 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18141 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18142 return dir + dummy;
18146 main (int argc, char **argv)
18148 return find_stack_direction (0, argc + !argv + 20) < 0;
18151 if ac_fn_c_try_run "$LINENO"; then :
18152 ac_cv_c_stack_direction=1
18154 ac_cv_c_stack_direction=-1
18156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18157 conftest.$ac_objext conftest.beam conftest.$ac_ext
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18162 $as_echo "$ac_cv_c_stack_direction" >&6; }
18163 cat >>confdefs.h <<_ACEOF
18164 #define STACK_DIRECTION $ac_cv_c_stack_direction
18171 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
18172 if test "x$ac_cv_header_minix_config_h" = xyes; then :
18179 if test "$MINIX" = yes; then
18181 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
18184 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
18187 $as_echo "#define _MINIX 1" >>confdefs.h
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
18193 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
18194 if ${ac_cv_safe_to_define___extensions__+:} false; then :
18195 $as_echo_n "(cached) " >&6
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18200 # define __EXTENSIONS__ 1
18201 $ac_includes_default
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211 ac_cv_safe_to_define___extensions__=yes
18213 ac_cv_safe_to_define___extensions__=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
18218 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
18219 test $ac_cv_safe_to_define___extensions__ = yes &&
18220 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18222 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
18224 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
18226 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
18228 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18232 $as_echo_n "checking for working strnlen... " >&6; }
18233 if ${ac_cv_func_strnlen_working+:} false; then :
18234 $as_echo_n "(cached) " >&6
18236 if test "$cross_compiling" = yes; then :
18237 # Guess no on AIX systems, yes otherwise.
18239 aix*) ac_cv_func_strnlen_working=no;;
18240 *) ac_cv_func_strnlen_working=yes;;
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245 $ac_includes_default
18251 #define S_LEN (sizeof S - 1)
18253 /* At least one implementation is buggy: that of AIX 4.3 would
18254 give strnlen (S, 1) == 3. */
18257 for (i = 0; i < S_LEN + 1; ++i)
18259 int expected = i <= S_LEN ? i : S_LEN;
18260 if (strnlen (S, i) != expected)
18269 if ac_fn_c_try_run "$LINENO"; then :
18270 ac_cv_func_strnlen_working=yes
18272 ac_cv_func_strnlen_working=no
18274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18275 conftest.$ac_objext conftest.beam conftest.$ac_ext
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18280 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18281 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
18282 *" strnlen.$ac_objext "* ) ;;
18283 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18289 for ac_func in strnlen
18291 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
18292 if test "x$ac_cv_func_strnlen" = xyes; then :
18293 cat >>confdefs.h <<_ACEOF
18294 #define HAVE_STRNLEN 1
18301 ac_config_files="$ac_config_files Makefile"
18303 cat >confcache <<\_ACEOF
18304 # This file is a shell script that caches the results of configure
18305 # tests run on this system so they can be shared between configure
18306 # scripts and configure runs, see configure's option --config-cache.
18307 # It is not useful on other systems. If it contains results you don't
18308 # want to keep, you may remove or edit it.
18310 # config.status only pays attention to the cache file if you give it
18311 # the --recheck option to rerun configure.
18313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18315 # following values.
18319 # The following way of writing the cache mishandles newlines in values,
18320 # but we know of no workaround that is simple, portable, and efficient.
18321 # So, we kill variables containing newlines.
18322 # Ultrix sh set writes to stderr and can't be redirected directly,
18323 # and sets the high bit in the cache file unless we assign to the vars.
18325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18326 eval ac_val=\$$ac_var
18330 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18334 _ | IFS | as_nl) ;; #(
18335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18336 *) { eval $ac_var=; unset $ac_var;} ;;
18342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18343 *${as_nl}ac_space=\ *)
18344 # `set' does not quote correctly, so add quotes: double-quote
18345 # substitution turns \\\\ into \\, and sed turns \\ into \.
18348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18351 # `set' quotes correctly as required by POSIX, so do not add quotes.
18352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18366 if test -w "$cache_file"; then
18367 if test "x$cache_file" != "x/dev/null"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18369 $as_echo "$as_me: updating cache $cache_file" >&6;}
18370 if test ! -f "$cache_file" || test -h "$cache_file"; then
18371 cat confcache >"$cache_file"
18373 case $cache_file in #(
18375 mv -f confcache "$cache_file"$$ &&
18376 mv -f "$cache_file"$$ "$cache_file" ;; #(
18378 mv -f confcache "$cache_file" ;;
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18384 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18390 # Let make expand exec_prefix.
18391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18393 DEFS=-DHAVE_CONFIG_H
18398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18399 # 1. Remove the extension, and $U if already installed.
18400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18401 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18403 # will be set to the directory where LIBOBJS objects are built.
18404 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18405 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18407 LIBOBJS=$ac_libobjs
18409 LTLIBOBJS=$ac_ltlibobjs
18413 : "${CONFIG_STATUS=./config.status}"
18415 ac_clean_files_save=$ac_clean_files
18416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18418 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18420 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18422 # Generated by $as_me.
18423 # Run this file to recreate the current configuration.
18424 # Compiler output produced by configure, useful for debugging
18425 # configure, is in config.log if it exists.
18428 ac_cs_recheck=false
18431 SHELL=\${CONFIG_SHELL-$SHELL}
18434 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18435 ## -------------------- ##
18436 ## M4sh Initialization. ##
18437 ## -------------------- ##
18439 # Be more Bourne compatible
18440 DUALCASE=1; export DUALCASE # for MKS sh
18441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18445 # is contrary to our usage. Disable this feature.
18446 alias -g '${1+"$@"}'='"$@"'
18447 setopt NO_GLOB_SUBST
18449 case `(set -o) 2>/dev/null` in #(
18461 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18462 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18465 # Prefer a ksh shell builtin over an external printf program on Solaris,
18466 # but without wasting forks for bash or zsh.
18467 if test -z "$BASH_VERSION$ZSH_VERSION" \
18468 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18469 as_echo='print -r --'
18470 as_echo_n='print -rn --'
18471 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18472 as_echo='printf %s\n'
18473 as_echo_n='printf %s'
18475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18477 as_echo_n='/usr/ucb/echo -n'
18479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18480 as_echo_n_body='eval
18484 expr "X$arg" : "X\\(.*\\)$as_nl";
18485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18489 export as_echo_n_body
18490 as_echo_n='sh -c $as_echo_n_body as_echo'
18492 export as_echo_body
18493 as_echo='sh -c $as_echo_body as_echo'
18496 # The user is always right.
18497 if test "${PATH_SEPARATOR+set}" != set; then
18499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18507 # We need space, tab and new line, in precisely that order. Quoting is
18508 # there to prevent editors from complaining about space-tab.
18509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18510 # splitting by setting IFS to empty value.)
18513 # Find who we are. Look in the path if we contain no directory separator.
18516 *[\\/]* ) as_myself=$0 ;;
18517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18521 test -z "$as_dir" && as_dir=.
18522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18528 # We did not find ourselves, most probably we were run as `sh COMMAND'
18529 # in which case we are not to be found in the path.
18530 if test "x$as_myself" = x; then
18533 if test ! -f "$as_myself"; then
18534 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18538 # Unset variables that we do not need and which cause bugs (e.g. in
18539 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18540 # suppresses any "Segmentation fault" message there. '((' could
18541 # trigger a bug in pdksh 5.2.14.
18542 for as_var in BASH_ENV ENV MAIL MAILPATH
18543 do eval test x\${$as_var+set} = xset \
18544 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18560 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18561 # ----------------------------------------
18562 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18563 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18564 # script with STATUS, using 1 if that was 0.
18567 as_status=$1; test $as_status -eq 0 && as_status=1
18569 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18570 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18572 $as_echo "$as_me: error: $2" >&2
18573 as_fn_exit $as_status
18577 # as_fn_set_status STATUS
18578 # -----------------------
18579 # Set $? to STATUS, without forking.
18580 as_fn_set_status ()
18583 } # as_fn_set_status
18585 # as_fn_exit STATUS
18586 # -----------------
18587 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18591 as_fn_set_status $1
18597 # Portably unset VAR.
18600 { eval $1=; unset $1;}
18602 as_unset=as_fn_unset
18603 # as_fn_append VAR VALUE
18604 # ----------------------
18605 # Append the text in VALUE to the end of the definition contained in VAR. Take
18606 # advantage of any shell optimizations that allow amortized linear growth over
18607 # repeated appends, instead of the typical quadratic growth present in naive
18609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18610 eval 'as_fn_append ()
18621 # as_fn_arith ARG...
18622 # ------------------
18623 # Perform arithmetic evaluation on the ARGs, and store the result in the
18624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18625 # must be portable across $(()) and expr.
18626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18627 eval 'as_fn_arith ()
18634 as_val=`expr "$@" || test $? -eq 1`
18639 if expr a : '\(a\)' >/dev/null 2>&1 &&
18640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18647 as_basename=basename
18652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18658 as_me=`$as_basename -- "$0" ||
18659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18660 X"$0" : 'X\(//\)$' \| \
18661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18663 sed '/^.*\/\([^/][^/]*\)\/*$/{
18677 # Avoid depending upon Character Ranges.
18678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18681 as_cr_digits='0123456789'
18682 as_cr_alnum=$as_cr_Letters$as_cr_digits
18684 ECHO_C= ECHO_N= ECHO_T=
18685 case `echo -n x` in #(((((
18687 case `echo 'xy\c'` in
18688 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18690 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18697 rm -f conf$$ conf$$.exe conf$$.file
18698 if test -d conf$$.dir; then
18699 rm -f conf$$.dir/conf$$.file
18702 mkdir conf$$.dir 2>/dev/null
18704 if (echo >conf$$.file) 2>/dev/null; then
18705 if ln -s conf$$.file conf$$ 2>/dev/null; then
18707 # ... but there are two gotchas:
18708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18710 # In both cases, we have to default to `cp -pR'.
18711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18713 elif ln conf$$.file conf$$ 2>/dev/null; then
18721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18722 rmdir conf$$.dir 2>/dev/null
18727 # Create "$as_dir" as a directory, including parents if necessary.
18732 -*) as_dir=./$as_dir;;
18734 test -d "$as_dir" || eval $as_mkdir_p || {
18738 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18739 *) as_qdir=$as_dir;;
18741 as_dirs="'$as_qdir' $as_dirs"
18742 as_dir=`$as_dirname -- "$as_dir" ||
18743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18744 X"$as_dir" : 'X\(//\)[^/]' \| \
18745 X"$as_dir" : 'X\(//\)$' \| \
18746 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18747 $as_echo X"$as_dir" |
18748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18752 /^X\(\/\/\)[^/].*/{
18765 test -d "$as_dir" && break
18767 test -z "$as_dirs" || eval "mkdir $as_dirs"
18768 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18772 if mkdir -p . 2>/dev/null; then
18773 as_mkdir_p='mkdir -p "$as_dir"'
18775 test -d ./-p && rmdir ./-p
18780 # as_fn_executable_p FILE
18781 # -----------------------
18782 # Test if FILE is an executable regular file.
18783 as_fn_executable_p ()
18785 test -f "$1" && test -x "$1"
18786 } # as_fn_executable_p
18787 as_test_x='test -x'
18788 as_executable_p=as_fn_executable_p
18790 # Sed expression to map a string onto a valid CPP name.
18791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18793 # Sed expression to map a string onto a valid variable name.
18794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18798 ## ----------------------------------- ##
18799 ## Main body of $CONFIG_STATUS script. ##
18800 ## ----------------------------------- ##
18802 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805 # Save the log message, to keep $0 and so on meaningful, and to
18806 # report actual input values of CONFIG_FILES etc. instead of their
18807 # values after options handling.
18809 This file was extended by libchise $as_me 0.5.0, which was
18810 generated by GNU Autoconf 2.69. Invocation command line was
18812 CONFIG_FILES = $CONFIG_FILES
18813 CONFIG_HEADERS = $CONFIG_HEADERS
18814 CONFIG_LINKS = $CONFIG_LINKS
18815 CONFIG_COMMANDS = $CONFIG_COMMANDS
18818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18823 case $ac_config_files in *"
18824 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18827 case $ac_config_headers in *"
18828 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18833 # Files that config.status was made for.
18834 config_files="$ac_config_files"
18835 config_headers="$ac_config_headers"
18839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18841 \`$as_me' instantiates files and other configuration actions
18842 from templates according to the current configuration. Unless the files
18843 and actions are specified as TAGs, all are instantiated by default.
18845 Usage: $0 [OPTION]... [TAG]...
18847 -h, --help print this help, then exit
18848 -V, --version print version number and configuration settings, then exit
18849 --config print configuration, then exit
18850 -q, --quiet, --silent
18851 do not print progress messages
18852 -d, --debug don't remove temporary files
18853 --recheck update $as_me by reconfiguring in the same conditions
18854 --file=FILE[:TEMPLATE]
18855 instantiate the configuration file FILE
18856 --header=FILE[:TEMPLATE]
18857 instantiate the configuration header FILE
18859 Configuration files:
18862 Configuration headers:
18865 Report bugs to <chise-en@lists.chise.org>."
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18871 libchise config.status 0.5.0
18872 configured by $0, generated by GNU Autoconf 2.69,
18873 with options \\"\$ac_cs_config\\"
18875 Copyright (C) 2012 Free Software Foundation, Inc.
18876 This config.status script is free software; the Free Software Foundation
18877 gives unlimited permission to copy, distribute and modify it."
18881 test -n "\$AWK" || AWK=awk
18884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18885 # The default lists apply if the user does not specify any file.
18891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18896 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18908 # Handling of the options.
18909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18912 $as_echo "$ac_cs_version"; exit ;;
18913 --config | --confi | --conf | --con | --co | --c )
18914 $as_echo "$ac_cs_config"; exit ;;
18915 --debug | --debu | --deb | --de | --d | -d )
18917 --file | --fil | --fi | --f )
18920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18921 '') as_fn_error $? "missing file argument" ;;
18923 as_fn_append CONFIG_FILES " '$ac_optarg'"
18924 ac_need_defaults=false;;
18925 --header | --heade | --head | --hea )
18928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18931 ac_need_defaults=false;;
18933 # Conflict between --help and --header
18934 as_fn_error $? "ambiguous option: \`$1'
18935 Try \`$0 --help' for more information.";;
18936 --help | --hel | -h )
18937 $as_echo "$ac_cs_usage"; exit ;;
18938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18942 # This is an error.
18943 -*) as_fn_error $? "unrecognized option: \`$1'
18944 Try \`$0 --help' for more information." ;;
18946 *) as_fn_append ac_config_targets " $1"
18947 ac_need_defaults=false ;;
18953 ac_configure_extra_args=
18955 if $ac_cs_silent; then
18957 ac_configure_extra_args="$ac_configure_extra_args --silent"
18961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962 if \$ac_cs_recheck; then
18963 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18966 CONFIG_SHELL='$SHELL'
18967 export CONFIG_SHELL
18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18977 ## Running $as_me. ##
18983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18991 case $ac_config_target in
18992 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18995 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19000 # If the user did not use the arguments to specify the items to instantiate,
19001 # then the envvar interface is used. Set only those that are not.
19002 # We use the long form for the default assignment because of an extremely
19003 # bizarre bug on SunOS 4.1.3.
19004 if $ac_need_defaults; then
19005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19009 # Have a temporary directory for convenience. Make it in the build tree
19010 # simply because there is no reason against having it here, and in addition,
19011 # creating and moving files from /tmp can sometimes cause problems.
19012 # Hook for its removal unless debugging.
19013 # Note that there is a small window in which the directory will not be cleaned:
19014 # after its creation but before its name has been assigned to `$tmp'.
19018 trap 'exit_status=$?
19019 : "${ac_tmp:=$tmp}"
19020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19022 trap 'as_fn_exit 1' 1 2 13 15
19024 # Create a (secure) tmp directory for tmp files.
19027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19031 tmp=./conf$$-$RANDOM
19032 (umask 077 && mkdir "$tmp")
19033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19036 # Set up the scripts for CONFIG_FILES section.
19037 # No need to generate them if there are no CONFIG_FILES.
19038 # This happens for instance with `./config.status config.h'.
19039 if test -n "$CONFIG_FILES"; then
19042 ac_cr=`echo X | tr X '\015'`
19043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19044 # But we know of no other shell where ac_cr would be empty at this
19045 # point, so we can use a bashism as a fallback.
19046 if test "x$ac_cr" = x; then
19047 eval ac_cr=\$\'\\r\'
19049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19053 ac_cs_awk_cr=$ac_cr
19056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19061 echo "cat >conf$$subs.awk <<_ACEOF" &&
19062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19064 } >conf$$subs.sh ||
19065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19068 for ac_last_try in false false false false false :; do
19069 . ./conf$$subs.sh ||
19070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19073 if test $ac_delim_n = $ac_delim_num; then
19075 elif $ac_last_try; then
19076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19081 rm -f conf$$subs.sh
19083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19088 s/^/S["/; s/!.*/"]=/
19098 s/\(.\{148\}\)..*/\1/
19100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19112 s/\(.\{148\}\)..*/\1/
19114 s/["\\]/\\&/g; s/^/"/; s/$/"/
19118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19123 ' <conf$$subs.awk | sed '
19128 ' >>$CONFIG_STATUS || ac_write_fail=1
19129 rm -f conf$$subs.awk
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19133 for (key in S) S_is_set[key] = 1
19139 nfields = split(line, field, "@")
19141 len = length(field[1])
19142 for (i = 2; i < nfields; i++) {
19144 keylen = length(key)
19145 if (S_is_set[key]) {
19147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19148 len += length(value) + length(field[++i])
19159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19170 # trailing colons and then remove the whole line if VPATH becomes empty
19171 # (actually we leave an empty line to preserve line numbers).
19172 if test "x$srcdir" = x.; then
19173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19192 fi # test -n "$CONFIG_FILES"
19194 # Set up the scripts for CONFIG_HEADERS section.
19195 # No need to generate them if there are no CONFIG_HEADERS.
19196 # This happens for instance with `./config.status Makefile'.
19197 if test -n "$CONFIG_HEADERS"; then
19198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19202 # Transform confdefs.h into an awk script `defines.awk', embedded as
19203 # here-document in config.status, that substitutes the proper values into
19204 # config.h.in to produce config.h.
19206 # Create a delimiter string that does not exist in confdefs.h, to ease
19207 # handling of long lines.
19209 for ac_last_try in false false :; do
19210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19211 if test -z "$ac_tt"; then
19213 elif $ac_last_try; then
19214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19220 # For the awk script, D is an array of macro values keyed by name,
19221 # likewise P contains macro parameters if any. Preserve backslash
19222 # newline sequences.
19224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19226 s/.\{148\}/&'"$ac_delim"'/g
19229 s/^[ ]*#[ ]*define[ ][ ]*/ /
19236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19243 D["\1"]=" \3\\\\\\n"\\/p
19245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19250 s/.\{148\}/&'"$ac_delim"'/g
19255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19260 ' <confdefs.h | sed '
19261 s/'"$ac_delim"'/"\\\
19262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19265 for (key in D) D_is_set[key] = 1
19268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19270 split(line, arg, " ")
19271 if (arg[1] == "#") {
19275 defundef = substr(arg[1], 2)
19278 split(mac1, mac2, "(") #)
19280 prefix = substr(line, 1, index(line, defundef) - 1)
19281 if (D_is_set[macro]) {
19282 # Preserve the white space surrounding the "#".
19283 print prefix "define", macro P[macro] D[macro]
19286 # Replace #undef with comments. This is necessary, for example,
19287 # in the case of _POSIX_SOURCE, which is predefined and required
19288 # on some systems where configure will not decide to define it.
19289 if (defundef == "undef") {
19290 print "/*", prefix defundef, macro, "*/"
19298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19300 fi # test -n "$CONFIG_HEADERS"
19303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19308 :[FHLC]) ac_mode=$ac_tag; continue;;
19310 case $ac_mode$ac_tag in
19312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19313 :[FH]-) ac_tag=-:-;;
19314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19331 -) ac_f="$ac_tmp/stdin";;
19332 *) # Look for the file first in the build tree, then in the source tree
19333 # (if the path is not absolute). The absolute path cannot be DOS-style,
19334 # because $ac_f cannot contain `:'.
19338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19343 as_fn_append ac_file_inputs " '$ac_f'"
19346 # Let's still pretend it is `configure' which instantiates (i.e., don't
19347 # use $as_me), people would be surprised to read:
19348 # /* config.h. Generated by config.status. */
19349 configure_input='Generated from '`
19350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19352 if test x"$ac_file" != x-; then
19353 configure_input="$ac_file. $configure_input"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19355 $as_echo "$as_me: creating $ac_file" >&6;}
19357 # Neutralize special characters interpreted by sed in replacement strings.
19358 case $configure_input in #(
19359 *\&* | *\|* | *\\* )
19360 ac_sed_conf_input=`$as_echo "$configure_input" |
19361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19362 *) ac_sed_conf_input=$configure_input;;
19366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19372 ac_dir=`$as_dirname -- "$ac_file" ||
19373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19374 X"$ac_file" : 'X\(//\)[^/]' \| \
19375 X"$ac_file" : 'X\(//\)$' \| \
19376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19377 $as_echo X"$ac_file" |
19378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19382 /^X\(\/\/\)[^/].*/{
19395 as_dir="$ac_dir"; as_fn_mkdir_p
19399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19402 # A ".." for each directory in $ac_dir_suffix.
19403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19404 case $ac_top_builddir_sub in
19405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19409 ac_abs_top_builddir=$ac_pwd
19410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19411 # for backward compatibility:
19412 ac_top_builddir=$ac_top_build_prefix
19415 .) # We are building in place.
19417 ac_top_srcdir=$ac_top_builddir_sub
19418 ac_abs_top_srcdir=$ac_pwd ;;
19419 [\\/]* | ?:[\\/]* ) # Absolute name.
19420 ac_srcdir=$srcdir$ac_dir_suffix;
19421 ac_top_srcdir=$srcdir
19422 ac_abs_top_srcdir=$srcdir ;;
19423 *) # Relative name.
19424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19425 ac_top_srcdir=$ac_top_build_prefix$srcdir
19426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19440 # If the template does not know about datarootdir, expand it.
19441 # FIXME: This hack should be removed a few years after 2.60.
19442 ac_datarootdir_hack=; ac_datarootdir_seen=
19453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19454 *datarootdir*) ac_datarootdir_seen=yes;;
19455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19460 ac_datarootdir_hack='
19461 s&@datadir@&$datadir&g
19462 s&@docdir@&$docdir&g
19463 s&@infodir@&$infodir&g
19464 s&@localedir@&$localedir&g
19465 s&@mandir@&$mandir&g
19466 s&\\\${datarootdir}&$datarootdir&g' ;;
19470 # Neutralize VPATH when `$srcdir' = `.'.
19471 # Shell code in configure.ac might set extrasub.
19472 # FIXME: do we really want to maintain this feature?
19473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474 ac_sed_extra="$ac_vpsub
19477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19480 s|@configure_input@|$ac_sed_conf_input|;t t
19481 s&@top_builddir@&$ac_top_builddir_sub&;t t
19482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19483 s&@srcdir@&$ac_srcdir&;t t
19484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19485 s&@top_srcdir@&$ac_top_srcdir&;t t
19486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19487 s&@builddir@&$ac_builddir&;t t
19488 s&@abs_builddir@&$ac_abs_builddir&;t t
19489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19490 $ac_datarootdir_hack
19492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19493 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19496 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19498 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19500 which seems to be undefined. Please make sure it is defined" >&5
19501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19502 which seems to be undefined. Please make sure it is defined" >&2;}
19504 rm -f "$ac_tmp/stdin"
19506 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19507 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19515 if test x"$ac_file" != x-; then
19517 $as_echo "/* $configure_input */" \
19518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19519 } >"$ac_tmp/config.h" \
19520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19521 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19526 mv "$ac_tmp/config.h" "$ac_file" \
19527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19530 $as_echo "/* $configure_input */" \
19531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19532 || as_fn_error $? "could not create -" "$LINENO" 5
19544 ac_clean_files=$ac_clean_files_save
19546 test $ac_write_fail = 0 ||
19547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19550 # configure is writing to config.log, and then calls config.status.
19551 # config.status does its own redirection, appending to config.log.
19552 # Unfortunately, on DOS this fails, as config.log is still kept open
19553 # by configure, so config.status won't be able to write to it; its
19554 # output is simply discarded. So we exec the FD to /dev/null,
19555 # effectively closing config.log, so it can be properly (re)opened and
19556 # appended to by config.status. When coming back to configure, we
19557 # need to make the FD available again.
19558 if test "$no_create" != yes; then
19560 ac_config_status_args=
19561 test "$silent" = yes &&
19562 ac_config_status_args="$ac_config_status_args --quiet"
19564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19567 # would make configure fail if this is the last instruction.
19568 $ac_cs_success || as_fn_exit 1
19570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}