2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for concord 0.0.2.
5 # Report bugs to <chise-en@m17n.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 chise-en@m17n.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
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='concord'
736 PACKAGE_TARNAME='concord'
737 PACKAGE_VERSION='0.0.2'
738 PACKAGE_STRING='concord 0.0.2'
739 PACKAGE_BUGREPORT='chise-en@m17n.org'
742 ac_unique_file="concord.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 concord 0.0.2 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/concord]
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 concord 0.0.2:";;
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@m17n.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 concord configure 0.0.2
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@m17n.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_compute_int LINENO EXPR VAR INCLUDES
2235 # --------------------------------------------
2236 # Tries to find the compile-time value of EXPR in a program that includes
2237 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2239 ac_fn_c_compute_int ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 if test "$cross_compiling" = yes; then
2243 # Depending upon the size, compute the lo and hi bounds.
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) >= 0)];
2252 return test_array [0];
2258 if ac_fn_c_try_compile "$LINENO"; then :
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2269 return test_array [0];
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_hi=$ac_mid; break
2278 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2279 if test $ac_lo -le $ac_mid; then
2283 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 static int test_array [1 - 2 * !(($2) < 0)];
2296 return test_array [0];
2302 if ac_fn_c_try_compile "$LINENO"; then :
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2311 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2313 return test_array [0];
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320 ac_lo=$ac_mid; break
2322 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2323 if test $ac_mid -le $ac_hi; then
2327 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 # Binary search between lo and hi bounds.
2338 while test "x$ac_lo" != "x$ac_hi"; do
2339 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2348 return test_array [0];
2354 if ac_fn_c_try_compile "$LINENO"; then :
2357 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2369 static long int longval () { return $2; }
2370 static unsigned long int ulongval () { return $2; }
2377 FILE *f = fopen ("conftest.val", "w");
2382 long int i = longval ();
2385 fprintf (f, "%ld", i);
2389 unsigned long int i = ulongval ();
2392 fprintf (f, "%lu", i);
2394 /* Do not output a trailing newline, as this causes \r\n confusion
2395 on some platforms. */
2396 return ferror (f) || fclose (f) != 0;
2402 if ac_fn_c_try_run "$LINENO"; then :
2403 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2408 conftest.$ac_objext conftest.beam conftest.$ac_ext
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 as_fn_set_status $ac_retval
2415 } # ac_fn_c_compute_int
2417 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2418 # -------------------------------------------
2419 # Tests whether TYPE exists after having included INCLUDES, setting cache
2420 # variable VAR accordingly.
2421 ac_fn_c_check_type ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if eval \${$3+:} false; then :
2427 $as_echo_n "(cached) " >&6
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2455 if ac_fn_c_try_compile "$LINENO"; then :
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469 } # ac_fn_c_check_type
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2474 It was created by concord $as_me 0.0.2, which was
2475 generated by GNU Autoconf 2.69. Invocation command line was
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2496 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2500 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2501 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2502 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 $as_echo "PATH: $as_dir"
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_must_keep_next=false
2541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543 | -silent | --silent | --silen | --sile | --sil)
2546 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 as_fn_append ac_configure_args1 " '$ac_arg'"
2552 if test $ac_must_keep_next = true; then
2553 ac_must_keep_next=false # Got value, back to normal.
2556 *=* | --config-cache | -C | -disable-* | --disable-* \
2557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559 | -with-* | --with-* | -without-* | --without-* | --x)
2560 case "$ac_configure_args0 " in
2561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564 -* ) ac_must_keep_next=true ;;
2567 as_fn_append ac_configure_args " '$ac_arg'"
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log. We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581 # Save into config.log some information that might help in debugging.
2585 $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2589 # The following way of writing the cache mishandles newlines in values,
2591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592 eval ac_val=\$$ac_var
2596 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2600 _ | IFS | as_nl) ;; #(
2601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602 *) { eval $ac_var=; unset $ac_var;} ;;
2607 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608 *${as_nl}ac_space=\ *)
2610 "s/'\''/'\''\\\\'\'''\''/g;
2611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621 $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2625 for ac_var in $ac_subst_vars
2627 eval ac_val=\$$ac_var
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 $as_echo "$ac_var='\''$ac_val'\''"
2635 if test -n "$ac_subst_files"; then
2636 $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2640 for ac_var in $ac_subst_files
2642 eval ac_val=\$$ac_var
2644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2646 $as_echo "$ac_var='\''$ac_val'\''"
2651 if test -s confdefs.h; then
2652 $as_echo "## ----------- ##
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2675 $as_echo "/* confdefs.h */" > confdefs.h
2677 # Predefined preprocessor variables.
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2708 if test -n "$CONFIG_SITE"; then
2709 # We do not want a PATH search for config.site.
2710 case $CONFIG_SITE in #((
2711 -*) ac_site_file1=./$CONFIG_SITE;;
2712 */*) ac_site_file1=$CONFIG_SITE;;
2713 *) ac_site_file1=./$CONFIG_SITE;;
2715 elif test "x$prefix" != xNONE; then
2716 ac_site_file1=$prefix/share/config.site
2717 ac_site_file2=$prefix/etc/config.site
2719 ac_site_file1=$ac_default_prefix/share/config.site
2720 ac_site_file2=$ac_default_prefix/etc/config.site
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2724 test "x$ac_site_file" = xNONE && continue
2725 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728 sed 's/^/| /' "$ac_site_file" >&5
2730 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2737 if test -r "$cache_file"; then
2738 # Some versions of bash will fail to source /dev/null (special files
2739 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2740 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745 *) . "./$cache_file";;
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2754 # Check that the precious variables saved in the cache have kept the same
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759 eval ac_new_set=\$ac_env_${ac_var}_set
2760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761 eval ac_new_val=\$ac_env_${ac_var}_value
2762 case $ac_old_set,$ac_new_set in
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2773 if test "x$ac_old_val" != "x$ac_new_val"; then
2774 # differences in whitespace do not lead to failure.
2775 ac_old_val_w=`echo x $ac_old_val`
2776 ac_new_val_w=`echo x $ac_new_val`
2777 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780 ac_cache_corrupted=:
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784 eval $ac_var=\$ac_old_val
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2787 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2789 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2792 # Pass precious variables to config.status.
2793 if test "$ac_new_set" = set; then
2795 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796 *) ac_arg=$ac_var=$ac_new_val ;;
2798 case " $ac_configure_args " in
2799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2800 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2804 if $ac_cache_corrupted; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2809 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2811 ## -------------------- ##
2812 ## Main body of script. ##
2813 ## -------------------- ##
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 ac_config_headers="$ac_config_headers config.h"
2827 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2828 if test -f "$ac_dir/install-sh"; then
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2832 elif test -f "$ac_dir/install.sh"; then
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2836 elif test -f "$ac_dir/shtool"; then
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2842 if test -z "$ac_aux_dir"; then
2843 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if ${ac_cv_build+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2877 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2880 ac_save_IFS=$IFS; IFS='-'
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if ${ac_cv_host+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if test "x$host_alias" = x; then
2899 ac_cv_host=$ac_cv_build
2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2910 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2913 ac_save_IFS=$IFS; IFS='-'
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2927 $as_echo_n "checking target system type... " >&6; }
2928 if ${ac_cv_target+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 if test "x$target_alias" = x; then
2932 ac_cv_target=$ac_cv_host
2934 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2940 $as_echo "$ac_cv_target" >&6; }
2941 case $ac_cv_target in
2943 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2945 target=$ac_cv_target
2946 ac_save_IFS=$IFS; IFS='-'
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2956 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2959 # The aliases save the names the user supplied, while $host etc.
2960 # will get canonicalized.
2961 test -n "$target_alias" &&
2962 test "$program_prefix$program_suffix$program_transform_name" = \
2964 program_prefix=${target_alias}-
2966 # Checks for programs.
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3011 if test -z "$ac_cv_prog_CC"; then
3013 # Extract the first word of "gcc", so it can be a program name with args.
3014 set dummy gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_CC="gcc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3049 if test "x$ac_ct_CC" = x; then
3052 case $cross_compiling:$ac_tool_warned in
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_CC="${ac_tool_prefix}cc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3105 if test -z "$CC"; then
3106 # Extract the first word of "cc", so it can be a program name with args.
3107 set dummy cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125 ac_prog_rejected=yes
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test $ac_prog_rejected = yes; then
3137 # We found a bogon in the path, so make sure we never use it.
3138 set dummy $ac_cv_prog_CC
3140 if test $# != 0; then
3141 # We chose a different compiler from the bogus one.
3142 # However, it has the same basename, so the bogon will be chosen
3143 # first if we set CC to just the basename; use the full file name.
3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 if test -n "$CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$CC" && break
3205 if test -z "$CC"; then
3207 for ac_prog in cl.exe
3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_CC="$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239 $as_echo "$ac_ct_CC" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3246 test -n "$ac_ct_CC" && break
3249 if test "x$ac_ct_CC" = x; then
3252 case $cross_compiling:$ac_tool_warned in
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "no acceptable C compiler found in \$PATH
3268 See \`config.log' for more details" "$LINENO" 5; }
3270 # Provide some information about the compiler.
3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3274 for ac_option in --version -v -V -qversion; do
3275 { { ac_try="$ac_compiler $ac_option >&5"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3284 if test -s conftest.err; then
3286 ... rest of stderr output deleted ...
3287 10q' conftest.err >conftest.er1
3288 cat conftest.er1 >&5
3290 rm -f conftest.er1 conftest.err
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 ac_clean_files_save=$ac_clean_files
3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3308 # Try to create an executable without -o first, disregard a.out.
3309 # It will help us diagnose broken compilers, and finding out an intuition
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3312 $as_echo_n "checking whether the C compiler works... " >&6; }
3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3315 # The possible output files:
3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319 for ac_file in $ac_files
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3328 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3342 # so that the user can short-circuit this test for compilers unknown to
3344 for ac_file in $ac_files ''
3346 test -f "$ac_file" || continue
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3351 # We found the default executable, but exeext='' is most
3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 # We set ac_cv_exeext here because the later test for it is not
3360 # safe: cross compilers may not add the suffix if given an `-o'
3361 # argument, so we may need to know it at that point already.
3362 # Even if this section looks crufty: it has the advantage of
3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
3374 if test -z "$ac_file"; then :
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 $as_echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error 77 "C compiler cannot create executables
3383 See \`config.log' for more details" "$LINENO" 5; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3391 $as_echo "$ac_file" >&6; }
3392 ac_exeext=$ac_cv_exeext
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3395 ac_clean_files=$ac_clean_files_save
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3397 $as_echo_n "checking for suffix of executables... " >&6; }
3398 if { { ac_try="$ac_link"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_link") 2>&5
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; then :
3409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3411 # work properly (i.e., refer to `conftest.exe'), while it won't with
3413 for ac_file in conftest.exe conftest conftest.*; do
3414 test -f "$ac_file" || continue
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details" "$LINENO" 5; }
3428 rm -f conftest conftest$ac_cv_exeext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3430 $as_echo "$ac_cv_exeext" >&6; }
3432 rm -f conftest.$ac_ext
3433 EXEEXT=$ac_cv_exeext
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3441 FILE *f = fopen ("conftest.out", "w");
3442 return ferror (f) || fclose (f) != 0;
3448 ac_clean_files="$ac_clean_files conftest.out"
3449 # Check that the compiler produces executables we can run. If not, either
3450 # the compiler is broken, or we cross compile.
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3452 $as_echo_n "checking whether we are cross compiling... " >&6; }
3453 if test "$cross_compiling" != yes; then
3454 { { ac_try="$ac_link"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link") 2>&5
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3465 if { ac_try='./conftest$ac_cv_exeext'
3466 { { case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_try") 2>&5
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; }; then
3478 if test "$cross_compiling" = maybe; then
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot run C compiled programs.
3484 If you meant to cross compile, use \`--host'.
3485 See \`config.log' for more details" "$LINENO" 5; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3490 $as_echo "$cross_compiling" >&6; }
3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3495 $as_echo_n "checking for suffix of object files... " >&6; }
3496 if ${ac_cv_objext+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 rm -f conftest.o conftest.obj
3511 if { { ac_try="$ac_compile"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_compile") 2>&5
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 for ac_file in conftest.o conftest.obj conftest.*; do
3523 test -f "$ac_file" || continue;
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot compute suffix of object files: cannot compile
3537 See \`config.log' for more details" "$LINENO" 5; }
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3542 $as_echo "$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3547 if ${ac_cv_c_compiler_gnu+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3564 if ac_fn_c_try_compile "$LINENO"; then :
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3575 if test $ac_compiler_gnu = yes; then
3580 ac_test_CFLAGS=${CFLAGS+set}
3581 ac_save_CFLAGS=$CFLAGS
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3584 if ${ac_cv_prog_cc_g+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 ac_save_c_werror_flag=$ac_c_werror_flag
3588 ac_c_werror_flag=yes
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 if ac_fn_c_try_compile "$LINENO"; then :
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 if ac_fn_c_try_compile "$LINENO"; then :
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_c_werror_flag=$ac_save_c_werror_flag
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3644 $as_echo "$ac_cv_prog_cc_g" >&6; }
3645 if test "$ac_test_CFLAGS" = set; then
3646 CFLAGS=$ac_save_CFLAGS
3647 elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3654 if test "$GCC" = yes; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3662 if ${ac_cv_prog_cc_c89+:} false; then :
3663 $as_echo_n "(cached) " >&6
3665 ac_cv_prog_cc_c89=no
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3686 s = g (p, va_arg (v,int));
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701 inside strings and character constants. */
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 CC="$ac_save_CC $ac_arg"
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_c89=$ac_arg
3726 rm -f core conftest.err conftest.$ac_objext
3727 test "x$ac_cv_prog_cc_c89" != "xno" && break
3729 rm -f conftest.$ac_ext
3734 case "x$ac_cv_prog_cc_c89" in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3742 CC="$CC $ac_cv_prog_cc_c89"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 # Check whether --enable-shared was given.
3757 if test "${enable_shared+set}" = set; then :
3758 enableval=$enable_shared; p=${PACKAGE-default}
3760 yes) enable_shared=yes ;;
3761 no) enable_shared=no ;;
3764 # Look at the argument we got. We use all the common list separators.
3765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3766 for pkg in $enableval; do
3768 if test "X$pkg" = "X$p"; then
3780 # Check whether --enable-static was given.
3781 if test "${enable_static+set}" = set; then :
3782 enableval=$enable_static; p=${PACKAGE-default}
3784 yes) enable_static=yes ;;
3785 no) enable_static=no ;;
3788 # Look at the argument we got. We use all the common list separators.
3789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3790 for pkg in $enableval; do
3792 if test "X$pkg" = "X$p"; then
3804 # Check whether --enable-fast-install was given.
3805 if test "${enable_fast_install+set}" = set; then :
3806 enableval=$enable_fast_install; p=${PACKAGE-default}
3808 yes) enable_fast_install=yes ;;
3809 no) enable_fast_install=no ;;
3811 enable_fast_install=no
3812 # Look at the argument we got. We use all the common list separators.
3813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3814 for pkg in $enableval; do
3816 if test "X$pkg" = "X$p"; then
3817 enable_fast_install=yes
3824 enable_fast_install=yes
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3829 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3830 if ${lt_cv_path_SED+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for lt_ac_prog in sed gsed; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3843 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3850 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3851 # along with /bin/sed that truncates output.
3852 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3853 test ! -f $lt_ac_sed && break
3854 cat /dev/null > conftest.in
3856 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3857 # Check for GNU sed and select it if it is found.
3858 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3859 lt_cv_path_SED=$lt_ac_sed
3863 cat conftest.in conftest.in >conftest.tmp
3864 mv conftest.tmp conftest.in
3865 cp conftest.in conftest.nl
3867 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3868 cmp -s conftest.out conftest.nl || break
3869 # 10000 chars as input seems more than enough
3870 test $lt_ac_count -gt 10 && break
3871 lt_ac_count=`expr $lt_ac_count + 1`
3872 if test $lt_ac_count -gt $lt_ac_max; then
3873 lt_ac_max=$lt_ac_count
3874 lt_cv_path_SED=$lt_ac_sed
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3883 $as_echo "$SED" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3887 if ${ac_cv_path_GREP+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -z "$GREP"; then
3891 ac_path_GREP_found=false
3892 # Loop through the user's path and test for each of PROGNAME-LIST
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in grep ggrep; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901 as_fn_executable_p "$ac_path_GREP" || continue
3902 # Check for GNU ac_path_GREP and select it if it is found.
3903 # Check for GNU $ac_path_GREP
3904 case `"$ac_path_GREP" --version 2>&1` in
3906 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3909 $as_echo_n 0123456789 >"conftest.in"
3912 cat "conftest.in" "conftest.in" >"conftest.tmp"
3913 mv "conftest.tmp" "conftest.in"
3914 cp "conftest.in" "conftest.nl"
3915 $as_echo 'GREP' >> "conftest.nl"
3916 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918 as_fn_arith $ac_count + 1 && ac_count=$as_val
3919 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920 # Best one so far, save it but keep looking for a better one
3921 ac_cv_path_GREP="$ac_path_GREP"
3922 ac_path_GREP_max=$ac_count
3924 # 10*(2^10) chars as input seems more than enough
3925 test $ac_count -gt 10 && break
3927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 $ac_path_GREP_found && break 3
3935 if test -z "$ac_cv_path_GREP"; then
3936 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3939 ac_cv_path_GREP=$GREP
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3944 $as_echo "$ac_cv_path_GREP" >&6; }
3945 GREP="$ac_cv_path_GREP"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3949 $as_echo_n "checking for egrep... " >&6; }
3950 if ${ac_cv_path_EGREP+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954 then ac_cv_path_EGREP="$GREP -E"
3956 if test -z "$EGREP"; then
3957 ac_path_EGREP_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in egrep; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3967 as_fn_executable_p "$ac_path_EGREP" || continue
3968 # Check for GNU ac_path_EGREP and select it if it is found.
3969 # Check for GNU $ac_path_EGREP
3970 case `"$ac_path_EGREP" --version 2>&1` in
3972 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3975 $as_echo_n 0123456789 >"conftest.in"
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'EGREP' >> "conftest.nl"
3982 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_EGREP="$ac_path_EGREP"
3988 ac_path_EGREP_max=$ac_count
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 $ac_path_EGREP_found && break 3
4001 if test -z "$ac_cv_path_EGREP"; then
4002 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4005 ac_cv_path_EGREP=$EGREP
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4011 $as_echo "$ac_cv_path_EGREP" >&6; }
4012 EGREP="$ac_cv_path_EGREP"
4016 # Check whether --with-gnu-ld was given.
4017 if test "${with_gnu_ld+set}" = set; then :
4018 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4024 if test "$GCC" = yes; then
4025 # Check if gcc -print-prog-name=ld gives a path.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4027 $as_echo_n "checking for ld used by $CC... " >&6; }
4030 # gcc leaves a trailing carriage return which upsets mingw
4031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4036 # Accept absolute paths.
4038 re_direlt='/[^/][^/]*/\.\./'
4039 # Canonicalize the pathname of ld
4040 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4041 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4042 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4044 test -z "$LD" && LD="$ac_prog"
4047 # If it fails, then pretend we aren't using GCC.
4051 # If it is relative, then search for the first ld in PATH.
4055 elif test "$with_gnu_ld" = yes; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4057 $as_echo_n "checking for GNU ld... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4060 $as_echo_n "checking for non-GNU ld... " >&6; }
4062 if ${lt_cv_path_LD+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 if test -z "$LD"; then
4066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4067 for ac_dir in $PATH; do
4069 test -z "$ac_dir" && ac_dir=.
4070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4071 lt_cv_path_LD="$ac_dir/$ac_prog"
4072 # Check to see if the program is GNU ld. I'd rather use --version,
4073 # but apparently some GNU ld's only accept -v.
4074 # Break only if it was the GNU/non-GNU ld that we prefer.
4075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4076 *GNU* | *'with BFD'*)
4077 test "$with_gnu_ld" != no && break
4080 test "$with_gnu_ld" != yes && break
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4092 if test -n "$LD"; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4094 $as_echo "$LD" >&6; }
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 $as_echo "no" >&6; }
4099 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4101 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4102 if ${lt_cv_prog_gnu_ld+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4106 case `$LD -v 2>&1 </dev/null` in
4107 *GNU* | *'with BFD'*)
4108 lt_cv_prog_gnu_ld=yes
4111 lt_cv_prog_gnu_ld=no
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4116 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4117 with_gnu_ld=$lt_cv_prog_gnu_ld
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4121 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4122 if ${lt_cv_ld_reload_flag+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 lt_cv_ld_reload_flag='-r'
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4128 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4129 reload_flag=$lt_cv_ld_reload_flag
4130 case $reload_flag in
4132 *) reload_flag=" $reload_flag" ;;
4134 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4137 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4138 if ${lt_cv_path_NM+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$NM"; then
4142 # Let the user override the test.
4145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4146 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4148 test -z "$ac_dir" && ac_dir=.
4149 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4150 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4151 # Check to see if the nm accepts a BSD-compat flag.
4152 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4153 # nm: unknown option "B" ignored
4154 # Tru64's nm complains that /dev/null is an invalid object file
4155 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4156 */dev/null* | *'Invalid file or object type'*)
4157 lt_cv_path_NM="$tmp_nm -B"
4161 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4163 lt_cv_path_NM="$tmp_nm -p"
4167 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4168 continue # so that we can try to find one that supports BSD flags
4175 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4179 $as_echo "$lt_cv_path_NM" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4183 $as_echo_n "checking whether ln -s works... " >&6; }
4185 if test "$LN_S" = "ln -s"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4187 $as_echo "yes" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4190 $as_echo "no, using $LN_S" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4194 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4195 if ${lt_cv_deplibs_check_method+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 lt_cv_file_magic_cmd='$MAGIC_CMD'
4199 lt_cv_file_magic_test_file=
4200 lt_cv_deplibs_check_method='unknown'
4201 # Need to set the preceding variable on all platforms that support
4202 # interlibrary dependencies.
4203 # 'none' -- dependencies not supported.
4204 # `unknown' -- same as none, but documents that we really don't know.
4205 # 'pass_all' -- all dependencies passed with no checks.
4206 # 'test_compile' -- check by making test program.
4207 # 'file_magic [[regex]]' -- check by looking for files in library path
4208 # which responds to the $file_magic_cmd with a given extended regex.
4209 # If you have `file' or equivalent on your system and you're not sure
4210 # whether `pass_all' will *always* work, you probably want this one.
4214 lt_cv_deplibs_check_method=pass_all
4218 lt_cv_deplibs_check_method=pass_all
4222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4223 lt_cv_file_magic_cmd='/usr/bin/file -L'
4224 lt_cv_file_magic_test_file=/shlib/libc.so
4227 cygwin* | mingw* | pw32*)
4228 # win32_libid is a shell function defined in ltmain.sh
4229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4230 lt_cv_file_magic_cmd='win32_libid'
4233 darwin* | rhapsody*)
4234 # this will be overwritten by pass_all, but leave it in just in case
4235 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4238 rhapsody* | darwin1.[012])
4239 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4242 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4245 lt_cv_deplibs_check_method=pass_all
4248 freebsd* | kfreebsd*-gnu)
4249 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4252 # Not sure whether the presence of OpenBSD here was a mistake.
4253 # Let's accept both of them until this is cleared up.
4254 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4255 lt_cv_file_magic_cmd=/usr/bin/file
4256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4260 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method=pass_all
4268 hpux10.20* | hpux11*)
4269 lt_cv_file_magic_cmd=/usr/bin/file
4272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4276 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]'
4277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4281 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 irix5* | irix6* | nonstopux*)
4288 irix5* | nonstopux*)
4289 # this will be overridden with pass_all, but let us keep it just in case
4290 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4294 *-32|*"-32 ") libmagic=32-bit;;
4295 *-n32|*"-n32 ") libmagic=N32;;
4296 *-64|*"-64 ") libmagic=64-bit;;
4297 *) libmagic=never-match;;
4299 # this will be overridden with pass_all, but let us keep it just in case
4300 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4303 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4304 lt_cv_deplibs_check_method=pass_all
4307 # This must be Linux ELF.
4309 # linux always uses pass_all now, this code is the old way (tm)
4311 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4312 lt_cv_deplibs_check_method=pass_all ;;
4314 # glibc up to 2.1.1 does not perform some relocations on ARM
4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4317 lt_cv_deplibs_check_method=pass_all
4318 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4336 lt_cv_deplibs_check_method=unknown
4340 lt_cv_file_magic_cmd=/usr/bin/file
4341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4345 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4349 osf3* | osf4* | osf5*)
4350 # this will be overridden with pass_all, but let us keep it just in case
4351 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4352 lt_cv_file_magic_test_file=/shlib/libc.so
4353 lt_cv_deplibs_check_method=pass_all
4357 lt_cv_deplibs_check_method=pass_all
4361 lt_cv_deplibs_check_method=pass_all
4362 lt_cv_file_magic_test_file=/lib/libc.so
4365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4366 case $host_vendor in
4368 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]'
4369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4372 lt_cv_deplibs_check_method=pass_all
4375 lt_cv_file_magic_cmd='/bin/file'
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4379 lt_cv_file_magic_cmd='/bin/file'
4380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4381 lt_cv_file_magic_test_file=/lib/libc.so
4384 lt_cv_deplibs_check_method=pass_all
4389 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4390 lt_cv_deplibs_check_method=pass_all
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4397 file_magic_cmd=$lt_cv_file_magic_cmd
4398 deplibs_check_method=$lt_cv_deplibs_check_method
4399 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4404 # If no C compiler was specified, use CC.
4407 # Allow CC to be a program name with arguments.
4411 # Check whether --enable-libtool-lock was given.
4412 if test "${enable_libtool_lock+set}" = set; then :
4413 enableval=$enable_libtool_lock;
4416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4418 # Some flags need to be propagated to the compiler or linker for good
4422 # Find out which ABI we are using.
4423 echo 'int i;' > conftest.$ac_ext
4424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4425 (eval $ac_compile) 2>&5
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; then
4429 case `/usr/bin/file conftest.$ac_objext` in
4441 # Find out which ABI we are using.
4442 echo '#line 4442 "configure"' > conftest.$ac_ext
4443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4444 (eval $ac_compile) 2>&5
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }; then
4448 if test "$lt_cv_prog_gnu_ld" = yes; then
4449 case `/usr/bin/file conftest.$ac_objext` in
4451 LD="${LD-ld} -melf32bsmip"
4454 LD="${LD-ld} -melf32bmipn32"
4457 LD="${LD-ld} -melf64bmip"
4461 case `/usr/bin/file conftest.$ac_objext` in
4477 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4478 # Find out which ABI we are using.
4479 echo 'int i;' > conftest.$ac_ext
4480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4481 (eval $ac_compile) 2>&5
4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }; then
4485 case "`/usr/bin/file conftest.o`" in
4489 LD="${LD-ld} -m elf_i386"
4491 ppc64-*linux*|powerpc64-*linux*)
4492 LD="${LD-ld} -m elf32ppclinux"
4495 LD="${LD-ld} -m elf_s390"
4498 LD="${LD-ld} -m elf32_sparc"
4505 LD="${LD-ld} -m elf_x86_64"
4507 ppc*-*linux*|powerpc*-*linux*)
4508 LD="${LD-ld} -m elf64ppc"
4511 LD="${LD-ld} -m elf64_s390"
4514 LD="${LD-ld} -m elf64_sparc"
4524 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4525 SAVE_CFLAGS="$CFLAGS"
4526 CFLAGS="$CFLAGS -belf"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4528 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4529 if ${lt_cv_cc_needs_belf+:} false; then :
4530 $as_echo_n "(cached) " >&6
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4549 if ac_fn_c_try_link "$LINENO"; then :
4550 lt_cv_cc_needs_belf=yes
4552 lt_cv_cc_needs_belf=no
4554 rm -f core conftest.err conftest.$ac_objext \
4555 conftest$ac_exeext conftest.$ac_ext
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4564 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4565 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4566 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4567 CFLAGS="$SAVE_CFLAGS"
4573 need_locks="$enable_libtool_lock"
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4582 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4583 # On Suns, sometimes $CPP names a directory.
4584 if test -n "$CPP" && test -d "$CPP"; then
4587 if test -z "$CPP"; then
4588 if ${ac_cv_prog_CPP+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 # Double quotes because CPP needs to be expanded
4592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 for ac_c_preproc_warn_flag in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # include <limits.h>
4608 # include <assert.h>
4612 if ac_fn_c_try_cpp "$LINENO"; then :
4615 # Broken: fails on valid input.
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4626 if ac_fn_c_try_cpp "$LINENO"; then :
4627 # Broken: success on invalid input.
4630 # Passes both tests.
4634 rm -f conftest.err conftest.i conftest.$ac_ext
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then :
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4652 $as_echo "$CPP" >&6; }
4654 for ac_c_preproc_warn_flag in '' yes
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 # include <limits.h>
4667 # include <assert.h>
4671 if ac_fn_c_try_cpp "$LINENO"; then :
4674 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.i conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #include <ac_nonexistent.h>
4685 if ac_fn_c_try_cpp "$LINENO"; then :
4686 # Broken: success on invalid input.
4689 # Passes both tests.
4693 rm -f conftest.err conftest.i conftest.$ac_ext
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.i conftest.err conftest.$ac_ext
4698 if $ac_preproc_ok; then :
4701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4703 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4704 See \`config.log' for more details" "$LINENO" 5; }
4708 ac_cpp='$CPP $CPPFLAGS'
4709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4715 $as_echo_n "checking for ANSI C header files... " >&6; }
4716 if ${ac_cv_header_stdc+:} false; then :
4717 $as_echo_n "(cached) " >&6
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_header_stdc=yes
4737 ac_cv_header_stdc=no
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 if test $ac_cv_header_stdc = yes; then
4742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "memchr" >/dev/null 2>&1; then :
4752 ac_cv_header_stdc=no
4758 if test $ac_cv_header_stdc = yes; then
4759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "free" >/dev/null 2>&1; then :
4769 ac_cv_header_stdc=no
4775 if test $ac_cv_header_stdc = yes; then
4776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4777 if test "$cross_compiling" = yes; then :
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4784 #if ((' ' & 0x0FF) == 0x020)
4785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4788 # define ISLOWER(c) \
4789 (('a' <= (c) && (c) <= 'i') \
4790 || ('j' <= (c) && (c) <= 'r') \
4791 || ('s' <= (c) && (c) <= 'z'))
4792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800 for (i = 0; i < 256; i++)
4801 if (XOR (islower (i), ISLOWER (i))
4802 || toupper (i) != TOUPPER (i))
4807 if ac_fn_c_try_run "$LINENO"; then :
4810 ac_cv_header_stdc=no
4812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4813 conftest.$ac_objext conftest.beam conftest.$ac_ext
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4819 $as_echo "$ac_cv_header_stdc" >&6; }
4820 if test $ac_cv_header_stdc = yes; then
4822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4826 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4827 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4828 inttypes.h stdint.h unistd.h
4830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4834 cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843 for ac_header in dlfcn.h
4845 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4846 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4847 cat >>confdefs.h <<_ACEOF
4848 #define HAVE_DLFCN_H 1
4856 ac_cpp='$CXXCPP $CPPFLAGS'
4857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4860 if test -z "$CXX"; then
4861 if test -n "$CCC"; then
4864 if test -n "$ac_tool_prefix"; then
4865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_CXX+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$CXX"; then
4875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 if test -n "$CXX"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4897 $as_echo "$CXX" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4904 test -n "$CXX" && break
4907 if test -z "$CXX"; then
4909 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 if test -n "$ac_ct_CXX"; then
4919 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_ac_ct_CXX="$ac_prog"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4939 if test -n "$ac_ct_CXX"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4941 $as_echo "$ac_ct_CXX" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4948 test -n "$ac_ct_CXX" && break
4951 if test "x$ac_ct_CXX" = x; then
4954 case $cross_compiling:$ac_tool_warned in
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4966 # Provide some information about the compiler.
4967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4970 for ac_option in --version -v -V -qversion; do
4971 { { ac_try="$ac_compiler $ac_option >&5"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977 $as_echo "$ac_try_echo"; } >&5
4978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4980 if test -s conftest.err; then
4982 ... rest of stderr output deleted ...
4983 10q' conftest.err >conftest.er1
4984 cat conftest.er1 >&5
4986 rm -f conftest.er1 conftest.err
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4992 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4993 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4994 $as_echo_n "(cached) " >&6
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
5010 if ac_fn_cxx_try_compile "$LINENO"; then :
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5020 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5021 if test $ac_compiler_gnu = yes; then
5026 ac_test_CXXFLAGS=${CXXFLAGS+set}
5027 ac_save_CXXFLAGS=$CXXFLAGS
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5029 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5030 if ${ac_cv_prog_cxx_g+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5034 ac_cxx_werror_flag=yes
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5048 if ac_fn_cxx_try_compile "$LINENO"; then :
5049 ac_cv_prog_cxx_g=yes
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5063 if ac_fn_cxx_try_compile "$LINENO"; then :
5066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5079 if ac_fn_cxx_try_compile "$LINENO"; then :
5080 ac_cv_prog_cxx_g=yes
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5090 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5091 if test "$ac_test_CXXFLAGS" = set; then
5092 CXXFLAGS=$ac_save_CXXFLAGS
5093 elif test $ac_cv_prog_cxx_g = yes; then
5094 if test "$GXX" = yes; then
5100 if test "$GXX" = yes; then
5107 ac_cpp='$CXXCPP $CPPFLAGS'
5108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5113 ac_cpp='$CXXCPP $CPPFLAGS'
5114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5118 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5119 if test -z "$CXXCPP"; then
5120 if ${ac_cv_prog_CXXCPP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 # Double quotes because CXXCPP needs to be expanded
5124 for CXXCPP in "$CXX -E" "/lib/cpp"
5127 for ac_cxx_preproc_warn_flag in '' yes
5129 # Use a header file that comes with gcc, so configuring glibc
5130 # with a fresh cross-compiler works.
5131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132 # <limits.h> exists even on freestanding compilers.
5133 # On the NeXT, cc -E runs the code through the compiler's parser,
5134 # not just through cpp. "Syntax error" is here to catch this case.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 # include <limits.h>
5140 # include <assert.h>
5144 if ac_fn_cxx_try_cpp "$LINENO"; then :
5147 # Broken: fails on valid input.
5150 rm -f conftest.err conftest.i conftest.$ac_ext
5152 # OK, works on sane cases. Now check whether nonexistent headers
5153 # can be detected and how.
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #include <ac_nonexistent.h>
5158 if ac_fn_cxx_try_cpp "$LINENO"; then :
5159 # Broken: success on invalid input.
5162 # Passes both tests.
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.i conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then :
5176 ac_cv_prog_CXXCPP=$CXXCPP
5179 CXXCPP=$ac_cv_prog_CXXCPP
5181 ac_cv_prog_CXXCPP=$CXXCPP
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5184 $as_echo "$CXXCPP" >&6; }
5186 for ac_cxx_preproc_warn_flag in '' yes
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5197 # include <limits.h>
5199 # include <assert.h>
5203 if ac_fn_cxx_try_cpp "$LINENO"; then :
5206 # Broken: fails on valid input.
5209 rm -f conftest.err conftest.i conftest.$ac_ext
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5217 if ac_fn_cxx_try_cpp "$LINENO"; then :
5218 # Broken: success on invalid input.
5221 # Passes both tests.
5225 rm -f conftest.err conftest.i conftest.$ac_ext
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.i conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then :
5233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5235 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5236 See \`config.log' for more details" "$LINENO" 5; }
5240 ac_cpp='$CXXCPP $CPPFLAGS'
5241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5248 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5250 if test -n "$ac_tool_prefix"; then
5251 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
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_F77+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$F77"; then
5261 ac_cv_prog_F77="$F77" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 if test -n "$F77"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5283 $as_echo "$F77" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5290 test -n "$F77" && break
5293 if test -z "$F77"; then
5295 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
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 if test -n "$ac_ct_F77"; then
5305 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_F77="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5325 if test -n "$ac_ct_F77"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5327 $as_echo "$ac_ct_F77" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 test -n "$ac_ct_F77" && break
5337 if test "x$ac_ct_F77" = x; then
5340 case $cross_compiling:$ac_tool_warned in
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5351 # Provide some information about the compiler.
5352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5355 for ac_option in --version -v -V -qversion; do
5356 { { ac_try="$ac_compiler $ac_option >&5"
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5362 $as_echo "$ac_try_echo"; } >&5
5363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5365 if test -s conftest.err; then
5367 ... rest of stderr output deleted ...
5368 10q' conftest.err >conftest.er1
5369 cat conftest.er1 >&5
5371 rm -f conftest.er1 conftest.err
5372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5373 test $ac_status = 0; }
5377 # If we don't use `.F' as extension, the preprocessor is not run on the
5378 # input file. (Note that this only needs to work for GNU compilers.)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5382 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5383 if ${ac_cv_f77_compiler_gnu+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 cat > conftest.$ac_ext <<_ACEOF
5394 if ac_fn_f77_try_compile "$LINENO"; then :
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5404 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5406 ac_test_FFLAGS=${FFLAGS+set}
5407 ac_save_FFLAGS=$FFLAGS
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5410 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5411 if ${ac_cv_prog_f77_g+:} false; then :
5412 $as_echo_n "(cached) " >&6
5415 cat > conftest.$ac_ext <<_ACEOF
5420 if ac_fn_f77_try_compile "$LINENO"; then :
5421 ac_cv_prog_f77_g=yes
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5429 $as_echo "$ac_cv_prog_f77_g" >&6; }
5430 if test "$ac_test_FFLAGS" = set; then
5431 FFLAGS=$ac_save_FFLAGS
5432 elif test $ac_cv_prog_f77_g = yes; then
5433 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5439 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5446 if test $ac_compiler_gnu = yes; then
5452 ac_cpp='$CPP $CPPFLAGS'
5453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5461 # find the maximum length of command line arguments
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5464 if ${lt_cv_sys_max_cmd_len+:} false; then :
5465 $as_echo_n "(cached) " >&6
5472 # On DJGPP, this test can blow up pretty badly due to problems in libc
5473 # (any single argument exceeding 2000 bytes causes a buffer overrun
5474 # during glob expansion). Even if it were fixed, the result of this
5475 # check would be larger than it should be.
5476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5480 # Under GNU Hurd, this test is not required because there is
5481 # no limit to the length of command line arguments.
5482 # Libtool will interpret -1 as no limit whatsoever
5483 lt_cv_sys_max_cmd_len=-1;
5487 # On Win9x/ME, this test blows up -- it succeeds, but takes
5488 # about 5 minutes as the teststring grows exponentially.
5489 # Worse, since 9x/ME are not pre-emptively multitasking,
5490 # you end up with a "frozen" computer, even though with patience
5491 # the test eventually succeeds (with a max line length of 256k).
5492 # Instead, let's just punt: use the minimum linelength reported by
5493 # all of the supported platforms: 8192 (on NT/2K/XP).
5494 lt_cv_sys_max_cmd_len=8192;
5498 # On AmigaOS with pdksh, this test takes hours, literally.
5499 # So we just punt and use a minimum line length of 8192.
5500 lt_cv_sys_max_cmd_len=8192;
5504 # If test is not a shell built-in, we'll probably end up computing a
5505 # maximum length that is only half of the actual maximum length, but
5507 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5508 = "XX$testring") >/dev/null 2>&1 &&
5509 new_result=`expr "X$testring" : ".*" 2>&1` &&
5510 lt_cv_sys_max_cmd_len=$new_result &&
5511 test $i != 17 # 1/2 MB should be enough
5514 testring=$testring$testring
5517 # Add a significant safety factor because C++ compilers can tack on massive
5518 # amounts of additional arguments before passing them to the linker.
5519 # It appears as though 1/2 is a usable value.
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5526 if test -n $lt_cv_sys_max_cmd_len ; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5528 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5531 $as_echo "none" >&6; }
5537 # Check for command to grab the raw symbol name followed by C symbol from nm.
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5540 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5541 $as_echo_n "(cached) " >&6
5544 # These are sane defaults that work on at least a few old systems.
5545 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5547 # Character class describing NM global symbol codes.
5548 symcode='[BCDEGRST]'
5550 # Regexp to match symbols that can be accessed directly from C.
5551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5553 # Transform the above into a raw symbol and a C symbol.
5554 symxfrm='\1 \2\3 \3'
5556 # Transform an extracted symbol line into a proper C declaration
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5559 # Transform an extracted symbol line into symbol name and symbol address
5560 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'"
5562 # Define system-specific variables.
5567 cygwin* | mingw* | pw32*)
5568 symcode='[ABCDGISTW]'
5570 hpux*) # Its linker distinguishes data from code symbols
5571 if test "$host_cpu" = ia64; then
5572 symcode='[ABCDEGRST]'
5574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5575 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'"
5578 symcode='[BCDEGRST]'
5581 symcode='[BCDEGQRST]'
5591 # Handle CRLF in mingw tool chain
5595 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5599 # If we're using GNU nm, then use its standard symbol codes.
5600 case `$NM -V 2>&1` in
5601 *GNU* | *'with BFD'*)
5602 symcode='[ABCDGIRSTW]' ;;
5605 # Try without a prefix undercore, then with it.
5606 for ac_symprfx in "" "_"; do
5608 # Write the raw and C identifiers.
5609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5611 # Check to see that the pipe works correctly.
5615 cat > conftest.$ac_ext <<EOF
5620 void nm_test_func(){}
5624 int main(){nm_test_var='a';nm_test_func();return(0);}
5627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5628 (eval $ac_compile) 2>&5
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }; then
5632 # Now try to grab the symbols.
5634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5635 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } && test -s "$nlist"; then
5639 # Try sorting and uniquifying the output.
5640 if sort "$nlist" | uniq > "$nlist"T; then
5641 mv -f "$nlist"T "$nlist"
5646 # Make sure that we snagged all the symbols we need.
5647 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5648 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5649 cat <<EOF > conftest.$ac_ext
5655 # Now generate the symbol file.
5656 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5658 cat <<EOF >> conftest.$ac_ext
5659 #if defined (__STDC__) && __STDC__
5660 # define lt_ptr_t void *
5662 # define lt_ptr_t char *
5666 /* The mapping between symbol names and symbols. */
5671 lt_preloaded_symbols[] =
5674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5675 cat <<\EOF >> conftest.$ac_ext
5683 # Now try linking the two files.
5684 mv conftest.$ac_objext conftstm.$ac_objext
5685 lt_save_LIBS="$LIBS"
5686 lt_save_CFLAGS="$CFLAGS"
5687 LIBS="conftstm.$ac_objext"
5688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5690 (eval $ac_link) 2>&5
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5696 LIBS="$lt_save_LIBS"
5697 CFLAGS="$lt_save_CFLAGS"
5699 echo "cannot find nm_test_func in $nlist" >&5
5702 echo "cannot find nm_test_var in $nlist" >&5
5705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5708 echo "$progname: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 rm -f conftest* conftst*
5713 # Do not use the global_symbol_pipe unless it works.
5714 if test "$pipe_works" = yes; then
5717 lt_cv_sys_global_symbol_pipe=
5723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5724 lt_cv_sys_global_symbol_to_cdecl=
5726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5728 $as_echo "failed" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5731 $as_echo "ok" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5735 $as_echo_n "checking for objdir... " >&6; }
5736 if ${lt_cv_objdir+:} false; then :
5737 $as_echo_n "(cached) " >&6
5739 rm -f .libs 2>/dev/null
5740 mkdir .libs 2>/dev/null
5741 if test -d .libs; then
5744 # MS-DOS does not allow filenames that begin with a dot.
5747 rmdir .libs 2>/dev/null
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5750 $as_echo "$lt_cv_objdir" >&6; }
5751 objdir=$lt_cv_objdir
5759 # AIX sometimes has problems with the GCC collect2 program. For some
5760 # reason, if we set the COLLECT_NAMES environment variable, the problems
5761 # vanish in a puff of smoke.
5762 if test "X${COLLECT_NAMES+set}" != Xset; then
5764 export COLLECT_NAMES
5769 # Sed substitution that helps us do robust quoting. It backslashifies
5770 # metacharacters that are still active within double-quoted strings.
5771 Xsed='sed -e s/^X//'
5772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5774 # Same as above, but do not quote variable references.
5775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5777 # Sed substitution to delay expansion of an escaped shell variable in a
5778 # double_quote_subst'ed string.
5779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5781 # Sed substitution to avoid accidental globbing in evaled expressions
5782 no_glob_subst='s/\*/\\\*/g'
5788 default_ofile=libtool
5789 can_build_shared=yes
5791 # All known linkers require a `.a' archive for static linking (except M$VC,
5792 # which needs '.lib').
5794 ltmain="$ac_aux_dir/ltmain.sh"
5795 ofile="$default_ofile"
5796 with_gnu_ld="$lt_cv_prog_gnu_ld"
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}ar; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_AR+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$AR"; then
5807 ac_cv_prog_AR="$AR" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_AR="${ac_tool_prefix}ar"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 if test -n "$AR"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5829 $as_echo "$AR" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5837 if test -z "$ac_cv_prog_AR"; then
5839 # Extract the first word of "ar", so it can be a program name with args.
5840 set dummy ar; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 if test -n "$ac_ct_AR"; then
5847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_ac_ct_AR="ar"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5867 if test -n "$ac_ct_AR"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5869 $as_echo "$ac_ct_AR" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5875 if test "x$ac_ct_AR" = x; then
5878 case $cross_compiling:$ac_tool_warned in
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_RANLIB+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$RANLIB"; then
5899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 RANLIB=$ac_cv_prog_RANLIB
5919 if test -n "$RANLIB"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5921 $as_echo "$RANLIB" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5929 if test -z "$ac_cv_prog_RANLIB"; then
5930 ac_ct_RANLIB=$RANLIB
5931 # Extract the first word of "ranlib", so it can be a program name with args.
5932 set dummy ranlib; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$ac_ct_RANLIB"; then
5939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_RANLIB="ranlib"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5959 if test -n "$ac_ct_RANLIB"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5961 $as_echo "$ac_ct_RANLIB" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5967 if test "x$ac_ct_RANLIB" = x; then
5970 case $cross_compiling:$ac_tool_warned in
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5976 RANLIB=$ac_ct_RANLIB
5979 RANLIB="$ac_cv_prog_RANLIB"
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_STRIP+:} false; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -n "$STRIP"; then
5991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 STRIP=$ac_cv_prog_STRIP
6011 if test -n "$STRIP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6013 $as_echo "$STRIP" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6021 if test -z "$ac_cv_prog_STRIP"; then
6023 # Extract the first word of "strip", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$ac_ct_STRIP"; then
6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_STRIP="strip"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6053 $as_echo "$ac_ct_STRIP" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6059 if test "x$ac_ct_STRIP" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6071 STRIP="$ac_cv_prog_STRIP"
6076 old_CFLAGS="$CFLAGS"
6078 # Set sane defaults for various variables
6079 test -z "$AR" && AR=ar
6080 test -z "$AR_FLAGS" && AR_FLAGS=cru
6081 test -z "$AS" && AS=as
6082 test -z "$CC" && CC=cc
6083 test -z "$LTCC" && LTCC=$CC
6084 test -z "$DLLTOOL" && DLLTOOL=dlltool
6085 test -z "$LD" && LD=ld
6086 test -z "$LN_S" && LN_S="ln -s"
6087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6088 test -z "$NM" && NM=nm
6089 test -z "$SED" && SED=sed
6090 test -z "$OBJDUMP" && OBJDUMP=objdump
6091 test -z "$RANLIB" && RANLIB=:
6092 test -z "$STRIP" && STRIP=:
6093 test -z "$ac_objext" && ac_objext=o
6095 # Determine commands to create old-style static archives.
6096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6097 old_postinstall_cmds='chmod 644 $oldlib'
6098 old_postuninstall_cmds=
6100 if test -n "$RANLIB"; then
6103 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6106 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6112 # Only perform the check for file, if the check method requires it
6113 case $deplibs_check_method in
6115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6119 $as_echo_n "(cached) " >&6
6123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6126 lt_save_MAGIC_CMD="$MAGIC_CMD"
6127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6129 for ac_dir in $ac_dummy; do
6131 test -z "$ac_dir" && ac_dir=.
6132 if test -f $ac_dir/${ac_tool_prefix}file; then
6133 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6134 if test -n "$file_magic_test_file"; then
6135 case $deplibs_check_method in
6137 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6140 $EGREP "$file_magic_regex" > /dev/null; then
6145 *** Warning: the command libtool uses to detect shared libraries,
6146 *** $file_magic_cmd, produces output that libtool cannot recognize.
6147 *** The result is that libtool may fail to recognize shared libraries
6148 *** as such. This will affect the creation of libtool libraries that
6149 *** depend on shared libraries, but programs linked with such libtool
6150 *** libraries will work regardless of this problem. Nevertheless, you
6151 *** may want to report the problem to your system manager and/or to
6152 *** bug-libtool@gnu.org
6162 MAGIC_CMD="$lt_save_MAGIC_CMD"
6167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6168 if test -n "$MAGIC_CMD"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6170 $as_echo "$MAGIC_CMD" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6176 if test -z "$lt_cv_path_MAGIC_CMD"; then
6177 if test -n "$ac_tool_prefix"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6179 $as_echo_n "checking for file... " >&6; }
6180 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6181 $as_echo_n "(cached) " >&6
6185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6188 lt_save_MAGIC_CMD="$MAGIC_CMD"
6189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6190 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6191 for ac_dir in $ac_dummy; do
6193 test -z "$ac_dir" && ac_dir=.
6194 if test -f $ac_dir/file; then
6195 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6196 if test -n "$file_magic_test_file"; then
6197 case $deplibs_check_method in
6199 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6202 $EGREP "$file_magic_regex" > /dev/null; then
6207 *** Warning: the command libtool uses to detect shared libraries,
6208 *** $file_magic_cmd, produces output that libtool cannot recognize.
6209 *** The result is that libtool may fail to recognize shared libraries
6210 *** as such. This will affect the creation of libtool libraries that
6211 *** depend on shared libraries, but programs linked with such libtool
6212 *** libraries will work regardless of this problem. Nevertheless, you
6213 *** may want to report the problem to your system manager and/or to
6214 *** bug-libtool@gnu.org
6224 MAGIC_CMD="$lt_save_MAGIC_CMD"
6229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6230 if test -n "$MAGIC_CMD"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6232 $as_echo "$MAGIC_CMD" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6250 # Check whether --enable-libtool-lock was given.
6251 if test "${enable_libtool_lock+set}" = set; then :
6252 enableval=$enable_libtool_lock;
6255 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6258 # Check whether --with-pic was given.
6259 if test "${with_pic+set}" = set; then :
6260 withval=$with_pic; pic_mode="$withval"
6265 test -z "$pic_mode" && pic_mode=default
6267 # Use C for the default configuration in the libtool script
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277 # Source file extension for C test sources.
6280 # Object file extension for compiled C test sources.
6284 # Code to be used in simple compile tests
6285 lt_simple_compile_test_code="int some_variable = 0;\n"
6287 # Code to be used in simple link tests
6288 lt_simple_link_test_code='int main(){return(0);}\n'
6291 # If no C compiler was specified, use CC.
6294 # Allow CC to be a program name with arguments.
6299 # Check for any special shared library compilation flags.
6302 if test "$GCC" = no; then
6305 lt_prog_cc_shlib='-belf'
6309 if test -n "$lt_prog_cc_shlib"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6311 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6312 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6315 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6316 lt_cv_prog_cc_can_build_shared=no
6322 # Check to make sure the static flag actually works.
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6325 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6326 if ${lt_prog_compiler_static_works+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 lt_prog_compiler_static_works=no
6330 save_LDFLAGS="$LDFLAGS"
6331 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6332 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6334 # The compiler can only warn and ignore the option if not recognized
6335 # So say no if there are warnings
6336 if test -s conftest.err; then
6337 # Append any errors to the config.log.
6338 cat conftest.err 1>&5
6340 lt_prog_compiler_static_works=yes
6344 LDFLAGS="$save_LDFLAGS"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6348 $as_echo "$lt_prog_compiler_static_works" >&6; }
6350 if test x"$lt_prog_compiler_static_works" = xyes; then
6353 lt_prog_compiler_static=
6359 ## There is no encapsulation within the following macros, do not change
6360 ## the running order or otherwise move them around unless you know exactly
6361 ## what you are doing...
6363 lt_prog_compiler_no_builtin_flag=
6365 if test "$GCC" = yes; then
6366 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6370 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6371 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6372 $as_echo_n "(cached) " >&6
6374 lt_cv_prog_compiler_rtti_exceptions=no
6375 ac_outfile=conftest.$ac_objext
6376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377 lt_compiler_flag="-fno-rtti -fno-exceptions"
6378 # Insert the option either (1) after the last *FLAGS variable, or
6379 # (2) before a word containing "conftest.", or (3) at the end.
6380 # Note that $ac_compile itself does not contain backslashes and begins
6381 # with a dollar sign (not a hyphen), so the echo should work correctly.
6382 # The option is referenced via a variable to avoid confusing sed.
6383 lt_compile=`echo "$ac_compile" | $SED \
6384 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6386 -e 's:$: $lt_compiler_flag:'`
6387 (eval echo "\"\$as_me:6387: $lt_compile\"" >&5)
6388 (eval "$lt_compile" 2>conftest.err)
6390 cat conftest.err >&5
6391 echo "$as_me:6391: \$? = $ac_status" >&5
6392 if (exit $ac_status) && test -s "$ac_outfile"; then
6393 # The compiler can only warn and ignore the option if not recognized
6394 # So say no if there are warnings
6395 if test ! -s conftest.err; then
6396 lt_cv_prog_compiler_rtti_exceptions=yes
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6403 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6405 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6406 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6413 lt_prog_compiler_wl=
6414 lt_prog_compiler_pic=
6415 lt_prog_compiler_static=
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6420 if test "$GCC" = yes; then
6421 lt_prog_compiler_wl='-Wl,'
6422 lt_prog_compiler_static='-static'
6426 # All AIX code is PIC.
6427 if test "$host_cpu" = ia64; then
6428 # AIX 5 now supports IA64 processor
6429 lt_prog_compiler_static='-Bstatic'
6434 # FIXME: we need at least 68020 code to build shared libraries, but
6435 # adding the `-m68020' flag to GCC prevents building anything better,
6437 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6440 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6441 # PIC is the default for these OSes.
6444 mingw* | pw32* | os2*)
6445 # This hack is so that the source file can tell whether it is being
6446 # built for inclusion in a dll (and should export symbols for example).
6447 lt_prog_compiler_pic='-DDLL_EXPORT'
6450 darwin* | rhapsody*)
6451 # PIC is the default on this platform
6452 # Common symbols not allowed in MH_DYLIB files
6453 lt_prog_compiler_pic='-fno-common'
6457 # Just because we use GCC doesn't mean we suddenly get shared libraries
6458 # on systems that don't support them.
6459 lt_prog_compiler_can_build_shared=no
6464 if test -d /usr/nec; then
6465 lt_prog_compiler_pic=-Kconform_pic
6470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6477 lt_prog_compiler_pic='-fPIC'
6483 lt_prog_compiler_pic='-fPIC'
6487 # PORTME Check for flag to pass linker flags through the system compiler.
6490 lt_prog_compiler_wl='-Wl,'
6491 if test "$host_cpu" = ia64; then
6492 # AIX 5 now supports IA64 processor
6493 lt_prog_compiler_static='-Bstatic'
6495 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6499 mingw* | pw32* | os2*)
6500 # This hack is so that the source file can tell whether it is being
6501 # built for inclusion in a dll (and should export symbols for example).
6502 lt_prog_compiler_pic='-DDLL_EXPORT'
6505 hpux9* | hpux10* | hpux11*)
6506 lt_prog_compiler_wl='-Wl,'
6507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6514 lt_prog_compiler_pic='+Z'
6517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6518 lt_prog_compiler_static='${wl}-a ${wl}archive'
6521 irix5* | irix6* | nonstopux*)
6522 lt_prog_compiler_wl='-Wl,'
6523 # PIC (with -KPIC) is the default.
6524 lt_prog_compiler_static='-non_shared'
6528 lt_prog_compiler_pic='-KPIC'
6529 lt_prog_compiler_static='-Bstatic'
6535 lt_prog_compiler_wl='-Wl,'
6536 lt_prog_compiler_pic='-KPIC'
6537 lt_prog_compiler_static='-static'
6540 lt_prog_compiler_wl='-Wl,'
6541 # All Alpha code is PIC.
6542 lt_prog_compiler_static='-non_shared'
6547 osf3* | osf4* | osf5*)
6548 lt_prog_compiler_wl='-Wl,'
6549 # All OSF/1 code is PIC.
6550 lt_prog_compiler_static='-non_shared'
6554 lt_prog_compiler_pic='-Kpic'
6555 lt_prog_compiler_static='-dn'
6559 lt_prog_compiler_wl='-Wl,'
6560 lt_prog_compiler_pic='-KPIC'
6561 lt_prog_compiler_static='-Bstatic'
6565 lt_prog_compiler_wl='-Qoption ld '
6566 lt_prog_compiler_pic='-PIC'
6567 lt_prog_compiler_static='-Bstatic'
6570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6571 lt_prog_compiler_wl='-Wl,'
6572 lt_prog_compiler_pic='-KPIC'
6573 lt_prog_compiler_static='-Bstatic'
6577 if test -d /usr/nec ;then
6578 lt_prog_compiler_pic='-Kconform_pic'
6579 lt_prog_compiler_static='-Bstatic'
6584 lt_prog_compiler_pic='-pic'
6585 lt_prog_compiler_static='-Bstatic'
6589 lt_prog_compiler_can_build_shared=no
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6595 $as_echo "$lt_prog_compiler_pic" >&6; }
6598 # Check to make sure the PIC flag actually works.
6600 if test -n "$lt_prog_compiler_pic"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6603 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6604 if ${lt_prog_compiler_pic_works+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 lt_prog_compiler_pic_works=no
6608 ac_outfile=conftest.$ac_objext
6609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6610 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6611 # Insert the option either (1) after the last *FLAGS variable, or
6612 # (2) before a word containing "conftest.", or (3) at the end.
6613 # Note that $ac_compile itself does not contain backslashes and begins
6614 # with a dollar sign (not a hyphen), so the echo should work correctly.
6615 # The option is referenced via a variable to avoid confusing sed.
6616 lt_compile=`echo "$ac_compile" | $SED \
6617 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6619 -e 's:$: $lt_compiler_flag:'`
6620 (eval echo "\"\$as_me:6620: $lt_compile\"" >&5)
6621 (eval "$lt_compile" 2>conftest.err)
6623 cat conftest.err >&5
6624 echo "$as_me:6624: \$? = $ac_status" >&5
6625 if (exit $ac_status) && test -s "$ac_outfile"; then
6626 # The compiler can only warn and ignore the option if not recognized
6627 # So say no if there are warnings
6628 if test ! -s conftest.err; then
6629 lt_prog_compiler_pic_works=yes
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6636 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6638 if test x"$lt_prog_compiler_pic_works" = xyes; then
6639 case $lt_prog_compiler_pic in
6641 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6644 lt_prog_compiler_pic=
6645 lt_prog_compiler_can_build_shared=no
6650 # For platforms which do not support PIC, -DPIC is meaningless:
6652 lt_prog_compiler_pic=
6655 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6661 if ${lt_cv_prog_compiler_c_o+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 lt_cv_prog_compiler_c_o=no
6665 $rm -r conftest 2>/dev/null
6669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6671 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6672 # that will create temporary files in the current directory regardless of
6673 # the output directory. Thus, making CWD read-only will cause this test
6674 # to fail, enabling locking or at least warning the user not to do parallel
6678 lt_compiler_flag="-o out/conftest2.$ac_objext"
6679 # Insert the option either (1) after the last *FLAGS variable, or
6680 # (2) before a word containing "conftest.", or (3) at the end.
6681 # Note that $ac_compile itself does not contain backslashes and begins
6682 # with a dollar sign (not a hyphen), so the echo should work correctly.
6683 lt_compile=`echo "$ac_compile" | $SED \
6684 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6686 -e 's:$: $lt_compiler_flag:'`
6687 (eval echo "\"\$as_me:6687: $lt_compile\"" >&5)
6688 (eval "$lt_compile" 2>out/conftest.err)
6690 cat out/conftest.err >&5
6691 echo "$as_me:6691: \$? = $ac_status" >&5
6692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6694 # The compiler can only warn and ignore the option if not recognized
6695 # So say no if there are warnings
6696 if test ! -s out/conftest.err; then
6697 lt_cv_prog_compiler_c_o=yes
6702 # SGI C++ compiler will create directory out/ii_files/ for
6703 # template instantiation
6704 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6705 $rm out/* && rmdir out
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6712 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6715 hard_links="nottested"
6716 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6717 # do not overwrite the value of need_locks provided by the user
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6719 $as_echo_n "checking if we can lock with hard links... " >&6; }
6722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6724 ln conftest.a conftest.b 2>&5 || hard_links=no
6725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6727 $as_echo "$hard_links" >&6; }
6728 if test "$hard_links" = no; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6730 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6738 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6741 allow_undefined_flag=
6742 enable_shared_with_static_runtimes=no
6744 archive_expsym_cmds=
6745 old_archive_From_new_cmds=
6746 old_archive_from_expsyms_cmds=
6747 export_dynamic_flag_spec=
6748 whole_archive_flag_spec=
6749 thread_safe_flag_spec=
6750 hardcode_libdir_flag_spec=
6751 hardcode_libdir_flag_spec_ld=
6752 hardcode_libdir_separator=
6755 hardcode_shlibpath_var=unsupported
6756 link_all_deplibs=unknown
6757 hardcode_automatic=no
6760 always_export_symbols=no
6761 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6762 # include_expsyms should be a list of space-separated symbols to be *always*
6763 # included in the symbol list
6765 # exclude_expsyms can be an extended regexp of symbols to exclude
6766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6768 # as well as any symbol that contains `d'.
6769 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6771 # platforms (ab)use it in PIC code, but their linkers get confused if
6772 # the symbol is explicitly referenced. Since portable code cannot
6773 # rely on this symbol name, it's probably fine to never include it in
6774 # preloaded symbol tables.
6775 extract_expsyms_cmds=
6778 cygwin* | mingw* | pw32*)
6779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6780 # When not using gcc, we currently assume that we are using
6781 # Microsoft Visual C++.
6782 if test "$GCC" != yes; then
6792 if test "$with_gnu_ld" = yes; then
6793 # If archive_cmds runs LD, not CC, wlarc should be empty
6796 # See if GNU ld supports shared libraries.
6798 aix3* | aix4* | aix5*)
6799 # On AIX/PPC, the GNU linker is very broken
6800 if test "$host_cpu" != ia64; then
6804 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6805 *** to be unable to reliably create shared libraries on AIX.
6806 *** Therefore, libtool is disabling shared libraries support. If you
6807 *** really care for shared libraries, you may want to modify your PATH
6808 *** so that a non-GNU linker is found, and then restart.
6815 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)'
6816 hardcode_libdir_flag_spec='-L$libdir'
6817 hardcode_minus_L=yes
6819 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6820 # that the semantics of dynamic libraries on AmigaOS, at least up
6821 # to version 4, is to share data among multiple programs linked
6822 # with the same dynamic library. Since this doesn't match the
6823 # behavior of shared libraries on other platforms, we can't use
6829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6830 allow_undefined_flag=unsupported
6831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6832 # support --undefined. This deserves some investigation. FIXME
6833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839 cygwin* | mingw* | pw32*)
6840 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6841 # as there is no search path for DLLs.
6842 hardcode_libdir_flag_spec='-L$libdir'
6843 allow_undefined_flag=unsupported
6844 always_export_symbols=no
6845 enable_shared_with_static_runtimes=yes
6846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6848 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6850 # If the export-symbols file already is a .def file (1st line
6851 # is EXPORTS), use it as is; otherwise, prepend...
6852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6853 cp $export_symbols $output_objdir/$soname.def;
6855 echo EXPORTS > $output_objdir/$soname.def;
6856 cat $export_symbols >> $output_objdir/$soname.def;
6858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6866 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6875 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6880 *** create shared libraries on Solaris systems. Therefore, libtool
6881 *** is disabling shared libraries support. We urge you to upgrade GNU
6882 *** binutils to release 2.9.1 or newer. Another option is to modify
6883 *** your PATH or compiler configuration so that the native linker is
6884 *** used, and then restart.
6887 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6899 hardcode_shlibpath_var=no
6903 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6904 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905 archive_cmds="$tmp_archive_cmds"
6906 supports_anon_versioning=no
6907 case `$LD -v 2>/dev/null` in
6908 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6911 *\ 2.11.*) ;; # other 2.11 versions
6912 *) supports_anon_versioning=yes ;;
6914 if test $supports_anon_versioning = yes; then
6915 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6917 $echo "local: *; };" >> $output_objdir/$libname.ver~
6918 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6920 archive_expsym_cmds="$tmp_archive_cmds"
6928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6937 if test "$ld_shlibs" = yes; then
6938 runpath_var=LD_RUN_PATH
6939 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6940 export_dynamic_flag_spec='${wl}--export-dynamic'
6941 # ancient GNU ld didn't support --whole-archive et. al.
6942 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6943 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6945 whole_archive_flag_spec=
6949 # PORTME fill in a description of your system's linker (not GNU ld)
6952 allow_undefined_flag=unsupported
6953 always_export_symbols=yes
6954 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'
6955 # Note: this linker hardcodes the directories in LIBPATH if there
6956 # are no directories specified by -L.
6957 hardcode_minus_L=yes
6958 if test "$GCC" = yes && test -z "$link_static_flag"; then
6959 # Neither direct hardcoding nor static linking is supported with a
6961 hardcode_direct=unsupported
6966 if test "$host_cpu" = ia64; then
6967 # On IA64, the linker does run time linking by default, so we don't
6968 # have to do anything special.
6969 aix_use_runtimelinking=no
6970 exp_sym_flag='-Bexport'
6973 # If we're using GNU nm, then we don't want the "-C" option.
6974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6976 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'
6978 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'
6980 aix_use_runtimelinking=no
6982 # Test if we are trying to use run time linking or normal
6983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6984 # need to do runtime linking.
6985 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6986 for ld_flag in $LDFLAGS; do
6987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6988 aix_use_runtimelinking=yes
6994 exp_sym_flag='-bexport'
6995 no_entry_flag='-bnoentry'
6998 # When large executables or shared objects are built, AIX ld can
6999 # have problems creating the table of contents. If linking a library
7000 # or program results in "error TOC overflow" add -mminimal-toc to
7001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7006 hardcode_libdir_separator=':'
7007 link_all_deplibs=yes
7009 if test "$GCC" = yes; then
7010 case $host_os in aix4.012|aix4.012.*)
7011 # We only want to do this on AIX 4.2 and lower, the check
7012 # below for broken collect2 doesn't work under 4.3+
7013 collect2name=`${CC} -print-prog-name=collect2`
7014 if test -f "$collect2name" && \
7015 strings "$collect2name" | grep resolve_lib_name >/dev/null
7017 # We have reworked collect2
7020 # We have old collect2
7021 hardcode_direct=unsupported
7022 # It fails to find uninstalled libraries when the uninstalled
7023 # path is not listed in the libpath. Setting hardcode_minus_L
7024 # to unsupported forces relinking
7025 hardcode_minus_L=yes
7026 hardcode_libdir_flag_spec='-L$libdir'
7027 hardcode_libdir_separator=
7030 shared_flag='-shared'
7033 if test "$host_cpu" = ia64; then
7034 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7035 # chokes on -Wl,-G. The following line is correct:
7038 if test "$aix_use_runtimelinking" = yes; then
7039 shared_flag='${wl}-G'
7041 shared_flag='${wl}-bM:SRE'
7046 # It seems that -bexpall does not export symbols beginning with
7047 # underscore (_), so it is better to generate a list of symbols to export.
7048 always_export_symbols=yes
7049 if test "$aix_use_runtimelinking" = yes; then
7050 # Warning - without using the other runtime loading flags (-brtl),
7051 # -berok will link without error, but may produce a broken library.
7052 allow_undefined_flag='-berok'
7053 # Determine the default libpath from the value encoded in an empty executable.
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7065 if ac_fn_c_try_link "$LINENO"; then :
7067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7069 # Check for a 64-bit object if we didn't find anything.
7070 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; }
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7077 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7078 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"
7080 if test "$host_cpu" = ia64; then
7081 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7082 allow_undefined_flag="-z nodefs"
7083 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"
7085 # Determine the default libpath from the value encoded in an empty executable.
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7097 if ac_fn_c_try_link "$LINENO"; then :
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7101 # Check for a 64-bit object if we didn't find anything.
7102 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; }
7105 rm -f core conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7110 # Warning - without using the other run time loading flags,
7111 # -berok will link without error, but may produce a broken library.
7112 no_undefined_flag=' ${wl}-bernotok'
7113 allow_undefined_flag=' ${wl}-berok'
7114 # -bexpall does not export symbols beginning with underscore (_)
7115 always_export_symbols=yes
7116 # Exported symbols can be pulled into shared objects from archives
7117 whole_archive_flag_spec=' '
7118 archive_cmds_need_lc=yes
7119 # This is similar to how AIX traditionally builds it's shared libraries.
7120 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'
7126 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)'
7127 hardcode_libdir_flag_spec='-L$libdir'
7128 hardcode_minus_L=yes
7129 # see comment about different semantics on the GNU ld section
7134 export_dynamic_flag_spec=-rdynamic
7137 cygwin* | mingw* | pw32*)
7138 # When not using gcc, we currently assume that we are using
7139 # Microsoft Visual C++.
7140 # hardcode_libdir_flag_spec is actually meaningless, as there is
7141 # no search path for DLLs.
7142 hardcode_libdir_flag_spec=' '
7143 allow_undefined_flag=unsupported
7144 # Tell ltmain to make .lib files, not .a files.
7146 # Tell ltmain to make .dll files, not .so files.
7148 # FIXME: Setting linknames here is a bad hack.
7149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7150 # The linker will automatically build a .lib file if we build a DLL.
7151 old_archive_From_new_cmds='true'
7152 # FIXME: Should let the user specify the lib program.
7153 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7154 fix_srcfile_path='`cygpath -w "$srcfile"`'
7155 enable_shared_with_static_runtimes=yes
7158 darwin* | rhapsody*)
7159 if test "$GXX" = yes ; then
7160 archive_cmds_need_lc=no
7162 rhapsody* | darwin1.[012])
7163 allow_undefined_flag='-undefined suppress'
7166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7167 allow_undefined_flag='-flat_namespace -undefined suppress'
7169 case ${MACOSX_DEPLOYMENT_TARGET} in
7171 allow_undefined_flag='-flat_namespace -undefined suppress'
7174 allow_undefined_flag='-undefined dynamic_lookup'
7180 lt_int_apple_cc_single_mod=no
7181 output_verbose_link_cmd='echo'
7182 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7183 lt_int_apple_cc_single_mod=yes
7185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7186 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7188 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'
7190 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7192 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7193 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}'
7195 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}'
7197 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}'
7199 hardcode_automatic=yes
7200 hardcode_shlibpath_var=unsupported
7201 whole_archive_flag_spec='-all_load $convenience'
7202 link_all_deplibs=yes
7209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_shlibpath_var=no
7218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7219 # support. Future versions do this automatically, but an explicit c++rt0.o
7220 # does not break anything, and helps significantly (at the cost of a little
7223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7224 hardcode_libdir_flag_spec='-R$libdir'
7226 hardcode_shlibpath_var=no
7229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7233 hardcode_minus_L=yes
7234 hardcode_shlibpath_var=no
7237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7238 freebsd* | kfreebsd*-gnu)
7239 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7240 hardcode_libdir_flag_spec='-R$libdir'
7242 hardcode_shlibpath_var=no
7246 if test "$GCC" = yes; then
7247 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'
7249 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'
7251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252 hardcode_libdir_separator=:
7255 # hardcode_minus_L: Not really in the search PATH,
7256 # but as the default location of the library.
7257 hardcode_minus_L=yes
7258 export_dynamic_flag_spec='${wl}-E'
7262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7265 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7274 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7281 if test "$with_gnu_ld" = no; then
7284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7285 hardcode_libdir_flag_spec_ld='+b $libdir'
7286 hardcode_libdir_separator=:
7288 hardcode_shlibpath_var=no
7291 hardcode_libdir_flag_spec='-L$libdir'
7293 hardcode_shlibpath_var=no
7295 # hardcode_minus_L: Not really in the search PATH,
7296 # but as the default location of the library.
7297 hardcode_minus_L=yes
7300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7301 hardcode_libdir_separator=:
7303 export_dynamic_flag_spec='${wl}-E'
7305 # hardcode_minus_L: Not really in the search PATH,
7306 # but as the default location of the library.
7307 hardcode_minus_L=yes
7313 irix5* | irix6* | nonstopux*)
7314 if test "$GCC" = yes; then
7315 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'
7317 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'
7318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7321 hardcode_libdir_separator=:
7322 link_all_deplibs=yes
7326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7331 hardcode_libdir_flag_spec='-R$libdir'
7333 hardcode_shlibpath_var=no
7337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7340 hardcode_libdir_separator=:
7341 hardcode_shlibpath_var=no
7346 hardcode_shlibpath_var=no
7347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7350 export_dynamic_flag_spec='${wl}-E'
7353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_libdir_flag_spec='-R$libdir'
7358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7366 hardcode_libdir_flag_spec='-L$libdir'
7367 hardcode_minus_L=yes
7368 allow_undefined_flag=unsupported
7369 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'
7370 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7374 if test "$GCC" = yes; then
7375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7376 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'
7378 allow_undefined_flag=' -expect_unresolved \*'
7379 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'
7381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7382 hardcode_libdir_separator=:
7385 osf4* | osf5*) # as osf3* with the addition of -msym flag
7386 if test "$GCC" = yes; then
7387 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7388 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'
7389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7391 allow_undefined_flag=' -expect_unresolved \*'
7392 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'
7393 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7394 $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'
7396 # Both c and cxx compiler support -rpath directly
7397 hardcode_libdir_flag_spec='-rpath $libdir'
7399 hardcode_libdir_separator=:
7403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7404 hardcode_shlibpath_var=no
7405 export_dynamic_flag_spec='${wl}-Bexport'
7406 runpath_var=LD_RUN_PATH
7407 hardcode_runpath_var=yes
7411 no_undefined_flag=' -z text'
7412 if test "$GCC" = yes; then
7413 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7417 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7421 hardcode_libdir_flag_spec='-R$libdir'
7422 hardcode_shlibpath_var=no
7424 solaris2.[0-5] | solaris2.[0-5].*) ;;
7425 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7428 link_all_deplibs=yes
7432 if test "x$host_vendor" = xsequent; then
7433 # Use $CC to link under sequent, because it throws in some extra .o
7434 # files that make .init and .fini sections work.
7435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7439 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_minus_L=yes
7442 hardcode_shlibpath_var=no
7446 case $host_vendor in
7448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7449 hardcode_direct=yes # is this really true???
7452 ## LD is ld it makes a PLAMLIB
7453 ## CC just makes a GrossModule.
7454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7455 reload_cmds='$CC -r -o $output$reload_objs'
7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7463 runpath_var='LD_RUN_PATH'
7464 hardcode_shlibpath_var=no
7468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469 hardcode_shlibpath_var=no
7470 export_dynamic_flag_spec='-Bexport'
7474 if test -d /usr/nec; then
7475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476 hardcode_shlibpath_var=no
7477 runpath_var=LD_RUN_PATH
7478 hardcode_runpath_var=yes
7484 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7487 hardcode_shlibpath_var=no
7488 hardcode_runpath_var=yes
7489 runpath_var=LD_RUN_PATH
7492 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7493 no_undefined_flag='${wl}-z ${wl}text'
7494 if test "$GCC" = yes; then
7495 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7499 runpath_var='LD_RUN_PATH'
7500 hardcode_shlibpath_var=no
7504 no_undefined_flag=' -z text'
7505 # $CC -shared without GNU ld will not create a library from C++
7506 # object files and a static libstdc++, better avoid it by now
7507 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7508 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7510 hardcode_libdir_flag_spec=
7511 hardcode_shlibpath_var=no
7512 runpath_var='LD_RUN_PATH'
7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_libdir_flag_spec='-L$libdir'
7518 hardcode_shlibpath_var=no
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7528 $as_echo "$ld_shlibs" >&6; }
7529 test "$ld_shlibs" = no && can_build_shared=no
7531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7532 if test "$GCC" = yes; then
7533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7537 # Do we need to explicitly link libc?
7539 case "x$archive_cmds_need_lc" in
7541 # Assume -lc should be added
7542 archive_cmds_need_lc=yes
7544 if test "$enable_shared" = yes && test "$GCC" = yes; then
7545 case $archive_cmds in
7547 # FIXME: we may have to deal with multi-command sequences.
7550 # Test whether the compiler implicitly links with -lc since on some
7551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7552 # to ld, don't add -lc before -lgcc.
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7554 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559 (eval $ac_compile) 2>&5
7561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562 test $ac_status = 0; } 2>conftest.err; then
7565 libobjs=conftest.$ac_objext
7567 wl=$lt_prog_compiler_wl
7573 lt_save_allow_undefined_flag=$allow_undefined_flag
7574 allow_undefined_flag=
7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7576 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; }
7581 archive_cmds_need_lc=no
7583 archive_cmds_need_lc=yes
7585 allow_undefined_flag=$lt_save_allow_undefined_flag
7587 cat conftest.err 1>&5
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7591 $as_echo "$archive_cmds_need_lc" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7601 libname_spec='lib$name'
7609 shlibpath_overrides_runpath=unknown
7611 dynamic_linker="$host_os ld.so"
7612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7613 if test "$GCC" = yes; then
7614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7616 # if the path contains ";" then we assume it to be the separator
7617 # otherwise default to the standard path separator (i.e. ":") - it is
7618 # assumed that no part of a normal pathname contains ";" but that should
7619 # okay in the real world where ";" in dirpaths is itself problematic.
7620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7627 need_lib_prefix=unknown
7628 hardcode_into_libs=no
7630 # when you set need_version to no, make sure it does not cause -set_version
7631 # flags to be left without arguments
7632 need_version=unknown
7637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7638 shlibpath_var=LIBPATH
7640 # AIX 3 has no versioning support, so we append a major version to the name.
7641 soname_spec='${libname}${release}${shared_ext}$major'
7648 hardcode_into_libs=yes
7649 if test "$host_cpu" = ia64; then
7650 # AIX 5 supports IA64
7651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7652 shlibpath_var=LD_LIBRARY_PATH
7654 # With GCC up to 2.95.x, collect2 would create an import file
7655 # for dependence libraries. The import file would start with
7656 # the line `#! .'. This would cause the generated library to
7657 # depend on `.', always an invalid library. This was fixed in
7658 # development snapshots of GCC prior to 3.0.
7660 aix4 | aix4.[01] | aix4.[01].*)
7661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7671 # soname into executable. Probably we can add versioning support to
7672 # collect2, so additional links can be useful in future.
7673 if test "$aix_use_runtimelinking" = yes; then
7674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7675 # instead of lib<name>.a to let people know that these are not
7676 # typical AIX shared libraries.
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7679 # We preserve .a as extension for shared libraries through AIX4.2
7680 # and later when we are not doing run time linking.
7681 library_names_spec='${libname}${release}.a $libname.a'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7684 shlibpath_var=LIBPATH
7689 library_names_spec='$libname.ixlibrary $libname.a'
7690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7691 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'
7695 library_names_spec='${libname}${shared_ext}'
7696 dynamic_linker="$host_os ld.so"
7697 shlibpath_var=LIBRARY_PATH
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7704 soname_spec='${libname}${release}${shared_ext}$major'
7705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7706 shlibpath_var=LD_LIBRARY_PATH
7707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7709 # the default ld.so.conf also contains /usr/contrib/lib and
7710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7711 # libtool to hard-code these into programs
7714 cygwin* | mingw* | pw32*)
7715 version_type=windows
7720 case $GCC,$host_os in
7721 yes,cygwin* | yes,mingw* | yes,pw32*)
7722 library_names_spec='$libname.dll.a'
7723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7724 postinstall_cmds='base_file=`basename \${file}`~
7725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7726 dldir=$destdir/`dirname \$dlpath`~
7727 test -d \$dldir || mkdir -p \$dldir~
7728 $install_prog $dir/$dlname \$dldir/$dlname'
7729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7730 dlpath=$dir/\$dldll~
7732 shlibpath_overrides_runpath=yes
7736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7741 # MinGW DLLs use traditional 'lib' prefix
7742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7745 # It is most probably a Windows format PATH printed by
7746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7747 # path with ; separators, and with drive letters. We can handle the
7748 # drive letters (cygwin fileutils understands them), so leave them,
7749 # especially as we might pass files found there to a mingw objdump,
7750 # which wouldn't understand a cygwinified path. Ahh.
7751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7757 # pw32 DLLs use 'pw' prefix rather than 'lib'
7758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7767 dynamic_linker='Win32 ld.exe'
7768 # FIXME: first we should search . and the directory the executable is in
7772 darwin* | rhapsody*)
7773 dynamic_linker="$host_os dyld"
7777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7778 soname_spec='${libname}${release}${major}$shared_ext'
7779 shlibpath_overrides_runpath=yes
7780 shlibpath_var=DYLD_LIBRARY_PATH
7781 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7783 if test "$GCC" = yes; then
7784 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"`
7786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 shlibpath_var=LD_LIBRARY_PATH
7808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7809 soname_spec='${libname}${release}${shared_ext}$major'
7810 shlibpath_var=LD_LIBRARY_PATH
7811 shlibpath_overrides_runpath=no
7812 hardcode_into_libs=yes
7813 dynamic_linker='GNU ld.so'
7817 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7818 version_type=freebsd-$objformat
7819 case $version_type in
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7830 shlibpath_var=LD_LIBRARY_PATH
7833 shlibpath_overrides_runpath=yes
7835 freebsd3.01* | freebsdelf3.01*)
7836 shlibpath_overrides_runpath=yes
7837 hardcode_into_libs=yes
7840 shlibpath_overrides_runpath=no
7841 hardcode_into_libs=yes
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 shlibpath_var=LD_LIBRARY_PATH
7853 hardcode_into_libs=yes
7856 hpux9* | hpux10* | hpux11*)
7857 # Give a soname corresponding to the major version so that dld.sl refuses to
7858 # link against other versions.
7865 hardcode_into_libs=yes
7866 dynamic_linker="$host_os dld.so"
7867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7870 soname_spec='${libname}${release}${shared_ext}$major'
7871 if test "X$HPUX_IA64_MODE" = X32; then
7872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7880 hardcode_into_libs=yes
7881 dynamic_linker="$host_os dld.sl"
7882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
7886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7891 dynamic_linker="$host_os dld.sl"
7892 shlibpath_var=SHLIB_PATH
7893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895 soname_spec='${libname}${release}${shared_ext}$major'
7898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7899 postinstall_cmds='chmod 555 $lib'
7902 irix5* | irix6* | nonstopux*)
7904 nonstopux*) version_type=nonstopux ;;
7906 if test "$lt_cv_prog_gnu_ld" = yes; then
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7917 irix5* | nonstopux*)
7921 case $LD in # libtool.m4 will add one of these switches to LD
7922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7923 libsuff= shlibsuff= libmagic=32-bit;;
7924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7925 libsuff=32 shlibsuff=N32 libmagic=N32;;
7926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7928 *) libsuff= shlibsuff= libmagic=never-match;;
7932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7933 shlibpath_overrides_runpath=no
7934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7936 hardcode_into_libs=yes
7939 # No shared lib support for Linux oldld, aout, or coff.
7940 linux*oldld* | linux*aout* | linux*coff*)
7944 # This must be Linux ELF.
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7952 shlibpath_var=LD_LIBRARY_PATH
7953 shlibpath_overrides_runpath=no
7954 # This implies no fast_install, which is unacceptable.
7955 # Some rework will be needed to allow for fast_install
7956 # before this can be enabled.
7957 hardcode_into_libs=yes
7959 # We used to test for /lib/ld.so.1 and disable shared libraries on
7960 # powerpc, because MkLinux only supported shared libraries with the
7961 # GNU dynamic linker. Since this was broken with cross compilers,
7962 # most powerpc-linux boxes support dynamic linking these days and
7963 # people can always --disable-shared, the test was removed, and we
7964 # assume the GNU/Linux dynamic linker is in use.
7965 dynamic_linker='GNU/Linux ld.so'
7972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7975 dynamic_linker='NetBSD (a.out) ld.so'
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 dynamic_linker='NetBSD ld.elf_so'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=yes
7983 hardcode_into_libs=yes
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989 shlibpath_var=LD_LIBRARY_PATH
7990 shlibpath_overrides_runpath=yes
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998 soname_spec='${libname}${release}${shared_ext}$major'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 shlibpath_overrides_runpath=yes
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8009 shlibpath_var=LD_LIBRARY_PATH
8010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8012 openbsd2.[89] | openbsd2.[89].*)
8013 shlibpath_overrides_runpath=no
8016 shlibpath_overrides_runpath=yes
8020 shlibpath_overrides_runpath=yes
8025 libname_spec='$name'
8028 library_names_spec='$libname${shared_ext} $libname.a'
8029 dynamic_linker='OS/2 ld.exe'
8030 shlibpath_var=LIBPATH
8033 osf3* | osf4* | osf5*)
8037 soname_spec='${libname}${release}${shared_ext}$major'
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 shlibpath_var=LD_LIBRARY_PATH
8040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 shlibpath_var=LD_LIBRARY_PATH
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 shlibpath_overrides_runpath=yes
8059 hardcode_into_libs=yes
8060 # ldd complains unless libraries are executable
8061 postinstall_cmds='chmod +x $lib'
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8068 shlibpath_var=LD_LIBRARY_PATH
8069 shlibpath_overrides_runpath=yes
8070 if test "$with_gnu_ld" = yes; then
8076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 case $host_vendor in
8083 shlibpath_overrides_runpath=no
8085 export_dynamic_flag_spec='${wl}-Blargedynsym'
8086 runpath_var=LD_RUN_PATH
8094 shlibpath_overrides_runpath=no
8095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8101 if test -d /usr/nec ;then
8103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8104 soname_spec='$libname${shared_ext}.$major'
8105 shlibpath_var=LD_LIBRARY_PATH
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112 soname_spec='${libname}${release}${shared_ext}$major'
8113 shlibpath_var=LD_LIBRARY_PATH
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8121 $as_echo "$dynamic_linker" >&6; }
8122 test "$dynamic_linker" = no && can_build_shared=no
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8127 if test -n "$hardcode_libdir_flag_spec" || \
8128 test -n "$runpath_var " || \
8129 test "X$hardcode_automatic"="Xyes" ; then
8131 # We can hardcode non-existant directories.
8132 if test "$hardcode_direct" != no &&
8133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8134 # have to relink, otherwise we might link with an installed library
8135 # when we should be linking with a yet-to-be-installed one
8136 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8137 test "$hardcode_minus_L" != no; then
8138 # Linking always hardcodes the temporary library directory.
8139 hardcode_action=relink
8141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8142 hardcode_action=immediate
8145 # We cannot hardcode anything, or else we can only hardcode existing
8147 hardcode_action=unsupported
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8150 $as_echo "$hardcode_action" >&6; }
8152 if test "$hardcode_action" = relink; then
8153 # Fast installation is not supported
8154 enable_fast_install=no
8155 elif test "$shlibpath_overrides_runpath" = yes ||
8156 test "$enable_shared" = no; then
8157 # Fast installation is not necessary
8158 enable_fast_install=needless
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8164 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8165 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8166 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8167 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8169 $as_echo "yes" >&6; }
8171 # FIXME - insert some real tests, host_os isn't really good enough
8174 if test -n "$STRIP" ; then
8175 striplib="$STRIP -x"
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8190 if test "x$enable_dlopen" != xyes; then
8191 enable_dlopen=unknown
8192 enable_dlopen_self=unknown
8193 enable_dlopen_self_static=unknown
8200 lt_cv_dlopen="load_add_on"
8202 lt_cv_dlopen_self=yes
8206 lt_cv_dlopen="LoadLibrary"
8211 lt_cv_dlopen="dlopen"
8216 # if libdl is installed we need to link against it
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8219 if ${ac_cv_lib_dl_dlopen+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 ac_check_lib_save_LIBS=$LIBS
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 ac_cv_lib_dl_dlopen=yes
8245 ac_cv_lib_dl_dlopen=no
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8259 lt_cv_dlopen_self=yes
8266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8267 if test "x$ac_cv_func_shl_load" = xyes; then :
8268 lt_cv_dlopen="shl_load"
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8272 if ${ac_cv_lib_dld_shl_load+:} false; then :
8273 $as_echo_n "(cached) " >&6
8275 ac_check_lib_save_LIBS=$LIBS
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8295 if ac_fn_c_try_link "$LINENO"; then :
8296 ac_cv_lib_dld_shl_load=yes
8298 ac_cv_lib_dld_shl_load=no
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8306 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8310 if test "x$ac_cv_func_dlopen" = xyes; then :
8311 lt_cv_dlopen="dlopen"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8315 if ${ac_cv_lib_dl_dlopen+:} false; then :
8316 $as_echo_n "(cached) " >&6
8318 ac_check_lib_save_LIBS=$LIBS
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8323 /* Override any GCC internal prototype to avoid an error.
8324 Use char because int might match the return type of a GCC
8325 builtin and then its argument prototype would still apply. */
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 ac_cv_lib_dl_dlopen=yes
8341 ac_cv_lib_dl_dlopen=no
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 LIBS=$ac_check_lib_save_LIBS
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8349 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8354 if ${ac_cv_lib_svld_dlopen+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 ac_check_lib_save_LIBS=$LIBS
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8362 /* Override any GCC internal prototype to avoid an error.
8363 Use char because int might match the return type of a GCC
8364 builtin and then its argument prototype would still apply. */
8377 if ac_fn_c_try_link "$LINENO"; then :
8378 ac_cv_lib_svld_dlopen=yes
8380 ac_cv_lib_svld_dlopen=no
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8388 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8393 if ${ac_cv_lib_dld_dld_link+:} false; then :
8394 $as_echo_n "(cached) " >&6
8396 ac_check_lib_save_LIBS=$LIBS
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8416 if ac_fn_c_try_link "$LINENO"; then :
8417 ac_cv_lib_dld_dld_link=yes
8419 ac_cv_lib_dld_dld_link=no
8421 rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8427 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8449 if test "x$lt_cv_dlopen" != xno; then
8455 case $lt_cv_dlopen in
8457 save_CPPFLAGS="$CPPFLAGS"
8458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8460 save_LDFLAGS="$LDFLAGS"
8461 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8464 LIBS="$lt_cv_dlopen_libs $LIBS"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8468 if ${lt_cv_dlopen_self+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 if test "$cross_compiling" = yes; then :
8472 lt_cv_dlopen_self=cross
8474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8475 lt_status=$lt_dlunknown
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8477 "configure"
8478 #include "confdefs.h"
8487 # define LT_DLGLOBAL RTLD_GLOBAL
8490 # define LT_DLGLOBAL DL_GLOBAL
8492 # define LT_DLGLOBAL 0
8496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8497 find out it does not work in some platform. */
8498 #ifndef LT_DLLAZY_OR_NOW
8500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8503 # define LT_DLLAZY_OR_NOW DL_LAZY
8506 # define LT_DLLAZY_OR_NOW RTLD_NOW
8509 # define LT_DLLAZY_OR_NOW DL_NOW
8511 # define LT_DLLAZY_OR_NOW 0
8519 extern "C" void exit (int);
8522 void fnord() { int i=42;}
8525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8526 int status = $lt_dlunknown;
8530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8532 /* dlclose (self); */
8538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8539 (eval $ac_link) 2>&5
8541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8542 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8543 (./conftest; exit; ) 2>/dev/null
8546 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8547 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8548 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8551 # compilation failed
8552 lt_cv_dlopen_self=no
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8560 $as_echo "$lt_cv_dlopen_self" >&6; }
8562 if test "x$lt_cv_dlopen_self" = xyes; then
8563 LDFLAGS="$LDFLAGS $link_static_flag"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8565 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8566 if ${lt_cv_dlopen_self_static+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 if test "$cross_compiling" = yes; then :
8570 lt_cv_dlopen_self_static=cross
8572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8573 lt_status=$lt_dlunknown
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8575 "configure"
8576 #include "confdefs.h"
8585 # define LT_DLGLOBAL RTLD_GLOBAL
8588 # define LT_DLGLOBAL DL_GLOBAL
8590 # define LT_DLGLOBAL 0
8594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8595 find out it does not work in some platform. */
8596 #ifndef LT_DLLAZY_OR_NOW
8598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8601 # define LT_DLLAZY_OR_NOW DL_LAZY
8604 # define LT_DLLAZY_OR_NOW RTLD_NOW
8607 # define LT_DLLAZY_OR_NOW DL_NOW
8609 # define LT_DLLAZY_OR_NOW 0
8617 extern "C" void exit (int);
8620 void fnord() { int i=42;}
8623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8624 int status = $lt_dlunknown;
8628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8630 /* dlclose (self); */
8636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8637 (eval $ac_link) 2>&5
8639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8640 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8641 (./conftest; exit; ) 2>/dev/null
8644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8646 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8649 # compilation failed
8650 lt_cv_dlopen_self_static=no
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8661 CPPFLAGS="$save_CPPFLAGS"
8662 LDFLAGS="$save_LDFLAGS"
8667 case $lt_cv_dlopen_self in
8668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8669 *) enable_dlopen_self=unknown ;;
8672 case $lt_cv_dlopen_self_static in
8673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8674 *) enable_dlopen_self_static=unknown ;;
8679 # Report which librarie types wil actually be built
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8683 $as_echo "$can_build_shared" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8686 $as_echo_n "checking whether to build shared libraries... " >&6; }
8687 test "$can_build_shared" = "no" && enable_shared=no
8689 # On AIX, shared libraries and static libraries use the same namespace, and
8690 # are all built from PIC.
8693 test "$enable_shared" = yes && enable_static=no
8694 if test -n "$RANLIB"; then
8695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8696 postinstall_cmds='$RANLIB $lib'
8701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8702 test "$enable_shared" = yes && enable_static=no
8705 darwin* | rhapsody*)
8706 if test "$GCC" = yes; then
8707 archive_cmds_need_lc=no
8709 rhapsody* | darwin1.[012])
8710 allow_undefined_flag='-undefined suppress'
8713 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8714 allow_undefined_flag='-flat_namespace -undefined suppress'
8716 case ${MACOSX_DEPLOYMENT_TARGET} in
8718 allow_undefined_flag='-flat_namespace -undefined suppress'
8721 allow_undefined_flag='-undefined dynamic_lookup'
8727 output_verbose_link_cmd='echo'
8728 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8729 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8731 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}'
8732 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}'
8734 hardcode_automatic=yes
8735 hardcode_shlibpath_var=unsupported
8736 whole_archive_flag_spec='-all_load $convenience'
8737 link_all_deplibs=yes
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8744 $as_echo "$enable_shared" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8747 $as_echo_n "checking whether to build static libraries... " >&6; }
8748 # Make sure either enable_shared or enable_static is yes.
8749 test "$enable_shared" = yes || enable_static=yes
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8751 $as_echo "$enable_static" >&6; }
8753 # The else clause should only fire when bootstrapping the
8754 # libtool distribution, otherwise you forgot to ship ltmain.sh
8755 # with your package, and you will get complaints that there are
8756 # no rules to generate ltmain.sh.
8757 if test -f "$ltmain"; then
8758 # See if we are running on zsh, and set the options which allow our commands through
8759 # without removal of \ escapes.
8760 if test -n "${ZSH_VERSION+set}" ; then
8761 setopt NO_GLOB_SUBST
8763 # Now quote all the things that may contain metacharacters while being
8764 # careful not to overquote the AC_SUBSTed values. We take copies of the
8765 # variables and quote the copies for generation of the libtool script.
8766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8770 deplibs_check_method reload_flag reload_cmds need_locks \
8771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8772 lt_cv_sys_global_symbol_to_c_name_address \
8773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8774 old_postinstall_cmds old_postuninstall_cmds \
8778 lt_prog_compiler_wl \
8779 lt_prog_compiler_pic \
8780 lt_prog_compiler_static \
8781 lt_prog_compiler_no_builtin_flag \
8782 export_dynamic_flag_spec \
8783 thread_safe_flag_spec \
8784 whole_archive_flag_spec \
8785 enable_shared_with_static_runtimes \
8787 old_archive_from_new_cmds \
8792 compiler_lib_search_path \
8794 archive_expsym_cmds \
8796 postuninstall_cmds \
8797 old_archive_from_expsyms_cmds \
8798 allow_undefined_flag \
8800 export_symbols_cmds \
8801 hardcode_libdir_flag_spec \
8802 hardcode_libdir_flag_spec_ld \
8803 hardcode_libdir_separator \
8804 hardcode_automatic \
8806 module_expsym_cmds \
8807 lt_cv_prog_compiler_c_o \
8812 old_archive_cmds | \
8813 old_archive_from_new_cmds | \
8815 archive_expsym_cmds | \
8817 module_expsym_cmds | \
8818 old_archive_from_expsyms_cmds | \
8819 export_symbols_cmds | \
8820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8821 postinstall_cmds | postuninstall_cmds | \
8822 old_postinstall_cmds | old_postuninstall_cmds | \
8823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8824 # Double-quote double-evaled strings.
8825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8834 *'\$0 --fallback-echo"')
8835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8840 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8843 $as_echo "$as_me: creating $ofile" >&6;}
8845 cat <<__EOF__ >> "$cfgfile"
8848 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8849 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8853 # Free Software Foundation, Inc.
8855 # This file is part of GNU Libtool:
8856 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8858 # This program is free software; you can redistribute it and/or modify
8859 # it under the terms of the GNU General Public License as published by
8860 # the Free Software Foundation; either version 2 of the License, or
8861 # (at your option) any later version.
8863 # This program is distributed in the hope that it will be useful, but
8864 # WITHOUT ANY WARRANTY; without even the implied warranty of
8865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8866 # General Public License for more details.
8868 # You should have received a copy of the GNU General Public License
8869 # along with this program; if not, write to the Free Software
8870 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8872 # As a special exception to the GNU General Public License, if you
8873 # distribute this file as part of a program that contains a
8874 # configuration script generated by Autoconf, you may include it under
8875 # the same distribution terms that you use for the rest of that program.
8877 # A sed program that does not truncate output.
8880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8881 Xsed="$SED -e s/^X//"
8883 # The HP-UX ksh and POSIX shell print the target directory to stdout
8885 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8887 # The names of the tagged configurations supported by this script.
8890 # ### BEGIN LIBTOOL CONFIG
8892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8894 # Shell to use when invoking shell scripts.
8897 # Whether or not to build shared libraries.
8898 build_libtool_libs=$enable_shared
8900 # Whether or not to build static libraries.
8901 build_old_libs=$enable_static
8903 # Whether or not to add -lc for building shared libraries.
8904 build_libtool_need_lc=$archive_cmds_need_lc
8906 # Whether or not to disallow shared libs when runtime libs are static
8907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8909 # Whether or not to optimize for fast installation.
8910 fast_install=$enable_fast_install
8913 host_alias=$host_alias
8916 # An echo program that does not interpret backslashes.
8921 AR_FLAGS=$lt_AR_FLAGS
8926 # A language-specific compiler.
8929 # Is the compiler the GNU C compiler?
8935 # The linker used to build libraries.
8938 # Whether we need hard or soft links.
8941 # A BSD-compatible nm program.
8944 # A symbol stripping program
8947 # Used to examine libraries when file_magic_cmd begins "file"
8948 MAGIC_CMD=$MAGIC_CMD
8950 # Used on cygwin: DLL creation program.
8953 # Used on cygwin: object dumper.
8956 # Used on cygwin: assembler.
8959 # The name of the directory that contains temporary libtool files.
8962 # How to create reloadable object files.
8963 reload_flag=$lt_reload_flag
8964 reload_cmds=$lt_reload_cmds
8966 # How to pass a linker flag through the compiler.
8967 wl=$lt_lt_prog_compiler_wl
8969 # Object file suffix (normally "o").
8972 # Old archive suffix (normally "a").
8975 # Shared library suffix (normally ".so").
8978 # Executable file suffix (normally "").
8981 # Additional compiler flags for building library objects.
8982 pic_flag=$lt_lt_prog_compiler_pic
8985 # What is the maximum length of a command?
8986 max_cmd_len=$lt_cv_sys_max_cmd_len
8988 # Does compiler simultaneously support -c and -o options?
8989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8991 # Must we lock files when doing compilation ?
8992 need_locks=$lt_need_locks
8994 # Do we need the lib prefix for modules?
8995 need_lib_prefix=$need_lib_prefix
8997 # Do we need a version for libraries?
8998 need_version=$need_version
9000 # Whether dlopen is supported.
9001 dlopen_support=$enable_dlopen
9003 # Whether dlopen of programs is supported.
9004 dlopen_self=$enable_dlopen_self
9006 # Whether dlopen of statically linked programs is supported.
9007 dlopen_self_static=$enable_dlopen_self_static
9009 # Compiler flag to prevent dynamic linking.
9010 link_static_flag=$lt_lt_prog_compiler_static
9012 # Compiler flag to turn off builtin functions.
9013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9015 # Compiler flag to allow reflexive dlopens.
9016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9018 # Compiler flag to generate shared objects directly from archives.
9019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9021 # Compiler flag to generate thread-safe objects.
9022 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9024 # Library versioning type.
9025 version_type=$version_type
9027 # Format of library name prefix.
9028 libname_spec=$lt_libname_spec
9030 # List of archive names. First name is the real one, the rest are links.
9031 # The last name is the one that the linker finds with -lNAME.
9032 library_names_spec=$lt_library_names_spec
9034 # The coded name of the library, if different from the real name.
9035 soname_spec=$lt_soname_spec
9037 # Commands used to build and install an old-style archive.
9039 old_archive_cmds=$lt_old_archive_cmds
9040 old_postinstall_cmds=$lt_old_postinstall_cmds
9041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9043 # Create an old-style archive from a shared archive.
9044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9046 # Create a temporary old-style archive to link instead of a shared archive.
9047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9049 # Commands used to build and install a shared archive.
9050 archive_cmds=$lt_archive_cmds
9051 archive_expsym_cmds=$lt_archive_expsym_cmds
9052 postinstall_cmds=$lt_postinstall_cmds
9053 postuninstall_cmds=$lt_postuninstall_cmds
9055 # Commands used to build a loadable module (assumed same as above if empty)
9056 module_cmds=$lt_module_cmds
9057 module_expsym_cmds=$lt_module_expsym_cmds
9059 # Commands to strip libraries.
9060 old_striplib=$lt_old_striplib
9061 striplib=$lt_striplib
9063 # Dependencies to place before the objects being linked to create a
9065 predep_objects=$lt_predep_objects
9067 # Dependencies to place after the objects being linked to create a
9069 postdep_objects=$lt_postdep_objects
9071 # Dependencies to place before the objects being linked to create a
9075 # Dependencies to place after the objects being linked to create a
9077 postdeps=$lt_postdeps
9079 # The library search path used internally by the compiler when linking
9081 compiler_lib_search_path=$lt_compiler_lib_search_path
9083 # Method to check whether dependent libraries are shared objects.
9084 deplibs_check_method=$lt_deplibs_check_method
9086 # Command to use when deplibs_check_method == file_magic.
9087 file_magic_cmd=$lt_file_magic_cmd
9089 # Flag that allows shared libraries with undefined symbols to be built.
9090 allow_undefined_flag=$lt_allow_undefined_flag
9092 # Flag that forces no undefined symbols.
9093 no_undefined_flag=$lt_no_undefined_flag
9095 # Commands used to finish a libtool library installation in a directory.
9096 finish_cmds=$lt_finish_cmds
9098 # Same as above, but a single script fragment to be evaled but not shown.
9099 finish_eval=$lt_finish_eval
9101 # Take the output of nm and produce a listing of raw symbols and C names.
9102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9104 # Transform the output of nm in a proper C declaration
9105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9107 # Transform the output of nm in a C name address pair
9108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9110 # This is the shared library runtime path variable.
9111 runpath_var=$runpath_var
9113 # This is the shared library path variable.
9114 shlibpath_var=$shlibpath_var
9116 # Is shlibpath searched before the hard-coded library search path?
9117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9119 # How to hardcode a shared library path into an executable.
9120 hardcode_action=$hardcode_action
9122 # Whether we should hardcode library paths into libraries.
9123 hardcode_into_libs=$hardcode_into_libs
9125 # Flag to hardcode \$libdir into a binary during linking.
9126 # This must work even if \$libdir does not exist.
9127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9129 # If ld is used when linking, flag to hardcode \$libdir into
9130 # a binary during linking. This must work even if \$libdir does
9132 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9134 # Whether we need a single -rpath flag with a separated argument.
9135 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9137 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9139 hardcode_direct=$hardcode_direct
9141 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9143 hardcode_minus_L=$hardcode_minus_L
9145 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9146 # the resulting binary.
9147 hardcode_shlibpath_var=$hardcode_shlibpath_var
9149 # Set to yes if building a shared library automatically hardcodes DIR into the library
9150 # and all subsequent libraries and executables linked against it.
9151 hardcode_automatic=$hardcode_automatic
9153 # Variables whose values should be saved in libtool wrapper scripts and
9154 # restored at relink time.
9155 variables_saved_for_relink="$variables_saved_for_relink"
9157 # Whether libtool must link a program against all its dependency libraries.
9158 link_all_deplibs=$link_all_deplibs
9160 # Compile-time system search path for libraries
9161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9163 # Run-time system search path for libraries
9164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9166 # Fix the shell variable \$srcfile for the compiler.
9167 fix_srcfile_path="$fix_srcfile_path"
9169 # Set to yes if exported symbols are required.
9170 always_export_symbols=$always_export_symbols
9172 # The commands to list exported symbols.
9173 export_symbols_cmds=$lt_export_symbols_cmds
9175 # The commands to extract the exported symbol list from a shared archive.
9176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9178 # Symbols that should not be listed in the preloaded symbols.
9179 exclude_expsyms=$lt_exclude_expsyms
9181 # Symbols that must always be exported.
9182 include_expsyms=$lt_include_expsyms
9184 # ### END LIBTOOL CONFIG
9191 cat <<\EOF >> "$cfgfile"
9193 # AIX sometimes has problems with the GCC collect2 program. For some
9194 # reason, if we set the COLLECT_NAMES environment variable, the problems
9195 # vanish in a puff of smoke.
9196 if test "X${COLLECT_NAMES+set}" != Xset; then
9198 export COLLECT_NAMES
9204 # We use sed instead of cat because bash on DJGPP gets confused if
9205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9206 # text mode, it properly converts lines to CR/LF. This bash problem
9207 # is reportedly fixed, but why not run on old versions too?
9208 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9210 mv -f "$cfgfile" "$ofile" || \
9211 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9215 # If there is no Makefile yet, we rely on a make rule to execute
9216 # `config.status --recheck' to rerun these tests and create the
9217 # libtool script then.
9218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9219 if test -f "$ltmain_in"; then
9220 test -f Makefile && make "$ltmain"
9226 ac_cpp='$CPP $CPPFLAGS'
9227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9234 # Check whether --with-tags was given.
9235 if test "${with_tags+set}" = set; then :
9236 withval=$with_tags; tagnames="$withval"
9240 if test -f "$ltmain" && test -n "$tagnames"; then
9241 if test ! -f "${ofile}"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9243 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9246 if test -z "$LTCC"; then
9247 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9248 if test -z "$LTCC"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9250 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9253 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9257 # Extract list of available tagged configurations in $ofile.
9258 # Note that this assumes the entire list is on one line.
9259 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9262 for tagname in $tagnames; do
9264 # Check whether tagname contains only valid characters
9265 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9267 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9271 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9273 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9276 # Update the list of available tags.
9277 if test -n "$tagname"; then
9278 echo appending configuration tag \"$tagname\" to $ofile
9282 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9284 ac_cpp='$CXXCPP $CPPFLAGS'
9285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9292 archive_cmds_need_lc_CXX=no
9293 allow_undefined_flag_CXX=
9294 always_export_symbols_CXX=no
9295 archive_expsym_cmds_CXX=
9296 export_dynamic_flag_spec_CXX=
9297 hardcode_direct_CXX=no
9298 hardcode_libdir_flag_spec_CXX=
9299 hardcode_libdir_flag_spec_ld_CXX=
9300 hardcode_libdir_separator_CXX=
9301 hardcode_minus_L_CXX=no
9302 hardcode_automatic_CXX=no
9304 module_expsym_cmds_CXX=
9305 link_all_deplibs_CXX=unknown
9306 old_archive_cmds_CXX=$old_archive_cmds
9307 no_undefined_flag_CXX=
9308 whole_archive_flag_spec_CXX=
9309 enable_shared_with_static_runtimes_CXX=no
9311 # Dependencies to place before and after the object being linked:
9313 postdep_objects_CXX=
9316 compiler_lib_search_path_CXX=
9318 # Source file extension for C++ test sources.
9321 # Object file extension for compiled C++ test sources.
9325 # Code to be used in simple compile tests
9326 lt_simple_compile_test_code="int some_variable = 0;\n"
9328 # Code to be used in simple link tests
9329 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9333 # If no C compiler was specified, use CC.
9336 # Allow CC to be a program name with arguments.
9340 # Allow CC to be a program name with arguments.
9345 lt_save_with_gnu_ld=$with_gnu_ld
9346 lt_save_path_LD=$lt_cv_path_LD
9347 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9348 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9350 unset lt_cv_prog_gnu_ld
9352 if test -n "${lt_cv_path_LDCXX+set}"; then
9353 lt_cv_path_LD=$lt_cv_path_LDCXX
9357 test -z "${LDCXX+set}" || LD=$LDCXX
9361 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9363 # We don't want -fno-exception wen compiling C++ code, so set the
9364 # no_builtin_flag separately
9365 if test "$GXX" = yes; then
9366 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9368 lt_prog_compiler_no_builtin_flag_CXX=
9371 if test "$GXX" = yes; then
9372 # Set up default GNU C++ configuration
9375 # Check whether --with-gnu-ld was given.
9376 if test "${with_gnu_ld+set}" = set; then :
9377 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9383 if test "$GCC" = yes; then
9384 # Check if gcc -print-prog-name=ld gives a path.
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9386 $as_echo_n "checking for ld used by $CC... " >&6; }
9389 # gcc leaves a trailing carriage return which upsets mingw
9390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9395 # Accept absolute paths.
9397 re_direlt='/[^/][^/]*/\.\./'
9398 # Canonicalize the pathname of ld
9399 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9400 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9401 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9403 test -z "$LD" && LD="$ac_prog"
9406 # If it fails, then pretend we aren't using GCC.
9410 # If it is relative, then search for the first ld in PATH.
9414 elif test "$with_gnu_ld" = yes; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9416 $as_echo_n "checking for GNU ld... " >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9419 $as_echo_n "checking for non-GNU ld... " >&6; }
9421 if ${lt_cv_path_LD+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 if test -z "$LD"; then
9425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9426 for ac_dir in $PATH; do
9428 test -z "$ac_dir" && ac_dir=.
9429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9430 lt_cv_path_LD="$ac_dir/$ac_prog"
9431 # Check to see if the program is GNU ld. I'd rather use --version,
9432 # but apparently some GNU ld's only accept -v.
9433 # Break only if it was the GNU/non-GNU ld that we prefer.
9434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9435 *GNU* | *'with BFD'*)
9436 test "$with_gnu_ld" != no && break
9439 test "$with_gnu_ld" != yes && break
9446 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9451 if test -n "$LD"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9453 $as_echo "$LD" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9458 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9460 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9461 if ${lt_cv_prog_gnu_ld+:} false; then :
9462 $as_echo_n "(cached) " >&6
9464 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9465 case `$LD -v 2>&1 </dev/null` in
9466 *GNU* | *'with BFD'*)
9467 lt_cv_prog_gnu_ld=yes
9470 lt_cv_prog_gnu_ld=no
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9475 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9476 with_gnu_ld=$lt_cv_prog_gnu_ld
9480 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9481 # archiving commands below assume that GNU ld is being used.
9482 if test "$with_gnu_ld" = yes; then
9483 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 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'
9486 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9489 # If archive_cmds runs LD, not CC, wlarc should be empty
9490 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9491 # investigate it a little bit more. (MM)
9494 # ancient GNU ld didn't support --whole-archive et. al.
9495 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9496 grep 'no-whole-archive' > /dev/null; then
9497 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9499 whole_archive_flag_spec_CXX=
9505 # A generic and very simple default shared library creation
9506 # command for GNU C++ for the case where it uses the native
9507 # linker, instead of GNU ld. If possible, this setting should
9508 # overridden to take advantage of the native linker features on
9509 # the platform it is being used on.
9510 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9513 # Commands to make compiler produce verbose output that lists
9514 # what "hidden" libraries, object files and flags are used when
9515 # linking a shared library.
9516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9524 # PORTME: fill in a description of your system's C++ link characteristics
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9530 # FIXME: insert proper C++ library support
9534 if test "$host_cpu" = ia64; then
9535 # On IA64, the linker does run time linking by default, so we don't
9536 # have to do anything special.
9537 aix_use_runtimelinking=no
9538 exp_sym_flag='-Bexport'
9541 aix_use_runtimelinking=no
9543 # Test if we are trying to use run time linking or normal
9544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545 # need to do runtime linking.
9546 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9547 for ld_flag in $LDFLAGS; do
9550 aix_use_runtimelinking=yes
9557 exp_sym_flag='-bexport'
9558 no_entry_flag='-bnoentry'
9561 # When large executables or shared objects are built, AIX ld can
9562 # have problems creating the table of contents. If linking a library
9563 # or program results in "error TOC overflow" add -mminimal-toc to
9564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9568 hardcode_direct_CXX=yes
9569 hardcode_libdir_separator_CXX=':'
9570 link_all_deplibs_CXX=yes
9572 if test "$GXX" = yes; then
9573 case $host_os in aix4.012|aix4.012.*)
9574 # We only want to do this on AIX 4.2 and lower, the check
9575 # below for broken collect2 doesn't work under 4.3+
9576 collect2name=`${CC} -print-prog-name=collect2`
9577 if test -f "$collect2name" && \
9578 strings "$collect2name" | grep resolve_lib_name >/dev/null
9580 # We have reworked collect2
9581 hardcode_direct_CXX=yes
9583 # We have old collect2
9584 hardcode_direct_CXX=unsupported
9585 # It fails to find uninstalled libraries when the uninstalled
9586 # path is not listed in the libpath. Setting hardcode_minus_L
9587 # to unsupported forces relinking
9588 hardcode_minus_L_CXX=yes
9589 hardcode_libdir_flag_spec_CXX='-L$libdir'
9590 hardcode_libdir_separator_CXX=
9593 shared_flag='-shared'
9596 if test "$host_cpu" = ia64; then
9597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9598 # chokes on -Wl,-G. The following line is correct:
9601 if test "$aix_use_runtimelinking" = yes; then
9602 shared_flag='${wl}-G'
9604 shared_flag='${wl}-bM:SRE'
9609 # It seems that -bexpall does not export symbols beginning with
9610 # underscore (_), so it is better to generate a list of symbols to export.
9611 always_export_symbols_CXX=yes
9612 if test "$aix_use_runtimelinking" = yes; then
9613 # Warning - without using the other runtime loading flags (-brtl),
9614 # -berok will link without error, but may produce a broken library.
9615 allow_undefined_flag_CXX='-berok'
9616 # Determine the default libpath from the value encoded in an empty executable.
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9628 if ac_fn_cxx_try_link "$LINENO"; then :
9630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9632 # Check for a 64-bit object if we didn't find anything.
9633 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; }
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9642 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"
9644 if test "$host_cpu" = ia64; then
9645 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9646 allow_undefined_flag_CXX="-z nodefs"
9647 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"
9649 # Determine the default libpath from the value encoded in an empty executable.
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9661 if ac_fn_cxx_try_link "$LINENO"; then :
9663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9665 # Check for a 64-bit object if we didn't find anything.
9666 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; }
9669 rm -f core conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9673 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9674 # Warning - without using the other run time loading flags,
9675 # -berok will link without error, but may produce a broken library.
9676 no_undefined_flag_CXX=' ${wl}-bernotok'
9677 allow_undefined_flag_CXX=' ${wl}-berok'
9678 # -bexpall does not export symbols beginning with underscore (_)
9679 always_export_symbols_CXX=yes
9680 # Exported symbols can be pulled into shared objects from archives
9681 whole_archive_flag_spec_CXX=' '
9682 archive_cmds_need_lc_CXX=yes
9683 # This is similar to how AIX traditionally builds it's shared libraries.
9684 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'
9689 case $cc_basename in
9691 # FIXME: insert proper C++ library support
9697 cygwin* | mingw* | pw32*)
9698 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9699 # as there is no search path for DLLs.
9700 hardcode_libdir_flag_spec_CXX='-L$libdir'
9701 allow_undefined_flag_CXX=unsupported
9702 always_export_symbols_CXX=no
9703 enable_shared_with_static_runtimes_CXX=yes
9705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9706 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'
9707 # If the export-symbols file already is a .def file (1st line
9708 # is EXPORTS), use it as is; otherwise, prepend...
9709 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710 cp $export_symbols $output_objdir/$soname.def;
9712 echo EXPORTS > $output_objdir/$soname.def;
9713 cat $export_symbols >> $output_objdir/$soname.def;
9715 $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'
9721 darwin* | rhapsody*)
9722 if test "$GXX" = yes; then
9723 archive_cmds_need_lc_CXX=no
9725 rhapsody* | darwin1.[012])
9726 allow_undefined_flag_CXX='-undefined suppress'
9729 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9730 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9732 case ${MACOSX_DEPLOYMENT_TARGET} in
9734 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9737 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9743 lt_int_apple_cc_single_mod=no
9744 output_verbose_link_cmd='echo'
9745 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9746 lt_int_apple_cc_single_mod=yes
9748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9749 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9751 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'
9753 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9756 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9757 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}'
9759 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}'
9761 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}'
9762 hardcode_direct_CXX=no
9763 hardcode_automatic_CXX=yes
9764 hardcode_shlibpath_var_CXX=unsupported
9765 whole_archive_flag_spec_CXX='-all_load $convenience'
9766 link_all_deplibs_CXX=yes
9773 case $cc_basename in
9775 # FIXME: insert proper C++ library support
9779 # Green Hills C++ Compiler
9780 # FIXME: insert proper C++ library support
9784 # FIXME: insert proper C++ library support
9790 # C++ shared libraries reported to be fairly broken before switch to ELF
9794 archive_cmds_need_lc_CXX=no
9796 freebsd* | kfreebsd*-gnu)
9797 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9804 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9805 hardcode_libdir_separator_CXX=:
9806 export_dynamic_flag_spec_CXX='${wl}-E'
9807 hardcode_direct_CXX=yes
9808 hardcode_minus_L_CXX=yes # Not in the search PATH,
9809 # but as the default
9810 # location of the library.
9812 case $cc_basename in
9814 # FIXME: insert proper C++ library support
9818 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'
9819 # Commands to make compiler produce verbose output that lists
9820 # what "hidden" libraries, object files and flags are used when
9821 # linking a shared library.
9823 # There doesn't appear to be a way to prevent this compiler from
9824 # explicitly linking system object files so we need to strip them
9825 # from the output so that they don't get included in the library
9827 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'
9830 if test "$GXX" = yes; then
9831 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'
9833 # FIXME: insert proper C++ library support
9840 if test $with_gnu_ld = no; then
9843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9844 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9845 hardcode_libdir_separator_CXX=:
9848 hardcode_libdir_flag_spec_CXX='-L$libdir'
9851 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9852 hardcode_libdir_separator_CXX=:
9853 export_dynamic_flag_spec_CXX='${wl}-E'
9859 hardcode_direct_CXX=no
9860 hardcode_shlibpath_var_CXX=no
9863 hardcode_direct_CXX=no
9864 hardcode_shlibpath_var_CXX=no
9865 hardcode_minus_L_CXX=yes # Not in the search PATH,
9866 # but as the default
9867 # location of the library.
9870 hardcode_direct_CXX=yes
9871 hardcode_minus_L_CXX=yes # Not in the search PATH,
9872 # but as the default
9873 # location of the library.
9877 case $cc_basename in
9879 # FIXME: insert proper C++ library support
9885 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9888 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9891 # Commands to make compiler produce verbose output that lists
9892 # what "hidden" libraries, object files and flags are used when
9893 # linking a shared library.
9895 # There doesn't appear to be a way to prevent this compiler from
9896 # explicitly linking system object files so we need to strip them
9897 # from the output so that they don't get included in the library
9899 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'
9902 if test "$GXX" = yes; then
9903 if test $with_gnu_ld = no; then
9906 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9909 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'
9914 # FIXME: insert proper C++ library support
9921 case $cc_basename in
9924 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'
9926 # Archives containing C++ object files must be created using
9927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9928 # necessary to make sure instantiated templates are included
9930 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9933 if test "$GXX" = yes; then
9934 if test "$with_gnu_ld" = no; then
9935 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'
9937 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'
9940 link_all_deplibs_CXX=yes
9943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9944 hardcode_libdir_separator_CXX=:
9947 case $cc_basename in
9949 # Kuck and Associates, Inc. (KAI) C++ Compiler
9951 # KCC will only create a shared library if the output file
9952 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9953 # to its proper name (with version) after linking.
9954 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'
9955 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'
9956 # Commands to make compiler produce verbose output that lists
9957 # what "hidden" libraries, object files and flags are used when
9958 # linking a shared library.
9960 # There doesn't appear to be a way to prevent this compiler from
9961 # explicitly linking system object files so we need to strip them
9962 # from the output so that they don't get included in the library
9964 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'
9966 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9969 # Archives containing C++ object files must be created using
9970 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9971 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9976 archive_cmds_need_lc_CXX=no
9977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978 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'
9979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9986 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'
9988 runpath_var=LD_RUN_PATH
9989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9990 hardcode_libdir_separator_CXX=:
9992 # Commands to make compiler produce verbose output that lists
9993 # what "hidden" libraries, object files and flags are used when
9994 # linking a shared library.
9996 # There doesn't appear to be a way to prevent this compiler from
9997 # explicitly linking system object files so we need to strip them
9998 # from the output so that they don't get included in the library
10000 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'
10005 # FIXME: insert proper C++ library support
10009 # FIXME: insert proper C++ library support
10013 case $cc_basename in
10015 # FIXME: insert proper C++ library support
10019 # FIXME: insert proper C++ library support
10025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10028 hardcode_libdir_flag_spec_CXX='-R$libdir'
10029 hardcode_direct_CXX=yes
10030 hardcode_shlibpath_var_CXX=no
10032 # Workaround some broken pre-1.5 toolchains
10033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10036 case $cc_basename in
10038 # Kuck and Associates, Inc. (KAI) C++ Compiler
10040 # KCC will only create a shared library if the output file
10041 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10042 # to its proper name (with version) after linking.
10043 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'
10045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10046 hardcode_libdir_separator_CXX=:
10048 # Archives containing C++ object files must be created using
10049 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10054 # Rational C++ 2.4.1
10055 # FIXME: insert proper C++ library support
10059 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10060 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'
10062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10063 hardcode_libdir_separator_CXX=:
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.
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10073 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'
10076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10078 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'
10080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10081 hardcode_libdir_separator_CXX=:
10083 # Commands to make compiler produce verbose output that lists
10084 # what "hidden" libraries, object files and flags are used when
10085 # linking a shared library.
10086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10089 # FIXME: insert proper C++ library support
10096 case $cc_basename in
10098 # Kuck and Associates, Inc. (KAI) C++ Compiler
10100 # KCC will only create a shared library if the output file
10101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10102 # to its proper name (with version) after linking.
10103 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'
10105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10106 hardcode_libdir_separator_CXX=:
10108 # Archives containing C++ object files must be created using
10109 # the KAI C++ compiler.
10110 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10113 # Rational C++ 2.4.1
10114 # FIXME: insert proper C++ library support
10118 allow_undefined_flag_CXX=' -expect_unresolved \*'
10119 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'
10120 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10121 echo "-hidden">> $lib.exp~
10122 $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~
10125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10126 hardcode_libdir_separator_CXX=:
10128 # Commands to make compiler produce verbose output that lists
10129 # what "hidden" libraries, object files and flags are used when
10130 # linking a shared library.
10132 # There doesn't appear to be a way to prevent this compiler from
10133 # explicitly linking system object files so we need to strip them
10134 # from the output so that they don't get included in the library
10136 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'
10139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10140 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10141 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'
10143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10144 hardcode_libdir_separator_CXX=:
10146 # Commands to make compiler produce verbose output that lists
10147 # what "hidden" libraries, object files and flags are used when
10148 # linking a shared library.
10149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10152 # FIXME: insert proper C++ library support
10159 # FIXME: insert proper C++ library support
10163 archive_cmds_need_lc_CXX=no
10164 case $cc_basename in
10166 # FIXME: insert proper C++ library support
10170 # FIXME: insert proper C++ library support
10176 case $cc_basename in
10179 # FIXME: insert proper C++ library support
10184 # FIXME: insert proper C++ library support
10188 # FIXME: insert proper C++ library support
10194 case $cc_basename in
10196 # Sun C++ 4.2, 5.x and Centerline C++
10197 no_undefined_flag_CXX=' -zdefs'
10198 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10199 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10200 $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'
10202 hardcode_libdir_flag_spec_CXX='-R$libdir'
10203 hardcode_shlibpath_var_CXX=no
10205 solaris2.0-5 | solaris2.0-5.*) ;;
10207 # The C++ compiler is used as linker so we must use $wl
10208 # flag to pass the commands to the underlying system
10210 # Supported since Solaris 2.6 (maybe 2.5.1?)
10211 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10214 link_all_deplibs_CXX=yes
10216 # Commands to make compiler produce verbose output that lists
10217 # what "hidden" libraries, object files and flags are used when
10218 # linking a shared library.
10220 # There doesn't appear to be a way to prevent this compiler from
10221 # explicitly linking system object files so we need to strip them
10222 # from the output so that they don't get included in the library
10224 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'
10226 # Archives containing C++ object files must be created using
10227 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10228 # necessary to make sure instantiated templates are included
10230 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10233 # Green Hills C++ Compiler
10234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10236 # The C++ compiler must be used to create the archive.
10237 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10240 # GNU C++ compiler with Solaris linker
10241 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10242 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10243 if $CC --version | grep -v '^2\.7' > /dev/null; then
10244 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10246 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10248 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library.
10251 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10253 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10255 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10256 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10257 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10259 # Commands to make compiler produce verbose output that lists
10260 # what "hidden" libraries, object files and flags are used when
10261 # linking a shared library.
10262 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10265 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10271 archive_cmds_need_lc_CXX=no
10274 case $cc_basename in
10276 # NonStop-UX NCC 3.20
10277 # FIXME: insert proper C++ library support
10281 # FIXME: insert proper C++ library support
10287 # FIXME: insert proper C++ library support
10291 # FIXME: insert proper C++ library support
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10296 $as_echo "$ld_shlibs_CXX" >&6; }
10297 test "$ld_shlibs_CXX" = no && can_build_shared=no
10303 ## There is no encapsulation within the following macros, do not change
10304 ## the running order or otherwise move them around unless you know exactly
10305 ## what you are doing...
10307 cat > conftest.$ac_ext <<EOF
10311 Foo (void) { a = 0; }
10317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10318 (eval $ac_compile) 2>&5
10320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321 test $ac_status = 0; }; then
10322 # Parse the compiler output and extract the necessary
10323 # objects, libraries and library flags.
10325 # Sentinel used to keep track of whether or not we are before
10326 # the conftest object file.
10327 pre_test_object_deps_done=no
10329 # The `*' in the case matches for architectures that use `case' in
10330 # $output_verbose_cmd can trigger glob expansion during the loop
10331 # eval without this substitution.
10332 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10334 for p in `eval $output_verbose_link_cmd`; do
10338 # Some compilers place space between "-{L,R}" and the path.
10339 # Remove the space.
10340 if test $p = "-L" \
10341 || test $p = "-R"; then
10348 if test "$pre_test_object_deps_done" = no; then
10351 # Internal compiler library paths should come after those
10352 # provided the user. The postdeps already come after the
10353 # user supplied libs so there is no need to process them.
10354 if test -z "$compiler_lib_search_path_CXX"; then
10355 compiler_lib_search_path_CXX="${prev}${p}"
10357 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10360 # The "-l" case would never come before the object being
10361 # linked, so don't bother handling this case.
10364 if test -z "$postdeps_CXX"; then
10365 postdeps_CXX="${prev}${p}"
10367 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10373 # This assumes that the test object file only shows up
10374 # once in the compiler output.
10375 if test "$p" = "conftest.$objext"; then
10376 pre_test_object_deps_done=yes
10380 if test "$pre_test_object_deps_done" = no; then
10381 if test -z "$predep_objects_CXX"; then
10382 predep_objects_CXX="$p"
10384 predep_objects_CXX="$predep_objects_CXX $p"
10387 if test -z "$postdep_objects_CXX"; then
10388 postdep_objects_CXX="$p"
10390 postdep_objects_CXX="$postdep_objects_CXX $p"
10395 *) ;; # Ignore the rest.
10403 echo "libtool.m4: error: problem compiling CXX test program"
10406 $rm -f confest.$objext
10408 case " $postdeps_CXX " in
10409 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10412 lt_prog_compiler_wl_CXX=
10413 lt_prog_compiler_pic_CXX=
10414 lt_prog_compiler_static_CXX=
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10419 # C++ specific cases for pic, static, wl, etc.
10420 if test "$GXX" = yes; then
10421 lt_prog_compiler_wl_CXX='-Wl,'
10422 lt_prog_compiler_static_CXX='-static'
10426 # All AIX code is PIC.
10427 if test "$host_cpu" = ia64; then
10428 # AIX 5 now supports IA64 processor
10429 lt_prog_compiler_static_CXX='-Bstatic'
10433 # FIXME: we need at least 68020 code to build shared libraries, but
10434 # adding the `-m68020' flag to GCC prevents building anything better,
10436 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10438 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10439 # PIC is the default for these OSes.
10441 mingw* | os2* | pw32*)
10442 # This hack is so that the source file can tell whether it is being
10443 # built for inclusion in a dll (and should export symbols for example).
10444 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10446 darwin* | rhapsody*)
10447 # PIC is the default on this platform
10448 # Common symbols not allowed in MH_DYLIB files
10449 lt_prog_compiler_pic_CXX='-fno-common'
10452 # DJGPP does not support shared libraries at all
10453 lt_prog_compiler_pic_CXX=
10456 if test -d /usr/nec; then
10457 lt_prog_compiler_pic_CXX=-Kconform_pic
10461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10462 # not for PA HP-UX.
10463 case "$host_cpu" in
10467 lt_prog_compiler_pic_CXX='-fPIC'
10472 lt_prog_compiler_pic_CXX='-fPIC'
10478 # All AIX code is PIC.
10479 if test "$host_cpu" = ia64; then
10480 # AIX 5 now supports IA64 processor
10481 lt_prog_compiler_static_CXX='-Bstatic'
10483 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10487 case $cc_basename in
10489 # Green Hills C++ Compiler
10490 # _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"
10495 case $cc_basename in
10497 lt_prog_compiler_pic_CXX='-KPIC'
10500 # Green Hills C++ Compiler
10501 lt_prog_compiler_pic_CXX='-pic'
10507 freebsd* | kfreebsd*-gnu)
10508 # FreeBSD uses GNU C++
10510 hpux9* | hpux10* | hpux11*)
10511 case $cc_basename in
10513 lt_prog_compiler_wl_CXX='-Wl,'
10514 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10515 if test "$host_cpu" != ia64; then
10516 lt_prog_compiler_pic_CXX='+Z'
10520 lt_prog_compiler_wl_CXX='-Wl,'
10521 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10522 case "$host_cpu" in
10527 lt_prog_compiler_pic_CXX='+Z'
10535 irix5* | irix6* | nonstopux*)
10536 case $cc_basename in
10538 lt_prog_compiler_wl_CXX='-Wl,'
10539 lt_prog_compiler_static_CXX='-non_shared'
10540 # CC pic flag -KPIC is the default.
10547 case $cc_basename in
10550 lt_prog_compiler_wl_CXX='--backend -Wl,'
10551 lt_prog_compiler_pic_CXX='-fPIC'
10555 lt_prog_compiler_wl_CXX='-Wl,'
10556 lt_prog_compiler_pic_CXX='-KPIC'
10557 lt_prog_compiler_static_CXX='-static'
10561 # Make sure the PIC flag is empty. It appears that all Alpha
10562 # Linux and Compaq Tru64 Unix objects are PIC.
10563 lt_prog_compiler_pic_CXX=
10564 lt_prog_compiler_static_CXX='-non_shared'
10575 case $cc_basename in
10577 lt_prog_compiler_pic_CXX='-W c,exportall'
10585 osf3* | osf4* | osf5*)
10586 case $cc_basename in
10588 lt_prog_compiler_wl_CXX='--backend -Wl,'
10591 # Rational C++ 2.4.1
10592 lt_prog_compiler_pic_CXX='-pic'
10595 # Digital/Compaq C++
10596 lt_prog_compiler_wl_CXX='-Wl,'
10597 # Make sure the PIC flag is empty. It appears that all Alpha
10598 # Linux and Compaq Tru64 Unix objects are PIC.
10599 lt_prog_compiler_pic_CXX=
10600 lt_prog_compiler_static_CXX='-non_shared'
10609 case $cc_basename in
10611 lt_prog_compiler_pic_CXX='-fPIC'
10618 case $cc_basename in
10620 # Sun C++ 4.2, 5.x and Centerline C++
10621 lt_prog_compiler_pic_CXX='-KPIC'
10622 lt_prog_compiler_static_CXX='-Bstatic'
10623 lt_prog_compiler_wl_CXX='-Qoption ld '
10626 # Green Hills C++ Compiler
10627 lt_prog_compiler_pic_CXX='-PIC'
10634 case $cc_basename in
10637 lt_prog_compiler_pic_CXX='-pic'
10638 lt_prog_compiler_static_CXX='-Bstatic'
10642 lt_prog_compiler_pic_CXX='-pic'
10649 case $cc_basename in
10651 # NonStop-UX NCC 3.20
10652 lt_prog_compiler_pic_CXX='-KPIC'
10663 lt_prog_compiler_can_build_shared_CXX=no
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
10669 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
10672 # Check to make sure the PIC flag actually works.
10674 if test -n "$lt_prog_compiler_pic_CXX"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
10678 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
10679 $as_echo_n "(cached) " >&6
10681 lt_prog_compiler_pic_works_CXX=no
10682 ac_outfile=conftest.$ac_objext
10683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10684 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10685 # Insert the option either (1) after the last *FLAGS variable, or
10686 # (2) before a word containing "conftest.", or (3) at the end.
10687 # Note that $ac_compile itself does not contain backslashes and begins
10688 # with a dollar sign (not a hyphen), so the echo should work correctly.
10689 # The option is referenced via a variable to avoid confusing sed.
10690 lt_compile=`echo "$ac_compile" | $SED \
10691 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693 -e 's:$: $lt_compiler_flag:'`
10694 (eval echo "\"\$as_me:10694: $lt_compile\"" >&5)
10695 (eval "$lt_compile" 2>conftest.err)
10697 cat conftest.err >&5
10698 echo "$as_me:10698: \$? = $ac_status" >&5
10699 if (exit $ac_status) && test -s "$ac_outfile"; then
10700 # The compiler can only warn and ignore the option if not recognized
10701 # So say no if there are warnings
10702 if test ! -s conftest.err; then
10703 lt_prog_compiler_pic_works_CXX=yes
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
10710 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
10712 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10713 case $lt_prog_compiler_pic_CXX in
10715 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10718 lt_prog_compiler_pic_CXX=
10719 lt_prog_compiler_can_build_shared_CXX=no
10724 # For platforms which do not support PIC, -DPIC is meaningless:
10726 lt_prog_compiler_pic_CXX=
10729 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10735 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
10736 $as_echo_n "(cached) " >&6
10738 lt_cv_prog_compiler_c_o_CXX=no
10739 $rm -r conftest 2>/dev/null
10743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10745 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10746 # that will create temporary files in the current directory regardless of
10747 # the output directory. Thus, making CWD read-only will cause this test
10748 # to fail, enabling locking or at least warning the user not to do parallel
10752 lt_compiler_flag="-o out/conftest2.$ac_objext"
10753 # Insert the option either (1) after the last *FLAGS variable, or
10754 # (2) before a word containing "conftest.", or (3) at the end.
10755 # Note that $ac_compile itself does not contain backslashes and begins
10756 # with a dollar sign (not a hyphen), so the echo should work correctly.
10757 lt_compile=`echo "$ac_compile" | $SED \
10758 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10760 -e 's:$: $lt_compiler_flag:'`
10761 (eval echo "\"\$as_me:10761: $lt_compile\"" >&5)
10762 (eval "$lt_compile" 2>out/conftest.err)
10764 cat out/conftest.err >&5
10765 echo "$as_me:10765: \$? = $ac_status" >&5
10766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10768 # The compiler can only warn and ignore the option if not recognized
10769 # So say no if there are warnings
10770 if test ! -s out/conftest.err; then
10771 lt_cv_prog_compiler_c_o_CXX=yes
10776 # SGI C++ compiler will create directory out/ii_files/ for
10777 # template instantiation
10778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10779 $rm out/* && rmdir out
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
10789 hard_links="nottested"
10790 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10791 # do not overwrite the value of need_locks provided by the user
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10793 $as_echo_n "checking if we can lock with hard links... " >&6; }
10796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10798 ln conftest.a conftest.b 2>&5 || hard_links=no
10799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10801 $as_echo "$hard_links" >&6; }
10802 if test "$hard_links" = no; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10817 # If we're using GNU nm, then we don't want the "-C" option.
10818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10819 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10820 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'
10822 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'
10826 export_symbols_cmds_CXX="$ltdll_cmds"
10829 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10832 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10837 $as_echo "$ld_shlibs_CXX" >&6; }
10838 test "$ld_shlibs_CXX" = no && can_build_shared=no
10840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10841 if test "$GCC" = yes; then
10842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846 # Do we need to explicitly link libc?
10848 case "x$archive_cmds_need_lc_CXX" in
10850 # Assume -lc should be added
10851 archive_cmds_need_lc_CXX=yes
10853 if test "$enable_shared" = yes && test "$GCC" = yes; then
10854 case $archive_cmds_CXX in
10856 # FIXME: we may have to deal with multi-command sequences.
10859 # Test whether the compiler implicitly links with -lc since on some
10860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10861 # to ld, don't add -lc before -lgcc.
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10868 (eval $ac_compile) 2>&5
10870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871 test $ac_status = 0; } 2>conftest.err; then
10874 libobjs=conftest.$ac_objext
10876 wl=$lt_prog_compiler_wl_CXX
10882 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10883 allow_undefined_flag_CXX=
10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10885 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10888 test $ac_status = 0; }
10890 archive_cmds_need_lc_CXX=no
10892 archive_cmds_need_lc_CXX=yes
10894 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10896 cat conftest.err 1>&5
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
10900 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10908 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10909 library_names_spec=
10910 libname_spec='lib$name'
10914 postuninstall_cmds=
10918 shlibpath_overrides_runpath=unknown
10920 dynamic_linker="$host_os ld.so"
10921 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10922 if test "$GCC" = yes; then
10923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10924 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10925 # if the path contains ";" then we assume it to be the separator
10926 # otherwise default to the standard path separator (i.e. ":") - it is
10927 # assumed that no part of a normal pathname contains ";" but that should
10928 # okay in the real world where ";" in dirpaths is itself problematic.
10929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10936 need_lib_prefix=unknown
10937 hardcode_into_libs=no
10939 # when you set need_version to no, make sure it does not cause -set_version
10940 # flags to be left without arguments
10941 need_version=unknown
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10947 shlibpath_var=LIBPATH
10949 # AIX 3 has no versioning support, so we append a major version to the name.
10950 soname_spec='${libname}${release}${shared_ext}$major'
10957 hardcode_into_libs=yes
10958 if test "$host_cpu" = ia64; then
10959 # AIX 5 supports IA64
10960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10961 shlibpath_var=LD_LIBRARY_PATH
10963 # With GCC up to 2.95.x, collect2 would create an import file
10964 # for dependence libraries. The import file would start with
10965 # the line `#! .'. This would cause the generated library to
10966 # depend on `.', always an invalid library. This was fixed in
10967 # development snapshots of GCC prior to 3.0.
10969 aix4 | aix4.[01] | aix4.[01].*)
10970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10972 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10975 can_build_shared=no
10979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10980 # soname into executable. Probably we can add versioning support to
10981 # collect2, so additional links can be useful in future.
10982 if test "$aix_use_runtimelinking" = yes; then
10983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10984 # instead of lib<name>.a to let people know that these are not
10985 # typical AIX shared libraries.
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 # We preserve .a as extension for shared libraries through AIX4.2
10989 # and later when we are not doing run time linking.
10990 library_names_spec='${libname}${release}.a $libname.a'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LIBPATH
10998 library_names_spec='$libname.ixlibrary $libname.a'
10999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11000 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'
11004 library_names_spec='${libname}${shared_ext}'
11005 dynamic_linker="$host_os ld.so"
11006 shlibpath_var=LIBRARY_PATH
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11017 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11018 # the default ld.so.conf also contains /usr/contrib/lib and
11019 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11020 # libtool to hard-code these into programs
11023 cygwin* | mingw* | pw32*)
11024 version_type=windows
11029 case $GCC,$host_os in
11030 yes,cygwin* | yes,mingw* | yes,pw32*)
11031 library_names_spec='$libname.dll.a'
11032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11033 postinstall_cmds='base_file=`basename \${file}`~
11034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11035 dldir=$destdir/`dirname \$dlpath`~
11036 test -d \$dldir || mkdir -p \$dldir~
11037 $install_prog $dir/$dlname \$dldir/$dlname'
11038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11039 dlpath=$dir/\$dldll~
11041 shlibpath_overrides_runpath=yes
11045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11050 # MinGW DLLs use traditional 'lib' prefix
11051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11053 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11054 # It is most probably a Windows format PATH printed by
11055 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11056 # path with ; separators, and with drive letters. We can handle the
11057 # drive letters (cygwin fileutils understands them), so leave them,
11058 # especially as we might pass files found there to a mingw objdump,
11059 # which wouldn't understand a cygwinified path. Ahh.
11060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11066 # pw32 DLLs use 'pw' prefix rather than 'lib'
11067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11076 dynamic_linker='Win32 ld.exe'
11077 # FIXME: first we should search . and the directory the executable is in
11081 darwin* | rhapsody*)
11082 dynamic_linker="$host_os dyld"
11083 version_type=darwin
11086 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11087 soname_spec='${libname}${release}${major}$shared_ext'
11088 shlibpath_overrides_runpath=yes
11089 shlibpath_var=DYLD_LIBRARY_PATH
11090 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11091 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11092 if test "$GCC" = yes; then
11093 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"`
11095 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=no
11121 hardcode_into_libs=yes
11122 dynamic_linker='GNU ld.so'
11126 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11127 version_type=freebsd-$objformat
11128 case $version_type in
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11139 shlibpath_var=LD_LIBRARY_PATH
11142 shlibpath_overrides_runpath=yes
11144 freebsd3.01* | freebsdelf3.01*)
11145 shlibpath_overrides_runpath=yes
11146 hardcode_into_libs=yes
11149 shlibpath_overrides_runpath=no
11150 hardcode_into_libs=yes
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 hardcode_into_libs=yes
11165 hpux9* | hpux10* | hpux11*)
11166 # Give a soname corresponding to the major version so that dld.sl refuses to
11167 # link against other versions.
11171 case "$host_cpu" in
11174 hardcode_into_libs=yes
11175 dynamic_linker="$host_os dld.so"
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 if test "X$HPUX_IA64_MODE" = X32; then
11181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189 hardcode_into_libs=yes
11190 dynamic_linker="$host_os dld.sl"
11191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11200 dynamic_linker="$host_os dld.sl"
11201 shlibpath_var=SHLIB_PATH
11202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11208 postinstall_cmds='chmod 555 $lib'
11211 irix5* | irix6* | nonstopux*)
11213 nonstopux*) version_type=nonstopux ;;
11215 if test "$lt_cv_prog_gnu_ld" = yes; then
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 irix5* | nonstopux*)
11227 libsuff= shlibsuff=
11230 case $LD in # libtool.m4 will add one of these switches to LD
11231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11232 libsuff= shlibsuff= libmagic=32-bit;;
11233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11234 libsuff=32 shlibsuff=N32 libmagic=N32;;
11235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11237 *) libsuff= shlibsuff= libmagic=never-match;;
11241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11242 shlibpath_overrides_runpath=no
11243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11245 hardcode_into_libs=yes
11248 # No shared lib support for Linux oldld, aout, or coff.
11249 linux*oldld* | linux*aout* | linux*coff*)
11253 # This must be Linux ELF.
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 # This implies no fast_install, which is unacceptable.
11264 # Some rework will be needed to allow for fast_install
11265 # before this can be enabled.
11266 hardcode_into_libs=yes
11268 # We used to test for /lib/ld.so.1 and disable shared libraries on
11269 # powerpc, because MkLinux only supported shared libraries with the
11270 # GNU dynamic linker. Since this was broken with cross compilers,
11271 # most powerpc-linux boxes support dynamic linking these days and
11272 # people can always --disable-shared, the test was removed, and we
11273 # assume the GNU/Linux dynamic linker is in use.
11274 dynamic_linker='GNU/Linux ld.so'
11281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11284 dynamic_linker='NetBSD (a.out) ld.so'
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 dynamic_linker='NetBSD ld.elf_so'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 shlibpath_overrides_runpath=yes
11292 hardcode_into_libs=yes
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=yes
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=yes
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11321 openbsd2.[89] | openbsd2.[89].*)
11322 shlibpath_overrides_runpath=no
11325 shlibpath_overrides_runpath=yes
11329 shlibpath_overrides_runpath=yes
11334 libname_spec='$name'
11337 library_names_spec='$libname${shared_ext} $libname.a'
11338 dynamic_linker='OS/2 ld.exe'
11339 shlibpath_var=LIBPATH
11342 osf3* | osf4* | osf5*)
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 shlibpath_var=LD_LIBRARY_PATH
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 shlibpath_overrides_runpath=yes
11368 hardcode_into_libs=yes
11369 # ldd complains unless libraries are executable
11370 postinstall_cmds='chmod +x $lib'
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=yes
11379 if test "$with_gnu_ld" = yes; then
11385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 case $host_vendor in
11392 shlibpath_overrides_runpath=no
11394 export_dynamic_flag_spec='${wl}-Blargedynsym'
11395 runpath_var=LD_RUN_PATH
11403 shlibpath_overrides_runpath=no
11404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11410 if test -d /usr/nec ;then
11412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11413 soname_spec='$libname${shared_ext}.$major'
11414 shlibpath_var=LD_LIBRARY_PATH
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11430 $as_echo "$dynamic_linker" >&6; }
11431 test "$dynamic_linker" = no && can_build_shared=no
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11434 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11435 hardcode_action_CXX=
11436 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11437 test -n "$runpath_var CXX" || \
11438 test "X$hardcode_automatic_CXX"="Xyes" ; then
11440 # We can hardcode non-existant directories.
11441 if test "$hardcode_direct_CXX" != no &&
11442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11443 # have to relink, otherwise we might link with an installed library
11444 # when we should be linking with a yet-to-be-installed one
11445 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11446 test "$hardcode_minus_L_CXX" != no; then
11447 # Linking always hardcodes the temporary library directory.
11448 hardcode_action_CXX=relink
11450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11451 hardcode_action_CXX=immediate
11454 # We cannot hardcode anything, or else we can only hardcode existing
11456 hardcode_action_CXX=unsupported
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11459 $as_echo "$hardcode_action_CXX" >&6; }
11461 if test "$hardcode_action_CXX" = relink; then
11462 # Fast installation is not supported
11463 enable_fast_install=no
11464 elif test "$shlibpath_overrides_runpath" = yes ||
11465 test "$enable_shared" = no; then
11466 # Fast installation is not necessary
11467 enable_fast_install=needless
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11473 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11480 # FIXME - insert some real tests, host_os isn't really good enough
11483 if test -n "$STRIP" ; then
11484 striplib="$STRIP -x"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11499 if test "x$enable_dlopen" != xyes; then
11500 enable_dlopen=unknown
11501 enable_dlopen_self=unknown
11502 enable_dlopen_self_static=unknown
11509 lt_cv_dlopen="load_add_on"
11511 lt_cv_dlopen_self=yes
11515 lt_cv_dlopen="LoadLibrary"
11520 lt_cv_dlopen="dlopen"
11525 # if libdl is installed we need to link against it
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11528 if ${ac_cv_lib_dl_dlopen+:} false; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_check_lib_save_LIBS=$LIBS
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11551 if ac_fn_cxx_try_link "$LINENO"; then :
11552 ac_cv_lib_dl_dlopen=yes
11554 ac_cv_lib_dl_dlopen=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566 lt_cv_dlopen="dyld"
11568 lt_cv_dlopen_self=yes
11575 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11576 if test "x$ac_cv_func_shl_load" = xyes; then :
11577 lt_cv_dlopen="shl_load"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_shl_load+:} false; then :
11582 $as_echo_n "(cached) " >&6
11584 ac_check_lib_save_LIBS=$LIBS
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11599 return shl_load ();
11604 if ac_fn_cxx_try_link "$LINENO"; then :
11605 ac_cv_lib_dld_shl_load=yes
11607 ac_cv_lib_dld_shl_load=no
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11616 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11618 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11619 if test "x$ac_cv_func_dlopen" = xyes; then :
11620 lt_cv_dlopen="dlopen"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11624 if ${ac_cv_lib_dl_dlopen+:} false; then :
11625 $as_echo_n "(cached) " >&6
11627 ac_check_lib_save_LIBS=$LIBS
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11647 if ac_fn_cxx_try_link "$LINENO"; then :
11648 ac_cv_lib_dl_dlopen=yes
11650 ac_cv_lib_dl_dlopen=no
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11663 if ${ac_cv_lib_svld_dlopen+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lsvld $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11686 if ac_fn_cxx_try_link "$LINENO"; then :
11687 ac_cv_lib_svld_dlopen=yes
11689 ac_cv_lib_svld_dlopen=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_dld_link+:} false; then :
11703 $as_echo_n "(cached) " >&6
11705 ac_check_lib_save_LIBS=$LIBS
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11720 return dld_link ();
11725 if ac_fn_cxx_try_link "$LINENO"; then :
11726 ac_cv_lib_dld_dld_link=yes
11728 ac_cv_lib_dld_dld_link=no
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11737 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11758 if test "x$lt_cv_dlopen" != xno; then
11764 case $lt_cv_dlopen in
11766 save_CPPFLAGS="$CPPFLAGS"
11767 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11769 save_LDFLAGS="$LDFLAGS"
11770 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773 LIBS="$lt_cv_dlopen_libs $LIBS"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11777 if ${lt_cv_dlopen_self+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 if test "$cross_compiling" = yes; then :
11781 lt_cv_dlopen_self=cross
11783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784 lt_status=$lt_dlunknown
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11786 "configure"
11787 #include "confdefs.h"
11796 # define LT_DLGLOBAL RTLD_GLOBAL
11799 # define LT_DLGLOBAL DL_GLOBAL
11801 # define LT_DLGLOBAL 0
11805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806 find out it does not work in some platform. */
11807 #ifndef LT_DLLAZY_OR_NOW
11809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11812 # define LT_DLLAZY_OR_NOW DL_LAZY
11815 # define LT_DLLAZY_OR_NOW RTLD_NOW
11818 # define LT_DLLAZY_OR_NOW DL_NOW
11820 # define LT_DLLAZY_OR_NOW 0
11828 extern "C" void exit (int);
11831 void fnord() { int i=42;}
11834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11835 int status = $lt_dlunknown;
11839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11841 /* dlclose (self); */
11847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11848 (eval $ac_link) 2>&5
11850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11852 (./conftest; exit; ) 2>/dev/null
11854 case x$lt_status in
11855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11857 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11860 # compilation failed
11861 lt_cv_dlopen_self=no
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11869 $as_echo "$lt_cv_dlopen_self" >&6; }
11871 if test "x$lt_cv_dlopen_self" = xyes; then
11872 LDFLAGS="$LDFLAGS $link_static_flag"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11875 if ${lt_cv_dlopen_self_static+:} false; then :
11876 $as_echo_n "(cached) " >&6
11878 if test "$cross_compiling" = yes; then :
11879 lt_cv_dlopen_self_static=cross
11881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11882 lt_status=$lt_dlunknown
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11884 "configure"
11885 #include "confdefs.h"
11894 # define LT_DLGLOBAL RTLD_GLOBAL
11897 # define LT_DLGLOBAL DL_GLOBAL
11899 # define LT_DLGLOBAL 0
11903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11904 find out it does not work in some platform. */
11905 #ifndef LT_DLLAZY_OR_NOW
11907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11910 # define LT_DLLAZY_OR_NOW DL_LAZY
11913 # define LT_DLLAZY_OR_NOW RTLD_NOW
11916 # define LT_DLLAZY_OR_NOW DL_NOW
11918 # define LT_DLLAZY_OR_NOW 0
11926 extern "C" void exit (int);
11929 void fnord() { int i=42;}
11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11933 int status = $lt_dlunknown;
11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11939 /* dlclose (self); */
11945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11946 (eval $ac_link) 2>&5
11948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11950 (./conftest; exit; ) 2>/dev/null
11952 case x$lt_status in
11953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11955 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11958 # compilation failed
11959 lt_cv_dlopen_self_static=no
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11967 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11970 CPPFLAGS="$save_CPPFLAGS"
11971 LDFLAGS="$save_LDFLAGS"
11976 case $lt_cv_dlopen_self in
11977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11978 *) enable_dlopen_self=unknown ;;
11981 case $lt_cv_dlopen_self_static in
11982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11983 *) enable_dlopen_self_static=unknown ;;
11988 # The else clause should only fire when bootstrapping the
11989 # libtool distribution, otherwise you forgot to ship ltmain.sh
11990 # with your package, and you will get complaints that there are
11991 # no rules to generate ltmain.sh.
11992 if test -f "$ltmain"; then
11993 # See if we are running on zsh, and set the options which allow our commands through
11994 # without removal of \ escapes.
11995 if test -n "${ZSH_VERSION+set}" ; then
11996 setopt NO_GLOB_SUBST
11998 # Now quote all the things that may contain metacharacters while being
11999 # careful not to overquote the AC_SUBSTed values. We take copies of the
12000 # variables and quote the copies for generation of the libtool script.
12001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12005 deplibs_check_method reload_flag reload_cmds need_locks \
12006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12007 lt_cv_sys_global_symbol_to_c_name_address \
12008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12009 old_postinstall_cmds old_postuninstall_cmds \
12013 lt_prog_compiler_wl_CXX \
12014 lt_prog_compiler_pic_CXX \
12015 lt_prog_compiler_static_CXX \
12016 lt_prog_compiler_no_builtin_flag_CXX \
12017 export_dynamic_flag_spec_CXX \
12018 thread_safe_flag_spec_CXX \
12019 whole_archive_flag_spec_CXX \
12020 enable_shared_with_static_runtimes_CXX \
12021 old_archive_cmds_CXX \
12022 old_archive_from_new_cmds_CXX \
12023 predep_objects_CXX \
12024 postdep_objects_CXX \
12027 compiler_lib_search_path_CXX \
12029 archive_expsym_cmds_CXX \
12030 postinstall_cmds_CXX \
12031 postuninstall_cmds_CXX \
12032 old_archive_from_expsyms_cmds_CXX \
12033 allow_undefined_flag_CXX \
12034 no_undefined_flag_CXX \
12035 export_symbols_cmds_CXX \
12036 hardcode_libdir_flag_spec_CXX \
12037 hardcode_libdir_flag_spec_ld_CXX \
12038 hardcode_libdir_separator_CXX \
12039 hardcode_automatic_CXX \
12041 module_expsym_cmds_CXX \
12042 lt_cv_prog_compiler_c_o_CXX \
12043 exclude_expsyms_CXX \
12044 include_expsyms_CXX; do
12047 old_archive_cmds_CXX | \
12048 old_archive_from_new_cmds_CXX | \
12049 archive_cmds_CXX | \
12050 archive_expsym_cmds_CXX | \
12051 module_cmds_CXX | \
12052 module_expsym_cmds_CXX | \
12053 old_archive_from_expsyms_cmds_CXX | \
12054 export_symbols_cmds_CXX | \
12055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12056 postinstall_cmds | postuninstall_cmds | \
12057 old_postinstall_cmds | old_postuninstall_cmds | \
12058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12059 # Double-quote double-evaled strings.
12060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12069 *'\$0 --fallback-echo"')
12070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12076 cat <<__EOF__ >> "$cfgfile"
12077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12081 # Shell to use when invoking shell scripts.
12084 # Whether or not to build shared libraries.
12085 build_libtool_libs=$enable_shared
12087 # Whether or not to build static libraries.
12088 build_old_libs=$enable_static
12090 # Whether or not to add -lc for building shared libraries.
12091 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12093 # Whether or not to disallow shared libs when runtime libs are static
12094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12096 # Whether or not to optimize for fast installation.
12097 fast_install=$enable_fast_install
12100 host_alias=$host_alias
12103 # An echo program that does not interpret backslashes.
12108 AR_FLAGS=$lt_AR_FLAGS
12113 # A language-specific compiler.
12114 CC=$lt_compiler_CXX
12116 # Is the compiler the GNU C compiler?
12122 # The linker used to build libraries.
12125 # Whether we need hard or soft links.
12128 # A BSD-compatible nm program.
12131 # A symbol stripping program
12134 # Used to examine libraries when file_magic_cmd begins "file"
12135 MAGIC_CMD=$MAGIC_CMD
12137 # Used on cygwin: DLL creation program.
12140 # Used on cygwin: object dumper.
12143 # Used on cygwin: assembler.
12146 # The name of the directory that contains temporary libtool files.
12149 # How to create reloadable object files.
12150 reload_flag=$lt_reload_flag
12151 reload_cmds=$lt_reload_cmds
12153 # How to pass a linker flag through the compiler.
12154 wl=$lt_lt_prog_compiler_wl_CXX
12156 # Object file suffix (normally "o").
12157 objext="$ac_objext"
12159 # Old archive suffix (normally "a").
12162 # Shared library suffix (normally ".so").
12165 # Executable file suffix (normally "").
12168 # Additional compiler flags for building library objects.
12169 pic_flag=$lt_lt_prog_compiler_pic_CXX
12172 # What is the maximum length of a command?
12173 max_cmd_len=$lt_cv_sys_max_cmd_len
12175 # Does compiler simultaneously support -c and -o options?
12176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12178 # Must we lock files when doing compilation ?
12179 need_locks=$lt_need_locks
12181 # Do we need the lib prefix for modules?
12182 need_lib_prefix=$need_lib_prefix
12184 # Do we need a version for libraries?
12185 need_version=$need_version
12187 # Whether dlopen is supported.
12188 dlopen_support=$enable_dlopen
12190 # Whether dlopen of programs is supported.
12191 dlopen_self=$enable_dlopen_self
12193 # Whether dlopen of statically linked programs is supported.
12194 dlopen_self_static=$enable_dlopen_self_static
12196 # Compiler flag to prevent dynamic linking.
12197 link_static_flag=$lt_lt_prog_compiler_static_CXX
12199 # Compiler flag to turn off builtin functions.
12200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12202 # Compiler flag to allow reflexive dlopens.
12203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12205 # Compiler flag to generate shared objects directly from archives.
12206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12208 # Compiler flag to generate thread-safe objects.
12209 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12211 # Library versioning type.
12212 version_type=$version_type
12214 # Format of library name prefix.
12215 libname_spec=$lt_libname_spec
12217 # List of archive names. First name is the real one, the rest are links.
12218 # The last name is the one that the linker finds with -lNAME.
12219 library_names_spec=$lt_library_names_spec
12221 # The coded name of the library, if different from the real name.
12222 soname_spec=$lt_soname_spec
12224 # Commands used to build and install an old-style archive.
12226 old_archive_cmds=$lt_old_archive_cmds_CXX
12227 old_postinstall_cmds=$lt_old_postinstall_cmds
12228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12230 # Create an old-style archive from a shared archive.
12231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12233 # Create a temporary old-style archive to link instead of a shared archive.
12234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12236 # Commands used to build and install a shared archive.
12237 archive_cmds=$lt_archive_cmds_CXX
12238 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12239 postinstall_cmds=$lt_postinstall_cmds
12240 postuninstall_cmds=$lt_postuninstall_cmds
12242 # Commands used to build a loadable module (assumed same as above if empty)
12243 module_cmds=$lt_module_cmds_CXX
12244 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12246 # Commands to strip libraries.
12247 old_striplib=$lt_old_striplib
12248 striplib=$lt_striplib
12250 # Dependencies to place before the objects being linked to create a
12252 predep_objects=$lt_predep_objects_CXX
12254 # Dependencies to place after the objects being linked to create a
12256 postdep_objects=$lt_postdep_objects_CXX
12258 # Dependencies to place before the objects being linked to create a
12260 predeps=$lt_predeps_CXX
12262 # Dependencies to place after the objects being linked to create a
12264 postdeps=$lt_postdeps_CXX
12266 # The library search path used internally by the compiler when linking
12267 # a shared library.
12268 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12270 # Method to check whether dependent libraries are shared objects.
12271 deplibs_check_method=$lt_deplibs_check_method
12273 # Command to use when deplibs_check_method == file_magic.
12274 file_magic_cmd=$lt_file_magic_cmd
12276 # Flag that allows shared libraries with undefined symbols to be built.
12277 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12279 # Flag that forces no undefined symbols.
12280 no_undefined_flag=$lt_no_undefined_flag_CXX
12282 # Commands used to finish a libtool library installation in a directory.
12283 finish_cmds=$lt_finish_cmds
12285 # Same as above, but a single script fragment to be evaled but not shown.
12286 finish_eval=$lt_finish_eval
12288 # Take the output of nm and produce a listing of raw symbols and C names.
12289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12291 # Transform the output of nm in a proper C declaration
12292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12294 # Transform the output of nm in a C name address pair
12295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12297 # This is the shared library runtime path variable.
12298 runpath_var=$runpath_var
12300 # This is the shared library path variable.
12301 shlibpath_var=$shlibpath_var
12303 # Is shlibpath searched before the hard-coded library search path?
12304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12306 # How to hardcode a shared library path into an executable.
12307 hardcode_action=$hardcode_action_CXX
12309 # Whether we should hardcode library paths into libraries.
12310 hardcode_into_libs=$hardcode_into_libs
12312 # Flag to hardcode \$libdir into a binary during linking.
12313 # This must work even if \$libdir does not exist.
12314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12316 # If ld is used when linking, flag to hardcode \$libdir into
12317 # a binary during linking. This must work even if \$libdir does
12319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12321 # Whether we need a single -rpath flag with a separated argument.
12322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12324 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12325 # resulting binary.
12326 hardcode_direct=$hardcode_direct_CXX
12328 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12329 # resulting binary.
12330 hardcode_minus_L=$hardcode_minus_L_CXX
12332 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12333 # the resulting binary.
12334 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12336 # Set to yes if building a shared library automatically hardcodes DIR into the library
12337 # and all subsequent libraries and executables linked against it.
12338 hardcode_automatic=$hardcode_automatic_CXX
12340 # Variables whose values should be saved in libtool wrapper scripts and
12341 # restored at relink time.
12342 variables_saved_for_relink="$variables_saved_for_relink"
12344 # Whether libtool must link a program against all its dependency libraries.
12345 link_all_deplibs=$link_all_deplibs_CXX
12347 # Compile-time system search path for libraries
12348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12350 # Run-time system search path for libraries
12351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12353 # Fix the shell variable \$srcfile for the compiler.
12354 fix_srcfile_path="$fix_srcfile_path_CXX"
12356 # Set to yes if exported symbols are required.
12357 always_export_symbols=$always_export_symbols_CXX
12359 # The commands to list exported symbols.
12360 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12362 # The commands to extract the exported symbol list from a shared archive.
12363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12365 # Symbols that should not be listed in the preloaded symbols.
12366 exclude_expsyms=$lt_exclude_expsyms_CXX
12368 # Symbols that must always be exported.
12369 include_expsyms=$lt_include_expsyms_CXX
12371 # ### END LIBTOOL TAG CONFIG: $tagname
12377 # If there is no Makefile yet, we rely on a make rule to execute
12378 # `config.status --recheck' to rerun these tests and create the
12379 # libtool script then.
12380 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12381 if test -f "$ltmain_in"; then
12382 test -f Makefile && make "$ltmain"
12388 ac_cpp='$CPP $CPPFLAGS'
12389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12397 with_gnu_ldcxx=$with_gnu_ld
12398 with_gnu_ld=$lt_save_with_gnu_ld
12399 lt_cv_path_LDCXX=$lt_cv_path_LD
12400 lt_cv_path_LD=$lt_save_path_LD
12401 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12402 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12410 if test -n "$F77" && test "X$F77" != "Xno"; then
12413 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12414 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12418 archive_cmds_need_lc_F77=no
12419 allow_undefined_flag_F77=
12420 always_export_symbols_F77=no
12421 archive_expsym_cmds_F77=
12422 export_dynamic_flag_spec_F77=
12423 hardcode_direct_F77=no
12424 hardcode_libdir_flag_spec_F77=
12425 hardcode_libdir_flag_spec_ld_F77=
12426 hardcode_libdir_separator_F77=
12427 hardcode_minus_L_F77=no
12428 hardcode_automatic_F77=no
12430 module_expsym_cmds_F77=
12431 link_all_deplibs_F77=unknown
12432 old_archive_cmds_F77=$old_archive_cmds
12433 no_undefined_flag_F77=
12434 whole_archive_flag_spec_F77=
12435 enable_shared_with_static_runtimes_F77=no
12437 # Source file extension for f77 test sources.
12440 # Object file extension for compiled f77 test sources.
12444 # Code to be used in simple compile tests
12445 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12447 # Code to be used in simple link tests
12448 lt_simple_link_test_code=" program t\n end\n"
12450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12452 # If no C compiler was specified, use CC.
12455 # Allow CC to be a program name with arguments.
12459 # Allow CC to be a program name with arguments.
12464 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12469 $as_echo "$can_build_shared" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12472 $as_echo_n "checking whether to build shared libraries... " >&6; }
12473 test "$can_build_shared" = "no" && enable_shared=no
12475 # On AIX, shared libraries and static libraries use the same namespace, and
12476 # are all built from PIC.
12479 test "$enable_shared" = yes && enable_static=no
12480 if test -n "$RANLIB"; then
12481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12482 postinstall_cmds='$RANLIB $lib'
12486 test "$enable_shared" = yes && enable_static=no
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12490 $as_echo "$enable_shared" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12493 $as_echo_n "checking whether to build static libraries... " >&6; }
12494 # Make sure either enable_shared or enable_static is yes.
12495 test "$enable_shared" = yes || enable_static=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12497 $as_echo "$enable_static" >&6; }
12499 test "$ld_shlibs_F77" = no && can_build_shared=no
12504 lt_prog_compiler_wl_F77=
12505 lt_prog_compiler_pic_F77=
12506 lt_prog_compiler_static_F77=
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12511 if test "$GCC" = yes; then
12512 lt_prog_compiler_wl_F77='-Wl,'
12513 lt_prog_compiler_static_F77='-static'
12517 # All AIX code is PIC.
12518 if test "$host_cpu" = ia64; then
12519 # AIX 5 now supports IA64 processor
12520 lt_prog_compiler_static_F77='-Bstatic'
12525 # FIXME: we need at least 68020 code to build shared libraries, but
12526 # adding the `-m68020' flag to GCC prevents building anything better,
12528 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12532 # PIC is the default for these OSes.
12535 mingw* | pw32* | os2*)
12536 # This hack is so that the source file can tell whether it is being
12537 # built for inclusion in a dll (and should export symbols for example).
12538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12541 darwin* | rhapsody*)
12542 # PIC is the default on this platform
12543 # Common symbols not allowed in MH_DYLIB files
12544 lt_prog_compiler_pic_F77='-fno-common'
12548 # Just because we use GCC doesn't mean we suddenly get shared libraries
12549 # on systems that don't support them.
12550 lt_prog_compiler_can_build_shared_F77=no
12555 if test -d /usr/nec; then
12556 lt_prog_compiler_pic_F77=-Kconform_pic
12561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12562 # not for PA HP-UX.
12563 case "$host_cpu" in
12568 lt_prog_compiler_pic_F77='-fPIC'
12574 lt_prog_compiler_pic_F77='-fPIC'
12578 # PORTME Check for flag to pass linker flags through the system compiler.
12581 lt_prog_compiler_wl_F77='-Wl,'
12582 if test "$host_cpu" = ia64; then
12583 # AIX 5 now supports IA64 processor
12584 lt_prog_compiler_static_F77='-Bstatic'
12586 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12590 mingw* | pw32* | os2*)
12591 # This hack is so that the source file can tell whether it is being
12592 # built for inclusion in a dll (and should export symbols for example).
12593 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12596 hpux9* | hpux10* | hpux11*)
12597 lt_prog_compiler_wl_F77='-Wl,'
12598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12599 # not for PA HP-UX.
12600 case "$host_cpu" in
12605 lt_prog_compiler_pic_F77='+Z'
12608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12609 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12612 irix5* | irix6* | nonstopux*)
12613 lt_prog_compiler_wl_F77='-Wl,'
12614 # PIC (with -KPIC) is the default.
12615 lt_prog_compiler_static_F77='-non_shared'
12619 lt_prog_compiler_pic_F77='-KPIC'
12620 lt_prog_compiler_static_F77='-Bstatic'
12626 lt_prog_compiler_wl_F77='-Wl,'
12627 lt_prog_compiler_pic_F77='-KPIC'
12628 lt_prog_compiler_static_F77='-static'
12631 lt_prog_compiler_wl_F77='-Wl,'
12632 # All Alpha code is PIC.
12633 lt_prog_compiler_static_F77='-non_shared'
12638 osf3* | osf4* | osf5*)
12639 lt_prog_compiler_wl_F77='-Wl,'
12640 # All OSF/1 code is PIC.
12641 lt_prog_compiler_static_F77='-non_shared'
12645 lt_prog_compiler_pic_F77='-Kpic'
12646 lt_prog_compiler_static_F77='-dn'
12650 lt_prog_compiler_wl_F77='-Wl,'
12651 lt_prog_compiler_pic_F77='-KPIC'
12652 lt_prog_compiler_static_F77='-Bstatic'
12656 lt_prog_compiler_wl_F77='-Qoption ld '
12657 lt_prog_compiler_pic_F77='-PIC'
12658 lt_prog_compiler_static_F77='-Bstatic'
12661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12662 lt_prog_compiler_wl_F77='-Wl,'
12663 lt_prog_compiler_pic_F77='-KPIC'
12664 lt_prog_compiler_static_F77='-Bstatic'
12668 if test -d /usr/nec ;then
12669 lt_prog_compiler_pic_F77='-Kconform_pic'
12670 lt_prog_compiler_static_F77='-Bstatic'
12675 lt_prog_compiler_pic_F77='-pic'
12676 lt_prog_compiler_static_F77='-Bstatic'
12680 lt_prog_compiler_can_build_shared_F77=no
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
12686 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
12689 # Check to make sure the PIC flag actually works.
12691 if test -n "$lt_prog_compiler_pic_F77"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12694 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12695 if ${lt_prog_compiler_pic_works_F77+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 lt_prog_compiler_pic_works_F77=no
12699 ac_outfile=conftest.$ac_objext
12700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12701 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12702 # Insert the option either (1) after the last *FLAGS variable, or
12703 # (2) before a word containing "conftest.", or (3) at the end.
12704 # Note that $ac_compile itself does not contain backslashes and begins
12705 # with a dollar sign (not a hyphen), so the echo should work correctly.
12706 # The option is referenced via a variable to avoid confusing sed.
12707 lt_compile=`echo "$ac_compile" | $SED \
12708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710 -e 's:$: $lt_compiler_flag:'`
12711 (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
12712 (eval "$lt_compile" 2>conftest.err)
12714 cat conftest.err >&5
12715 echo "$as_me:12715: \$? = $ac_status" >&5
12716 if (exit $ac_status) && test -s "$ac_outfile"; then
12717 # The compiler can only warn and ignore the option if not recognized
12718 # So say no if there are warnings
12719 if test ! -s conftest.err; then
12720 lt_prog_compiler_pic_works_F77=yes
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
12727 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
12729 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12730 case $lt_prog_compiler_pic_F77 in
12732 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12735 lt_prog_compiler_pic_F77=
12736 lt_prog_compiler_can_build_shared_F77=no
12741 # For platforms which do not support PIC, -DPIC is meaningless:
12743 lt_prog_compiler_pic_F77=
12746 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12752 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 lt_cv_prog_compiler_c_o_F77=no
12756 $rm -r conftest 2>/dev/null
12760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12762 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12763 # that will create temporary files in the current directory regardless of
12764 # the output directory. Thus, making CWD read-only will cause this test
12765 # to fail, enabling locking or at least warning the user not to do parallel
12769 lt_compiler_flag="-o out/conftest2.$ac_objext"
12770 # Insert the option either (1) after the last *FLAGS variable, or
12771 # (2) before a word containing "conftest.", or (3) at the end.
12772 # Note that $ac_compile itself does not contain backslashes and begins
12773 # with a dollar sign (not a hyphen), so the echo should work correctly.
12774 lt_compile=`echo "$ac_compile" | $SED \
12775 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777 -e 's:$: $lt_compiler_flag:'`
12778 (eval echo "\"\$as_me:12778: $lt_compile\"" >&5)
12779 (eval "$lt_compile" 2>out/conftest.err)
12781 cat out/conftest.err >&5
12782 echo "$as_me:12782: \$? = $ac_status" >&5
12783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12785 # The compiler can only warn and ignore the option if not recognized
12786 # So say no if there are warnings
12787 if test ! -s out/conftest.err; then
12788 lt_cv_prog_compiler_c_o_F77=yes
12793 # SGI C++ compiler will create directory out/ii_files/ for
12794 # template instantiation
12795 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12796 $rm out/* && rmdir out
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12803 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12806 hard_links="nottested"
12807 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12808 # do not overwrite the value of need_locks provided by the user
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12810 $as_echo_n "checking if we can lock with hard links... " >&6; }
12813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12815 ln conftest.a conftest.b 2>&5 || hard_links=no
12816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12818 $as_echo "$hard_links" >&6; }
12819 if test "$hard_links" = no; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12832 allow_undefined_flag_F77=
12833 enable_shared_with_static_runtimes_F77=no
12835 archive_expsym_cmds_F77=
12836 old_archive_From_new_cmds_F77=
12837 old_archive_from_expsyms_cmds_F77=
12838 export_dynamic_flag_spec_F77=
12839 whole_archive_flag_spec_F77=
12840 thread_safe_flag_spec_F77=
12841 hardcode_libdir_flag_spec_F77=
12842 hardcode_libdir_flag_spec_ld_F77=
12843 hardcode_libdir_separator_F77=
12844 hardcode_direct_F77=no
12845 hardcode_minus_L_F77=no
12846 hardcode_shlibpath_var_F77=unsupported
12847 link_all_deplibs_F77=unknown
12848 hardcode_automatic_F77=no
12850 module_expsym_cmds_F77=
12851 always_export_symbols_F77=no
12852 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12853 # include_expsyms should be a list of space-separated symbols to be *always*
12854 # included in the symbol list
12855 include_expsyms_F77=
12856 # exclude_expsyms can be an extended regexp of symbols to exclude
12857 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12858 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12859 # as well as any symbol that contains `d'.
12860 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12861 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12862 # platforms (ab)use it in PIC code, but their linkers get confused if
12863 # the symbol is explicitly referenced. Since portable code cannot
12864 # rely on this symbol name, it's probably fine to never include it in
12865 # preloaded symbol tables.
12866 extract_expsyms_cmds=
12869 cygwin* | mingw* | pw32*)
12870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12871 # When not using gcc, we currently assume that we are using
12872 # Microsoft Visual C++.
12873 if test "$GCC" != yes; then
12883 if test "$with_gnu_ld" = yes; then
12884 # If archive_cmds runs LD, not CC, wlarc should be empty
12887 # See if GNU ld supports shared libraries.
12889 aix3* | aix4* | aix5*)
12890 # On AIX/PPC, the GNU linker is very broken
12891 if test "$host_cpu" != ia64; then
12895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12896 *** to be unable to reliably create shared libraries on AIX.
12897 *** Therefore, libtool is disabling shared libraries support. If you
12898 *** really care for shared libraries, you may want to modify your PATH
12899 *** so that a non-GNU linker is found, and then restart.
12906 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)'
12907 hardcode_libdir_flag_spec_F77='-L$libdir'
12908 hardcode_minus_L_F77=yes
12910 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12911 # that the semantics of dynamic libraries on AmigaOS, at least up
12912 # to version 4, is to share data among multiple programs linked
12913 # with the same dynamic library. Since this doesn't match the
12914 # behavior of shared libraries on other platforms, we can't use
12920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921 allow_undefined_flag_F77=unsupported
12922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12923 # support --undefined. This deserves some investigation. FIXME
12924 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 cygwin* | mingw* | pw32*)
12931 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12932 # as there is no search path for DLLs.
12933 hardcode_libdir_flag_spec_F77='-L$libdir'
12934 allow_undefined_flag_F77=unsupported
12935 always_export_symbols_F77=no
12936 enable_shared_with_static_runtimes_F77=yes
12937 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12940 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12941 # If the export-symbols file already is a .def file (1st line
12942 # is EXPORTS), use it as is; otherwise, prepend...
12943 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12944 cp $export_symbols $output_objdir/$soname.def;
12946 echo EXPORTS > $output_objdir/$soname.def;
12947 cat $export_symbols >> $output_objdir/$soname.def;
12949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12957 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12960 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12971 *** create shared libraries on Solaris systems. Therefore, libtool
12972 *** is disabling shared libraries support. We urge you to upgrade GNU
12973 *** binutils to release 2.9.1 or newer. Another option is to modify
12974 *** your PATH or compiler configuration so that the native linker is
12975 *** used, and then restart.
12978 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12979 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12987 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12989 hardcode_direct_F77=yes
12990 hardcode_shlibpath_var_F77=no
12994 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12995 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 archive_cmds_F77="$tmp_archive_cmds"
12997 supports_anon_versioning=no
12998 case `$LD -v 2>/dev/null` in
12999 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13002 *\ 2.11.*) ;; # other 2.11 versions
13003 *) supports_anon_versioning=yes ;;
13005 if test $supports_anon_versioning = yes; then
13006 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13008 $echo "local: *; };" >> $output_objdir/$libname.ver~
13009 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13011 archive_expsym_cmds_F77="$tmp_archive_cmds"
13019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13028 if test "$ld_shlibs_F77" = yes; then
13029 runpath_var=LD_RUN_PATH
13030 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13031 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13032 # ancient GNU ld didn't support --whole-archive et. al.
13033 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13034 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13036 whole_archive_flag_spec_F77=
13040 # PORTME fill in a description of your system's linker (not GNU ld)
13043 allow_undefined_flag_F77=unsupported
13044 always_export_symbols_F77=yes
13045 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'
13046 # Note: this linker hardcodes the directories in LIBPATH if there
13047 # are no directories specified by -L.
13048 hardcode_minus_L_F77=yes
13049 if test "$GCC" = yes && test -z "$link_static_flag"; then
13050 # Neither direct hardcoding nor static linking is supported with a
13052 hardcode_direct_F77=unsupported
13057 if test "$host_cpu" = ia64; then
13058 # On IA64, the linker does run time linking by default, so we don't
13059 # have to do anything special.
13060 aix_use_runtimelinking=no
13061 exp_sym_flag='-Bexport'
13064 # If we're using GNU nm, then we don't want the "-C" option.
13065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13067 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'
13069 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'
13071 aix_use_runtimelinking=no
13073 # Test if we are trying to use run time linking or normal
13074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13075 # need to do runtime linking.
13076 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13077 for ld_flag in $LDFLAGS; do
13078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13079 aix_use_runtimelinking=yes
13085 exp_sym_flag='-bexport'
13086 no_entry_flag='-bnoentry'
13089 # When large executables or shared objects are built, AIX ld can
13090 # have problems creating the table of contents. If linking a library
13091 # or program results in "error TOC overflow" add -mminimal-toc to
13092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13095 archive_cmds_F77=''
13096 hardcode_direct_F77=yes
13097 hardcode_libdir_separator_F77=':'
13098 link_all_deplibs_F77=yes
13100 if test "$GCC" = yes; then
13101 case $host_os in aix4.012|aix4.012.*)
13102 # We only want to do this on AIX 4.2 and lower, the check
13103 # below for broken collect2 doesn't work under 4.3+
13104 collect2name=`${CC} -print-prog-name=collect2`
13105 if test -f "$collect2name" && \
13106 strings "$collect2name" | grep resolve_lib_name >/dev/null
13108 # We have reworked collect2
13109 hardcode_direct_F77=yes
13111 # We have old collect2
13112 hardcode_direct_F77=unsupported
13113 # It fails to find uninstalled libraries when the uninstalled
13114 # path is not listed in the libpath. Setting hardcode_minus_L
13115 # to unsupported forces relinking
13116 hardcode_minus_L_F77=yes
13117 hardcode_libdir_flag_spec_F77='-L$libdir'
13118 hardcode_libdir_separator_F77=
13121 shared_flag='-shared'
13124 if test "$host_cpu" = ia64; then
13125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13126 # chokes on -Wl,-G. The following line is correct:
13129 if test "$aix_use_runtimelinking" = yes; then
13130 shared_flag='${wl}-G'
13132 shared_flag='${wl}-bM:SRE'
13137 # It seems that -bexpall does not export symbols beginning with
13138 # underscore (_), so it is better to generate a list of symbols to export.
13139 always_export_symbols_F77=yes
13140 if test "$aix_use_runtimelinking" = yes; then
13141 # Warning - without using the other runtime loading flags (-brtl),
13142 # -berok will link without error, but may produce a broken library.
13143 allow_undefined_flag_F77='-berok'
13144 # Determine the default libpath from the value encoded in an empty executable.
13145 cat > conftest.$ac_ext <<_ACEOF
13150 if ac_fn_f77_try_link "$LINENO"; then :
13152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13154 # Check for a 64-bit object if we didn't find anything.
13155 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; }
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13162 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13163 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"
13165 if test "$host_cpu" = ia64; then
13166 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13167 allow_undefined_flag_F77="-z nodefs"
13168 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"
13170 # Determine the default libpath from the value encoded in an empty executable.
13171 cat > conftest.$ac_ext <<_ACEOF
13176 if ac_fn_f77_try_link "$LINENO"; then :
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13180 # Check for a 64-bit object if we didn't find anything.
13181 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; }
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13188 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13189 # Warning - without using the other run time loading flags,
13190 # -berok will link without error, but may produce a broken library.
13191 no_undefined_flag_F77=' ${wl}-bernotok'
13192 allow_undefined_flag_F77=' ${wl}-berok'
13193 # -bexpall does not export symbols beginning with underscore (_)
13194 always_export_symbols_F77=yes
13195 # Exported symbols can be pulled into shared objects from archives
13196 whole_archive_flag_spec_F77=' '
13197 archive_cmds_need_lc_F77=yes
13198 # This is similar to how AIX traditionally builds it's shared libraries.
13199 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'
13205 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)'
13206 hardcode_libdir_flag_spec_F77='-L$libdir'
13207 hardcode_minus_L_F77=yes
13208 # see comment about different semantics on the GNU ld section
13213 export_dynamic_flag_spec_F77=-rdynamic
13216 cygwin* | mingw* | pw32*)
13217 # When not using gcc, we currently assume that we are using
13218 # Microsoft Visual C++.
13219 # hardcode_libdir_flag_spec is actually meaningless, as there is
13220 # no search path for DLLs.
13221 hardcode_libdir_flag_spec_F77=' '
13222 allow_undefined_flag_F77=unsupported
13223 # Tell ltmain to make .lib files, not .a files.
13225 # Tell ltmain to make .dll files, not .so files.
13227 # FIXME: Setting linknames here is a bad hack.
13228 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13229 # The linker will automatically build a .lib file if we build a DLL.
13230 old_archive_From_new_cmds_F77='true'
13231 # FIXME: Should let the user specify the lib program.
13232 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13233 fix_srcfile_path='`cygpath -w "$srcfile"`'
13234 enable_shared_with_static_runtimes_F77=yes
13237 darwin* | rhapsody*)
13238 if test "$GXX" = yes ; then
13239 archive_cmds_need_lc_F77=no
13241 rhapsody* | darwin1.[012])
13242 allow_undefined_flag_F77='-undefined suppress'
13245 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13246 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13248 case ${MACOSX_DEPLOYMENT_TARGET} in
13250 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13253 allow_undefined_flag_F77='-undefined dynamic_lookup'
13259 lt_int_apple_cc_single_mod=no
13260 output_verbose_link_cmd='echo'
13261 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13262 lt_int_apple_cc_single_mod=yes
13264 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13267 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'
13269 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13271 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13272 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}'
13274 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}'
13276 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}'
13277 hardcode_direct_F77=no
13278 hardcode_automatic_F77=yes
13279 hardcode_shlibpath_var_F77=unsupported
13280 whole_archive_flag_spec_F77='-all_load $convenience'
13281 link_all_deplibs_F77=yes
13288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13289 hardcode_libdir_flag_spec_F77='-L$libdir'
13290 hardcode_shlibpath_var_F77=no
13297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13298 # support. Future versions do this automatically, but an explicit c++rt0.o
13299 # does not break anything, and helps significantly (at the cost of a little
13302 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13303 hardcode_libdir_flag_spec_F77='-R$libdir'
13304 hardcode_direct_F77=yes
13305 hardcode_shlibpath_var_F77=no
13308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13310 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13311 hardcode_direct_F77=yes
13312 hardcode_minus_L_F77=yes
13313 hardcode_shlibpath_var_F77=no
13316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13317 freebsd* | kfreebsd*-gnu)
13318 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13319 hardcode_libdir_flag_spec_F77='-R$libdir'
13320 hardcode_direct_F77=yes
13321 hardcode_shlibpath_var_F77=no
13325 if test "$GCC" = yes; then
13326 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'
13328 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'
13330 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13331 hardcode_libdir_separator_F77=:
13332 hardcode_direct_F77=yes
13334 # hardcode_minus_L: Not really in the search PATH,
13335 # but as the default location of the library.
13336 hardcode_minus_L_F77=yes
13337 export_dynamic_flag_spec_F77='${wl}-E'
13341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13342 case "$host_cpu" in
13344 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13347 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13351 case "$host_cpu" in
13353 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13360 if test "$with_gnu_ld" = no; then
13361 case "$host_cpu" in
13363 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13364 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13365 hardcode_libdir_separator_F77=:
13366 hardcode_direct_F77=no
13367 hardcode_shlibpath_var_F77=no
13370 hardcode_libdir_flag_spec_F77='-L$libdir'
13371 hardcode_direct_F77=no
13372 hardcode_shlibpath_var_F77=no
13374 # hardcode_minus_L: Not really in the search PATH,
13375 # but as the default location of the library.
13376 hardcode_minus_L_F77=yes
13379 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13380 hardcode_libdir_separator_F77=:
13381 hardcode_direct_F77=yes
13382 export_dynamic_flag_spec_F77='${wl}-E'
13384 # hardcode_minus_L: Not really in the search PATH,
13385 # but as the default location of the library.
13386 hardcode_minus_L_F77=yes
13392 irix5* | irix6* | nonstopux*)
13393 if test "$GCC" = yes; then
13394 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'
13396 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'
13397 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13399 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13400 hardcode_libdir_separator_F77=:
13401 link_all_deplibs_F77=yes
13405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13408 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13410 hardcode_libdir_flag_spec_F77='-R$libdir'
13411 hardcode_direct_F77=yes
13412 hardcode_shlibpath_var_F77=no
13416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13417 hardcode_direct_F77=yes
13418 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13419 hardcode_libdir_separator_F77=:
13420 hardcode_shlibpath_var_F77=no
13424 hardcode_direct_F77=yes
13425 hardcode_shlibpath_var_F77=no
13426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13427 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13429 export_dynamic_flag_spec_F77='${wl}-E'
13432 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13433 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13434 hardcode_libdir_flag_spec_F77='-R$libdir'
13437 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13438 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13445 hardcode_libdir_flag_spec_F77='-L$libdir'
13446 hardcode_minus_L_F77=yes
13447 allow_undefined_flag_F77=unsupported
13448 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'
13449 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13453 if test "$GCC" = yes; then
13454 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13455 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'
13457 allow_undefined_flag_F77=' -expect_unresolved \*'
13458 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'
13460 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13461 hardcode_libdir_separator_F77=:
13464 osf4* | osf5*) # as osf3* with the addition of -msym flag
13465 if test "$GCC" = yes; then
13466 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13467 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'
13468 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13470 allow_undefined_flag_F77=' -expect_unresolved \*'
13471 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'
13472 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~
13473 $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'
13475 # Both c and cxx compiler support -rpath directly
13476 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13478 hardcode_libdir_separator_F77=:
13482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_shlibpath_var_F77=no
13484 export_dynamic_flag_spec_F77='${wl}-Bexport'
13485 runpath_var=LD_RUN_PATH
13486 hardcode_runpath_var=yes
13490 no_undefined_flag_F77=' -z text'
13491 if test "$GCC" = yes; then
13492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13500 hardcode_libdir_flag_spec_F77='-R$libdir'
13501 hardcode_shlibpath_var_F77=no
13503 solaris2.[0-5] | solaris2.[0-5].*) ;;
13504 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13505 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13507 link_all_deplibs_F77=yes
13511 if test "x$host_vendor" = xsequent; then
13512 # Use $CC to link under sequent, because it throws in some extra .o
13513 # files that make .init and .fini sections work.
13514 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13518 hardcode_libdir_flag_spec_F77='-L$libdir'
13519 hardcode_direct_F77=yes
13520 hardcode_minus_L_F77=yes
13521 hardcode_shlibpath_var_F77=no
13525 case $host_vendor in
13527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528 hardcode_direct_F77=yes # is this really true???
13531 ## LD is ld it makes a PLAMLIB
13532 ## CC just makes a GrossModule.
13533 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13534 reload_cmds_F77='$CC -r -o $output$reload_objs'
13535 hardcode_direct_F77=no
13538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13542 runpath_var='LD_RUN_PATH'
13543 hardcode_shlibpath_var_F77=no
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_shlibpath_var_F77=no
13549 export_dynamic_flag_spec_F77='-Bexport'
13553 if test -d /usr/nec; then
13554 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13555 hardcode_shlibpath_var_F77=no
13556 runpath_var=LD_RUN_PATH
13557 hardcode_runpath_var=yes
13563 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13564 hardcode_direct_F77=yes
13565 hardcode_minus_L_F77=no
13566 hardcode_shlibpath_var_F77=no
13567 hardcode_runpath_var=yes
13568 runpath_var=LD_RUN_PATH
13571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13572 no_undefined_flag_F77='${wl}-z ${wl}text'
13573 if test "$GCC" = yes; then
13574 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 runpath_var='LD_RUN_PATH'
13579 hardcode_shlibpath_var_F77=no
13583 no_undefined_flag_F77=' -z text'
13584 # $CC -shared without GNU ld will not create a library from C++
13585 # object files and a static libstdc++, better avoid it by now
13586 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13587 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13589 hardcode_libdir_flag_spec_F77=
13590 hardcode_shlibpath_var_F77=no
13591 runpath_var='LD_RUN_PATH'
13595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_libdir_flag_spec_F77='-L$libdir'
13597 hardcode_shlibpath_var_F77=no
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13607 $as_echo "$ld_shlibs_F77" >&6; }
13608 test "$ld_shlibs_F77" = no && can_build_shared=no
13610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611 if test "$GCC" = yes; then
13612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13616 # Do we need to explicitly link libc?
13618 case "x$archive_cmds_need_lc_F77" in
13620 # Assume -lc should be added
13621 archive_cmds_need_lc_F77=yes
13623 if test "$enable_shared" = yes && test "$GCC" = yes; then
13624 case $archive_cmds_F77 in
13626 # FIXME: we may have to deal with multi-command sequences.
13629 # Test whether the compiler implicitly links with -lc since on some
13630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631 # to ld, don't add -lc before -lgcc.
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13638 (eval $ac_compile) 2>&5
13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641 test $ac_status = 0; } 2>conftest.err; then
13644 libobjs=conftest.$ac_objext
13646 wl=$lt_prog_compiler_wl_F77
13652 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13653 allow_undefined_flag_F77=
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13655 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; }
13660 archive_cmds_need_lc_F77=no
13662 archive_cmds_need_lc_F77=yes
13664 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13666 cat conftest.err 1>&5
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
13670 $as_echo "$archive_cmds_need_lc_F77" >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13679 library_names_spec=
13680 libname_spec='lib$name'
13684 postuninstall_cmds=
13688 shlibpath_overrides_runpath=unknown
13690 dynamic_linker="$host_os ld.so"
13691 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13692 if test "$GCC" = yes; then
13693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13695 # if the path contains ";" then we assume it to be the separator
13696 # otherwise default to the standard path separator (i.e. ":") - it is
13697 # assumed that no part of a normal pathname contains ";" but that should
13698 # okay in the real world where ";" in dirpaths is itself problematic.
13699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13706 need_lib_prefix=unknown
13707 hardcode_into_libs=no
13709 # when you set need_version to no, make sure it does not cause -set_version
13710 # flags to be left without arguments
13711 need_version=unknown
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13717 shlibpath_var=LIBPATH
13719 # AIX 3 has no versioning support, so we append a major version to the name.
13720 soname_spec='${libname}${release}${shared_ext}$major'
13727 hardcode_into_libs=yes
13728 if test "$host_cpu" = ia64; then
13729 # AIX 5 supports IA64
13730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13731 shlibpath_var=LD_LIBRARY_PATH
13733 # With GCC up to 2.95.x, collect2 would create an import file
13734 # for dependence libraries. The import file would start with
13735 # the line `#! .'. This would cause the generated library to
13736 # depend on `.', always an invalid library. This was fixed in
13737 # development snapshots of GCC prior to 3.0.
13739 aix4 | aix4.[01] | aix4.[01].*)
13740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13745 can_build_shared=no
13749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13750 # soname into executable. Probably we can add versioning support to
13751 # collect2, so additional links can be useful in future.
13752 if test "$aix_use_runtimelinking" = yes; then
13753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13754 # instead of lib<name>.a to let people know that these are not
13755 # typical AIX shared libraries.
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13758 # We preserve .a as extension for shared libraries through AIX4.2
13759 # and later when we are not doing run time linking.
13760 library_names_spec='${libname}${release}.a $libname.a'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13763 shlibpath_var=LIBPATH
13768 library_names_spec='$libname.ixlibrary $libname.a'
13769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13770 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'
13774 library_names_spec='${libname}${shared_ext}'
13775 dynamic_linker="$host_os ld.so"
13776 shlibpath_var=LIBRARY_PATH
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13785 shlibpath_var=LD_LIBRARY_PATH
13786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13788 # the default ld.so.conf also contains /usr/contrib/lib and
13789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13790 # libtool to hard-code these into programs
13793 cygwin* | mingw* | pw32*)
13794 version_type=windows
13799 case $GCC,$host_os in
13800 yes,cygwin* | yes,mingw* | yes,pw32*)
13801 library_names_spec='$libname.dll.a'
13802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13803 postinstall_cmds='base_file=`basename \${file}`~
13804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13805 dldir=$destdir/`dirname \$dlpath`~
13806 test -d \$dldir || mkdir -p \$dldir~
13807 $install_prog $dir/$dlname \$dldir/$dlname'
13808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13809 dlpath=$dir/\$dldll~
13811 shlibpath_overrides_runpath=yes
13815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13820 # MinGW DLLs use traditional 'lib' prefix
13821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13824 # It is most probably a Windows format PATH printed by
13825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13826 # path with ; separators, and with drive letters. We can handle the
13827 # drive letters (cygwin fileutils understands them), so leave them,
13828 # especially as we might pass files found there to a mingw objdump,
13829 # which wouldn't understand a cygwinified path. Ahh.
13830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13836 # pw32 DLLs use 'pw' prefix rather than 'lib'
13837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13846 dynamic_linker='Win32 ld.exe'
13847 # FIXME: first we should search . and the directory the executable is in
13851 darwin* | rhapsody*)
13852 dynamic_linker="$host_os dyld"
13853 version_type=darwin
13856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13857 soname_spec='${libname}${release}${major}$shared_ext'
13858 shlibpath_overrides_runpath=yes
13859 shlibpath_var=DYLD_LIBRARY_PATH
13860 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13862 if test "$GCC" = yes; then
13863 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"`
13865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13875 soname_spec='${libname}${release}${shared_ext}$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 shlibpath_overrides_runpath=no
13891 hardcode_into_libs=yes
13892 dynamic_linker='GNU ld.so'
13896 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13897 version_type=freebsd-$objformat
13898 case $version_type in
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13909 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=yes
13914 freebsd3.01* | freebsdelf3.01*)
13915 shlibpath_overrides_runpath=yes
13916 hardcode_into_libs=yes
13919 shlibpath_overrides_runpath=no
13920 hardcode_into_libs=yes
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13930 soname_spec='${libname}${release}${shared_ext}$major'
13931 shlibpath_var=LD_LIBRARY_PATH
13932 hardcode_into_libs=yes
13935 hpux9* | hpux10* | hpux11*)
13936 # Give a soname corresponding to the major version so that dld.sl refuses to
13937 # link against other versions.
13941 case "$host_cpu" in
13944 hardcode_into_libs=yes
13945 dynamic_linker="$host_os dld.so"
13946 shlibpath_var=LD_LIBRARY_PATH
13947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 if test "X$HPUX_IA64_MODE" = X32; then
13951 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13959 hardcode_into_libs=yes
13960 dynamic_linker="$host_os dld.sl"
13961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13970 dynamic_linker="$host_os dld.sl"
13971 shlibpath_var=SHLIB_PATH
13972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13977 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13978 postinstall_cmds='chmod 555 $lib'
13981 irix5* | irix6* | nonstopux*)
13983 nonstopux*) version_type=nonstopux ;;
13985 if test "$lt_cv_prog_gnu_ld" = yes; then
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13996 irix5* | nonstopux*)
13997 libsuff= shlibsuff=
14000 case $LD in # libtool.m4 will add one of these switches to LD
14001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14002 libsuff= shlibsuff= libmagic=32-bit;;
14003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14004 libsuff=32 shlibsuff=N32 libmagic=N32;;
14005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14007 *) libsuff= shlibsuff= libmagic=never-match;;
14011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14012 shlibpath_overrides_runpath=no
14013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14015 hardcode_into_libs=yes
14018 # No shared lib support for Linux oldld, aout, or coff.
14019 linux*oldld* | linux*aout* | linux*coff*)
14023 # This must be Linux ELF.
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=no
14033 # This implies no fast_install, which is unacceptable.
14034 # Some rework will be needed to allow for fast_install
14035 # before this can be enabled.
14036 hardcode_into_libs=yes
14038 # We used to test for /lib/ld.so.1 and disable shared libraries on
14039 # powerpc, because MkLinux only supported shared libraries with the
14040 # GNU dynamic linker. Since this was broken with cross compilers,
14041 # most powerpc-linux boxes support dynamic linking these days and
14042 # people can always --disable-shared, the test was removed, and we
14043 # assume the GNU/Linux dynamic linker is in use.
14044 dynamic_linker='GNU/Linux ld.so'
14051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14054 dynamic_linker='NetBSD (a.out) ld.so'
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 dynamic_linker='NetBSD ld.elf_so'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=yes
14062 hardcode_into_libs=yes
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=yes
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 shlibpath_overrides_runpath=yes
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14091 openbsd2.[89] | openbsd2.[89].*)
14092 shlibpath_overrides_runpath=no
14095 shlibpath_overrides_runpath=yes
14099 shlibpath_overrides_runpath=yes
14104 libname_spec='$name'
14107 library_names_spec='$libname${shared_ext} $libname.a'
14108 dynamic_linker='OS/2 ld.exe'
14109 shlibpath_var=LIBPATH
14112 osf3* | osf4* | osf5*)
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 shlibpath_var=LD_LIBRARY_PATH
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 soname_spec='${libname}${release}${shared_ext}$major'
14136 shlibpath_var=LD_LIBRARY_PATH
14137 shlibpath_overrides_runpath=yes
14138 hardcode_into_libs=yes
14139 # ldd complains unless libraries are executable
14140 postinstall_cmds='chmod +x $lib'
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 shlibpath_overrides_runpath=yes
14149 if test "$with_gnu_ld" = yes; then
14155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 case $host_vendor in
14162 shlibpath_overrides_runpath=no
14164 export_dynamic_flag_spec='${wl}-Blargedynsym'
14165 runpath_var=LD_RUN_PATH
14173 shlibpath_overrides_runpath=no
14174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14180 if test -d /usr/nec ;then
14182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14183 soname_spec='$libname${shared_ext}.$major'
14184 shlibpath_var=LD_LIBRARY_PATH
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14200 $as_echo "$dynamic_linker" >&6; }
14201 test "$dynamic_linker" = no && can_build_shared=no
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14205 hardcode_action_F77=
14206 if test -n "$hardcode_libdir_flag_spec_F77" || \
14207 test -n "$runpath_var F77" || \
14208 test "X$hardcode_automatic_F77"="Xyes" ; then
14210 # We can hardcode non-existant directories.
14211 if test "$hardcode_direct_F77" != no &&
14212 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14213 # have to relink, otherwise we might link with an installed library
14214 # when we should be linking with a yet-to-be-installed one
14215 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14216 test "$hardcode_minus_L_F77" != no; then
14217 # Linking always hardcodes the temporary library directory.
14218 hardcode_action_F77=relink
14220 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14221 hardcode_action_F77=immediate
14224 # We cannot hardcode anything, or else we can only hardcode existing
14226 hardcode_action_F77=unsupported
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14229 $as_echo "$hardcode_action_F77" >&6; }
14231 if test "$hardcode_action_F77" = relink; then
14232 # Fast installation is not supported
14233 enable_fast_install=no
14234 elif test "$shlibpath_overrides_runpath" = yes ||
14235 test "$enable_shared" = no; then
14236 # Fast installation is not necessary
14237 enable_fast_install=needless
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14244 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14245 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14246 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14248 $as_echo "yes" >&6; }
14250 # FIXME - insert some real tests, host_os isn't really good enough
14253 if test -n "$STRIP" ; then
14254 striplib="$STRIP -x"
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 $as_echo "yes" >&6; }
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14271 # The else clause should only fire when bootstrapping the
14272 # libtool distribution, otherwise you forgot to ship ltmain.sh
14273 # with your package, and you will get complaints that there are
14274 # no rules to generate ltmain.sh.
14275 if test -f "$ltmain"; then
14276 # See if we are running on zsh, and set the options which allow our commands through
14277 # without removal of \ escapes.
14278 if test -n "${ZSH_VERSION+set}" ; then
14279 setopt NO_GLOB_SUBST
14281 # Now quote all the things that may contain metacharacters while being
14282 # careful not to overquote the AC_SUBSTed values. We take copies of the
14283 # variables and quote the copies for generation of the libtool script.
14284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14288 deplibs_check_method reload_flag reload_cmds need_locks \
14289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14290 lt_cv_sys_global_symbol_to_c_name_address \
14291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14292 old_postinstall_cmds old_postuninstall_cmds \
14296 lt_prog_compiler_wl_F77 \
14297 lt_prog_compiler_pic_F77 \
14298 lt_prog_compiler_static_F77 \
14299 lt_prog_compiler_no_builtin_flag_F77 \
14300 export_dynamic_flag_spec_F77 \
14301 thread_safe_flag_spec_F77 \
14302 whole_archive_flag_spec_F77 \
14303 enable_shared_with_static_runtimes_F77 \
14304 old_archive_cmds_F77 \
14305 old_archive_from_new_cmds_F77 \
14306 predep_objects_F77 \
14307 postdep_objects_F77 \
14310 compiler_lib_search_path_F77 \
14312 archive_expsym_cmds_F77 \
14313 postinstall_cmds_F77 \
14314 postuninstall_cmds_F77 \
14315 old_archive_from_expsyms_cmds_F77 \
14316 allow_undefined_flag_F77 \
14317 no_undefined_flag_F77 \
14318 export_symbols_cmds_F77 \
14319 hardcode_libdir_flag_spec_F77 \
14320 hardcode_libdir_flag_spec_ld_F77 \
14321 hardcode_libdir_separator_F77 \
14322 hardcode_automatic_F77 \
14324 module_expsym_cmds_F77 \
14325 lt_cv_prog_compiler_c_o_F77 \
14326 exclude_expsyms_F77 \
14327 include_expsyms_F77; do
14330 old_archive_cmds_F77 | \
14331 old_archive_from_new_cmds_F77 | \
14332 archive_cmds_F77 | \
14333 archive_expsym_cmds_F77 | \
14334 module_cmds_F77 | \
14335 module_expsym_cmds_F77 | \
14336 old_archive_from_expsyms_cmds_F77 | \
14337 export_symbols_cmds_F77 | \
14338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14339 postinstall_cmds | postuninstall_cmds | \
14340 old_postinstall_cmds | old_postuninstall_cmds | \
14341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14342 # Double-quote double-evaled strings.
14343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14352 *'\$0 --fallback-echo"')
14353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14359 cat <<__EOF__ >> "$cfgfile"
14360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14364 # Shell to use when invoking shell scripts.
14367 # Whether or not to build shared libraries.
14368 build_libtool_libs=$enable_shared
14370 # Whether or not to build static libraries.
14371 build_old_libs=$enable_static
14373 # Whether or not to add -lc for building shared libraries.
14374 build_libtool_need_lc=$archive_cmds_need_lc_F77
14376 # Whether or not to disallow shared libs when runtime libs are static
14377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14379 # Whether or not to optimize for fast installation.
14380 fast_install=$enable_fast_install
14383 host_alias=$host_alias
14386 # An echo program that does not interpret backslashes.
14391 AR_FLAGS=$lt_AR_FLAGS
14396 # A language-specific compiler.
14397 CC=$lt_compiler_F77
14399 # Is the compiler the GNU C compiler?
14405 # The linker used to build libraries.
14408 # Whether we need hard or soft links.
14411 # A BSD-compatible nm program.
14414 # A symbol stripping program
14417 # Used to examine libraries when file_magic_cmd begins "file"
14418 MAGIC_CMD=$MAGIC_CMD
14420 # Used on cygwin: DLL creation program.
14423 # Used on cygwin: object dumper.
14426 # Used on cygwin: assembler.
14429 # The name of the directory that contains temporary libtool files.
14432 # How to create reloadable object files.
14433 reload_flag=$lt_reload_flag
14434 reload_cmds=$lt_reload_cmds
14436 # How to pass a linker flag through the compiler.
14437 wl=$lt_lt_prog_compiler_wl_F77
14439 # Object file suffix (normally "o").
14440 objext="$ac_objext"
14442 # Old archive suffix (normally "a").
14445 # Shared library suffix (normally ".so").
14448 # Executable file suffix (normally "").
14451 # Additional compiler flags for building library objects.
14452 pic_flag=$lt_lt_prog_compiler_pic_F77
14455 # What is the maximum length of a command?
14456 max_cmd_len=$lt_cv_sys_max_cmd_len
14458 # Does compiler simultaneously support -c and -o options?
14459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14461 # Must we lock files when doing compilation ?
14462 need_locks=$lt_need_locks
14464 # Do we need the lib prefix for modules?
14465 need_lib_prefix=$need_lib_prefix
14467 # Do we need a version for libraries?
14468 need_version=$need_version
14470 # Whether dlopen is supported.
14471 dlopen_support=$enable_dlopen
14473 # Whether dlopen of programs is supported.
14474 dlopen_self=$enable_dlopen_self
14476 # Whether dlopen of statically linked programs is supported.
14477 dlopen_self_static=$enable_dlopen_self_static
14479 # Compiler flag to prevent dynamic linking.
14480 link_static_flag=$lt_lt_prog_compiler_static_F77
14482 # Compiler flag to turn off builtin functions.
14483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14485 # Compiler flag to allow reflexive dlopens.
14486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14488 # Compiler flag to generate shared objects directly from archives.
14489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14491 # Compiler flag to generate thread-safe objects.
14492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14494 # Library versioning type.
14495 version_type=$version_type
14497 # Format of library name prefix.
14498 libname_spec=$lt_libname_spec
14500 # List of archive names. First name is the real one, the rest are links.
14501 # The last name is the one that the linker finds with -lNAME.
14502 library_names_spec=$lt_library_names_spec
14504 # The coded name of the library, if different from the real name.
14505 soname_spec=$lt_soname_spec
14507 # Commands used to build and install an old-style archive.
14509 old_archive_cmds=$lt_old_archive_cmds_F77
14510 old_postinstall_cmds=$lt_old_postinstall_cmds
14511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14513 # Create an old-style archive from a shared archive.
14514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14516 # Create a temporary old-style archive to link instead of a shared archive.
14517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14519 # Commands used to build and install a shared archive.
14520 archive_cmds=$lt_archive_cmds_F77
14521 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14522 postinstall_cmds=$lt_postinstall_cmds
14523 postuninstall_cmds=$lt_postuninstall_cmds
14525 # Commands used to build a loadable module (assumed same as above if empty)
14526 module_cmds=$lt_module_cmds_F77
14527 module_expsym_cmds=$lt_module_expsym_cmds_F77
14529 # Commands to strip libraries.
14530 old_striplib=$lt_old_striplib
14531 striplib=$lt_striplib
14533 # Dependencies to place before the objects being linked to create a
14535 predep_objects=$lt_predep_objects_F77
14537 # Dependencies to place after the objects being linked to create a
14539 postdep_objects=$lt_postdep_objects_F77
14541 # Dependencies to place before the objects being linked to create a
14543 predeps=$lt_predeps_F77
14545 # Dependencies to place after the objects being linked to create a
14547 postdeps=$lt_postdeps_F77
14549 # The library search path used internally by the compiler when linking
14550 # a shared library.
14551 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14553 # Method to check whether dependent libraries are shared objects.
14554 deplibs_check_method=$lt_deplibs_check_method
14556 # Command to use when deplibs_check_method == file_magic.
14557 file_magic_cmd=$lt_file_magic_cmd
14559 # Flag that allows shared libraries with undefined symbols to be built.
14560 allow_undefined_flag=$lt_allow_undefined_flag_F77
14562 # Flag that forces no undefined symbols.
14563 no_undefined_flag=$lt_no_undefined_flag_F77
14565 # Commands used to finish a libtool library installation in a directory.
14566 finish_cmds=$lt_finish_cmds
14568 # Same as above, but a single script fragment to be evaled but not shown.
14569 finish_eval=$lt_finish_eval
14571 # Take the output of nm and produce a listing of raw symbols and C names.
14572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14574 # Transform the output of nm in a proper C declaration
14575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14577 # Transform the output of nm in a C name address pair
14578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14580 # This is the shared library runtime path variable.
14581 runpath_var=$runpath_var
14583 # This is the shared library path variable.
14584 shlibpath_var=$shlibpath_var
14586 # Is shlibpath searched before the hard-coded library search path?
14587 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14589 # How to hardcode a shared library path into an executable.
14590 hardcode_action=$hardcode_action_F77
14592 # Whether we should hardcode library paths into libraries.
14593 hardcode_into_libs=$hardcode_into_libs
14595 # Flag to hardcode \$libdir into a binary during linking.
14596 # This must work even if \$libdir does not exist.
14597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14599 # If ld is used when linking, flag to hardcode \$libdir into
14600 # a binary during linking. This must work even if \$libdir does
14602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14604 # Whether we need a single -rpath flag with a separated argument.
14605 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14607 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14608 # resulting binary.
14609 hardcode_direct=$hardcode_direct_F77
14611 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14612 # resulting binary.
14613 hardcode_minus_L=$hardcode_minus_L_F77
14615 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14616 # the resulting binary.
14617 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14619 # Set to yes if building a shared library automatically hardcodes DIR into the library
14620 # and all subsequent libraries and executables linked against it.
14621 hardcode_automatic=$hardcode_automatic_F77
14623 # Variables whose values should be saved in libtool wrapper scripts and
14624 # restored at relink time.
14625 variables_saved_for_relink="$variables_saved_for_relink"
14627 # Whether libtool must link a program against all its dependency libraries.
14628 link_all_deplibs=$link_all_deplibs_F77
14630 # Compile-time system search path for libraries
14631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14633 # Run-time system search path for libraries
14634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14636 # Fix the shell variable \$srcfile for the compiler.
14637 fix_srcfile_path="$fix_srcfile_path_F77"
14639 # Set to yes if exported symbols are required.
14640 always_export_symbols=$always_export_symbols_F77
14642 # The commands to list exported symbols.
14643 export_symbols_cmds=$lt_export_symbols_cmds_F77
14645 # The commands to extract the exported symbol list from a shared archive.
14646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14648 # Symbols that should not be listed in the preloaded symbols.
14649 exclude_expsyms=$lt_exclude_expsyms_F77
14651 # Symbols that must always be exported.
14652 include_expsyms=$lt_include_expsyms_F77
14654 # ### END LIBTOOL TAG CONFIG: $tagname
14660 # If there is no Makefile yet, we rely on a make rule to execute
14661 # `config.status --recheck' to rerun these tests and create the
14662 # libtool script then.
14663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14664 if test -f "$ltmain_in"; then
14665 test -f Makefile && make "$ltmain"
14671 ac_cpp='$CPP $CPPFLAGS'
14672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14684 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14687 # Source file extension for Java test sources.
14690 # Object file extension for compiled Java test sources.
14694 # Code to be used in simple compile tests
14695 lt_simple_compile_test_code="class foo {}\n"
14697 # Code to be used in simple link tests
14698 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14700 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14702 # If no C compiler was specified, use CC.
14705 # Allow CC to be a program name with arguments.
14709 # Allow CC to be a program name with arguments.
14715 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14716 archive_cmds_need_lc_GCJ=no
14719 ## There is no encapsulation within the following macros, do not change
14720 ## the running order or otherwise move them around unless you know exactly
14721 ## what you are doing...
14723 lt_prog_compiler_no_builtin_flag_GCJ=
14725 if test "$GCC" = yes; then
14726 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14730 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14731 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 lt_cv_prog_compiler_rtti_exceptions=no
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14737 lt_compiler_flag="-fno-rtti -fno-exceptions"
14738 # Insert the option either (1) after the last *FLAGS variable, or
14739 # (2) before a word containing "conftest.", or (3) at the end.
14740 # Note that $ac_compile itself does not contain backslashes and begins
14741 # with a dollar sign (not a hyphen), so the echo should work correctly.
14742 # The option is referenced via a variable to avoid confusing sed.
14743 lt_compile=`echo "$ac_compile" | $SED \
14744 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14746 -e 's:$: $lt_compiler_flag:'`
14747 (eval echo "\"\$as_me:14747: $lt_compile\"" >&5)
14748 (eval "$lt_compile" 2>conftest.err)
14750 cat conftest.err >&5
14751 echo "$as_me:14751: \$? = $ac_status" >&5
14752 if (exit $ac_status) && test -s "$ac_outfile"; then
14753 # The compiler can only warn and ignore the option if not recognized
14754 # So say no if there are warnings
14755 if test ! -s conftest.err; then
14756 lt_cv_prog_compiler_rtti_exceptions=yes
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14763 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14765 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14766 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14773 lt_prog_compiler_wl_GCJ=
14774 lt_prog_compiler_pic_GCJ=
14775 lt_prog_compiler_static_GCJ=
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14778 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14780 if test "$GCC" = yes; then
14781 lt_prog_compiler_wl_GCJ='-Wl,'
14782 lt_prog_compiler_static_GCJ='-static'
14786 # All AIX code is PIC.
14787 if test "$host_cpu" = ia64; then
14788 # AIX 5 now supports IA64 processor
14789 lt_prog_compiler_static_GCJ='-Bstatic'
14794 # FIXME: we need at least 68020 code to build shared libraries, but
14795 # adding the `-m68020' flag to GCC prevents building anything better,
14797 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14800 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14801 # PIC is the default for these OSes.
14804 mingw* | pw32* | os2*)
14805 # This hack is so that the source file can tell whether it is being
14806 # built for inclusion in a dll (and should export symbols for example).
14807 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14810 darwin* | rhapsody*)
14811 # PIC is the default on this platform
14812 # Common symbols not allowed in MH_DYLIB files
14813 lt_prog_compiler_pic_GCJ='-fno-common'
14817 # Just because we use GCC doesn't mean we suddenly get shared libraries
14818 # on systems that don't support them.
14819 lt_prog_compiler_can_build_shared_GCJ=no
14824 if test -d /usr/nec; then
14825 lt_prog_compiler_pic_GCJ=-Kconform_pic
14830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14831 # not for PA HP-UX.
14832 case "$host_cpu" in
14837 lt_prog_compiler_pic_GCJ='-fPIC'
14843 lt_prog_compiler_pic_GCJ='-fPIC'
14847 # PORTME Check for flag to pass linker flags through the system compiler.
14850 lt_prog_compiler_wl_GCJ='-Wl,'
14851 if test "$host_cpu" = ia64; then
14852 # AIX 5 now supports IA64 processor
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14855 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14859 mingw* | pw32* | os2*)
14860 # This hack is so that the source file can tell whether it is being
14861 # built for inclusion in a dll (and should export symbols for example).
14862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14865 hpux9* | hpux10* | hpux11*)
14866 lt_prog_compiler_wl_GCJ='-Wl,'
14867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14868 # not for PA HP-UX.
14869 case "$host_cpu" in
14874 lt_prog_compiler_pic_GCJ='+Z'
14877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14881 irix5* | irix6* | nonstopux*)
14882 lt_prog_compiler_wl_GCJ='-Wl,'
14883 # PIC (with -KPIC) is the default.
14884 lt_prog_compiler_static_GCJ='-non_shared'
14888 lt_prog_compiler_pic_GCJ='-KPIC'
14889 lt_prog_compiler_static_GCJ='-Bstatic'
14895 lt_prog_compiler_wl_GCJ='-Wl,'
14896 lt_prog_compiler_pic_GCJ='-KPIC'
14897 lt_prog_compiler_static_GCJ='-static'
14900 lt_prog_compiler_wl_GCJ='-Wl,'
14901 # All Alpha code is PIC.
14902 lt_prog_compiler_static_GCJ='-non_shared'
14907 osf3* | osf4* | osf5*)
14908 lt_prog_compiler_wl_GCJ='-Wl,'
14909 # All OSF/1 code is PIC.
14910 lt_prog_compiler_static_GCJ='-non_shared'
14914 lt_prog_compiler_pic_GCJ='-Kpic'
14915 lt_prog_compiler_static_GCJ='-dn'
14919 lt_prog_compiler_wl_GCJ='-Wl,'
14920 lt_prog_compiler_pic_GCJ='-KPIC'
14921 lt_prog_compiler_static_GCJ='-Bstatic'
14925 lt_prog_compiler_wl_GCJ='-Qoption ld '
14926 lt_prog_compiler_pic_GCJ='-PIC'
14927 lt_prog_compiler_static_GCJ='-Bstatic'
14930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14931 lt_prog_compiler_wl_GCJ='-Wl,'
14932 lt_prog_compiler_pic_GCJ='-KPIC'
14933 lt_prog_compiler_static_GCJ='-Bstatic'
14937 if test -d /usr/nec ;then
14938 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14939 lt_prog_compiler_static_GCJ='-Bstatic'
14944 lt_prog_compiler_pic_GCJ='-pic'
14945 lt_prog_compiler_static_GCJ='-Bstatic'
14949 lt_prog_compiler_can_build_shared_GCJ=no
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14955 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14958 # Check to make sure the PIC flag actually works.
14960 if test -n "$lt_prog_compiler_pic_GCJ"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14964 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
14965 $as_echo_n "(cached) " >&6
14967 lt_prog_compiler_pic_works_GCJ=no
14968 ac_outfile=conftest.$ac_objext
14969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14970 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14971 # Insert the option either (1) after the last *FLAGS variable, or
14972 # (2) before a word containing "conftest.", or (3) at the end.
14973 # Note that $ac_compile itself does not contain backslashes and begins
14974 # with a dollar sign (not a hyphen), so the echo should work correctly.
14975 # The option is referenced via a variable to avoid confusing sed.
14976 lt_compile=`echo "$ac_compile" | $SED \
14977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979 -e 's:$: $lt_compiler_flag:'`
14980 (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
14981 (eval "$lt_compile" 2>conftest.err)
14983 cat conftest.err >&5
14984 echo "$as_me:14984: \$? = $ac_status" >&5
14985 if (exit $ac_status) && test -s "$ac_outfile"; then
14986 # The compiler can only warn and ignore the option if not recognized
14987 # So say no if there are warnings
14988 if test ! -s conftest.err; then
14989 lt_prog_compiler_pic_works_GCJ=yes
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14996 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14998 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14999 case $lt_prog_compiler_pic_GCJ in
15001 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15004 lt_prog_compiler_pic_GCJ=
15005 lt_prog_compiler_can_build_shared_GCJ=no
15010 # For platforms which do not support PIC, -DPIC is meaningless:
15012 lt_prog_compiler_pic_GCJ=
15015 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15021 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15022 $as_echo_n "(cached) " >&6
15024 lt_cv_prog_compiler_c_o_GCJ=no
15025 $rm -r conftest 2>/dev/null
15029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15032 # that will create temporary files in the current directory regardless of
15033 # the output directory. Thus, making CWD read-only will cause this test
15034 # to fail, enabling locking or at least warning the user not to do parallel
15038 lt_compiler_flag="-o out/conftest2.$ac_objext"
15039 # Insert the option either (1) after the last *FLAGS variable, or
15040 # (2) before a word containing "conftest.", or (3) at the end.
15041 # Note that $ac_compile itself does not contain backslashes and begins
15042 # with a dollar sign (not a hyphen), so the echo should work correctly.
15043 lt_compile=`echo "$ac_compile" | $SED \
15044 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15046 -e 's:$: $lt_compiler_flag:'`
15047 (eval echo "\"\$as_me:15047: $lt_compile\"" >&5)
15048 (eval "$lt_compile" 2>out/conftest.err)
15050 cat out/conftest.err >&5
15051 echo "$as_me:15051: \$? = $ac_status" >&5
15052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15054 # The compiler can only warn and ignore the option if not recognized
15055 # So say no if there are warnings
15056 if test ! -s out/conftest.err; then
15057 lt_cv_prog_compiler_c_o_GCJ=yes
15062 # SGI C++ compiler will create directory out/ii_files/ for
15063 # template instantiation
15064 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15065 $rm out/* && rmdir out
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15072 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15075 hard_links="nottested"
15076 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15077 # do not overwrite the value of need_locks provided by the user
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15079 $as_echo_n "checking if we can lock with hard links... " >&6; }
15082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15084 ln conftest.a conftest.b 2>&5 || hard_links=no
15085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15087 $as_echo "$hard_links" >&6; }
15088 if test "$hard_links" = no; then
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15090 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15101 allow_undefined_flag_GCJ=
15102 enable_shared_with_static_runtimes_GCJ=no
15104 archive_expsym_cmds_GCJ=
15105 old_archive_From_new_cmds_GCJ=
15106 old_archive_from_expsyms_cmds_GCJ=
15107 export_dynamic_flag_spec_GCJ=
15108 whole_archive_flag_spec_GCJ=
15109 thread_safe_flag_spec_GCJ=
15110 hardcode_libdir_flag_spec_GCJ=
15111 hardcode_libdir_flag_spec_ld_GCJ=
15112 hardcode_libdir_separator_GCJ=
15113 hardcode_direct_GCJ=no
15114 hardcode_minus_L_GCJ=no
15115 hardcode_shlibpath_var_GCJ=unsupported
15116 link_all_deplibs_GCJ=unknown
15117 hardcode_automatic_GCJ=no
15119 module_expsym_cmds_GCJ=
15120 always_export_symbols_GCJ=no
15121 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15122 # include_expsyms should be a list of space-separated symbols to be *always*
15123 # included in the symbol list
15124 include_expsyms_GCJ=
15125 # exclude_expsyms can be an extended regexp of symbols to exclude
15126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15128 # as well as any symbol that contains `d'.
15129 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15131 # platforms (ab)use it in PIC code, but their linkers get confused if
15132 # the symbol is explicitly referenced. Since portable code cannot
15133 # rely on this symbol name, it's probably fine to never include it in
15134 # preloaded symbol tables.
15135 extract_expsyms_cmds=
15138 cygwin* | mingw* | pw32*)
15139 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15140 # When not using gcc, we currently assume that we are using
15141 # Microsoft Visual C++.
15142 if test "$GCC" != yes; then
15152 if test "$with_gnu_ld" = yes; then
15153 # If archive_cmds runs LD, not CC, wlarc should be empty
15156 # See if GNU ld supports shared libraries.
15158 aix3* | aix4* | aix5*)
15159 # On AIX/PPC, the GNU linker is very broken
15160 if test "$host_cpu" != ia64; then
15164 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15165 *** to be unable to reliably create shared libraries on AIX.
15166 *** Therefore, libtool is disabling shared libraries support. If you
15167 *** really care for shared libraries, you may want to modify your PATH
15168 *** so that a non-GNU linker is found, and then restart.
15175 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)'
15176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15177 hardcode_minus_L_GCJ=yes
15179 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15180 # that the semantics of dynamic libraries on AmigaOS, at least up
15181 # to version 4, is to share data among multiple programs linked
15182 # with the same dynamic library. Since this doesn't match the
15183 # behavior of shared libraries on other platforms, we can't use
15189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190 allow_undefined_flag_GCJ=unsupported
15191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15192 # support --undefined. This deserves some investigation. FIXME
15193 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15199 cygwin* | mingw* | pw32*)
15200 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15201 # as there is no search path for DLLs.
15202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15203 allow_undefined_flag_GCJ=unsupported
15204 always_export_symbols_GCJ=no
15205 enable_shared_with_static_runtimes_GCJ=yes
15206 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15208 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15209 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15210 # If the export-symbols file already is a .def file (1st line
15211 # is EXPORTS), use it as is; otherwise, prepend...
15212 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15213 cp $export_symbols $output_objdir/$soname.def;
15215 echo EXPORTS > $output_objdir/$soname.def;
15216 cat $export_symbols >> $output_objdir/$soname.def;
15218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15226 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15229 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15240 *** create shared libraries on Solaris systems. Therefore, libtool
15241 *** is disabling shared libraries support. We urge you to upgrade GNU
15242 *** binutils to release 2.9.1 or newer. Another option is to modify
15243 *** your PATH or compiler configuration so that the native linker is
15244 *** used, and then restart.
15247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15248 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_direct_GCJ=yes
15259 hardcode_shlibpath_var_GCJ=no
15263 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15264 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265 archive_cmds_GCJ="$tmp_archive_cmds"
15266 supports_anon_versioning=no
15267 case `$LD -v 2>/dev/null` in
15268 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15271 *\ 2.11.*) ;; # other 2.11 versions
15272 *) supports_anon_versioning=yes ;;
15274 if test $supports_anon_versioning = yes; then
15275 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15277 $echo "local: *; };" >> $output_objdir/$libname.ver~
15278 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15280 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15289 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15290 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15297 if test "$ld_shlibs_GCJ" = yes; then
15298 runpath_var=LD_RUN_PATH
15299 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15300 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15301 # ancient GNU ld didn't support --whole-archive et. al.
15302 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15303 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15305 whole_archive_flag_spec_GCJ=
15309 # PORTME fill in a description of your system's linker (not GNU ld)
15312 allow_undefined_flag_GCJ=unsupported
15313 always_export_symbols_GCJ=yes
15314 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'
15315 # Note: this linker hardcodes the directories in LIBPATH if there
15316 # are no directories specified by -L.
15317 hardcode_minus_L_GCJ=yes
15318 if test "$GCC" = yes && test -z "$link_static_flag"; then
15319 # Neither direct hardcoding nor static linking is supported with a
15321 hardcode_direct_GCJ=unsupported
15326 if test "$host_cpu" = ia64; then
15327 # On IA64, the linker does run time linking by default, so we don't
15328 # have to do anything special.
15329 aix_use_runtimelinking=no
15330 exp_sym_flag='-Bexport'
15333 # If we're using GNU nm, then we don't want the "-C" option.
15334 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15335 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15336 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'
15338 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'
15340 aix_use_runtimelinking=no
15342 # Test if we are trying to use run time linking or normal
15343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15344 # need to do runtime linking.
15345 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15346 for ld_flag in $LDFLAGS; do
15347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15348 aix_use_runtimelinking=yes
15354 exp_sym_flag='-bexport'
15355 no_entry_flag='-bnoentry'
15358 # When large executables or shared objects are built, AIX ld can
15359 # have problems creating the table of contents. If linking a library
15360 # or program results in "error TOC overflow" add -mminimal-toc to
15361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15364 archive_cmds_GCJ=''
15365 hardcode_direct_GCJ=yes
15366 hardcode_libdir_separator_GCJ=':'
15367 link_all_deplibs_GCJ=yes
15369 if test "$GCC" = yes; then
15370 case $host_os in aix4.012|aix4.012.*)
15371 # We only want to do this on AIX 4.2 and lower, the check
15372 # below for broken collect2 doesn't work under 4.3+
15373 collect2name=`${CC} -print-prog-name=collect2`
15374 if test -f "$collect2name" && \
15375 strings "$collect2name" | grep resolve_lib_name >/dev/null
15377 # We have reworked collect2
15378 hardcode_direct_GCJ=yes
15380 # We have old collect2
15381 hardcode_direct_GCJ=unsupported
15382 # It fails to find uninstalled libraries when the uninstalled
15383 # path is not listed in the libpath. Setting hardcode_minus_L
15384 # to unsupported forces relinking
15385 hardcode_minus_L_GCJ=yes
15386 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15387 hardcode_libdir_separator_GCJ=
15390 shared_flag='-shared'
15393 if test "$host_cpu" = ia64; then
15394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15395 # chokes on -Wl,-G. The following line is correct:
15398 if test "$aix_use_runtimelinking" = yes; then
15399 shared_flag='${wl}-G'
15401 shared_flag='${wl}-bM:SRE'
15406 # It seems that -bexpall does not export symbols beginning with
15407 # underscore (_), so it is better to generate a list of symbols to export.
15408 always_export_symbols_GCJ=yes
15409 if test "$aix_use_runtimelinking" = yes; then
15410 # Warning - without using the other runtime loading flags (-brtl),
15411 # -berok will link without error, but may produce a broken library.
15412 allow_undefined_flag_GCJ='-berok'
15413 # Determine the default libpath from the value encoded in an empty executable.
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15425 if ac_fn_c_try_link "$LINENO"; then :
15427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15429 # Check for a 64-bit object if we didn't find anything.
15430 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; }
15433 rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15437 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15438 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"
15440 if test "$host_cpu" = ia64; then
15441 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15442 allow_undefined_flag_GCJ="-z nodefs"
15443 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"
15445 # Determine the default libpath from the value encoded in an empty executable.
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15457 if ac_fn_c_try_link "$LINENO"; then :
15459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15461 # Check for a 64-bit object if we didn't find anything.
15462 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; }
15465 rm -f core conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 # Warning - without using the other run time loading flags,
15471 # -berok will link without error, but may produce a broken library.
15472 no_undefined_flag_GCJ=' ${wl}-bernotok'
15473 allow_undefined_flag_GCJ=' ${wl}-berok'
15474 # -bexpall does not export symbols beginning with underscore (_)
15475 always_export_symbols_GCJ=yes
15476 # Exported symbols can be pulled into shared objects from archives
15477 whole_archive_flag_spec_GCJ=' '
15478 archive_cmds_need_lc_GCJ=yes
15479 # This is similar to how AIX traditionally builds it's shared libraries.
15480 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'
15486 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)'
15487 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15488 hardcode_minus_L_GCJ=yes
15489 # see comment about different semantics on the GNU ld section
15494 export_dynamic_flag_spec_GCJ=-rdynamic
15497 cygwin* | mingw* | pw32*)
15498 # When not using gcc, we currently assume that we are using
15499 # Microsoft Visual C++.
15500 # hardcode_libdir_flag_spec is actually meaningless, as there is
15501 # no search path for DLLs.
15502 hardcode_libdir_flag_spec_GCJ=' '
15503 allow_undefined_flag_GCJ=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15506 # Tell ltmain to make .dll files, not .so files.
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_From_new_cmds_GCJ='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15514 fix_srcfile_path='`cygpath -w "$srcfile"`'
15515 enable_shared_with_static_runtimes_GCJ=yes
15518 darwin* | rhapsody*)
15519 if test "$GXX" = yes ; then
15520 archive_cmds_need_lc_GCJ=no
15522 rhapsody* | darwin1.[012])
15523 allow_undefined_flag_GCJ='-undefined suppress'
15526 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15527 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15529 case ${MACOSX_DEPLOYMENT_TARGET} in
15531 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15534 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15540 lt_int_apple_cc_single_mod=no
15541 output_verbose_link_cmd='echo'
15542 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15543 lt_int_apple_cc_single_mod=yes
15545 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15546 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15548 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'
15550 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15552 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15553 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}'
15555 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}'
15557 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}'
15558 hardcode_direct_GCJ=no
15559 hardcode_automatic_GCJ=yes
15560 hardcode_shlibpath_var_GCJ=unsupported
15561 whole_archive_flag_spec_GCJ='-all_load $convenience'
15562 link_all_deplibs_GCJ=yes
15569 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15571 hardcode_shlibpath_var_GCJ=no
15578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579 # support. Future versions do this automatically, but an explicit c++rt0.o
15580 # does not break anything, and helps significantly (at the cost of a little
15583 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15585 hardcode_direct_GCJ=yes
15586 hardcode_shlibpath_var_GCJ=no
15589 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15591 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_direct_GCJ=yes
15593 hardcode_minus_L_GCJ=yes
15594 hardcode_shlibpath_var_GCJ=no
15597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598 freebsd* | kfreebsd*-gnu)
15599 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15601 hardcode_direct_GCJ=yes
15602 hardcode_shlibpath_var_GCJ=no
15606 if test "$GCC" = yes; then
15607 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'
15609 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'
15611 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15612 hardcode_libdir_separator_GCJ=:
15613 hardcode_direct_GCJ=yes
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L_GCJ=yes
15618 export_dynamic_flag_spec_GCJ='${wl}-E'
15622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623 case "$host_cpu" in
15625 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15632 case "$host_cpu" in
15634 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15637 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15641 if test "$with_gnu_ld" = no; then
15642 case "$host_cpu" in
15644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15645 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15646 hardcode_libdir_separator_GCJ=:
15647 hardcode_direct_GCJ=no
15648 hardcode_shlibpath_var_GCJ=no
15651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15652 hardcode_direct_GCJ=no
15653 hardcode_shlibpath_var_GCJ=no
15655 # hardcode_minus_L: Not really in the search PATH,
15656 # but as the default location of the library.
15657 hardcode_minus_L_GCJ=yes
15660 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15661 hardcode_libdir_separator_GCJ=:
15662 hardcode_direct_GCJ=yes
15663 export_dynamic_flag_spec_GCJ='${wl}-E'
15665 # hardcode_minus_L: Not really in the search PATH,
15666 # but as the default location of the library.
15667 hardcode_minus_L_GCJ=yes
15673 irix5* | irix6* | nonstopux*)
15674 if test "$GCC" = yes; then
15675 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'
15677 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'
15678 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15681 hardcode_libdir_separator_GCJ=:
15682 link_all_deplibs_GCJ=yes
15686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15689 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15691 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15692 hardcode_direct_GCJ=yes
15693 hardcode_shlibpath_var_GCJ=no
15697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_direct_GCJ=yes
15699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15700 hardcode_libdir_separator_GCJ=:
15701 hardcode_shlibpath_var_GCJ=no
15705 hardcode_direct_GCJ=yes
15706 hardcode_shlibpath_var_GCJ=no
15707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15708 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15710 export_dynamic_flag_spec_GCJ='${wl}-E'
15713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15714 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15718 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15727 hardcode_minus_L_GCJ=yes
15728 allow_undefined_flag_GCJ=unsupported
15729 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'
15730 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15734 if test "$GCC" = yes; then
15735 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15736 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'
15738 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15739 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'
15741 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15742 hardcode_libdir_separator_GCJ=:
15745 osf4* | osf5*) # as osf3* with the addition of -msym flag
15746 if test "$GCC" = yes; then
15747 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15748 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'
15749 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15751 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15752 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'
15753 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~
15754 $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'
15756 # Both c and cxx compiler support -rpath directly
15757 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15759 hardcode_libdir_separator_GCJ=:
15763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_shlibpath_var_GCJ=no
15765 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15766 runpath_var=LD_RUN_PATH
15767 hardcode_runpath_var=yes
15771 no_undefined_flag_GCJ=' -z text'
15772 if test "$GCC" = yes; then
15773 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15775 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15777 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15782 hardcode_shlibpath_var_GCJ=no
15784 solaris2.[0-5] | solaris2.[0-5].*) ;;
15785 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15786 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15788 link_all_deplibs_GCJ=yes
15792 if test "x$host_vendor" = xsequent; then
15793 # Use $CC to link under sequent, because it throws in some extra .o
15794 # files that make .init and .fini sections work.
15795 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15797 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800 hardcode_direct_GCJ=yes
15801 hardcode_minus_L_GCJ=yes
15802 hardcode_shlibpath_var_GCJ=no
15806 case $host_vendor in
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_direct_GCJ=yes # is this really true???
15812 ## LD is ld it makes a PLAMLIB
15813 ## CC just makes a GrossModule.
15814 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15815 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15816 hardcode_direct_GCJ=no
15819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15823 runpath_var='LD_RUN_PATH'
15824 hardcode_shlibpath_var_GCJ=no
15828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_shlibpath_var_GCJ=no
15830 export_dynamic_flag_spec_GCJ='-Bexport'
15834 if test -d /usr/nec; then
15835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_shlibpath_var_GCJ=no
15837 runpath_var=LD_RUN_PATH
15838 hardcode_runpath_var=yes
15844 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_direct_GCJ=yes
15846 hardcode_minus_L_GCJ=no
15847 hardcode_shlibpath_var_GCJ=no
15848 hardcode_runpath_var=yes
15849 runpath_var=LD_RUN_PATH
15852 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15853 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15854 if test "$GCC" = yes; then
15855 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 runpath_var='LD_RUN_PATH'
15860 hardcode_shlibpath_var_GCJ=no
15864 no_undefined_flag_GCJ=' -z text'
15865 # $CC -shared without GNU ld will not create a library from C++
15866 # object files and a static libstdc++, better avoid it by now
15867 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15869 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15870 hardcode_libdir_flag_spec_GCJ=
15871 hardcode_shlibpath_var_GCJ=no
15872 runpath_var='LD_RUN_PATH'
15876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15878 hardcode_shlibpath_var_GCJ=no
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15888 $as_echo "$ld_shlibs_GCJ" >&6; }
15889 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15891 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15892 if test "$GCC" = yes; then
15893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15897 # Do we need to explicitly link libc?
15899 case "x$archive_cmds_need_lc_GCJ" in
15901 # Assume -lc should be added
15902 archive_cmds_need_lc_GCJ=yes
15904 if test "$enable_shared" = yes && test "$GCC" = yes; then
15905 case $archive_cmds_GCJ in
15907 # FIXME: we may have to deal with multi-command sequences.
15910 # Test whether the compiler implicitly links with -lc since on some
15911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15912 # to ld, don't add -lc before -lgcc.
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15919 (eval $ac_compile) 2>&5
15921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15922 test $ac_status = 0; } 2>conftest.err; then
15925 libobjs=conftest.$ac_objext
15927 wl=$lt_prog_compiler_wl_GCJ
15933 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15934 allow_undefined_flag_GCJ=
15935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15936 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939 test $ac_status = 0; }
15941 archive_cmds_need_lc_GCJ=no
15943 archive_cmds_need_lc_GCJ=yes
15945 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15947 cat conftest.err 1>&5
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15951 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15959 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15960 library_names_spec=
15961 libname_spec='lib$name'
15965 postuninstall_cmds=
15969 shlibpath_overrides_runpath=unknown
15971 dynamic_linker="$host_os ld.so"
15972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973 if test "$GCC" = yes; then
15974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976 # if the path contains ";" then we assume it to be the separator
15977 # otherwise default to the standard path separator (i.e. ":") - it is
15978 # assumed that no part of a normal pathname contains ";" but that should
15979 # okay in the real world where ";" in dirpaths is itself problematic.
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15987 need_lib_prefix=unknown
15988 hardcode_into_libs=no
15990 # when you set need_version to no, make sure it does not cause -set_version
15991 # flags to be left without arguments
15992 need_version=unknown
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998 shlibpath_var=LIBPATH
16000 # AIX 3 has no versioning support, so we append a major version to the name.
16001 soname_spec='${libname}${release}${shared_ext}$major'
16008 hardcode_into_libs=yes
16009 if test "$host_cpu" = ia64; then
16010 # AIX 5 supports IA64
16011 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012 shlibpath_var=LD_LIBRARY_PATH
16014 # With GCC up to 2.95.x, collect2 would create an import file
16015 # for dependence libraries. The import file would start with
16016 # the line `#! .'. This would cause the generated library to
16017 # depend on `.', always an invalid library. This was fixed in
16018 # development snapshots of GCC prior to 3.0.
16020 aix4 | aix4.[01] | aix4.[01].*)
16021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16023 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16026 can_build_shared=no
16030 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031 # soname into executable. Probably we can add versioning support to
16032 # collect2, so additional links can be useful in future.
16033 if test "$aix_use_runtimelinking" = yes; then
16034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035 # instead of lib<name>.a to let people know that these are not
16036 # typical AIX shared libraries.
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039 # We preserve .a as extension for shared libraries through AIX4.2
16040 # and later when we are not doing run time linking.
16041 library_names_spec='${libname}${release}.a $libname.a'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LIBPATH
16049 library_names_spec='$libname.ixlibrary $libname.a'
16050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051 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'
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16074 cygwin* | mingw* | pw32*)
16075 version_type=windows
16080 case $GCC,$host_os in
16081 yes,cygwin* | yes,mingw* | yes,pw32*)
16082 library_names_spec='$libname.dll.a'
16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084 postinstall_cmds='base_file=`basename \${file}`~
16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086 dldir=$destdir/`dirname \$dlpath`~
16087 test -d \$dldir || mkdir -p \$dldir~
16088 $install_prog $dir/$dlname \$dldir/$dlname'
16089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16090 dlpath=$dir/\$dldll~
16092 shlibpath_overrides_runpath=yes
16096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16097 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16101 # MinGW DLLs use traditional 'lib' prefix
16102 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16104 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16105 # It is most probably a Windows format PATH printed by
16106 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16107 # path with ; separators, and with drive letters. We can handle the
16108 # drive letters (cygwin fileutils understands them), so leave them,
16109 # especially as we might pass files found there to a mingw objdump,
16110 # which wouldn't understand a cygwinified path. Ahh.
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16117 # pw32 DLLs use 'pw' prefix rather than 'lib'
16118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16127 dynamic_linker='Win32 ld.exe'
16128 # FIXME: first we should search . and the directory the executable is in
16132 darwin* | rhapsody*)
16133 dynamic_linker="$host_os dyld"
16134 version_type=darwin
16137 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16138 soname_spec='${libname}${release}${major}$shared_ext'
16139 shlibpath_overrides_runpath=yes
16140 shlibpath_var=DYLD_LIBRARY_PATH
16141 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16142 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16143 if test "$GCC" = yes; then
16144 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"`
16146 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 shlibpath_var=LD_LIBRARY_PATH
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=no
16172 hardcode_into_libs=yes
16173 dynamic_linker='GNU ld.so'
16177 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16178 version_type=freebsd-$objformat
16179 case $version_type in
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16190 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16195 freebsd3.01* | freebsdelf3.01*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16200 shlibpath_overrides_runpath=no
16201 hardcode_into_libs=yes
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 hardcode_into_libs=yes
16216 hpux9* | hpux10* | hpux11*)
16217 # Give a soname corresponding to the major version so that dld.sl refuses to
16218 # link against other versions.
16222 case "$host_cpu" in
16225 hardcode_into_libs=yes
16226 dynamic_linker="$host_os dld.so"
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 if test "X$HPUX_IA64_MODE" = X32; then
16232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16240 hardcode_into_libs=yes
16241 dynamic_linker="$host_os dld.sl"
16242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251 dynamic_linker="$host_os dld.sl"
16252 shlibpath_var=SHLIB_PATH
16253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16258 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16259 postinstall_cmds='chmod 555 $lib'
16262 irix5* | irix6* | nonstopux*)
16264 nonstopux*) version_type=nonstopux ;;
16266 if test "$lt_cv_prog_gnu_ld" = yes; then
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16277 irix5* | nonstopux*)
16278 libsuff= shlibsuff=
16281 case $LD in # libtool.m4 will add one of these switches to LD
16282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16283 libsuff= shlibsuff= libmagic=32-bit;;
16284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16285 libsuff=32 shlibsuff=N32 libmagic=N32;;
16286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16288 *) libsuff= shlibsuff= libmagic=never-match;;
16292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16293 shlibpath_overrides_runpath=no
16294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16296 hardcode_into_libs=yes
16299 # No shared lib support for Linux oldld, aout, or coff.
16300 linux*oldld* | linux*aout* | linux*coff*)
16304 # This must be Linux ELF.
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 shlibpath_overrides_runpath=no
16314 # This implies no fast_install, which is unacceptable.
16315 # Some rework will be needed to allow for fast_install
16316 # before this can be enabled.
16317 hardcode_into_libs=yes
16319 # We used to test for /lib/ld.so.1 and disable shared libraries on
16320 # powerpc, because MkLinux only supported shared libraries with the
16321 # GNU dynamic linker. Since this was broken with cross compilers,
16322 # most powerpc-linux boxes support dynamic linking these days and
16323 # people can always --disable-shared, the test was removed, and we
16324 # assume the GNU/Linux dynamic linker is in use.
16325 dynamic_linker='GNU/Linux ld.so'
16332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16335 dynamic_linker='NetBSD (a.out) ld.so'
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 dynamic_linker='NetBSD ld.elf_so'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16343 hardcode_into_libs=yes
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=yes
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 shlibpath_overrides_runpath=yes
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372 openbsd2.[89] | openbsd2.[89].*)
16373 shlibpath_overrides_runpath=no
16376 shlibpath_overrides_runpath=yes
16380 shlibpath_overrides_runpath=yes
16385 libname_spec='$name'
16388 library_names_spec='$libname${shared_ext} $libname.a'
16389 dynamic_linker='OS/2 ld.exe'
16390 shlibpath_var=LIBPATH
16393 osf3* | osf4* | osf5*)
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16401 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 hardcode_into_libs=yes
16420 # ldd complains unless libraries are executable
16421 postinstall_cmds='chmod +x $lib'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16430 if test "$with_gnu_ld" = yes; then
16436 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 case $host_vendor in
16443 shlibpath_overrides_runpath=no
16445 export_dynamic_flag_spec='${wl}-Blargedynsym'
16446 runpath_var=LD_RUN_PATH
16454 shlibpath_overrides_runpath=no
16455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16461 if test -d /usr/nec ;then
16463 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16464 soname_spec='$libname${shared_ext}.$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 shlibpath_var=LD_LIBRARY_PATH
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16481 $as_echo "$dynamic_linker" >&6; }
16482 test "$dynamic_linker" = no && can_build_shared=no
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16486 hardcode_action_GCJ=
16487 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16488 test -n "$runpath_var GCJ" || \
16489 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16491 # We can hardcode non-existant directories.
16492 if test "$hardcode_direct_GCJ" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16497 test "$hardcode_minus_L_GCJ" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action_GCJ=relink
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action_GCJ=immediate
16505 # We cannot hardcode anything, or else we can only hardcode existing
16507 hardcode_action_GCJ=unsupported
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16510 $as_echo "$hardcode_action_GCJ" >&6; }
16512 if test "$hardcode_action_GCJ" = relink; then
16513 # Fast installation is not supported
16514 enable_fast_install=no
16515 elif test "$shlibpath_overrides_runpath" = yes ||
16516 test "$enable_shared" = no; then
16517 # Fast installation is not necessary
16518 enable_fast_install=needless
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16524 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16525 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16529 $as_echo "yes" >&6; }
16531 # FIXME - insert some real tests, host_os isn't really good enough
16534 if test -n "$STRIP" ; then
16535 striplib="$STRIP -x"
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16550 if test "x$enable_dlopen" != xyes; then
16551 enable_dlopen=unknown
16552 enable_dlopen_self=unknown
16553 enable_dlopen_self_static=unknown
16560 lt_cv_dlopen="load_add_on"
16562 lt_cv_dlopen_self=yes
16566 lt_cv_dlopen="LoadLibrary"
16571 lt_cv_dlopen="dlopen"
16576 # if libdl is installed we need to link against it
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16579 if ${ac_cv_lib_dl_dlopen+:} false; then :
16580 $as_echo_n "(cached) " >&6
16582 ac_check_lib_save_LIBS=$LIBS
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16602 if ac_fn_c_try_link "$LINENO"; then :
16603 ac_cv_lib_dl_dlopen=yes
16605 ac_cv_lib_dl_dlopen=no
16607 rm -f core conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16617 lt_cv_dlopen="dyld"
16619 lt_cv_dlopen_self=yes
16626 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16627 if test "x$ac_cv_func_shl_load" = xyes; then :
16628 lt_cv_dlopen="shl_load"
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16632 if ${ac_cv_lib_dld_shl_load+:} false; then :
16633 $as_echo_n "(cached) " >&6
16635 ac_check_lib_save_LIBS=$LIBS
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16640 /* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply. */
16650 return shl_load ();
16655 if ac_fn_c_try_link "$LINENO"; then :
16656 ac_cv_lib_dld_shl_load=yes
16658 ac_cv_lib_dld_shl_load=no
16660 rm -f core conftest.err conftest.$ac_objext \
16661 conftest$ac_exeext conftest.$ac_ext
16662 LIBS=$ac_check_lib_save_LIBS
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16666 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16667 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16670 if test "x$ac_cv_func_dlopen" = xyes; then :
16671 lt_cv_dlopen="dlopen"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16675 if ${ac_cv_lib_dl_dlopen+:} false; then :
16676 $as_echo_n "(cached) " >&6
16678 ac_check_lib_save_LIBS=$LIBS
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16683 /* Override any GCC internal prototype to avoid an error.
16684 Use char because int might match the return type of a GCC
16685 builtin and then its argument prototype would still apply. */
16698 if ac_fn_c_try_link "$LINENO"; then :
16699 ac_cv_lib_dl_dlopen=yes
16701 ac_cv_lib_dl_dlopen=no
16703 rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705 LIBS=$ac_check_lib_save_LIBS
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16714 if ${ac_cv_lib_svld_dlopen+:} false; then :
16715 $as_echo_n "(cached) " >&6
16717 ac_check_lib_save_LIBS=$LIBS
16718 LIBS="-lsvld $LIBS"
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16737 if ac_fn_c_try_link "$LINENO"; then :
16738 ac_cv_lib_svld_dlopen=yes
16740 ac_cv_lib_svld_dlopen=no
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16748 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16753 if ${ac_cv_lib_dld_dld_link+:} false; then :
16754 $as_echo_n "(cached) " >&6
16756 ac_check_lib_save_LIBS=$LIBS
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16771 return dld_link ();
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 ac_cv_lib_dld_dld_link=yes
16779 ac_cv_lib_dld_dld_link=no
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16809 if test "x$lt_cv_dlopen" != xno; then
16815 case $lt_cv_dlopen in
16817 save_CPPFLAGS="$CPPFLAGS"
16818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16820 save_LDFLAGS="$LDFLAGS"
16821 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16824 LIBS="$lt_cv_dlopen_libs $LIBS"
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16828 if ${lt_cv_dlopen_self+:} false; then :
16829 $as_echo_n "(cached) " >&6
16831 if test "$cross_compiling" = yes; then :
16832 lt_cv_dlopen_self=cross
16834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16835 lt_status=$lt_dlunknown
16836 cat > conftest.$ac_ext <<EOF
16837 #line 16837 "configure"
16838 #include "confdefs.h"
16847 # define LT_DLGLOBAL RTLD_GLOBAL
16850 # define LT_DLGLOBAL DL_GLOBAL
16852 # define LT_DLGLOBAL 0
16856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16857 find out it does not work in some platform. */
16858 #ifndef LT_DLLAZY_OR_NOW
16860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16863 # define LT_DLLAZY_OR_NOW DL_LAZY
16866 # define LT_DLLAZY_OR_NOW RTLD_NOW
16869 # define LT_DLLAZY_OR_NOW DL_NOW
16871 # define LT_DLLAZY_OR_NOW 0
16879 extern "C" void exit (int);
16882 void fnord() { int i=42;}
16885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16886 int status = $lt_dlunknown;
16890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16891 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16892 /* dlclose (self); */
16898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16899 (eval $ac_link) 2>&5
16901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16903 (./conftest; exit; ) 2>/dev/null
16905 case x$lt_status in
16906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16908 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16911 # compilation failed
16912 lt_cv_dlopen_self=no
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16920 $as_echo "$lt_cv_dlopen_self" >&6; }
16922 if test "x$lt_cv_dlopen_self" = xyes; then
16923 LDFLAGS="$LDFLAGS $link_static_flag"
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16926 if ${lt_cv_dlopen_self_static+:} false; then :
16927 $as_echo_n "(cached) " >&6
16929 if test "$cross_compiling" = yes; then :
16930 lt_cv_dlopen_self_static=cross
16932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16933 lt_status=$lt_dlunknown
16934 cat > conftest.$ac_ext <<EOF
16935 #line 16935 "configure"
16936 #include "confdefs.h"
16945 # define LT_DLGLOBAL RTLD_GLOBAL
16948 # define LT_DLGLOBAL DL_GLOBAL
16950 # define LT_DLGLOBAL 0
16954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16955 find out it does not work in some platform. */
16956 #ifndef LT_DLLAZY_OR_NOW
16958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16961 # define LT_DLLAZY_OR_NOW DL_LAZY
16964 # define LT_DLLAZY_OR_NOW RTLD_NOW
16967 # define LT_DLLAZY_OR_NOW DL_NOW
16969 # define LT_DLLAZY_OR_NOW 0
16977 extern "C" void exit (int);
16980 void fnord() { int i=42;}
16983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16984 int status = $lt_dlunknown;
16988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16990 /* dlclose (self); */
16996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16997 (eval $ac_link) 2>&5
16999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17000 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17001 (./conftest; exit; ) 2>/dev/null
17003 case x$lt_status in
17004 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17005 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17006 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17009 # compilation failed
17010 lt_cv_dlopen_self_static=no
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17018 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17021 CPPFLAGS="$save_CPPFLAGS"
17022 LDFLAGS="$save_LDFLAGS"
17027 case $lt_cv_dlopen_self in
17028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17029 *) enable_dlopen_self=unknown ;;
17032 case $lt_cv_dlopen_self_static in
17033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17034 *) enable_dlopen_self_static=unknown ;;
17039 # The else clause should only fire when bootstrapping the
17040 # libtool distribution, otherwise you forgot to ship ltmain.sh
17041 # with your package, and you will get complaints that there are
17042 # no rules to generate ltmain.sh.
17043 if test -f "$ltmain"; then
17044 # See if we are running on zsh, and set the options which allow our commands through
17045 # without removal of \ escapes.
17046 if test -n "${ZSH_VERSION+set}" ; then
17047 setopt NO_GLOB_SUBST
17049 # Now quote all the things that may contain metacharacters while being
17050 # careful not to overquote the AC_SUBSTed values. We take copies of the
17051 # variables and quote the copies for generation of the libtool script.
17052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17056 deplibs_check_method reload_flag reload_cmds need_locks \
17057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17058 lt_cv_sys_global_symbol_to_c_name_address \
17059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17060 old_postinstall_cmds old_postuninstall_cmds \
17064 lt_prog_compiler_wl_GCJ \
17065 lt_prog_compiler_pic_GCJ \
17066 lt_prog_compiler_static_GCJ \
17067 lt_prog_compiler_no_builtin_flag_GCJ \
17068 export_dynamic_flag_spec_GCJ \
17069 thread_safe_flag_spec_GCJ \
17070 whole_archive_flag_spec_GCJ \
17071 enable_shared_with_static_runtimes_GCJ \
17072 old_archive_cmds_GCJ \
17073 old_archive_from_new_cmds_GCJ \
17074 predep_objects_GCJ \
17075 postdep_objects_GCJ \
17078 compiler_lib_search_path_GCJ \
17080 archive_expsym_cmds_GCJ \
17081 postinstall_cmds_GCJ \
17082 postuninstall_cmds_GCJ \
17083 old_archive_from_expsyms_cmds_GCJ \
17084 allow_undefined_flag_GCJ \
17085 no_undefined_flag_GCJ \
17086 export_symbols_cmds_GCJ \
17087 hardcode_libdir_flag_spec_GCJ \
17088 hardcode_libdir_flag_spec_ld_GCJ \
17089 hardcode_libdir_separator_GCJ \
17090 hardcode_automatic_GCJ \
17092 module_expsym_cmds_GCJ \
17093 lt_cv_prog_compiler_c_o_GCJ \
17094 exclude_expsyms_GCJ \
17095 include_expsyms_GCJ; do
17098 old_archive_cmds_GCJ | \
17099 old_archive_from_new_cmds_GCJ | \
17100 archive_cmds_GCJ | \
17101 archive_expsym_cmds_GCJ | \
17102 module_cmds_GCJ | \
17103 module_expsym_cmds_GCJ | \
17104 old_archive_from_expsyms_cmds_GCJ | \
17105 export_symbols_cmds_GCJ | \
17106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107 postinstall_cmds | postuninstall_cmds | \
17108 old_postinstall_cmds | old_postuninstall_cmds | \
17109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110 # Double-quote double-evaled strings.
17111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17120 *'\$0 --fallback-echo"')
17121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17127 cat <<__EOF__ >> "$cfgfile"
17128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17132 # Shell to use when invoking shell scripts.
17135 # Whether or not to build shared libraries.
17136 build_libtool_libs=$enable_shared
17138 # Whether or not to build static libraries.
17139 build_old_libs=$enable_static
17141 # Whether or not to add -lc for building shared libraries.
17142 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17144 # Whether or not to disallow shared libs when runtime libs are static
17145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17147 # Whether or not to optimize for fast installation.
17148 fast_install=$enable_fast_install
17151 host_alias=$host_alias
17154 # An echo program that does not interpret backslashes.
17159 AR_FLAGS=$lt_AR_FLAGS
17164 # A language-specific compiler.
17165 CC=$lt_compiler_GCJ
17167 # Is the compiler the GNU C compiler?
17173 # The linker used to build libraries.
17176 # Whether we need hard or soft links.
17179 # A BSD-compatible nm program.
17182 # A symbol stripping program
17185 # Used to examine libraries when file_magic_cmd begins "file"
17186 MAGIC_CMD=$MAGIC_CMD
17188 # Used on cygwin: DLL creation program.
17191 # Used on cygwin: object dumper.
17194 # Used on cygwin: assembler.
17197 # The name of the directory that contains temporary libtool files.
17200 # How to create reloadable object files.
17201 reload_flag=$lt_reload_flag
17202 reload_cmds=$lt_reload_cmds
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl_GCJ
17207 # Object file suffix (normally "o").
17208 objext="$ac_objext"
17210 # Old archive suffix (normally "a").
17213 # Shared library suffix (normally ".so").
17216 # Executable file suffix (normally "").
17219 # Additional compiler flags for building library objects.
17220 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17223 # What is the maximum length of a command?
17224 max_cmd_len=$lt_cv_sys_max_cmd_len
17226 # Does compiler simultaneously support -c and -o options?
17227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17229 # Must we lock files when doing compilation ?
17230 need_locks=$lt_need_locks
17232 # Do we need the lib prefix for modules?
17233 need_lib_prefix=$need_lib_prefix
17235 # Do we need a version for libraries?
17236 need_version=$need_version
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17247 # Compiler flag to prevent dynamic linking.
17248 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17250 # Compiler flag to turn off builtin functions.
17251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17253 # Compiler flag to allow reflexive dlopens.
17254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17256 # Compiler flag to generate shared objects directly from archives.
17257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17259 # Compiler flag to generate thread-safe objects.
17260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17262 # Library versioning type.
17263 version_type=$version_type
17265 # Format of library name prefix.
17266 libname_spec=$lt_libname_spec
17268 # List of archive names. First name is the real one, the rest are links.
17269 # The last name is the one that the linker finds with -lNAME.
17270 library_names_spec=$lt_library_names_spec
17272 # The coded name of the library, if different from the real name.
17273 soname_spec=$lt_soname_spec
17275 # Commands used to build and install an old-style archive.
17277 old_archive_cmds=$lt_old_archive_cmds_GCJ
17278 old_postinstall_cmds=$lt_old_postinstall_cmds
17279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17281 # Create an old-style archive from a shared archive.
17282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17284 # Create a temporary old-style archive to link instead of a shared archive.
17285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17287 # Commands used to build and install a shared archive.
17288 archive_cmds=$lt_archive_cmds_GCJ
17289 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17290 postinstall_cmds=$lt_postinstall_cmds
17291 postuninstall_cmds=$lt_postuninstall_cmds
17293 # Commands used to build a loadable module (assumed same as above if empty)
17294 module_cmds=$lt_module_cmds_GCJ
17295 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17297 # Commands to strip libraries.
17298 old_striplib=$lt_old_striplib
17299 striplib=$lt_striplib
17301 # Dependencies to place before the objects being linked to create a
17303 predep_objects=$lt_predep_objects_GCJ
17305 # Dependencies to place after the objects being linked to create a
17307 postdep_objects=$lt_postdep_objects_GCJ
17309 # Dependencies to place before the objects being linked to create a
17311 predeps=$lt_predeps_GCJ
17313 # Dependencies to place after the objects being linked to create a
17315 postdeps=$lt_postdeps_GCJ
17317 # The library search path used internally by the compiler when linking
17318 # a shared library.
17319 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17321 # Method to check whether dependent libraries are shared objects.
17322 deplibs_check_method=$lt_deplibs_check_method
17324 # Command to use when deplibs_check_method == file_magic.
17325 file_magic_cmd=$lt_file_magic_cmd
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17330 # Flag that forces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag_GCJ
17333 # Commands used to finish a libtool library installation in a directory.
17334 finish_cmds=$lt_finish_cmds
17336 # Same as above, but a single script fragment to be evaled but not shown.
17337 finish_eval=$lt_finish_eval
17339 # Take the output of nm and produce a listing of raw symbols and C names.
17340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17342 # Transform the output of nm in a proper C declaration
17343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17345 # Transform the output of nm in a C name address pair
17346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17348 # This is the shared library runtime path variable.
17349 runpath_var=$runpath_var
17351 # This is the shared library path variable.
17352 shlibpath_var=$shlibpath_var
17354 # Is shlibpath searched before the hard-coded library search path?
17355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17357 # How to hardcode a shared library path into an executable.
17358 hardcode_action=$hardcode_action_GCJ
17360 # Whether we should hardcode library paths into libraries.
17361 hardcode_into_libs=$hardcode_into_libs
17363 # Flag to hardcode \$libdir into a binary during linking.
17364 # This must work even if \$libdir does not exist.
17365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17367 # If ld is used when linking, flag to hardcode \$libdir into
17368 # a binary during linking. This must work even if \$libdir does
17370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17372 # Whether we need a single -rpath flag with a separated argument.
17373 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17376 # resulting binary.
17377 hardcode_direct=$hardcode_direct_GCJ
17379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17380 # resulting binary.
17381 hardcode_minus_L=$hardcode_minus_L_GCJ
17383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17384 # the resulting binary.
17385 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17387 # Set to yes if building a shared library automatically hardcodes DIR into the library
17388 # and all subsequent libraries and executables linked against it.
17389 hardcode_automatic=$hardcode_automatic_GCJ
17391 # Variables whose values should be saved in libtool wrapper scripts and
17392 # restored at relink time.
17393 variables_saved_for_relink="$variables_saved_for_relink"
17395 # Whether libtool must link a program against all its dependency libraries.
17396 link_all_deplibs=$link_all_deplibs_GCJ
17398 # Compile-time system search path for libraries
17399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17401 # Run-time system search path for libraries
17402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17404 # Fix the shell variable \$srcfile for the compiler.
17405 fix_srcfile_path="$fix_srcfile_path_GCJ"
17407 # Set to yes if exported symbols are required.
17408 always_export_symbols=$always_export_symbols_GCJ
17410 # The commands to list exported symbols.
17411 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17413 # The commands to extract the exported symbol list from a shared archive.
17414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17416 # Symbols that should not be listed in the preloaded symbols.
17417 exclude_expsyms=$lt_exclude_expsyms_GCJ
17419 # Symbols that must always be exported.
17420 include_expsyms=$lt_include_expsyms_GCJ
17422 # ### END LIBTOOL TAG CONFIG: $tagname
17428 # If there is no Makefile yet, we rely on a make rule to execute
17429 # `config.status --recheck' to rerun these tests and create the
17430 # libtool script then.
17431 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17432 if test -f "$ltmain_in"; then
17433 test -f Makefile && make "$ltmain"
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17454 # Source file extension for RC test sources.
17457 # Object file extension for compiled RC test sources.
17461 # Code to be used in simple compile tests
17462 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17464 # Code to be used in simple link tests
17465 lt_simple_link_test_code="$lt_simple_compile_test_code"
17467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17469 # If no C compiler was specified, use CC.
17472 # Allow CC to be a program name with arguments.
17476 # Allow CC to be a program name with arguments.
17481 lt_cv_prog_compiler_c_o_RC=yes
17483 # The else clause should only fire when bootstrapping the
17484 # libtool distribution, otherwise you forgot to ship ltmain.sh
17485 # with your package, and you will get complaints that there are
17486 # no rules to generate ltmain.sh.
17487 if test -f "$ltmain"; then
17488 # See if we are running on zsh, and set the options which allow our commands through
17489 # without removal of \ escapes.
17490 if test -n "${ZSH_VERSION+set}" ; then
17491 setopt NO_GLOB_SUBST
17493 # Now quote all the things that may contain metacharacters while being
17494 # careful not to overquote the AC_SUBSTed values. We take copies of the
17495 # variables and quote the copies for generation of the libtool script.
17496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17500 deplibs_check_method reload_flag reload_cmds need_locks \
17501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17502 lt_cv_sys_global_symbol_to_c_name_address \
17503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17504 old_postinstall_cmds old_postuninstall_cmds \
17508 lt_prog_compiler_wl_RC \
17509 lt_prog_compiler_pic_RC \
17510 lt_prog_compiler_static_RC \
17511 lt_prog_compiler_no_builtin_flag_RC \
17512 export_dynamic_flag_spec_RC \
17513 thread_safe_flag_spec_RC \
17514 whole_archive_flag_spec_RC \
17515 enable_shared_with_static_runtimes_RC \
17516 old_archive_cmds_RC \
17517 old_archive_from_new_cmds_RC \
17518 predep_objects_RC \
17519 postdep_objects_RC \
17522 compiler_lib_search_path_RC \
17524 archive_expsym_cmds_RC \
17525 postinstall_cmds_RC \
17526 postuninstall_cmds_RC \
17527 old_archive_from_expsyms_cmds_RC \
17528 allow_undefined_flag_RC \
17529 no_undefined_flag_RC \
17530 export_symbols_cmds_RC \
17531 hardcode_libdir_flag_spec_RC \
17532 hardcode_libdir_flag_spec_ld_RC \
17533 hardcode_libdir_separator_RC \
17534 hardcode_automatic_RC \
17536 module_expsym_cmds_RC \
17537 lt_cv_prog_compiler_c_o_RC \
17538 exclude_expsyms_RC \
17539 include_expsyms_RC; do
17542 old_archive_cmds_RC | \
17543 old_archive_from_new_cmds_RC | \
17544 archive_cmds_RC | \
17545 archive_expsym_cmds_RC | \
17547 module_expsym_cmds_RC | \
17548 old_archive_from_expsyms_cmds_RC | \
17549 export_symbols_cmds_RC | \
17550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17551 postinstall_cmds | postuninstall_cmds | \
17552 old_postinstall_cmds | old_postuninstall_cmds | \
17553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17554 # Double-quote double-evaled strings.
17555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17564 *'\$0 --fallback-echo"')
17565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17571 cat <<__EOF__ >> "$cfgfile"
17572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17576 # Shell to use when invoking shell scripts.
17579 # Whether or not to build shared libraries.
17580 build_libtool_libs=$enable_shared
17582 # Whether or not to build static libraries.
17583 build_old_libs=$enable_static
17585 # Whether or not to add -lc for building shared libraries.
17586 build_libtool_need_lc=$archive_cmds_need_lc_RC
17588 # Whether or not to disallow shared libs when runtime libs are static
17589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17591 # Whether or not to optimize for fast installation.
17592 fast_install=$enable_fast_install
17595 host_alias=$host_alias
17598 # An echo program that does not interpret backslashes.
17603 AR_FLAGS=$lt_AR_FLAGS
17608 # A language-specific compiler.
17611 # Is the compiler the GNU C compiler?
17617 # The linker used to build libraries.
17620 # Whether we need hard or soft links.
17623 # A BSD-compatible nm program.
17626 # A symbol stripping program
17629 # Used to examine libraries when file_magic_cmd begins "file"
17630 MAGIC_CMD=$MAGIC_CMD
17632 # Used on cygwin: DLL creation program.
17635 # Used on cygwin: object dumper.
17638 # Used on cygwin: assembler.
17641 # The name of the directory that contains temporary libtool files.
17644 # How to create reloadable object files.
17645 reload_flag=$lt_reload_flag
17646 reload_cmds=$lt_reload_cmds
17648 # How to pass a linker flag through the compiler.
17649 wl=$lt_lt_prog_compiler_wl_RC
17651 # Object file suffix (normally "o").
17652 objext="$ac_objext"
17654 # Old archive suffix (normally "a").
17657 # Shared library suffix (normally ".so").
17660 # Executable file suffix (normally "").
17663 # Additional compiler flags for building library objects.
17664 pic_flag=$lt_lt_prog_compiler_pic_RC
17667 # What is the maximum length of a command?
17668 max_cmd_len=$lt_cv_sys_max_cmd_len
17670 # Does compiler simultaneously support -c and -o options?
17671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17673 # Must we lock files when doing compilation ?
17674 need_locks=$lt_need_locks
17676 # Do we need the lib prefix for modules?
17677 need_lib_prefix=$need_lib_prefix
17679 # Do we need a version for libraries?
17680 need_version=$need_version
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17691 # Compiler flag to prevent dynamic linking.
17692 link_static_flag=$lt_lt_prog_compiler_static_RC
17694 # Compiler flag to turn off builtin functions.
17695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17703 # Compiler flag to generate thread-safe objects.
17704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17706 # Library versioning type.
17707 version_type=$version_type
17709 # Format of library name prefix.
17710 libname_spec=$lt_libname_spec
17712 # List of archive names. First name is the real one, the rest are links.
17713 # The last name is the one that the linker finds with -lNAME.
17714 library_names_spec=$lt_library_names_spec
17716 # The coded name of the library, if different from the real name.
17717 soname_spec=$lt_soname_spec
17719 # Commands used to build and install an old-style archive.
17721 old_archive_cmds=$lt_old_archive_cmds_RC
17722 old_postinstall_cmds=$lt_old_postinstall_cmds
17723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17725 # Create an old-style archive from a shared archive.
17726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17728 # Create a temporary old-style archive to link instead of a shared archive.
17729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17731 # Commands used to build and install a shared archive.
17732 archive_cmds=$lt_archive_cmds_RC
17733 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17734 postinstall_cmds=$lt_postinstall_cmds
17735 postuninstall_cmds=$lt_postuninstall_cmds
17737 # Commands used to build a loadable module (assumed same as above if empty)
17738 module_cmds=$lt_module_cmds_RC
17739 module_expsym_cmds=$lt_module_expsym_cmds_RC
17741 # Commands to strip libraries.
17742 old_striplib=$lt_old_striplib
17743 striplib=$lt_striplib
17745 # Dependencies to place before the objects being linked to create a
17747 predep_objects=$lt_predep_objects_RC
17749 # Dependencies to place after the objects being linked to create a
17751 postdep_objects=$lt_postdep_objects_RC
17753 # Dependencies to place before the objects being linked to create a
17755 predeps=$lt_predeps_RC
17757 # Dependencies to place after the objects being linked to create a
17759 postdeps=$lt_postdeps_RC
17761 # The library search path used internally by the compiler when linking
17762 # a shared library.
17763 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17765 # Method to check whether dependent libraries are shared objects.
17766 deplibs_check_method=$lt_deplibs_check_method
17768 # Command to use when deplibs_check_method == file_magic.
17769 file_magic_cmd=$lt_file_magic_cmd
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag_RC
17774 # Flag that forces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag_RC
17777 # Commands used to finish a libtool library installation in a directory.
17778 finish_cmds=$lt_finish_cmds
17780 # Same as above, but a single script fragment to be evaled but not shown.
17781 finish_eval=$lt_finish_eval
17783 # Take the output of nm and produce a listing of raw symbols and C names.
17784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17786 # Transform the output of nm in a proper C declaration
17787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17789 # Transform the output of nm in a C name address pair
17790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17792 # This is the shared library runtime path variable.
17793 runpath_var=$runpath_var
17795 # This is the shared library path variable.
17796 shlibpath_var=$shlibpath_var
17798 # Is shlibpath searched before the hard-coded library search path?
17799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_RC
17804 # Whether we should hardcode library paths into libraries.
17805 hardcode_into_libs=$hardcode_into_libs
17807 # Flag to hardcode \$libdir into a binary during linking.
17808 # This must work even if \$libdir does not exist.
17809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17811 # If ld is used when linking, flag to hardcode \$libdir into
17812 # a binary during linking. This must work even if \$libdir does
17814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17816 # Whether we need a single -rpath flag with a separated argument.
17817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17820 # resulting binary.
17821 hardcode_direct=$hardcode_direct_RC
17823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17824 # resulting binary.
17825 hardcode_minus_L=$hardcode_minus_L_RC
17827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17828 # the resulting binary.
17829 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17831 # Set to yes if building a shared library automatically hardcodes DIR into the library
17832 # and all subsequent libraries and executables linked against it.
17833 hardcode_automatic=$hardcode_automatic_RC
17835 # Variables whose values should be saved in libtool wrapper scripts and
17836 # restored at relink time.
17837 variables_saved_for_relink="$variables_saved_for_relink"
17839 # Whether libtool must link a program against all its dependency libraries.
17840 link_all_deplibs=$link_all_deplibs_RC
17842 # Compile-time system search path for libraries
17843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17845 # Run-time system search path for libraries
17846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17848 # Fix the shell variable \$srcfile for the compiler.
17849 fix_srcfile_path="$fix_srcfile_path_RC"
17851 # Set to yes if exported symbols are required.
17852 always_export_symbols=$always_export_symbols_RC
17854 # The commands to list exported symbols.
17855 export_symbols_cmds=$lt_export_symbols_cmds_RC
17857 # The commands to extract the exported symbol list from a shared archive.
17858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17860 # Symbols that should not be listed in the preloaded symbols.
17861 exclude_expsyms=$lt_exclude_expsyms_RC
17863 # Symbols that must always be exported.
17864 include_expsyms=$lt_include_expsyms_RC
17866 # ### END LIBTOOL TAG CONFIG: $tagname
17872 # If there is no Makefile yet, we rely on a make rule to execute
17873 # `config.status --recheck' to rerun these tests and create the
17874 # libtool script then.
17875 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17876 if test -f "$ltmain_in"; then
17877 test -f Makefile && make "$ltmain"
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17893 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
17897 # Append the new tag name to the list of available tags.
17898 if test -n "$tagname" ; then
17899 available_tags="$available_tags $tagname"
17905 # Now substitute the updated list of available tags.
17906 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17907 mv "${ofile}T" "$ofile"
17911 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
17917 # This can be used to rebuild libtool when needed
17918 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17920 # Always use our own libtool.
17921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17923 # Prevent multiple expansion
17944 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17945 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17947 # Settings for optional paths
17949 # Check whether --with-site_includes was given.
17950 if test "${with_site_includes+set}" = set; then :
17951 withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
17953 SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
17955 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'`
17958 if test -f /sw/include/db5/db.h; then
17959 CFLAGS="-I/sw/include/db5 $CFLAGS"
17960 elif test -f /sw/include/db4/db.h; then
17961 CFLAGS="-I/sw/include/db4 $CFLAGS"
17962 elif test -f /sw/include/db3/db.h; then
17963 CFLAGS="-I/sw/include/db3 $CFLAGS"
17970 # Check whether --with-site_libraries was given.
17971 if test "${with_site_libraries+set}" = set; then :
17972 withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
17974 SITE_LIBS="$SITE_LIBS -L$dir"
17976 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'`
17980 if test -f /sw/include/db5/db.h; then
17981 LIBS="-L/sw/lib -ldb-5 $LIBS"
17982 elif test -f /sw/include/db4/db.h; then
17983 LIBS="-L/sw/lib -ldb-4 $LIBS"
17984 elif test -f /sw/include/db3/db.h; then
17985 LIBS="-L/sw/lib -ldb-3 $LIBS"
17993 # Checks for libraries.
17995 # Checks for header files.
17997 # Checks for typedefs, structures, and compiler characteristics.
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17999 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18000 if ${ac_cv_c_const+:} false; then :
18001 $as_echo_n "(cached) " >&6
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18010 #ifndef __cplusplus
18011 /* Ultrix mips cc rejects this sort of thing. */
18012 typedef int charset[2];
18013 const charset cs = { 0, 0 };
18014 /* SunOS 4.1.1 cc rejects this. */
18015 char const *const *pcpcc;
18017 /* NEC SVR4.0.2 mips cc rejects this. */
18018 struct point {int x, y;};
18019 static struct point const zero = {0,0};
18020 /* AIX XL C 1.02.0.0 rejects this.
18021 It does not let you subtract one const X* pointer from another in
18022 an arm of an if-expression whose if-part is not a constant
18024 const char *g = "string";
18025 pcpcc = &g + (g ? g-g : 0);
18026 /* HPUX 7.0 cc rejects these. */
18028 ppc = (char**) pcpcc;
18029 pcpcc = (char const *const *) ppc;
18030 { /* SCO 3.2v4 cc rejects this sort of thing. */
18033 char const *s = 0 ? (char *) 0 : (char const *) 0;
18038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18039 int x[] = {25, 17};
18040 const int *foo = &x[0];
18043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18044 typedef const int *iptr;
18048 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18050 struct s { int j; const int *ap[3]; } bx;
18051 struct s *b = &bx; b->j = 5;
18053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18054 const int foo = 10;
18055 if (!foo) return 0;
18057 return !cs[0] && !zero.x;
18064 if ac_fn_c_try_compile "$LINENO"; then :
18069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18072 $as_echo "$ac_cv_c_const" >&6; }
18073 if test $ac_cv_c_const = no; then
18075 $as_echo "#define const /**/" >>confdefs.h
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18080 $as_echo_n "checking for inline... " >&6; }
18081 if ${ac_cv_c_inline+:} false; then :
18082 $as_echo_n "(cached) " >&6
18085 for ac_kw in inline __inline__ __inline; do
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 #ifndef __cplusplus
18090 static $ac_kw foo_t static_foo () {return 0; }
18091 $ac_kw foo_t foo () {return 0; }
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096 ac_cv_c_inline=$ac_kw
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 test "$ac_cv_c_inline" != no && break
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18104 $as_echo "$ac_cv_c_inline" >&6; }
18106 case $ac_cv_c_inline in
18109 case $ac_cv_c_inline in
18111 *) ac_val=$ac_cv_c_inline;;
18113 cat >>confdefs.h <<_ACEOF
18114 #ifndef __cplusplus
18115 #define inline $ac_val
18122 # The cast to long int works around a bug in the HP C Compiler
18123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18125 # This bug is HP SR number 8606223364.
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18127 $as_echo_n "checking size of int... " >&6; }
18128 if ${ac_cv_sizeof_int+:} false; then :
18129 $as_echo_n "(cached) " >&6
18131 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18134 if test "$ac_cv_type_int" = yes; then
18135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18137 as_fn_error 77 "cannot compute sizeof (int)
18138 See \`config.log' for more details" "$LINENO" 5; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18146 $as_echo "$ac_cv_sizeof_int" >&6; }
18150 cat >>confdefs.h <<_ACEOF
18151 #define SIZEOF_INT $ac_cv_sizeof_int
18155 # The cast to long int works around a bug in the HP C Compiler
18156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18158 # This bug is HP SR number 8606223364.
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18160 $as_echo_n "checking size of long... " >&6; }
18161 if ${ac_cv_sizeof_long+:} false; then :
18162 $as_echo_n "(cached) " >&6
18164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18167 if test "$ac_cv_type_long" = yes; then
18168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18170 as_fn_error 77 "cannot compute sizeof (long)
18171 See \`config.log' for more details" "$LINENO" 5; }
18173 ac_cv_sizeof_long=0
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18179 $as_echo "$ac_cv_sizeof_long" >&6; }
18183 cat >>confdefs.h <<_ACEOF
18184 #define SIZEOF_LONG $ac_cv_sizeof_long
18188 # The cast to long int works around a bug in the HP C Compiler
18189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18191 # This bug is HP SR number 8606223364.
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18193 $as_echo_n "checking size of long long... " >&6; }
18194 if ${ac_cv_sizeof_long_long+:} false; then :
18195 $as_echo_n "(cached) " >&6
18197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
18200 if test "$ac_cv_type_long_long" = yes; then
18201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18203 as_fn_error 77 "cannot compute sizeof (long long)
18204 See \`config.log' for more details" "$LINENO" 5; }
18206 ac_cv_sizeof_long_long=0
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18212 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18216 cat >>confdefs.h <<_ACEOF
18217 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18221 # The cast to long int works around a bug in the HP C Compiler
18222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18224 # This bug is HP SR number 8606223364.
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18226 $as_echo_n "checking size of void *... " >&6; }
18227 if ${ac_cv_sizeof_void_p+:} false; then :
18228 $as_echo_n "(cached) " >&6
18230 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18233 if test "$ac_cv_type_void_p" = yes; then
18234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18236 as_fn_error 77 "cannot compute sizeof (void *)
18237 See \`config.log' for more details" "$LINENO" 5; }
18239 ac_cv_sizeof_void_p=0
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18245 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18249 cat >>confdefs.h <<_ACEOF
18250 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18255 # Checks for library functions.
18256 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18257 if test "x$ac_cv_type_size_t" = xyes; then :
18261 cat >>confdefs.h <<_ACEOF
18262 #define size_t unsigned int
18267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18268 # for constant arguments. Useless!
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18270 $as_echo_n "checking for working alloca.h... " >&6; }
18271 if ${ac_cv_working_alloca_h+:} false; then :
18272 $as_echo_n "(cached) " >&6
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18276 #include <alloca.h>
18280 char *p = (char *) alloca (2 * sizeof (int));
18286 if ac_fn_c_try_link "$LINENO"; then :
18287 ac_cv_working_alloca_h=yes
18289 ac_cv_working_alloca_h=no
18291 rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18295 $as_echo "$ac_cv_working_alloca_h" >&6; }
18296 if test $ac_cv_working_alloca_h = yes; then
18298 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18303 $as_echo_n "checking for alloca... " >&6; }
18304 if ${ac_cv_func_alloca_works+:} false; then :
18305 $as_echo_n "(cached) " >&6
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 # define alloca __builtin_alloca
18313 # include <malloc.h>
18314 # define alloca _alloca
18316 # ifdef HAVE_ALLOCA_H
18317 # include <alloca.h>
18322 # ifndef alloca /* predefined by HP cc +Olibcalls */
18323 void *alloca (size_t);
18333 char *p = (char *) alloca (1);
18339 if ac_fn_c_try_link "$LINENO"; then :
18340 ac_cv_func_alloca_works=yes
18342 ac_cv_func_alloca_works=no
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18348 $as_echo "$ac_cv_func_alloca_works" >&6; }
18350 if test $ac_cv_func_alloca_works = yes; then
18352 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18355 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18356 # that cause trouble. Some versions do not even contain alloca or
18357 # contain a buggy version. If you still want to use their alloca,
18358 # use ar to extract alloca.o from them instead of compiling alloca.c.
18360 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18362 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18366 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18367 if ${ac_cv_os_cray+:} false; then :
18368 $as_echo_n "(cached) " >&6
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18372 #if defined CRAY && ! defined CRAY2
18379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18380 $EGREP "webecray" >/dev/null 2>&1; then :
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18389 $as_echo "$ac_cv_os_cray" >&6; }
18390 if test $ac_cv_os_cray = yes; then
18391 for ac_func in _getb67 GETB67 getb67; do
18392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18394 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18396 cat >>confdefs.h <<_ACEOF
18397 #define CRAY_STACKSEG_END $ac_func
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18407 $as_echo_n "checking stack direction for C alloca... " >&6; }
18408 if ${ac_cv_c_stack_direction+:} false; then :
18409 $as_echo_n "(cached) " >&6
18411 if test "$cross_compiling" = yes; then :
18412 ac_cv_c_stack_direction=0
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18416 $ac_includes_default
18418 find_stack_direction (int *addr, int depth)
18420 int dir, dummy = 0;
18423 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18424 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18425 return dir + dummy;
18429 main (int argc, char **argv)
18431 return find_stack_direction (0, argc + !argv + 20) < 0;
18434 if ac_fn_c_try_run "$LINENO"; then :
18435 ac_cv_c_stack_direction=1
18437 ac_cv_c_stack_direction=-1
18439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18440 conftest.$ac_objext conftest.beam conftest.$ac_ext
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18445 $as_echo "$ac_cv_c_stack_direction" >&6; }
18446 cat >>confdefs.h <<_ACEOF
18447 #define STACK_DIRECTION $ac_cv_c_stack_direction
18454 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
18455 if test "x$ac_cv_header_minix_config_h" = xyes; then :
18462 if test "$MINIX" = yes; then
18464 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
18467 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
18470 $as_echo "#define _MINIX 1" >>confdefs.h
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
18476 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
18477 if ${ac_cv_safe_to_define___extensions__+:} false; then :
18478 $as_echo_n "(cached) " >&6
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18483 # define __EXTENSIONS__ 1
18484 $ac_includes_default
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494 ac_cv_safe_to_define___extensions__=yes
18496 ac_cv_safe_to_define___extensions__=no
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
18501 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
18502 test $ac_cv_safe_to_define___extensions__ = yes &&
18503 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18505 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
18507 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
18509 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
18511 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18515 $as_echo_n "checking for working strnlen... " >&6; }
18516 if ${ac_cv_func_strnlen_working+:} false; then :
18517 $as_echo_n "(cached) " >&6
18519 if test "$cross_compiling" = yes; then :
18520 # Guess no on AIX systems, yes otherwise.
18522 aix*) ac_cv_func_strnlen_working=no;;
18523 *) ac_cv_func_strnlen_working=yes;;
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18528 $ac_includes_default
18534 #define S_LEN (sizeof S - 1)
18536 /* At least one implementation is buggy: that of AIX 4.3 would
18537 give strnlen (S, 1) == 3. */
18540 for (i = 0; i < S_LEN + 1; ++i)
18542 int expected = i <= S_LEN ? i : S_LEN;
18543 if (strnlen (S, i) != expected)
18552 if ac_fn_c_try_run "$LINENO"; then :
18553 ac_cv_func_strnlen_working=yes
18555 ac_cv_func_strnlen_working=no
18557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18558 conftest.$ac_objext conftest.beam conftest.$ac_ext
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18563 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18564 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
18565 *" strnlen.$ac_objext "* ) ;;
18566 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18571 if test "x$ac_cv_func_strnlen_working" = "xyes"; then
18572 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
18576 ac_config_files="$ac_config_files Makefile"
18578 cat >confcache <<\_ACEOF
18579 # This file is a shell script that caches the results of configure
18580 # tests run on this system so they can be shared between configure
18581 # scripts and configure runs, see configure's option --config-cache.
18582 # It is not useful on other systems. If it contains results you don't
18583 # want to keep, you may remove or edit it.
18585 # config.status only pays attention to the cache file if you give it
18586 # the --recheck option to rerun configure.
18588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18590 # following values.
18594 # The following way of writing the cache mishandles newlines in values,
18595 # but we know of no workaround that is simple, portable, and efficient.
18596 # So, we kill variables containing newlines.
18597 # Ultrix sh set writes to stderr and can't be redirected directly,
18598 # and sets the high bit in the cache file unless we assign to the vars.
18600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18601 eval ac_val=\$$ac_var
18605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18609 _ | IFS | as_nl) ;; #(
18610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18611 *) { eval $ac_var=; unset $ac_var;} ;;
18617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18618 *${as_nl}ac_space=\ *)
18619 # `set' does not quote correctly, so add quotes: double-quote
18620 # substitution turns \\\\ into \\, and sed turns \\ into \.
18623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18626 # `set' quotes correctly as required by POSIX, so do not add quotes.
18627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18641 if test -w "$cache_file"; then
18642 if test "x$cache_file" != "x/dev/null"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18644 $as_echo "$as_me: updating cache $cache_file" >&6;}
18645 if test ! -f "$cache_file" || test -h "$cache_file"; then
18646 cat confcache >"$cache_file"
18648 case $cache_file in #(
18650 mv -f confcache "$cache_file"$$ &&
18651 mv -f "$cache_file"$$ "$cache_file" ;; #(
18653 mv -f confcache "$cache_file" ;;
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18659 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18665 # Let make expand exec_prefix.
18666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18668 DEFS=-DHAVE_CONFIG_H
18673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18674 # 1. Remove the extension, and $U if already installed.
18675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18678 # will be set to the directory where LIBOBJS objects are built.
18679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18682 LIBOBJS=$ac_libobjs
18684 LTLIBOBJS=$ac_ltlibobjs
18688 : "${CONFIG_STATUS=./config.status}"
18690 ac_clean_files_save=$ac_clean_files
18691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18697 # Generated by $as_me.
18698 # Run this file to recreate the current configuration.
18699 # Compiler output produced by configure, useful for debugging
18700 # configure, is in config.log if it exists.
18703 ac_cs_recheck=false
18706 SHELL=\${CONFIG_SHELL-$SHELL}
18709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18710 ## -------------------- ##
18711 ## M4sh Initialization. ##
18712 ## -------------------- ##
18714 # Be more Bourne compatible
18715 DUALCASE=1; export DUALCASE # for MKS sh
18716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18720 # is contrary to our usage. Disable this feature.
18721 alias -g '${1+"$@"}'='"$@"'
18722 setopt NO_GLOB_SUBST
18724 case `(set -o) 2>/dev/null` in #(
18736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18737 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18740 # Prefer a ksh shell builtin over an external printf program on Solaris,
18741 # but without wasting forks for bash or zsh.
18742 if test -z "$BASH_VERSION$ZSH_VERSION" \
18743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18744 as_echo='print -r --'
18745 as_echo_n='print -rn --'
18746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18747 as_echo='printf %s\n'
18748 as_echo_n='printf %s'
18750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18751 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18752 as_echo_n='/usr/ucb/echo -n'
18754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18755 as_echo_n_body='eval
18759 expr "X$arg" : "X\\(.*\\)$as_nl";
18760 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18762 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18764 export as_echo_n_body
18765 as_echo_n='sh -c $as_echo_n_body as_echo'
18767 export as_echo_body
18768 as_echo='sh -c $as_echo_body as_echo'
18771 # The user is always right.
18772 if test "${PATH_SEPARATOR+set}" != set; then
18774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18775 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18782 # We need space, tab and new line, in precisely that order. Quoting is
18783 # there to prevent editors from complaining about space-tab.
18784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18785 # splitting by setting IFS to empty value.)
18788 # Find who we are. Look in the path if we contain no directory separator.
18791 *[\\/]* ) as_myself=$0 ;;
18792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793 for as_dir in $PATH
18796 test -z "$as_dir" && as_dir=.
18797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18803 # We did not find ourselves, most probably we were run as `sh COMMAND'
18804 # in which case we are not to be found in the path.
18805 if test "x$as_myself" = x; then
18808 if test ! -f "$as_myself"; then
18809 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18813 # Unset variables that we do not need and which cause bugs (e.g. in
18814 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18815 # suppresses any "Segmentation fault" message there. '((' could
18816 # trigger a bug in pdksh 5.2.14.
18817 for as_var in BASH_ENV ENV MAIL MAILPATH
18818 do eval test x\${$as_var+set} = xset \
18819 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18836 # ----------------------------------------
18837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18839 # script with STATUS, using 1 if that was 0.
18842 as_status=$1; test $as_status -eq 0 && as_status=1
18844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18845 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18847 $as_echo "$as_me: error: $2" >&2
18848 as_fn_exit $as_status
18852 # as_fn_set_status STATUS
18853 # -----------------------
18854 # Set $? to STATUS, without forking.
18855 as_fn_set_status ()
18858 } # as_fn_set_status
18860 # as_fn_exit STATUS
18861 # -----------------
18862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18866 as_fn_set_status $1
18872 # Portably unset VAR.
18875 { eval $1=; unset $1;}
18877 as_unset=as_fn_unset
18878 # as_fn_append VAR VALUE
18879 # ----------------------
18880 # Append the text in VALUE to the end of the definition contained in VAR. Take
18881 # advantage of any shell optimizations that allow amortized linear growth over
18882 # repeated appends, instead of the typical quadratic growth present in naive
18884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18885 eval 'as_fn_append ()
18896 # as_fn_arith ARG...
18897 # ------------------
18898 # Perform arithmetic evaluation on the ARGs, and store the result in the
18899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18900 # must be portable across $(()) and expr.
18901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18902 eval 'as_fn_arith ()
18909 as_val=`expr "$@" || test $? -eq 1`
18914 if expr a : '\(a\)' >/dev/null 2>&1 &&
18915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18922 as_basename=basename
18927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18933 as_me=`$as_basename -- "$0" ||
18934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18935 X"$0" : 'X\(//\)$' \| \
18936 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18938 sed '/^.*\/\([^/][^/]*\)\/*$/{
18952 # Avoid depending upon Character Ranges.
18953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18956 as_cr_digits='0123456789'
18957 as_cr_alnum=$as_cr_Letters$as_cr_digits
18959 ECHO_C= ECHO_N= ECHO_T=
18960 case `echo -n x` in #(((((
18962 case `echo 'xy\c'` in
18963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18972 rm -f conf$$ conf$$.exe conf$$.file
18973 if test -d conf$$.dir; then
18974 rm -f conf$$.dir/conf$$.file
18977 mkdir conf$$.dir 2>/dev/null
18979 if (echo >conf$$.file) 2>/dev/null; then
18980 if ln -s conf$$.file conf$$ 2>/dev/null; then
18982 # ... but there are two gotchas:
18983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18985 # In both cases, we have to default to `cp -pR'.
18986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18988 elif ln conf$$.file conf$$ 2>/dev/null; then
18996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18997 rmdir conf$$.dir 2>/dev/null
19002 # Create "$as_dir" as a directory, including parents if necessary.
19007 -*) as_dir=./$as_dir;;
19009 test -d "$as_dir" || eval $as_mkdir_p || {
19013 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19014 *) as_qdir=$as_dir;;
19016 as_dirs="'$as_qdir' $as_dirs"
19017 as_dir=`$as_dirname -- "$as_dir" ||
19018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19019 X"$as_dir" : 'X\(//\)[^/]' \| \
19020 X"$as_dir" : 'X\(//\)$' \| \
19021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19022 $as_echo X"$as_dir" |
19023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19027 /^X\(\/\/\)[^/].*/{
19040 test -d "$as_dir" && break
19042 test -z "$as_dirs" || eval "mkdir $as_dirs"
19043 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19047 if mkdir -p . 2>/dev/null; then
19048 as_mkdir_p='mkdir -p "$as_dir"'
19050 test -d ./-p && rmdir ./-p
19055 # as_fn_executable_p FILE
19056 # -----------------------
19057 # Test if FILE is an executable regular file.
19058 as_fn_executable_p ()
19060 test -f "$1" && test -x "$1"
19061 } # as_fn_executable_p
19062 as_test_x='test -x'
19063 as_executable_p=as_fn_executable_p
19065 # Sed expression to map a string onto a valid CPP name.
19066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19068 # Sed expression to map a string onto a valid variable name.
19069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19073 ## ----------------------------------- ##
19074 ## Main body of $CONFIG_STATUS script. ##
19075 ## ----------------------------------- ##
19077 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080 # Save the log message, to keep $0 and so on meaningful, and to
19081 # report actual input values of CONFIG_FILES etc. instead of their
19082 # values after options handling.
19084 This file was extended by concord $as_me 0.0.2, which was
19085 generated by GNU Autoconf 2.69. Invocation command line was
19087 CONFIG_FILES = $CONFIG_FILES
19088 CONFIG_HEADERS = $CONFIG_HEADERS
19089 CONFIG_LINKS = $CONFIG_LINKS
19090 CONFIG_COMMANDS = $CONFIG_COMMANDS
19093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19098 case $ac_config_files in *"
19099 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19102 case $ac_config_headers in *"
19103 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19108 # Files that config.status was made for.
19109 config_files="$ac_config_files"
19110 config_headers="$ac_config_headers"
19114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19116 \`$as_me' instantiates files and other configuration actions
19117 from templates according to the current configuration. Unless the files
19118 and actions are specified as TAGs, all are instantiated by default.
19120 Usage: $0 [OPTION]... [TAG]...
19122 -h, --help print this help, then exit
19123 -V, --version print version number and configuration settings, then exit
19124 --config print configuration, then exit
19125 -q, --quiet, --silent
19126 do not print progress messages
19127 -d, --debug don't remove temporary files
19128 --recheck update $as_me by reconfiguring in the same conditions
19129 --file=FILE[:TEMPLATE]
19130 instantiate the configuration file FILE
19131 --header=FILE[:TEMPLATE]
19132 instantiate the configuration header FILE
19134 Configuration files:
19137 Configuration headers:
19140 Report bugs to <chise-en@m17n.org>."
19143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19144 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19146 concord config.status 0.0.2
19147 configured by $0, generated by GNU Autoconf 2.69,
19148 with options \\"\$ac_cs_config\\"
19150 Copyright (C) 2012 Free Software Foundation, Inc.
19151 This config.status script is free software; the Free Software Foundation
19152 gives unlimited permission to copy, distribute and modify it."
19156 test -n "\$AWK" || AWK=awk
19159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19160 # The default lists apply if the user does not specify any file.
19166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19183 # Handling of the options.
19184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19187 $as_echo "$ac_cs_version"; exit ;;
19188 --config | --confi | --conf | --con | --co | --c )
19189 $as_echo "$ac_cs_config"; exit ;;
19190 --debug | --debu | --deb | --de | --d | -d )
19192 --file | --fil | --fi | --f )
19195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19196 '') as_fn_error $? "missing file argument" ;;
19198 as_fn_append CONFIG_FILES " '$ac_optarg'"
19199 ac_need_defaults=false;;
19200 --header | --heade | --head | --hea )
19203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19206 ac_need_defaults=false;;
19208 # Conflict between --help and --header
19209 as_fn_error $? "ambiguous option: \`$1'
19210 Try \`$0 --help' for more information.";;
19211 --help | --hel | -h )
19212 $as_echo "$ac_cs_usage"; exit ;;
19213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19217 # This is an error.
19218 -*) as_fn_error $? "unrecognized option: \`$1'
19219 Try \`$0 --help' for more information." ;;
19221 *) as_fn_append ac_config_targets " $1"
19222 ac_need_defaults=false ;;
19228 ac_configure_extra_args=
19230 if $ac_cs_silent; then
19232 ac_configure_extra_args="$ac_configure_extra_args --silent"
19236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19237 if \$ac_cs_recheck; then
19238 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19241 CONFIG_SHELL='$SHELL'
19242 export CONFIG_SHELL
19247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19252 ## Running $as_me. ##
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19263 # Handling of arguments.
19264 for ac_config_target in $ac_config_targets
19266 case $ac_config_target in
19267 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19270 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19275 # If the user did not use the arguments to specify the items to instantiate,
19276 # then the envvar interface is used. Set only those that are not.
19277 # We use the long form for the default assignment because of an extremely
19278 # bizarre bug on SunOS 4.1.3.
19279 if $ac_need_defaults; then
19280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19284 # Have a temporary directory for convenience. Make it in the build tree
19285 # simply because there is no reason against having it here, and in addition,
19286 # creating and moving files from /tmp can sometimes cause problems.
19287 # Hook for its removal unless debugging.
19288 # Note that there is a small window in which the directory will not be cleaned:
19289 # after its creation but before its name has been assigned to `$tmp'.
19293 trap 'exit_status=$?
19294 : "${ac_tmp:=$tmp}"
19295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19297 trap 'as_fn_exit 1' 1 2 13 15
19299 # Create a (secure) tmp directory for tmp files.
19302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19306 tmp=./conf$$-$RANDOM
19307 (umask 077 && mkdir "$tmp")
19308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19311 # Set up the scripts for CONFIG_FILES section.
19312 # No need to generate them if there are no CONFIG_FILES.
19313 # This happens for instance with `./config.status config.h'.
19314 if test -n "$CONFIG_FILES"; then
19317 ac_cr=`echo X | tr X '\015'`
19318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19319 # But we know of no other shell where ac_cr would be empty at this
19320 # point, so we can use a bashism as a fallback.
19321 if test "x$ac_cr" = x; then
19322 eval ac_cr=\$\'\\r\'
19324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19328 ac_cs_awk_cr=$ac_cr
19331 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19336 echo "cat >conf$$subs.awk <<_ACEOF" &&
19337 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19339 } >conf$$subs.sh ||
19340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19341 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19343 for ac_last_try in false false false false false :; do
19344 . ./conf$$subs.sh ||
19345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19347 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19348 if test $ac_delim_n = $ac_delim_num; then
19350 elif $ac_last_try; then
19351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19356 rm -f conf$$subs.sh
19358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19359 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19363 s/^/S["/; s/!.*/"]=/
19373 s/\(.\{148\}\)..*/\1/
19375 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19387 s/\(.\{148\}\)..*/\1/
19389 s/["\\]/\\&/g; s/^/"/; s/$/"/
19393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19398 ' <conf$$subs.awk | sed '
19403 ' >>$CONFIG_STATUS || ac_write_fail=1
19404 rm -f conf$$subs.awk
19405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19407 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19408 for (key in S) S_is_set[key] = 1
19414 nfields = split(line, field, "@")
19416 len = length(field[1])
19417 for (i = 2; i < nfields; i++) {
19419 keylen = length(key)
19420 if (S_is_set[key]) {
19422 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19423 len += length(value) + length(field[++i])
19434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19436 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19440 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19445 # trailing colons and then remove the whole line if VPATH becomes empty
19446 # (actually we leave an empty line to preserve line numbers).
19447 if test "x$srcdir" = x.; then
19448 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19467 fi # test -n "$CONFIG_FILES"
19469 # Set up the scripts for CONFIG_HEADERS section.
19470 # No need to generate them if there are no CONFIG_HEADERS.
19471 # This happens for instance with `./config.status Makefile'.
19472 if test -n "$CONFIG_HEADERS"; then
19473 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19477 # Transform confdefs.h into an awk script `defines.awk', embedded as
19478 # here-document in config.status, that substitutes the proper values into
19479 # config.h.in to produce config.h.
19481 # Create a delimiter string that does not exist in confdefs.h, to ease
19482 # handling of long lines.
19484 for ac_last_try in false false :; do
19485 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19486 if test -z "$ac_tt"; then
19488 elif $ac_last_try; then
19489 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19495 # For the awk script, D is an array of macro values keyed by name,
19496 # likewise P contains macro parameters if any. Preserve backslash
19497 # newline sequences.
19499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19501 s/.\{148\}/&'"$ac_delim"'/g
19504 s/^[ ]*#[ ]*define[ ][ ]*/ /
19511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19518 D["\1"]=" \3\\\\\\n"\\/p
19520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19525 s/.\{148\}/&'"$ac_delim"'/g
19530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19535 ' <confdefs.h | sed '
19536 s/'"$ac_delim"'/"\\\
19537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540 for (key in D) D_is_set[key] = 1
19543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19545 split(line, arg, " ")
19546 if (arg[1] == "#") {
19550 defundef = substr(arg[1], 2)
19553 split(mac1, mac2, "(") #)
19555 prefix = substr(line, 1, index(line, defundef) - 1)
19556 if (D_is_set[macro]) {
19557 # Preserve the white space surrounding the "#".
19558 print prefix "define", macro P[macro] D[macro]
19561 # Replace #undef with comments. This is necessary, for example,
19562 # in the case of _POSIX_SOURCE, which is predefined and required
19563 # on some systems where configure will not decide to define it.
19564 if (defundef == "undef") {
19565 print "/*", prefix defundef, macro, "*/"
19573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19575 fi # test -n "$CONFIG_HEADERS"
19578 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19583 :[FHLC]) ac_mode=$ac_tag; continue;;
19585 case $ac_mode$ac_tag in
19587 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19588 :[FH]-) ac_tag=-:-;;
19589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19606 -) ac_f="$ac_tmp/stdin";;
19607 *) # Look for the file first in the build tree, then in the source tree
19608 # (if the path is not absolute). The absolute path cannot be DOS-style,
19609 # because $ac_f cannot contain `:'.
19613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19615 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19617 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19618 as_fn_append ac_file_inputs " '$ac_f'"
19621 # Let's still pretend it is `configure' which instantiates (i.e., don't
19622 # use $as_me), people would be surprised to read:
19623 # /* config.h. Generated by config.status. */
19624 configure_input='Generated from '`
19625 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19627 if test x"$ac_file" != x-; then
19628 configure_input="$ac_file. $configure_input"
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19630 $as_echo "$as_me: creating $ac_file" >&6;}
19632 # Neutralize special characters interpreted by sed in replacement strings.
19633 case $configure_input in #(
19634 *\&* | *\|* | *\\* )
19635 ac_sed_conf_input=`$as_echo "$configure_input" |
19636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19637 *) ac_sed_conf_input=$configure_input;;
19641 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19647 ac_dir=`$as_dirname -- "$ac_file" ||
19648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19649 X"$ac_file" : 'X\(//\)[^/]' \| \
19650 X"$ac_file" : 'X\(//\)$' \| \
19651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19652 $as_echo X"$ac_file" |
19653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19657 /^X\(\/\/\)[^/].*/{
19670 as_dir="$ac_dir"; as_fn_mkdir_p
19674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19677 # A ".." for each directory in $ac_dir_suffix.
19678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19679 case $ac_top_builddir_sub in
19680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19684 ac_abs_top_builddir=$ac_pwd
19685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19686 # for backward compatibility:
19687 ac_top_builddir=$ac_top_build_prefix
19690 .) # We are building in place.
19692 ac_top_srcdir=$ac_top_builddir_sub
19693 ac_abs_top_srcdir=$ac_pwd ;;
19694 [\\/]* | ?:[\\/]* ) # Absolute name.
19695 ac_srcdir=$srcdir$ac_dir_suffix;
19696 ac_top_srcdir=$srcdir
19697 ac_abs_top_srcdir=$srcdir ;;
19698 *) # Relative name.
19699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19700 ac_top_srcdir=$ac_top_build_prefix$srcdir
19701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19715 # If the template does not know about datarootdir, expand it.
19716 # FIXME: This hack should be removed a few years after 2.60.
19717 ac_datarootdir_hack=; ac_datarootdir_seen=
19728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19729 *datarootdir*) ac_datarootdir_seen=yes;;
19730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19735 ac_datarootdir_hack='
19736 s&@datadir@&$datadir&g
19737 s&@docdir@&$docdir&g
19738 s&@infodir@&$infodir&g
19739 s&@localedir@&$localedir&g
19740 s&@mandir@&$mandir&g
19741 s&\\\${datarootdir}&$datarootdir&g' ;;
19745 # Neutralize VPATH when `$srcdir' = `.'.
19746 # Shell code in configure.ac might set extrasub.
19747 # FIXME: do we really want to maintain this feature?
19748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19749 ac_sed_extra="$ac_vpsub
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19755 s|@configure_input@|$ac_sed_conf_input|;t t
19756 s&@top_builddir@&$ac_top_builddir_sub&;t t
19757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19758 s&@srcdir@&$ac_srcdir&;t t
19759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19760 s&@top_srcdir@&$ac_top_srcdir&;t t
19761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19762 s&@builddir@&$ac_builddir&;t t
19763 s&@abs_builddir@&$ac_abs_builddir&;t t
19764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19765 $ac_datarootdir_hack
19767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19768 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19771 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19773 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19775 which seems to be undefined. Please make sure it is defined" >&5
19776 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19777 which seems to be undefined. Please make sure it is defined" >&2;}
19779 rm -f "$ac_tmp/stdin"
19781 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19782 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19790 if test x"$ac_file" != x-; then
19792 $as_echo "/* $configure_input */" \
19793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19794 } >"$ac_tmp/config.h" \
19795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19796 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19798 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19801 mv "$ac_tmp/config.h" "$ac_file" \
19802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19805 $as_echo "/* $configure_input */" \
19806 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19807 || as_fn_error $? "could not create -" "$LINENO" 5
19819 ac_clean_files=$ac_clean_files_save
19821 test $ac_write_fail = 0 ||
19822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19825 # configure is writing to config.log, and then calls config.status.
19826 # config.status does its own redirection, appending to config.log.
19827 # Unfortunately, on DOS this fails, as config.log is still kept open
19828 # by configure, so config.status won't be able to write to it; its
19829 # output is simply discarded. So we exec the FD to /dev/null,
19830 # effectively closing config.log, so it can be properly (re)opened and
19831 # appended to by config.status. When coming back to configure, we
19832 # need to make the FD available again.
19833 if test "$no_create" != yes; then
19835 ac_config_status_args=
19836 test "$silent" = yes &&
19837 ac_config_status_args="$ac_config_status_args --quiet"
19839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19842 # would make configure fail if this is the last instruction.
19843 $ac_cs_success || as_fn_exit 1
19845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}