2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libcitadel #define LIBCITADEL_VERSION_NUMBER 996.
5 # Report bugs to <http://uncensored.citadel.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 *) as_dir=$as_dir/ ;;
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: http://uncensored.citadel.org about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir=./$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 as_val=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status=$1; test $as_status -eq 0 && as_status=1
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 elif ln conf$$.file conf$$ 2>/dev/null; then
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
577 test -d ./-p && rmdir ./-p
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
592 # Check that we are running under the correct shell.
593 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Remove one level of quotation (which was required for Make).
598 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
603 if test "X$1" = X--no-reexec; then
604 # Discard the --no-reexec flag, and continue.
606 elif test "X$1" = X--fallback-echo; then
607 # Avoid inline document here, it may be left over
609 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
610 # Yippee, $echo works!
613 # Restart under the correct shell.
614 exec $SHELL "$0" --no-reexec ${1+"$@"}
617 if test "X$1" = X--fallback-echo; then
618 # used as fallback echo
626 # The HP-UX ksh and POSIX shell print the target directory to stdout
628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
630 if test -z "$ECHO"; then
631 if test "X${echo_test_string+set}" != Xset; then
632 # find a string as large as possible, as long as the shell can cope with it
633 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
634 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
635 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
636 echo_test_string=`eval $cmd` &&
637 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
644 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # The Solaris, AIX, and Digital Unix default echo programs unquote
650 # backslashes. This makes it impossible to quote backslashes using
651 # echo "$something" | sed 's/\\/\\\\/g'
653 # So, first we look for a working echo in the user's PATH.
655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
656 for dir in $PATH /usr/ucb; do
658 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
659 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
668 if test "X$echo" = Xecho; then
669 # We didn't find a better echo, so look for alternatives.
670 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # This shell has a builtin print -r that does the trick.
675 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
676 test "X$CONFIG_SHELL" != X/bin/ksh; then
677 # If we have ksh, try running configure again with it.
678 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
679 export ORIGINAL_CONFIG_SHELL
680 CONFIG_SHELL=/bin/ksh
682 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
686 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
687 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
691 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
692 test "X$echo_testing_string" = 'X\t' &&
693 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
694 test "X$echo_testing_string" = "X$echo_test_string"; then
695 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
697 SHELL="$CONFIG_SHELL"
699 echo="$CONFIG_SHELL $0 --fallback-echo"
700 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
701 test "X$echo_testing_string" = 'X\t' &&
702 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
703 test "X$echo_testing_string" = "X$echo_test_string"; then
704 echo="$CONFIG_SHELL $0 --fallback-echo"
706 # maybe with a smaller string...
709 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
710 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
717 if test "$prev" != 'sed 50q "$0"'; then
718 echo_test_string=`eval $prev`
719 export echo_test_string
720 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
722 # Oops. We lost completely, so just stick with echo.
731 # Copy echo and quote the copy suitably for passing to libtool from
732 # the Makefile, instead of quoting the original, which is used later.
734 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
735 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 tagnames=${tagnames+${tagnames},}CXX
743 tagnames=${tagnames+${tagnames},}F77
745 test -n "$DJDIR" || exec 7<&0 </dev/null
749 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
750 # so uname gets run too.
751 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
756 ac_default_prefix=/usr/local
758 ac_config_libobj_dir=.
765 # Identity of this package.
766 PACKAGE_NAME='libcitadel'
767 PACKAGE_TARNAME='libcitadel'
768 PACKAGE_VERSION='#define LIBCITADEL_VERSION_NUMBER 996'
769 PACKAGE_STRING='libcitadel #define LIBCITADEL_VERSION_NUMBER 996'
770 PACKAGE_BUGREPORT='http://uncensored.citadel.org'
773 ac_unique_file="Makefile.in"
774 # Factoring default headers for most tests.
775 ac_includes_default="\
786 #ifdef HAVE_INTTYPES_H
787 # include <inttypes.h>
792 #ifdef HAVE_STRINGS_H
793 # include <strings.h>
795 #ifdef HAVE_SYS_TYPES_H
796 # include <sys/types.h>
798 #ifdef HAVE_SYS_STAT_H
799 # include <sys/stat.h>
806 ac_subst_vars='LTLIBOBJS
872 program_transform_name
885 enable_option_checking
897 ac_precious_vars='build_alias
913 # Initialize some variables set by options.
915 ac_init_version=false
916 ac_unrecognized_opts=
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
927 program_transform_name=s,x,x,
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 runstatedir='${localstatedir}/run'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 case $ac_dashdash$ac_option in
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1029 eval enable_$ac_useropt=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1200 -runstatedir | --runstatedir | --runstatedi | --runstated \
1201 | --runstate | --runstat | --runsta | --runst | --runs \
1202 | --run | --ru | --r)
1203 ac_prev=runstatedir ;;
1204 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206 | --run=* | --ru=* | --r=*)
1207 runstatedir=$ac_optarg ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1228 -site=* | --site=* | --sit=*)
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: \`$ac_useropt'"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval with_$ac_useropt=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: \`$ac_useropt'"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1284 eval with_$ac_useropt=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir runstatedir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 printf "%s\n" X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures libcitadel #define LIBCITADEL_VERSION_NUMBER 996 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/libcitadel]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of libcitadel #define LIBCITADEL_VERSION_NUMBER 996:";;
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1538 --disable-iconv do not use iconv charset conversion
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544 --with-pic try to use only PIC/non-PIC objects [default=use
1546 --with-tags[=TAGS] include additional configurations [automatic]
1547 --with-zlib use zlib compression if present
1548 --with-backtrace enable backtrace dumps in the syslog
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CXX C++ compiler command
1559 CXXFLAGS C++ compiler flags
1560 CXXCPP C++ preprocessor
1561 F77 Fortran 77 compiler command
1562 FFLAGS Fortran 77 compiler flags
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <http://uncensored.citadel.org>.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for configure.gnu first; this name is used for a wrapper for
1614 # Metaconfig's "Configure" on case-insensitive file systems.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 libcitadel configure #define LIBCITADEL_VERSION_NUMBER 996
1632 generated by GNU Autoconf 2.71
1634 Copyright (C) 2021 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest.beam
1652 if { { ac_try="$ac_compile"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 printf "%s\n" "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext
1674 printf "%s\n" "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1682 } # ac_fn_c_try_compile
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1691 if { { ac_try="$ac_link"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest$ac_exeext && {
1710 test "$cross_compiling" = yes ||
1711 test -x conftest$ac_exeext
1716 printf "%s\n" "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1742 printf %s "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile "$LINENO"
1755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 printf %s "checking for $2... " >&6; }
1772 if eval test \${$3+y}
1774 printf %s "(cached) " >&6
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below. */
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1810 if ac_fn_c_try_link "$LINENO"
1816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1817 conftest$ac_exeext conftest.$ac_ext
1820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 printf "%s\n" "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_func
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest.beam
1833 if { { ac_try="$ac_compile"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 printf "%s\n" "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext
1855 printf "%s\n" "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_cxx_try_compile
1865 # ac_fn_cxx_try_cpp LINENO
1866 # ------------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_cxx_try_cpp ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 printf "%s\n" "$ac_try_echo"; } >&5
1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } > conftest.i && {
1887 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1893 printf "%s\n" "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_cxx_try_cpp
1903 # ac_fn_cxx_try_link LINENO
1904 # -------------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_link ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 test -x conftest$ac_exeext
1935 printf "%s\n" "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942 # interfere with the next link command; also delete a directory that is
1943 # left behind by Apple's compiler. We do this before executing the actions.
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1948 } # ac_fn_cxx_try_link
1950 # ac_fn_f77_try_compile LINENO
1951 # ----------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_f77_try_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext conftest.beam
1957 if { { ac_try="$ac_compile"
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 printf "%s\n" "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_f77_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.$ac_objext
1979 printf "%s\n" "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1987 } # ac_fn_f77_try_compile
1989 # ac_fn_f77_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_f77_try_link ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 printf "%s\n" "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_f77_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 test -x conftest$ac_exeext
2021 printf "%s\n" "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028 # interfere with the next link command; also delete a directory that is
2029 # left behind by Apple's compiler. We do this before executing the actions.
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 as_fn_set_status $ac_retval
2034 } # ac_fn_f77_try_link
2036 # ac_fn_c_try_run LINENO
2037 # ----------------------
2038 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2039 # executables *can* be run.
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 printf "%s\n" "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 printf "%s\n" "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }
2067 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2068 printf "%s\n" "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2071 ac_retval=$ac_status
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 printf %s "checking for $2... " >&6; }
2088 if eval test \${$3+y}
2090 printf %s "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2105 if ac_fn_c_try_compile "$LINENO"
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 printf "%s\n" "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_type
2135 ac_configure_args_raw=
2140 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 as_fn_append ac_configure_args_raw " '$ac_arg'"
2145 case $ac_configure_args_raw in
2149 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2150 ac_unsafe_a="$ac_unsafe_z#~"
2151 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2152 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2155 cat >config.log <<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2159 It was created by libcitadel $as_me #define LIBCITADEL_VERSION_NUMBER 996, which was
2160 generated by GNU Autoconf 2.71. Invocation command line was
2162 $ $0$ac_configure_args_raw
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2182 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2185 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2186 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2187 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 case $as_dir in #(((
2198 *) as_dir=$as_dir/ ;;
2200 printf "%s\n" "PATH: $as_dir"
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_must_keep_next=false
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2235 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 -* ) ac_must_keep_next=true ;;
2256 as_fn_append ac_configure_args " '$ac_arg'"
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2272 # Save into config.log some information that might help in debugging.
2276 printf "%s\n" "## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##"
2280 # The following way of writing the cache mishandles newlines in values,
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2287 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) { eval $ac_var=; unset $ac_var;} ;;
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312 printf "%s\n" "## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##"
2316 for ac_var in $ac_subst_vars
2318 eval ac_val=\$$ac_var
2320 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 printf "%s\n" "$ac_var='\''$ac_val'\''"
2326 if test -n "$ac_subst_files"; then
2327 printf "%s\n" "## ------------------- ##
2328 ## File substitutions. ##
2329 ## ------------------- ##"
2331 for ac_var in $ac_subst_files
2333 eval ac_val=\$$ac_var
2335 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 printf "%s\n" "$ac_var='\''$ac_val'\''"
2342 if test -s confdefs.h; then
2343 printf "%s\n" "## ----------- ##
2350 test "$ac_signal" != 0 &&
2351 printf "%s\n" "$as_me: caught signal $ac_signal"
2352 printf "%s\n" "$as_me: exit $exit_status"
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 printf "%s\n" "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2372 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2374 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2376 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2378 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2380 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2383 # Let the site file select an alternate cache file if it wants to.
2384 # Prefer an explicitly selected file to automatically selected ones.
2385 if test -n "$CONFIG_SITE"; then
2386 ac_site_files="$CONFIG_SITE"
2387 elif test "x$prefix" != xNONE; then
2388 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2390 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2393 for ac_site_file in $ac_site_files
2395 case $ac_site_file in #(
2399 ac_site_file=./$ac_site_file ;;
2401 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2403 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2404 sed 's/^/| /' "$ac_site_file" >&5
2406 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2408 as_fn_error $? "failed to load site script $ac_site_file
2409 See \`config.log' for more details" "$LINENO" 5; }
2413 if test -r "$cache_file"; then
2414 # Some versions of bash will fail to source /dev/null (special files
2415 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2416 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2418 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2420 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2421 *) . "./$cache_file";;
2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2426 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2430 # Test code for whether the C compiler supports C89 (global declarations)
2431 ac_c_conftest_c89_globals='
2432 /* Does the compiler advertise C89 conformance?
2433 Do not test the value of __STDC__, because some compilers set it to 0
2434 while being otherwise adequately conformant. */
2435 #if !defined __STDC__
2436 # error "Compiler does not advertise C89 conformance"
2442 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2443 struct buf { int x; };
2444 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2456 s = g (p, va_arg (v,int));
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2462 function prototypes and stuff, but not \xHH hex character constants.
2463 These do not provoke an error unfortunately, instead are silently treated
2464 as an "x". The following induces an error, until -std is added to get
2465 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2466 array size at least. It is necessary to write \x00 == 0 to get something
2467 that is true only with -std. */
2468 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2471 inside strings and character constants. */
2472 #define FOO(x) '\''x'\''
2473 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2481 # Test code for whether the C compiler supports C89 (body of main).
2482 ac_c_conftest_c89_main='
2483 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2486 # Test code for whether the C compiler supports C99 (global declarations)
2487 ac_c_conftest_c99_globals='
2488 // Does the compiler advertise C99 conformance?
2489 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2490 # error "Compiler does not advertise C99 conformance"
2493 #include <stdbool.h>
2494 extern int puts (const char *);
2495 extern int printf (const char *, ...);
2496 extern int dprintf (int, const char *, ...);
2497 extern void *malloc (size_t);
2499 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2500 // dprintf is used instead of fprintf to avoid needing to declare
2502 #define debug(...) dprintf (2, __VA_ARGS__)
2503 #define showlist(...) puts (#__VA_ARGS__)
2504 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2506 test_varargs_macros (void)
2511 debug ("X = %d\n", x);
2512 showlist (The first, second, and third items.);
2513 report (x>y, "x is %d but y is %d", x, y);
2516 // Check long long types.
2517 #define BIG64 18446744073709551615ull
2518 #define BIG32 4294967295ul
2519 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2521 #error "your preprocessor is broken"
2525 #error "your preprocessor is broken"
2527 static long long int bignum = -9223372036854775807LL;
2528 static unsigned long long int ubignum = BIG64;
2530 struct incomplete_array
2538 const wchar_t *name;
2542 typedef const char *ccp;
2545 test_restrict (ccp restrict text)
2547 // See if C++-style comments work.
2548 // Iterate through items via the restricted pointer.
2549 // Also check for declarations in for loops.
2550 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2555 // Check varargs and va_copy.
2557 test_varargs (const char *format, ...)
2560 va_start (args, format);
2562 va_copy (args_copy, args);
2564 const char *str = "";
2572 case '\''s'\'': // string
2573 str = va_arg (args_copy, const char *);
2575 case '\''d'\'': // int
2576 number = va_arg (args_copy, int);
2578 case '\''f'\'': // float
2579 fnumber = va_arg (args_copy, double);
2588 return *str && number && fnumber;
2592 # Test code for whether the C compiler supports C99 (body of main).
2593 ac_c_conftest_c99_main='
2595 _Bool success = false;
2596 success |= (argc != 0);
2599 if (test_restrict ("String literal") == 0)
2601 char *restrict newvar = "Another string";
2604 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2605 test_varargs_macros ();
2607 // Check flexible array members.
2608 struct incomplete_array *ia =
2609 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2611 for (int i = 0; i < ia->datasize; ++i)
2612 ia->data[i] = i * 1.234;
2614 // Check named initializers.
2615 struct named_init ni = {
2617 .name = L"Test wide string",
2618 .average = 543.34343,
2623 int dynamic_array[ni.number];
2624 dynamic_array[0] = argv[0][0];
2625 dynamic_array[ni.number - 1] = 543;
2627 // work around unused variable warnings
2628 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2629 || dynamic_array[ni.number - 1] != 543);
2632 # Test code for whether the C compiler supports C11 (global declarations)
2633 ac_c_conftest_c11_globals='
2634 // Does the compiler advertise C11 conformance?
2635 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2636 # error "Compiler does not advertise C11 conformance"
2640 char _Alignas (double) aligned_as_double;
2641 char _Alignas (0) no_special_alignment;
2642 extern char aligned_as_int;
2643 char _Alignas (0) _Alignas (int) aligned_as_int;
2648 int_alignment = _Alignof (int),
2649 int_array_alignment = _Alignof (int[100]),
2650 char_alignment = _Alignof (char)
2652 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2655 int _Noreturn does_not_return (void) { for (;;) continue; }
2657 // Check _Static_assert.
2658 struct test_static_assert
2661 _Static_assert (sizeof (int) <= sizeof (long int),
2662 "_Static_assert does not work in struct");
2666 // Check UTF-8 literals.
2667 #define u8 syntax error!
2668 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2670 // Check duplicate typedefs.
2671 typedef long *long_ptr;
2672 typedef long int *long_ptr;
2673 typedef long_ptr long_ptr;
2675 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2679 struct { int i; int j; };
2680 struct { int k; long int l; } w;
2686 # Test code for whether the C compiler supports C11 (body of main).
2687 ac_c_conftest_c11_main='
2688 _Static_assert ((offsetof (struct anonymous, i)
2689 == offsetof (struct anonymous, w.k)),
2690 "Anonymous union alignment botch");
2696 # Test code for whether the C compiler supports C11 (complete).
2697 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2698 ${ac_c_conftest_c99_globals}
2699 ${ac_c_conftest_c11_globals}
2702 main (int argc, char **argv)
2705 ${ac_c_conftest_c89_main}
2706 ${ac_c_conftest_c99_main}
2707 ${ac_c_conftest_c11_main}
2712 # Test code for whether the C compiler supports C99 (complete).
2713 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2714 ${ac_c_conftest_c99_globals}
2717 main (int argc, char **argv)
2720 ${ac_c_conftest_c89_main}
2721 ${ac_c_conftest_c99_main}
2726 # Test code for whether the C compiler supports C89 (complete).
2727 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2730 main (int argc, char **argv)
2733 ${ac_c_conftest_c89_main}
2738 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2739 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2740 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2741 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2742 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2743 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2744 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2745 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2746 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2747 # Test code for whether the C++ compiler supports C++98 (global declarations)
2748 ac_cxx_conftest_cxx98_globals='
2749 // Does the compiler advertise C++98 conformance?
2750 #if !defined __cplusplus || __cplusplus < 199711L
2751 # error "Compiler does not advertise C++98 conformance"
2754 // These inclusions are to reject old compilers that
2755 // lack the unsuffixed header files.
2757 #include <exception>
2759 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2760 extern void assert (int);
2762 extern int strcmp (const char *, const char *);
2765 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2766 using std::exception;
2771 void test_exception_syntax()
2775 } catch (const char *s) {
2776 // Extra parentheses suppress a warning when building autoconf itself,
2777 // due to lint rules shared with more typical C programs.
2778 assert (!(strcmp) (s, "test"));
2782 template <typename T> struct test_template
2785 explicit test_template(T t) : val(t) {}
2786 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2789 } // anonymous namespace
2792 # Test code for whether the C++ compiler supports C++98 (body of main)
2793 ac_cxx_conftest_cxx98_main='
2797 test_exception_syntax ();
2798 test_template<double> tt (2.0);
2799 assert (tt.add (4) == 6.0);
2800 assert (true && !false);
2804 # Test code for whether the C++ compiler supports C++11 (global declarations)
2805 ac_cxx_conftest_cxx11_globals='
2806 // Does the compiler advertise C++ 2011 conformance?
2807 #if !defined __cplusplus || __cplusplus < 201103L
2808 # error "Compiler does not advertise C++11 conformance"
2813 constexpr int get_val() { return 20; }
2824 delegate(int n) : n(n) {}
2825 delegate(): delegate(2354) {}
2827 virtual int getval() { return this->n; };
2832 class overridden : public delegate
2835 overridden(int n): delegate(n) {}
2836 virtual int getval() override final { return this->n * 2; }
2842 nocopy(int i): i(i) {}
2844 nocopy(const nocopy&) = delete;
2845 nocopy & operator=(const nocopy&) = delete;
2850 // for testing lambda expressions
2851 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2856 // for testing variadic templates and trailing return types
2857 template <typename V> auto sum(V first) -> V
2861 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2863 return first + sum(rest...);
2868 # Test code for whether the C++ compiler supports C++11 (body of main)
2869 ac_cxx_conftest_cxx11_main='
2871 // Test auto and decltype
2873 auto a2 = 48573953.4;
2874 auto a3 = "String literal";
2877 for (auto i = a3; *i; ++i) { total += *i; }
2879 decltype(a2) a4 = 34895.034;
2883 short sa[cxx11test::get_val()] = { 0 };
2886 // Test initializer lists
2887 cxx11test::testinit il = { 4323, 435234.23544 };
2890 // Test range-based for
2891 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2892 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2893 for (auto &x : array) { x += 23; }
2896 // Test lambda expressions
2897 using cxx11test::eval;
2898 assert (eval ([](int x) { return x*2; }, 21) == 42);
2900 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2902 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2906 // Test use of variadic templates
2907 using cxx11test::sum;
2910 auto c = sum(1.0, 2.0, 3.0);
2913 // Test constructor delegation
2914 cxx11test::delegate d1;
2915 cxx11test::delegate d2();
2916 cxx11test::delegate d3(45);
2919 // Test override and final
2920 cxx11test::overridden o1(55464);
2927 // Test template brackets
2928 test_template<::test_template<int>> v(test_template<int>(12));
2932 char const *utf8 = u8"UTF-8 string \u2500";
2933 char16_t const *utf16 = u"UTF-8 string \u2500";
2934 char32_t const *utf32 = U"UTF-32 string \u2500";
2938 # Test code for whether the C compiler supports C++11 (complete).
2939 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2940 ${ac_cxx_conftest_cxx11_globals}
2943 main (int argc, char **argv)
2946 ${ac_cxx_conftest_cxx98_main}
2947 ${ac_cxx_conftest_cxx11_main}
2952 # Test code for whether the C compiler supports C++98 (complete).
2953 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2955 main (int argc, char **argv)
2958 ${ac_cxx_conftest_cxx98_main}
2964 # Auxiliary files required by this configure script.
2965 ac_aux_files="install-sh config.guess config.sub"
2967 # Locations in which to look for auxiliary files.
2968 ac_aux_dir_candidates="${srcdir}/conftools"
2970 # Search for a directory containing all of the required auxiliary files,
2971 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2972 # If we don't find one directory that contains all the files we need,
2973 # we report the set of missing files from the *first* directory in
2974 # $ac_aux_dir_candidates and give up.
2975 ac_missing_aux_files=""
2976 ac_first_candidate=:
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $ac_aux_dir_candidates
2983 case $as_dir in #(((
2986 *) as_dir=$as_dir/ ;;
2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2991 ac_aux_dir_found=yes
2993 for ac_aux in $ac_aux_files
2995 # As a special case, if "install-sh" is required, that requirement
2996 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2997 # and $ac_install_sh is set appropriately for whichever one is found.
2998 if test x"$ac_aux" = x"install-sh"
3000 if test -f "${as_dir}install-sh"; then
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3002 ac_install_sh="${as_dir}install-sh -c"
3003 elif test -f "${as_dir}install.sh"; then
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3005 ac_install_sh="${as_dir}install.sh -c"
3006 elif test -f "${as_dir}shtool"; then
3007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3008 ac_install_sh="${as_dir}shtool install -c"
3011 if $ac_first_candidate; then
3012 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3018 if test -f "${as_dir}${ac_aux}"; then
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3022 if $ac_first_candidate; then
3023 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3030 if test "$ac_aux_dir_found" = yes; then
3031 ac_aux_dir="$as_dir"
3034 ac_first_candidate=false
3043 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3047 # These three variables are undocumented and unsupported,
3048 # and are intended to be withdrawn in a future Autoconf release.
3049 # They can cause serious problems if a builder's source tree is in a directory
3050 # whose full name contains unusual characters.
3051 if test -f "${ac_aux_dir}config.guess"; then
3052 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3054 if test -f "${ac_aux_dir}config.sub"; then
3055 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3057 if test -f "$ac_aux_dir/configure"; then
3058 ac_configure="$SHELL ${ac_aux_dir}configure"
3061 # Check that the precious variables saved in the cache have kept the same
3063 ac_cache_corrupted=false
3064 for ac_var in $ac_precious_vars; do
3065 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3066 eval ac_new_set=\$ac_env_${ac_var}_set
3067 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3068 eval ac_new_val=\$ac_env_${ac_var}_value
3069 case $ac_old_set,$ac_new_set in
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3072 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3073 ac_cache_corrupted=: ;;
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3076 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3077 ac_cache_corrupted=: ;;
3080 if test "x$ac_old_val" != "x$ac_new_val"; then
3081 # differences in whitespace do not lead to failure.
3082 ac_old_val_w=`echo x $ac_old_val`
3083 ac_new_val_w=`echo x $ac_new_val`
3084 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3086 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3087 ac_cache_corrupted=:
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3090 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3091 eval $ac_var=\$ac_old_val
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3094 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3096 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3099 # Pass precious variables to config.status.
3100 if test "$ac_new_set" = set; then
3102 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3103 *) ac_arg=$ac_var=$ac_new_val ;;
3105 case " $ac_configure_args " in
3106 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3107 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3111 if $ac_cache_corrupted; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3115 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3116 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3117 and start over" "$LINENO" 5
3119 ## -------------------- ##
3120 ## Main body of script. ##
3121 ## -------------------- ##
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3139 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
3140 ## Free Software Foundation, Inc.
3141 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3143 ## This file is free software; the Free Software Foundation gives
3144 ## unlimited permission to copy and/or distribute it, with or without
3145 ## modifications, as long as this notice is preserved.
3147 # serial 48 AC_PROG_LIBTOOL
3150 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3151 # -----------------------------------------------------------
3152 # If this macro is not defined by Autoconf, define it here.
3171 # _LT_AC_SYS_COMPILER
3172 # -------------------
3173 # _LT_AC_SYS_COMPILER
3176 # _LT_CC_BASENAME(CC)
3177 # -------------------
3178 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
3182 # _LT_COMPILER_BOILERPLATE
3183 # ------------------------
3184 # Check for compiler boilerplate output or warnings with
3185 # the simple compiler test code.
3186 # _LT_COMPILER_BOILERPLATE
3189 # _LT_LINKER_BOILERPLATE
3190 # ----------------------
3191 # Check for linker boilerplate output or warnings with
3192 # the simple link test code.
3193 # _LT_LINKER_BOILERPLATE
3196 # _LT_AC_SYS_LIBPATH_AIX
3197 # ----------------------
3198 # Links a minimal program and checks the executable
3199 # for the system default hardcoded library path. In most cases,
3200 # this is /usr/lib:/lib, but when the MPI compilers are used
3201 # the location of the communication and MPI libs are included too.
3202 # If we don't find anything, use the default library path according
3203 # to the aix ld manual.
3204 # _LT_AC_SYS_LIBPATH_AIX
3207 # _LT_AC_SHELL_INIT(ARG)
3208 # ----------------------
3212 # _LT_AC_PROG_ECHO_BACKSLASH
3213 # --------------------------
3214 # Add some code to the start of the generated configure script which
3215 # will find an echo command which doesn't interpret backslashes.
3216 # _LT_AC_PROG_ECHO_BACKSLASH
3224 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3225 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3226 # ----------------------------------------------------------------
3227 # Check whether the given compiler option works
3228 # AC_LIBTOOL_COMPILER_OPTION
3231 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3232 # [ACTION-SUCCESS], [ACTION-FAILURE])
3233 # ------------------------------------------------------------
3234 # Check whether the given compiler option works
3235 # AC_LIBTOOL_LINKER_OPTION
3238 # AC_LIBTOOL_SYS_MAX_CMD_LEN
3239 # --------------------------
3240 # AC_LIBTOOL_SYS_MAX_CMD_LEN
3243 # _LT_AC_CHECK_DLFCN
3244 # ------------------
3245 # _LT_AC_CHECK_DLFCN
3248 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3249 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3250 # ---------------------------------------------------------------------
3251 # _LT_AC_TRY_DLOPEN_SELF
3254 # AC_LIBTOOL_DLOPEN_SELF
3255 # ----------------------
3256 # AC_LIBTOOL_DLOPEN_SELF
3259 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3260 # ---------------------------------
3261 # Check to see if options -c and -o are simultaneously supported by compiler
3262 # AC_LIBTOOL_PROG_CC_C_O
3265 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3266 # -----------------------------------------
3267 # Check to see if we can do hard links to lock some files if needed
3268 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3276 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3277 # ----------------------------------------------
3278 # Check hardcoding attributes.
3279 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3282 # AC_LIBTOOL_SYS_LIB_STRIP
3283 # ------------------------
3284 # AC_LIBTOOL_SYS_LIB_STRIP
3287 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
3288 # -----------------------------
3289 # PORTME Fill in your ld.so characteristics
3290 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
3300 # enable checks for dlopen support
3304 # AC_LIBTOOL_WIN32_DLL
3305 # --------------------
3306 # declare package support for building win32 DLLs
3307 # AC_LIBTOOL_WIN32_DLL
3310 # AC_ENABLE_SHARED([DEFAULT])
3311 # ---------------------------
3312 # implement the --enable-shared flag
3313 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3319 # set the default shared flag to --disable-shared
3323 # AC_ENABLE_STATIC([DEFAULT])
3324 # ---------------------------
3325 # implement the --enable-static flag
3326 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3332 # set the default static flag to --disable-static
3336 # AC_ENABLE_FAST_INSTALL([DEFAULT])
3337 # ---------------------------------
3338 # implement the --enable-fast-install flag
3339 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3340 # AC_ENABLE_FAST_INSTALL
3343 # AC_DISABLE_FAST_INSTALL
3344 # -----------------------
3345 # set the default to --disable-fast-install
3346 # AC_DISABLE_FAST_INSTALL
3349 # AC_LIBTOOL_PICMODE([MODE])
3350 # --------------------------
3351 # implement the --with-pic flag
3352 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3353 # AC_LIBTOOL_PICMODE
3358 # This is predefined starting with Autoconf 2.54, so this conditional
3359 # definition can be removed once we require Autoconf 2.54 or later.
3363 # AC_PATH_TOOL_PREFIX
3364 # -------------------
3365 # find a file program which can recognise shared library
3366 # AC_PATH_TOOL_PREFIX
3371 # find a file program which can recognise a shared library
3377 # find the pathname to the GNU or non-GNU linker
3386 # AC_PROG_LD_RELOAD_FLAG
3387 # ----------------------
3388 # find reload flag for linker
3389 # -- PORTME Some linkers may need a different reload flag.
3390 # AC_PROG_LD_RELOAD_FLAG
3393 # AC_DEPLIBS_CHECK_METHOD
3394 # -----------------------
3395 # how to check for library dependencies
3396 # -- PORTME fill in with the dynamic library characteristics
3397 # AC_DEPLIBS_CHECK_METHOD
3402 # find the pathname to a BSD-compatible name lister
3408 # check for math library
3412 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3413 # -----------------------------------
3414 # sets LIBLTDL to the link flags for the libltdl convenience library and
3415 # LTDLINCL to the include flags for the libltdl header and adds
3416 # --enable-ltdl-convenience to the configure arguments. Note that
3417 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3418 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3419 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3420 # (note the single quotes!). If your package is not flat and you're not
3421 # using automake, define top_builddir and top_srcdir appropriately in
3423 # AC_LIBLTDL_CONVENIENCE
3426 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3427 # -----------------------------------
3428 # sets LIBLTDL to the link flags for the libltdl installable library and
3429 # LTDLINCL to the include flags for the libltdl header and adds
3430 # --enable-ltdl-install to the configure arguments. Note that
3431 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3432 # and an installed libltdl is not found, it is assumed to be `libltdl'.
3433 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3434 # '${top_srcdir}/' (note the single quotes!). If your package is not
3435 # flat and you're not using automake, define top_builddir and top_srcdir
3436 # appropriately in the Makefiles.
3437 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3438 # AC_LIBLTDL_INSTALLABLE
3443 # enable support for C++ libraries
3451 # _LT_AC_PROG_CXXCPP
3452 # ------------------
3453 # _LT_AC_PROG_CXXCPP
3457 # enable support for Fortran 77 libraries
3468 # enable support for GCJ libraries
3479 # enable support for Windows resource files
3483 # AC_LIBTOOL_LANG_C_CONFIG
3484 # ------------------------
3485 # Ensure that the configuration vars for the C compiler are
3486 # suitably defined. Those variables are subsequently used by
3487 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3489 # AC_LIBTOOL_LANG_C_CONFIG
3492 # AC_LIBTOOL_LANG_CXX_CONFIG
3493 # --------------------------
3494 # Ensure that the configuration vars for the C compiler are
3495 # suitably defined. Those variables are subsequently used by
3496 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3498 # AC_LIBTOOL_LANG_CXX_CONFIG
3500 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3501 # ------------------------------------
3502 # Figure out "hidden" library dependencies from verbose
3503 # compiler output when linking a shared library.
3504 # Parse the compiler output and extract the necessary
3505 # objects, libraries and library flags.
3506 # AC_LIBTOOL_POSTDEP_PREDEP
3508 # AC_LIBTOOL_LANG_F77_CONFIG
3509 # --------------------------
3510 # Ensure that the configuration vars for the C compiler are
3511 # suitably defined. Those variables are subsequently used by
3512 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3514 # AC_LIBTOOL_LANG_F77_CONFIG
3517 # AC_LIBTOOL_LANG_GCJ_CONFIG
3518 # --------------------------
3519 # Ensure that the configuration vars for the C compiler are
3520 # suitably defined. Those variables are subsequently used by
3521 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3523 # AC_LIBTOOL_LANG_GCJ_CONFIG
3526 # AC_LIBTOOL_LANG_RC_CONFIG
3527 # -------------------------
3528 # Ensure that the configuration vars for the Windows resource compiler are
3529 # suitably defined. Those variables are subsequently used by
3530 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3532 # AC_LIBTOOL_LANG_RC_CONFIG
3535 # AC_LIBTOOL_CONFIG([TAGNAME])
3536 # ----------------------------
3537 # If TAGNAME is not passed, then create an initial libtool script
3538 # with a default configuration from the untagged config vars. Otherwise
3539 # add code to config.status for appending the configuration named by
3540 # TAGNAME from the matching tagged config vars.
3544 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3545 # -------------------------------------------
3546 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3549 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3550 # ---------------------------------
3551 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3554 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3555 # ---------------------------------------
3559 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3560 # ------------------------------------
3561 # See if the linker supports building shared libraries.
3562 # AC_LIBTOOL_PROG_LD_SHLIBS
3565 # _LT_AC_FILE_LTDLL_C
3566 # -------------------
3567 # Be careful that the start marker always follows a newline.
3568 # _LT_AC_FILE_LTDLL_C
3571 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3572 # ---------------------------------
3585 # This is just to silence aclocal about the macro not being used
3592 ############################################################
3593 # NOTE: This macro has been submitted for inclusion into #
3594 # GNU Autoconf as AC_PROG_SED. When it is available in #
3595 # a released version of Autoconf we should remove this #
3596 # macro and use it instead. #
3597 ############################################################
3600 # Check for a fully-functional sed program, that truncates
3601 # as few characters as possible. Prefer GNU sed if found.
3606 # Check whether --enable-shared was given.
3607 if test ${enable_shared+y}
3609 enableval=$enable_shared; p=${PACKAGE-default}
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3631 # Check whether --enable-static was given.
3632 if test ${enable_static+y}
3634 enableval=$enable_static; p=${PACKAGE-default}
3636 yes) enable_static=yes ;;
3637 no) enable_static=no ;;
3640 # Look at the argument we got. We use all the common list separators.
3641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642 for pkg in $enableval; do
3644 if test "X$pkg" = "X$p"; then
3656 # Check whether --enable-fast-install was given.
3657 if test ${enable_fast_install+y}
3659 enableval=$enable_fast_install; p=${PACKAGE-default}
3661 yes) enable_fast_install=yes ;;
3662 no) enable_fast_install=no ;;
3664 enable_fast_install=no
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3670 enable_fast_install=yes
3677 enable_fast_install=yes
3684 # Make sure we can run config.sub.
3685 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3686 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3689 printf %s "checking build system type... " >&6; }
3690 if test ${ac_cv_build+y}
3692 printf %s "(cached) " >&6
3694 ac_build_alias=$build_alias
3695 test "x$ac_build_alias" = x &&
3696 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3697 test "x$ac_build_alias" = x &&
3698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3699 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3700 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3704 printf "%s\n" "$ac_cv_build" >&6; }
3705 case $ac_cv_build in
3707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3710 ac_save_IFS=$IFS; IFS='-'
3716 # Remember, the first character of IFS is used to create $*,
3717 # except with old shells:
3720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3724 printf %s "checking host system type... " >&6; }
3725 if test ${ac_cv_host+y}
3727 printf %s "(cached) " >&6
3729 if test "x$host_alias" = x; then
3730 ac_cv_host=$ac_cv_build
3732 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3733 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3738 printf "%s\n" "$ac_cv_host" >&6; }
3741 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3744 ac_save_IFS=$IFS; IFS='-'
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 printf %s "checking for $ac_word... " >&6; }
3776 if test ${ac_cv_prog_CC+y}
3778 printf %s "(cached) " >&6
3780 if test -n "$CC"; then
3781 ac_cv_prog_CC="$CC" # Let the user override the test.
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 case $as_dir in #(((
3790 *) as_dir=$as_dir/ ;;
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3805 if test -n "$CC"; then
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 printf "%s\n" "$CC" >&6; }
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 printf "%s\n" "no" >&6; }
3815 if test -z "$ac_cv_prog_CC"; then
3817 # Extract the first word of "gcc", so it can be a program name with args.
3818 set dummy gcc; ac_word=$2
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 printf %s "checking for $ac_word... " >&6; }
3821 if test ${ac_cv_prog_ac_ct_CC+y}
3823 printf %s "(cached) " >&6
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 case $as_dir in #(((
3835 *) as_dir=$as_dir/ ;;
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_CC="gcc"
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 printf "%s\n" "$ac_ct_CC" >&6; }
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 printf "%s\n" "no" >&6; }
3858 if test "x$ac_ct_CC" = x; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3873 if test -z "$CC"; then
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_CC+y}
3881 printf %s "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 case $as_dir in #(((
3893 *) as_dir=$as_dir/ ;;
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_CC="${ac_tool_prefix}cc"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3908 if test -n "$CC"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 printf "%s\n" "$CC" >&6; }
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3919 if test -z "$CC"; then
3920 # Extract the first word of "cc", so it can be a program name with args.
3921 set dummy cc; ac_word=$2
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 printf %s "checking for $ac_word... " >&6; }
3924 if test ${ac_cv_prog_CC+y}
3926 printf %s "(cached) " >&6
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 case $as_dir in #(((
3939 *) as_dir=$as_dir/ ;;
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944 ac_prog_rejected=yes
3948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3955 if test $ac_prog_rejected = yes; then
3956 # We found a bogon in the path, so make sure we never use it.
3957 set dummy $ac_cv_prog_CC
3959 if test $# != 0; then
3960 # We chose a different compiler from the bogus one.
3961 # However, it has the same basename, so the bogon will be chosen
3962 # first if we set CC to just the basename; use the full file name.
3964 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3970 if test -n "$CC"; then
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 printf "%s\n" "$CC" >&6; }
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 printf "%s\n" "no" >&6; }
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 for ac_prog in cl.exe
3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s "checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_CC+y}
3990 printf %s "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 case $as_dir in #(((
4002 *) as_dir=$as_dir/ ;;
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4017 if test -n "$CC"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 printf "%s\n" "$CC" >&6; }
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4026 test -n "$CC" && break
4029 if test -z "$CC"; then
4031 for ac_prog in cl.exe
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 printf %s "checking for $ac_word... " >&6; }
4037 if test ${ac_cv_prog_ac_ct_CC+y}
4039 printf %s "(cached) " >&6
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 case $as_dir in #(((
4051 *) as_dir=$as_dir/ ;;
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_ac_ct_CC="$ac_prog"
4056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066 if test -n "$ac_ct_CC"; then
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068 printf "%s\n" "$ac_ct_CC" >&6; }
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 printf "%s\n" "no" >&6; }
4075 test -n "$ac_ct_CC" && break
4078 if test "x$ac_ct_CC" = x; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}clang; ac_word=$2
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 printf %s "checking for $ac_word... " >&6; }
4098 if test ${ac_cv_prog_CC+y}
4100 printf %s "(cached) " >&6
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 case $as_dir in #(((
4112 *) as_dir=$as_dir/ ;;
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_CC="${ac_tool_prefix}clang"
4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4127 if test -n "$CC"; then
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 printf "%s\n" "$CC" >&6; }
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 printf "%s\n" "no" >&6; }
4137 if test -z "$ac_cv_prog_CC"; then
4139 # Extract the first word of "clang", so it can be a program name with args.
4140 set dummy clang; ac_word=$2
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 printf %s "checking for $ac_word... " >&6; }
4143 if test ${ac_cv_prog_ac_ct_CC+y}
4145 printf %s "(cached) " >&6
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 case $as_dir in #(((
4157 *) as_dir=$as_dir/ ;;
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_ac_ct_CC="clang"
4162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4172 if test -n "$ac_ct_CC"; then
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4174 printf "%s\n" "$ac_ct_CC" >&6; }
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 printf "%s\n" "no" >&6; }
4180 if test "x$ac_ct_CC" = x; then
4183 case $cross_compiling:$ac_tool_warned in
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4198 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details" "$LINENO" 5; }
4203 # Provide some information about the compiler.
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4207 for ac_option in --version -v -V -qversion -version; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 printf "%s\n" "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4217 if test -s conftest.err; then
4219 ... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4223 rm -f conftest.er1 conftest.err
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4239 ac_clean_files_save=$ac_clean_files
4240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4241 # Try to create an executable without -o first, disregard a.out.
4242 # It will help us diagnose broken compilers, and finding out an intuition
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4245 printf %s "checking whether the C compiler works... " >&6; }
4246 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4248 # The possible output files:
4249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4252 for ac_file in $ac_files
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4261 if { { ac_try="$ac_link_default"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 printf "%s\n" "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
4270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }
4273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4274 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4275 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4276 # so that the user can short-circuit this test for compilers unknown to
4278 for ac_file in $ac_files ''
4280 test -f "$ac_file" || continue
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4285 # We found the default executable, but exeext='' is most
4289 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4293 # We set ac_cv_exeext here because the later test for it is not
4294 # safe: cross compilers may not add the suffix if given an `-o'
4295 # argument, so we may need to know it at that point already.
4296 # Even if this section looks crufty: it has the advantage of
4303 test "$ac_cv_exeext" = no && ac_cv_exeext=
4308 if test -z "$ac_file"
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 printf "%s\n" "no" >&6; }
4312 printf "%s\n" "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error 77 "C compiler cannot create executables
4318 See \`config.log' for more details" "$LINENO" 5; }
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4321 printf "%s\n" "yes" >&6; }
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4324 printf %s "checking for C compiler default output file name... " >&6; }
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4326 printf "%s\n" "$ac_file" >&6; }
4327 ac_exeext=$ac_cv_exeext
4329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4330 ac_clean_files=$ac_clean_files_save
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4332 printf %s "checking for suffix of executables... " >&6; }
4333 if { { ac_try="$ac_link"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf "%s\n" "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4347 # work properly (i.e., refer to `conftest.exe'), while it won't with
4349 for ac_file in conftest.exe conftest conftest.*; do
4350 test -f "$ac_file" || continue
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4362 See \`config.log' for more details" "$LINENO" 5; }
4364 rm -f conftest conftest$ac_cv_exeext
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4366 printf "%s\n" "$ac_cv_exeext" >&6; }
4368 rm -f conftest.$ac_ext
4369 EXEEXT=$ac_cv_exeext
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4377 FILE *f = fopen ("conftest.out", "w");
4378 return ferror (f) || fclose (f) != 0;
4384 ac_clean_files="$ac_clean_files conftest.out"
4385 # Check that the compiler produces executables we can run. If not, either
4386 # the compiler is broken, or we cross compile.
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4388 printf %s "checking whether we are cross compiling... " >&6; }
4389 if test "$cross_compiling" != yes; then
4390 { { ac_try="$ac_link"
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 printf "%s\n" "$ac_try_echo"; } >&5
4397 (eval "$ac_link") 2>&5
4399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4401 if { ac_try='./conftest$ac_cv_exeext'
4402 { { case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 printf "%s\n" "$ac_try_echo"; } >&5
4408 (eval "$ac_try") 2>&5
4410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; }; then
4414 if test "$cross_compiling" = maybe; then
4417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4419 as_fn_error 77 "cannot run C compiled programs.
4420 If you meant to cross compile, use \`--host'.
4421 See \`config.log' for more details" "$LINENO" 5; }
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4426 printf "%s\n" "$cross_compiling" >&6; }
4428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4429 ac_clean_files=$ac_clean_files_save
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4431 printf %s "checking for suffix of object files... " >&6; }
4432 if test ${ac_cv_objext+y}
4434 printf %s "(cached) " >&6
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4447 rm -f conftest.o conftest.obj
4448 if { { ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 printf "%s\n" "$ac_try_echo"; } >&5
4455 (eval "$ac_compile") 2>&5
4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4460 for ac_file in conftest.o conftest.obj conftest.*; do
4461 test -f "$ac_file" || continue;
4463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4469 printf "%s\n" "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot compute suffix of object files: cannot compile
4475 See \`config.log' for more details" "$LINENO" 5; }
4477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4480 printf "%s\n" "$ac_cv_objext" >&6; }
4481 OBJEXT=$ac_cv_objext
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4484 printf %s "checking whether the compiler supports GNU C... " >&6; }
4485 if test ${ac_cv_c_compiler_gnu+y}
4487 printf %s "(cached) " >&6
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4503 if ac_fn_c_try_compile "$LINENO"
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 if test $ac_compiler_gnu = yes; then
4522 ac_test_CFLAGS=${CFLAGS+y}
4523 ac_save_CFLAGS=$CFLAGS
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 printf %s "checking whether $CC accepts -g... " >&6; }
4526 if test ${ac_cv_prog_cc_g+y}
4528 printf %s "(cached) " >&6
4530 ac_save_c_werror_flag=$ac_c_werror_flag
4531 ac_c_werror_flag=yes
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4545 if ac_fn_c_try_compile "$LINENO"
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4561 if ac_fn_c_try_compile "$LINENO"
4565 ac_c_werror_flag=$ac_save_c_werror_flag
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 if ac_fn_c_try_compile "$LINENO"
4582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4590 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4591 if test $ac_test_CFLAGS; then
4592 CFLAGS=$ac_save_CFLAGS
4593 elif test $ac_cv_prog_cc_g = yes; then
4594 if test "$GCC" = yes; then
4600 if test "$GCC" = yes; then
4607 if test x$ac_prog_cc_stdc = xno
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4610 printf %s "checking for $CC option to enable C11 features... " >&6; }
4611 if test ${ac_cv_prog_cc_c11+y}
4613 printf %s "(cached) " >&6
4615 ac_cv_prog_cc_c11=no
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 $ac_c_conftest_c11_program
4621 for ac_arg in '' -std=gnu11
4623 CC="$ac_save_CC $ac_arg"
4624 if ac_fn_c_try_compile "$LINENO"
4626 ac_cv_prog_cc_c11=$ac_arg
4628 rm -f core conftest.err conftest.$ac_objext conftest.beam
4629 test "x$ac_cv_prog_cc_c11" != "xno" && break
4631 rm -f conftest.$ac_ext
4635 if test "x$ac_cv_prog_cc_c11" = xno
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4638 printf "%s\n" "unsupported" >&6; }
4640 if test "x$ac_cv_prog_cc_c11" = x
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4643 printf "%s\n" "none needed" >&6; }
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4646 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4647 CC="$CC $ac_cv_prog_cc_c11"
4649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4653 if test x$ac_prog_cc_stdc = xno
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4656 printf %s "checking for $CC option to enable C99 features... " >&6; }
4657 if test ${ac_cv_prog_cc_c99+y}
4659 printf %s "(cached) " >&6
4661 ac_cv_prog_cc_c99=no
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 $ac_c_conftest_c99_program
4667 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4669 CC="$ac_save_CC $ac_arg"
4670 if ac_fn_c_try_compile "$LINENO"
4672 ac_cv_prog_cc_c99=$ac_arg
4674 rm -f core conftest.err conftest.$ac_objext conftest.beam
4675 test "x$ac_cv_prog_cc_c99" != "xno" && break
4677 rm -f conftest.$ac_ext
4681 if test "x$ac_cv_prog_cc_c99" = xno
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4684 printf "%s\n" "unsupported" >&6; }
4686 if test "x$ac_cv_prog_cc_c99" = x
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 printf "%s\n" "none needed" >&6; }
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4692 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4693 CC="$CC $ac_cv_prog_cc_c99"
4695 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4699 if test x$ac_prog_cc_stdc = xno
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4702 printf %s "checking for $CC option to enable C89 features... " >&6; }
4703 if test ${ac_cv_prog_cc_c89+y}
4705 printf %s "(cached) " >&6
4707 ac_cv_prog_cc_c89=no
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 $ac_c_conftest_c89_program
4713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4715 CC="$ac_save_CC $ac_arg"
4716 if ac_fn_c_try_compile "$LINENO"
4718 ac_cv_prog_cc_c89=$ac_arg
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam
4721 test "x$ac_cv_prog_cc_c89" != "xno" && break
4723 rm -f conftest.$ac_ext
4727 if test "x$ac_cv_prog_cc_c89" = xno
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4730 printf "%s\n" "unsupported" >&6; }
4732 if test "x$ac_cv_prog_cc_c89" = x
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4735 printf "%s\n" "none needed" >&6; }
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4738 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4739 CC="$CC $ac_cv_prog_cc_c89"
4741 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4753 printf %s "checking for a sed that does not truncate output... " >&6; }
4754 if test ${lt_cv_path_SED+y}
4756 printf %s "(cached) " >&6
4758 # Loop through the user's path and test for sed and gsed.
4759 # Then use that list of sed's as ones to test for truncation.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for lt_ac_prog in sed gsed; do
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4768 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4776 # along with /bin/sed that truncates output.
4777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4778 test ! -f $lt_ac_sed && continue
4779 cat /dev/null > conftest.in
4781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4782 # Check for GNU sed and select it if it is found.
4783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4784 lt_cv_path_SED=$lt_ac_sed
4788 cat conftest.in conftest.in >conftest.tmp
4789 mv conftest.tmp conftest.in
4790 cp conftest.in conftest.nl
4792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4793 cmp -s conftest.out conftest.nl || break
4794 # 10000 chars as input seems more than enough
4795 test $lt_ac_count -gt 10 && break
4796 lt_ac_count=`expr $lt_ac_count + 1`
4797 if test $lt_ac_count -gt $lt_ac_max; then
4798 lt_ac_max=$lt_ac_count
4799 lt_cv_path_SED=$lt_ac_sed
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4808 printf "%s\n" "$SED" >&6; }
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4811 printf %s "checking for grep that handles long lines and -e... " >&6; }
4812 if test ${ac_cv_path_GREP+y}
4814 printf %s "(cached) " >&6
4816 if test -z "$GREP"; then
4817 ac_path_GREP_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 case $as_dir in #(((
4826 *) as_dir=$as_dir/ ;;
4828 for ac_prog in grep ggrep
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4832 as_fn_executable_p "$ac_path_GREP" || continue
4833 # Check for GNU ac_path_GREP and select it if it is found.
4834 # Check for GNU $ac_path_GREP
4835 case `"$ac_path_GREP" --version 2>&1` in
4837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4840 printf %s 0123456789 >"conftest.in"
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 printf "%s\n" 'GREP' >> "conftest.nl"
4847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_GREP="$ac_path_GREP"
4853 ac_path_GREP_max=$ac_count
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 $ac_path_GREP_found && break 3
4866 if test -z "$ac_cv_path_GREP"; then
4867 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870 ac_cv_path_GREP=$GREP
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4876 GREP="$ac_cv_path_GREP"
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880 printf %s "checking for egrep... " >&6; }
4881 if test ${ac_cv_path_EGREP+y}
4883 printf %s "(cached) " >&6
4885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4886 then ac_cv_path_EGREP="$GREP -E"
4888 if test -z "$EGREP"; then
4889 ac_path_EGREP_found=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 case $as_dir in #(((
4898 *) as_dir=$as_dir/ ;;
4900 for ac_prog in egrep
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4904 as_fn_executable_p "$ac_path_EGREP" || continue
4905 # Check for GNU ac_path_EGREP and select it if it is found.
4906 # Check for GNU $ac_path_EGREP
4907 case `"$ac_path_EGREP" --version 2>&1` in
4909 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4912 printf %s 0123456789 >"conftest.in"
4915 cat "conftest.in" "conftest.in" >"conftest.tmp"
4916 mv "conftest.tmp" "conftest.in"
4917 cp "conftest.in" "conftest.nl"
4918 printf "%s\n" 'EGREP' >> "conftest.nl"
4919 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921 as_fn_arith $ac_count + 1 && ac_count=$as_val
4922 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4923 # Best one so far, save it but keep looking for a better one
4924 ac_cv_path_EGREP="$ac_path_EGREP"
4925 ac_path_EGREP_max=$ac_count
4927 # 10*(2^10) chars as input seems more than enough
4928 test $ac_count -gt 10 && break
4930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4933 $ac_path_EGREP_found && break 3
4938 if test -z "$ac_cv_path_EGREP"; then
4939 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942 ac_cv_path_EGREP=$EGREP
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4948 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4949 EGREP="$ac_cv_path_EGREP"
4953 # Check whether --with-gnu-ld was given.
4954 if test ${with_gnu_ld+y}
4956 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4962 if test "$GCC" = yes; then
4963 # Check if gcc -print-prog-name=ld gives a path.
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4965 printf %s "checking for ld used by $CC... " >&6; }
4968 # gcc leaves a trailing carriage return which upsets mingw
4969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4974 # Accept absolute paths.
4976 re_direlt='/[^/][^/]*/\.\./'
4977 # Canonicalize the pathname of ld
4978 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4979 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4980 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4982 test -z "$LD" && LD="$ac_prog"
4985 # If it fails, then pretend we aren't using GCC.
4989 # If it is relative, then search for the first ld in PATH.
4993 elif test "$with_gnu_ld" = yes; then
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4995 printf %s "checking for GNU ld... " >&6; }
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4998 printf %s "checking for non-GNU ld... " >&6; }
5000 if test ${lt_cv_path_LD+y}
5002 printf %s "(cached) " >&6
5004 if test -z "$LD"; then
5005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5006 for ac_dir in $PATH; do
5008 test -z "$ac_dir" && ac_dir=.
5009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5010 lt_cv_path_LD="$ac_dir/$ac_prog"
5011 # Check to see if the program is GNU ld. I'd rather use --version,
5012 # but apparently some variants of GNU ld only accept -v.
5013 # Break only if it was the GNU/non-GNU ld that we prefer.
5014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5015 *GNU* | *'with BFD'*)
5016 test "$with_gnu_ld" != no && break
5019 test "$with_gnu_ld" != yes && break
5026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5031 if test -n "$LD"; then
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5033 printf "%s\n" "$LD" >&6; }
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 printf "%s\n" "no" >&6; }
5038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5040 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5041 if test ${lt_cv_prog_gnu_ld+y}
5043 printf %s "(cached) " >&6
5045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5046 case `$LD -v 2>&1 </dev/null` in
5047 *GNU* | *'with BFD'*)
5048 lt_cv_prog_gnu_ld=yes
5051 lt_cv_prog_gnu_ld=no
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5056 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5057 with_gnu_ld=$lt_cv_prog_gnu_ld
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5061 printf %s "checking for $LD option to reload object files... " >&6; }
5062 if test ${lt_cv_ld_reload_flag+y}
5064 printf %s "(cached) " >&6
5066 lt_cv_ld_reload_flag='-r'
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5069 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5070 reload_flag=$lt_cv_ld_reload_flag
5071 case $reload_flag in
5073 *) reload_flag=" $reload_flag" ;;
5075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5078 if test "$GCC" = yes; then
5079 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5087 printf %s "checking for BSD-compatible nm... " >&6; }
5088 if test ${lt_cv_path_NM+y}
5090 printf %s "(cached) " >&6
5092 if test -n "$NM"; then
5093 # Let the user override the test.
5096 lt_nm_to_check="${ac_tool_prefix}nm"
5097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5098 lt_nm_to_check="$lt_nm_to_check nm"
5100 for lt_tmp_nm in $lt_nm_to_check; do
5101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5104 test -z "$ac_dir" && ac_dir=.
5105 tmp_nm="$ac_dir/$lt_tmp_nm"
5106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5107 # Check to see if the nm accepts a BSD-compat flag.
5108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5109 # nm: unknown option "B" ignored
5110 # Tru64's nm complains that /dev/null is an invalid object file
5111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5112 */dev/null* | *'Invalid file or object type'*)
5113 lt_cv_path_NM="$tmp_nm -B"
5117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5119 lt_cv_path_NM="$tmp_nm -p"
5123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124 continue # so that we can try to find one that supports BSD flags
5133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5137 printf "%s\n" "$lt_cv_path_NM" >&6; }
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5141 printf %s "checking whether ln -s works... " >&6; }
5143 if test "$LN_S" = "ln -s"; then
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 printf "%s\n" "yes" >&6; }
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5148 printf "%s\n" "no, using $LN_S" >&6; }
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5152 printf %s "checking how to recognise dependent libraries... " >&6; }
5153 if test ${lt_cv_deplibs_check_method+y}
5155 printf %s "(cached) " >&6
5157 lt_cv_file_magic_cmd='$MAGIC_CMD'
5158 lt_cv_file_magic_test_file=
5159 lt_cv_deplibs_check_method='unknown'
5160 # Need to set the preceding variable on all platforms that support
5161 # interlibrary dependencies.
5162 # 'none' -- dependencies not supported.
5163 # `unknown' -- same as none, but documents that we really don't know.
5164 # 'pass_all' -- all dependencies passed with no checks.
5165 # 'test_compile' -- check by making test program.
5166 # 'file_magic [[regex]]' -- check by looking for files in library path
5167 # which responds to the $file_magic_cmd with a given extended regex.
5168 # If you have `file' or equivalent on your system and you're not sure
5169 # whether `pass_all' will *always* work, you probably want this one.
5173 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method=pass_all
5181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5182 lt_cv_file_magic_cmd='/usr/bin/file -L'
5183 lt_cv_file_magic_test_file=/shlib/libc.so
5187 # func_win32_libid is a shell function defined in ltmain.sh
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5193 # Base MSYS/MinGW do not provide the 'file' command needed by
5194 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5195 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5196 lt_cv_file_magic_cmd='$OBJDUMP -f'
5199 darwin* | rhapsody*)
5200 lt_cv_deplibs_check_method=pass_all
5203 freebsd* | kfreebsd*-gnu | dragonfly*)
5204 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5207 # Not sure whether the presence of OpenBSD here was a mistake.
5208 # Let's accept both of them until this is cleared up.
5209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5210 lt_cv_file_magic_cmd=/usr/bin/file
5211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5215 lt_cv_deplibs_check_method=pass_all
5220 lt_cv_deplibs_check_method=pass_all
5223 hpux10.20* | hpux11*)
5224 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5231 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]'
5232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5246 irix5* | irix6* | nonstopux*)
5248 *-32|*"-32 ") libmagic=32-bit;;
5249 *-n32|*"-n32 ") libmagic=N32;;
5250 *-64|*"-64 ") libmagic=64-bit;;
5251 *) libmagic=never-match;;
5253 lt_cv_deplibs_check_method=pass_all
5256 # This must be Linux ELF.
5258 lt_cv_deplibs_check_method=pass_all
5262 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276 lt_cv_deplibs_check_method=unknown
5280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 osf3* | osf4* | osf5*)
5288 lt_cv_deplibs_check_method=pass_all
5292 lt_cv_deplibs_check_method=pass_all
5296 case $host_vendor in
5298 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]'
5299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5302 lt_cv_deplibs_check_method=pass_all
5305 lt_cv_file_magic_cmd='/bin/file'
5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5309 lt_cv_file_magic_cmd='/bin/file'
5310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5311 lt_cv_file_magic_test_file=/lib/libc.so
5314 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_deplibs_check_method=pass_all
5322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5323 lt_cv_deplibs_check_method=pass_all
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5329 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5330 file_magic_cmd=$lt_cv_file_magic_cmd
5331 deplibs_check_method=$lt_cv_deplibs_check_method
5332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5337 # If no C compiler was specified, use CC.
5340 # If no C compiler flags were specified, use CFLAGS.
5341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5343 # Allow CC to be a program name with arguments.
5347 # Check whether --enable-libtool-lock was given.
5348 if test ${enable_libtool_lock+y}
5350 enableval=$enable_libtool_lock;
5353 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5355 # Some flags need to be propagated to the compiler or linker for good
5359 # Find out which ABI we are using.
5360 echo 'int i;' > conftest.$ac_ext
5361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5362 (eval $ac_compile) 2>&5
5364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5365 test $ac_status = 0; }; then
5366 case `/usr/bin/file conftest.$ac_objext` in
5378 # Find out which ABI we are using.
5379 echo '#line 5379 "configure"' > conftest.$ac_ext
5380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5381 (eval $ac_compile) 2>&5
5383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384 test $ac_status = 0; }; then
5385 if test "$lt_cv_prog_gnu_ld" = yes; then
5386 case `/usr/bin/file conftest.$ac_objext` in
5388 LD="${LD-ld} -melf32bsmip"
5391 LD="${LD-ld} -melf32bmipn32"
5394 LD="${LD-ld} -melf64bmip"
5398 case `/usr/bin/file conftest.$ac_objext` in
5414 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5415 # Find out which ABI we are using.
5416 echo 'int i;' > conftest.$ac_ext
5417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5418 (eval $ac_compile) 2>&5
5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }; then
5422 case `/usr/bin/file conftest.o` in
5426 LD="${LD-ld} -m elf_i386"
5428 ppc64-*linux*|powerpc64-*linux*)
5429 LD="${LD-ld} -m elf32ppclinux"
5432 LD="${LD-ld} -m elf_s390"
5435 LD="${LD-ld} -m elf32_sparc"
5442 LD="${LD-ld} -m elf_x86_64"
5444 ppc*-*linux*|powerpc*-*linux*)
5445 LD="${LD-ld} -m elf64ppc"
5448 LD="${LD-ld} -m elf64_s390"
5451 LD="${LD-ld} -m elf64_sparc"
5461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5462 SAVE_CFLAGS="$CFLAGS"
5463 CFLAGS="$CFLAGS -belf"
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5465 printf %s "checking whether the C compiler needs -belf... " >&6; }
5466 if test ${lt_cv_cc_needs_belf+y}
5468 printf %s "(cached) " >&6
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5487 if ac_fn_c_try_link "$LINENO"
5489 lt_cv_cc_needs_belf=yes
5491 lt_cv_cc_needs_belf=no
5493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5494 conftest$ac_exeext conftest.$ac_ext
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5503 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
5504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5506 CFLAGS="$SAVE_CFLAGS"
5510 # Find out which ABI we are using.
5511 echo 'int i;' > conftest.$ac_ext
5512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5513 (eval $ac_compile) 2>&5
5515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5516 test $ac_status = 0; }; then
5517 case `/usr/bin/file conftest.o` in
5519 case $lt_cv_prog_gnu_ld in
5520 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5521 *) LD="${LD-ld} -64" ;;
5532 need_locks="$enable_libtool_lock"
5535 ac_header= ac_cache=
5536 for ac_item in $ac_header_c_list
5538 if test $ac_cache; then
5539 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5540 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5541 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5543 ac_header= ac_cache=
5544 elif test $ac_header; then
5558 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5561 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5564 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5565 if test "x$ac_cv_header_dlfcn_h" = xyes
5567 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
5578 ac_cpp='$CXXCPP $CPPFLAGS'
5579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 if test -z "$CXX"; then
5583 if test -n "$CCC"; then
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 printf %s "checking for $ac_word... " >&6; }
5593 if test ${ac_cv_prog_CXX+y}
5595 printf %s "(cached) " >&6
5597 if test -n "$CXX"; then
5598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 case $as_dir in #(((
5607 *) as_dir=$as_dir/ ;;
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5622 if test -n "$CXX"; then
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5624 printf "%s\n" "$CXX" >&6; }
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 printf "%s\n" "no" >&6; }
5631 test -n "$CXX" && break
5634 if test -z "$CXX"; then
5636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5638 # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 printf %s "checking for $ac_word... " >&6; }
5642 if test ${ac_cv_prog_ac_ct_CXX+y}
5644 printf %s "(cached) " >&6
5646 if test -n "$ac_ct_CXX"; then
5647 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 case $as_dir in #(((
5656 *) as_dir=$as_dir/ ;;
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_CXX="$ac_prog"
5661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5671 if test -n "$ac_ct_CXX"; then
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5673 printf "%s\n" "$ac_ct_CXX" >&6; }
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 printf "%s\n" "no" >&6; }
5680 test -n "$ac_ct_CXX" && break
5683 if test "x$ac_ct_CXX" = x; then
5686 case $cross_compiling:$ac_tool_warned in
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5698 # Provide some information about the compiler.
5699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5702 for ac_option in --version -v -V -qversion; do
5703 { { ac_try="$ac_compiler $ac_option >&5"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 printf "%s\n" "$ac_try_echo"; } >&5
5710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5712 if test -s conftest.err; then
5714 ... rest of stderr output deleted ...
5715 10q' conftest.err >conftest.er1
5716 cat conftest.er1 >&5
5718 rm -f conftest.er1 conftest.err
5719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5724 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5725 if test ${ac_cv_cxx_compiler_gnu+y}
5727 printf %s "(cached) " >&6
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5743 if ac_fn_cxx_try_compile "$LINENO"
5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5754 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5757 if test $ac_compiler_gnu = yes; then
5762 ac_test_CXXFLAGS=${CXXFLAGS+y}
5763 ac_save_CXXFLAGS=$CXXFLAGS
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5765 printf %s "checking whether $CXX accepts -g... " >&6; }
5766 if test ${ac_cv_prog_cxx_g+y}
5768 printf %s "(cached) " >&6
5770 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5771 ac_cxx_werror_flag=yes
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5785 if ac_fn_cxx_try_compile "$LINENO"
5787 ac_cv_prog_cxx_g=yes
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5801 if ac_fn_cxx_try_compile "$LINENO"
5805 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5818 if ac_fn_cxx_try_compile "$LINENO"
5820 ac_cv_prog_cxx_g=yes
5822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5830 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5831 if test $ac_test_CXXFLAGS; then
5832 CXXFLAGS=$ac_save_CXXFLAGS
5833 elif test $ac_cv_prog_cxx_g = yes; then
5834 if test "$GXX" = yes; then
5840 if test "$GXX" = yes; then
5846 ac_prog_cxx_stdcxx=no
5847 if test x$ac_prog_cxx_stdcxx = xno
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5850 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5851 if test ${ac_cv_prog_cxx_11+y}
5853 printf %s "(cached) " >&6
5855 ac_cv_prog_cxx_11=no
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 $ac_cxx_conftest_cxx11_program
5861 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5863 CXX="$ac_save_CXX $ac_arg"
5864 if ac_fn_cxx_try_compile "$LINENO"
5866 ac_cv_prog_cxx_cxx11=$ac_arg
5868 rm -f core conftest.err conftest.$ac_objext conftest.beam
5869 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5871 rm -f conftest.$ac_ext
5875 if test "x$ac_cv_prog_cxx_cxx11" = xno
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5878 printf "%s\n" "unsupported" >&6; }
5880 if test "x$ac_cv_prog_cxx_cxx11" = x
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5883 printf "%s\n" "none needed" >&6; }
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5886 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5887 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5889 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5890 ac_prog_cxx_stdcxx=cxx11
5893 if test x$ac_prog_cxx_stdcxx = xno
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5896 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5897 if test ${ac_cv_prog_cxx_98+y}
5899 printf %s "(cached) " >&6
5901 ac_cv_prog_cxx_98=no
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 $ac_cxx_conftest_cxx98_program
5907 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5909 CXX="$ac_save_CXX $ac_arg"
5910 if ac_fn_cxx_try_compile "$LINENO"
5912 ac_cv_prog_cxx_cxx98=$ac_arg
5914 rm -f core conftest.err conftest.$ac_objext conftest.beam
5915 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5917 rm -f conftest.$ac_ext
5921 if test "x$ac_cv_prog_cxx_cxx98" = xno
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5924 printf "%s\n" "unsupported" >&6; }
5926 if test "x$ac_cv_prog_cxx_cxx98" = x
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5929 printf "%s\n" "none needed" >&6; }
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5932 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5933 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5935 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5936 ac_prog_cxx_stdcxx=cxx98
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5948 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5949 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5950 (test "X$CXX" != "Xg++"))) ; then
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5957 printf %s "checking how to run the C++ preprocessor... " >&6; }
5958 if test -z "$CXXCPP"; then
5959 if test ${ac_cv_prog_CXXCPP+y}
5961 printf %s "(cached) " >&6
5963 # Double quotes because $CXX needs to be expanded
5964 for CXXCPP in "$CXX -E" cpp /lib/cpp
5967 for ac_cxx_preproc_warn_flag in '' yes
5969 # Use a header file that comes with gcc, so configuring glibc
5970 # with a fresh cross-compiler works.
5971 # On the NeXT, cc -E runs the code through the compiler's parser,
5972 # not just through cpp. "Syntax error" is here to catch this case.
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5978 if ac_fn_cxx_try_cpp "$LINENO"
5982 # Broken: fails on valid input.
5985 rm -f conftest.err conftest.i conftest.$ac_ext
5987 # OK, works on sane cases. Now check whether nonexistent headers
5988 # can be detected and how.
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 #include <ac_nonexistent.h>
5993 if ac_fn_cxx_try_cpp "$LINENO"
5995 # Broken: success on invalid input.
5998 # Passes both tests.
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6013 ac_cv_prog_CXXCPP=$CXXCPP
6016 CXXCPP=$ac_cv_prog_CXXCPP
6018 ac_cv_prog_CXXCPP=$CXXCPP
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6021 printf "%s\n" "$CXXCPP" >&6; }
6023 for ac_cxx_preproc_warn_flag in '' yes
6025 # Use a header file that comes with gcc, so configuring glibc
6026 # with a fresh cross-compiler works.
6027 # On the NeXT, cc -E runs the code through the compiler's parser,
6028 # not just through cpp. "Syntax error" is here to catch this case.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6034 if ac_fn_cxx_try_cpp "$LINENO"
6038 # Broken: fails on valid input.
6041 rm -f conftest.err conftest.i conftest.$ac_ext
6043 # OK, works on sane cases. Now check whether nonexistent headers
6044 # can be detected and how.
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6049 if ac_fn_cxx_try_cpp "$LINENO"
6051 # Broken: success on invalid input.
6054 # Passes both tests.
6058 rm -f conftest.err conftest.i conftest.$ac_ext
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.i conftest.err conftest.$ac_ext
6067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6069 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6070 See \`config.log' for more details" "$LINENO" 5; }
6074 ac_cpp='$CXXCPP $CPPFLAGS'
6075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6086 if test -n "$ac_tool_prefix"; then
6087 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
6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 printf %s "checking for $ac_word... " >&6; }
6093 if test ${ac_cv_prog_F77+y}
6095 printf %s "(cached) " >&6
6097 if test -n "$F77"; then
6098 ac_cv_prog_F77="$F77" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 case $as_dir in #(((
6107 *) as_dir=$as_dir/ ;;
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6122 if test -n "$F77"; then
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6124 printf "%s\n" "$F77" >&6; }
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 printf "%s\n" "no" >&6; }
6131 test -n "$F77" && break
6134 if test -z "$F77"; then
6136 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
6138 # Extract the first word of "$ac_prog", so it can be a program name with args.
6139 set dummy $ac_prog; ac_word=$2
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 printf %s "checking for $ac_word... " >&6; }
6142 if test ${ac_cv_prog_ac_ct_F77+y}
6144 printf %s "(cached) " >&6
6146 if test -n "$ac_ct_F77"; then
6147 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 case $as_dir in #(((
6156 *) as_dir=$as_dir/ ;;
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_ac_ct_F77="$ac_prog"
6161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6170 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6171 if test -n "$ac_ct_F77"; then
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6173 printf "%s\n" "$ac_ct_F77" >&6; }
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 printf "%s\n" "no" >&6; }
6180 test -n "$ac_ct_F77" && break
6183 if test "x$ac_ct_F77" = x; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6197 # Provide some information about the compiler.
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6201 for ac_option in --version -v -V -qversion; do
6202 { { ac_try="$ac_compiler $ac_option >&5"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6208 printf "%s\n" "$ac_try_echo"; } >&5
6209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6211 if test -s conftest.err; then
6213 ... rest of stderr output deleted ...
6214 10q' conftest.err >conftest.er1
6215 cat conftest.er1 >&5
6217 rm -f conftest.er1 conftest.err
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }
6223 # If we don't use `.F' as extension, the preprocessor is not run on the
6224 # input file. (Note that this only needs to work for GNU compilers.)
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran 77" >&5
6228 printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; }
6229 if test ${ac_cv_f77_compiler_gnu+y}
6231 printf %s "(cached) " >&6
6233 cat > conftest.$ac_ext <<_ACEOF
6241 if ac_fn_f77_try_compile "$LINENO"
6247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6252 printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; }
6253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6256 ac_test_FFLAGS=${FFLAGS+y}
6257 ac_save_FFLAGS=$FFLAGS
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6260 printf %s "checking whether $F77 accepts -g... " >&6; }
6261 if test ${ac_cv_prog_f77_g+y}
6263 printf %s "(cached) " >&6
6266 cat > conftest.$ac_ext <<_ACEOF
6271 if ac_fn_f77_try_compile "$LINENO"
6273 ac_cv_prog_f77_g=yes
6277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6281 printf "%s\n" "$ac_cv_prog_f77_g" >&6; }
6282 if test $ac_test_FFLAGS; then
6283 FFLAGS=$ac_save_FFLAGS
6284 elif test $ac_cv_prog_f77_g = yes; then
6285 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6298 if test $ac_compiler_gnu = yes; then
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6311 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6313 # find the maximum length of command line arguments
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6315 printf %s "checking the maximum length of command line arguments... " >&6; }
6316 if test ${lt_cv_sys_max_cmd_len+y}
6318 printf %s "(cached) " >&6
6325 # On DJGPP, this test can blow up pretty badly due to problems in libc
6326 # (any single argument exceeding 2000 bytes causes a buffer overrun
6327 # during glob expansion). Even if it were fixed, the result of this
6328 # check would be larger than it should be.
6329 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6333 # Under GNU Hurd, this test is not required because there is
6334 # no limit to the length of command line arguments.
6335 # Libtool will interpret -1 as no limit whatsoever
6336 lt_cv_sys_max_cmd_len=-1;
6340 # On Win9x/ME, this test blows up -- it succeeds, but takes
6341 # about 5 minutes as the teststring grows exponentially.
6342 # Worse, since 9x/ME are not pre-emptively multitasking,
6343 # you end up with a "frozen" computer, even though with patience
6344 # the test eventually succeeds (with a max line length of 256k).
6345 # Instead, let's just punt: use the minimum linelength reported by
6346 # all of the supported platforms: 8192 (on NT/2K/XP).
6347 lt_cv_sys_max_cmd_len=8192;
6351 # On AmigaOS with pdksh, this test takes hours, literally.
6352 # So we just punt and use a minimum line length of 8192.
6353 lt_cv_sys_max_cmd_len=8192;
6356 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6357 # This has been around since 386BSD, at least. Likely further.
6358 if test -x /sbin/sysctl; then
6359 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6360 elif test -x /usr/sbin/sysctl; then
6361 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6363 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6365 # And add a safety zone
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6371 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6372 lt_cv_sys_max_cmd_len=196608
6376 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6377 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6378 # nice to cause kernel panics so lets avoid the loop below.
6379 # First set a reasonable default.
6380 lt_cv_sys_max_cmd_len=16384
6382 if test -x /sbin/sysconfig; then
6383 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6384 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6389 lt_cv_sys_max_cmd_len=102400
6391 sysv5* | sco5v6* | sysv4.2uw2*)
6392 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6393 if test -n "$kargmax"; then
6394 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6396 lt_cv_sys_max_cmd_len=32768
6400 # If test is not a shell built-in, we'll probably end up computing a
6401 # maximum length that is only half of the actual maximum length, but
6403 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6404 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6405 = "XX$teststring") >/dev/null 2>&1 &&
6406 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6407 lt_cv_sys_max_cmd_len=$new_result &&
6408 test $i != 17 # 1/2 MB should be enough
6411 teststring=$teststring$teststring
6414 # Add a significant safety factor because C++ compilers can tack on massive
6415 # amounts of additional arguments before passing them to the linker.
6416 # It appears as though 1/2 is a usable value.
6417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6423 if test -n $lt_cv_sys_max_cmd_len ; then
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6425 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6428 printf "%s\n" "none" >&6; }
6434 # Check for command to grab the raw symbol name followed by C symbol from nm.
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6436 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6437 if test ${lt_cv_sys_global_symbol_pipe+y}
6439 printf %s "(cached) " >&6
6442 # These are sane defaults that work on at least a few old systems.
6443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6445 # Character class describing NM global symbol codes.
6446 symcode='[BCDEGRST]'
6448 # Regexp to match symbols that can be accessed directly from C.
6449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6451 # Transform an extracted symbol line into a proper C declaration
6452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6454 # Transform an extracted symbol line into symbol name and symbol address
6455 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'"
6457 # Define system-specific variables.
6462 cygwin* | mingw* | pw32*)
6463 symcode='[ABCDGISTW]'
6465 hpux*) # Its linker distinguishes data from code symbols
6466 if test "$host_cpu" = ia64; then
6467 symcode='[ABCDEGRST]'
6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470 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'"
6473 if test "$host_cpu" = ia64; then
6474 symcode='[ABCDGIRSTW]'
6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476 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'"
6480 symcode='[BCDEGRST]'
6483 symcode='[BCDEGQRST]'
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6502 # Handle CRLF in mingw tool chain
6506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513 symcode='[ABCDGIRSTW]' ;;
6516 # Try without a prefix undercore, then with it.
6517 for ac_symprfx in "" "_"; do
6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520 symxfrm="\\1 $ac_symprfx\\2 \\2"
6522 # Write the raw and C identifiers.
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6525 # Check to see that the pipe works correctly.
6529 cat > conftest.$ac_ext <<EOF
6534 void nm_test_func(){}
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 # Now try to grab the symbols.
6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; } && test -s "$nlist"; then
6553 # Try sorting and uniquifying the output.
6554 if sort "$nlist" | uniq > "$nlist"T; then
6555 mv -f "$nlist"T "$nlist"
6560 # Make sure that we snagged all the symbols we need.
6561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563 cat <<EOF > conftest.$ac_ext
6569 # Now generate the symbol file.
6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6572 cat <<EOF >> conftest.$ac_ext
6573 #if defined (__STDC__) && __STDC__
6574 # define lt_ptr_t void *
6576 # define lt_ptr_t char *
6580 /* The mapping between symbol names and symbols. */
6585 lt_preloaded_symbols[] =
6588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589 cat <<\EOF >> conftest.$ac_ext
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604 (eval $ac_link) 2>&5
6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
6613 echo "cannot find nm_test_func in $nlist" >&5
6616 echo "cannot find nm_test_var in $nlist" >&5
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 rm -f conftest* conftst*
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6631 lt_cv_sys_global_symbol_pipe=
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 printf "%s\n" "failed" >&6; }
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 printf "%s\n" "ok" >&6; }
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6649 printf %s "checking for objdir... " >&6; }
6650 if test ${lt_cv_objdir+y}
6652 printf %s "(cached) " >&6
6654 rm -f .libs 2>/dev/null
6655 mkdir .libs 2>/dev/null
6656 if test -d .libs; then
6659 # MS-DOS does not allow filenames that begin with a dot.
6662 rmdir .libs 2>/dev/null
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6665 printf "%s\n" "$lt_cv_objdir" >&6; }
6666 objdir=$lt_cv_objdir
6674 # AIX sometimes has problems with the GCC collect2 program. For some
6675 # reason, if we set the COLLECT_NAMES environment variable, the problems
6676 # vanish in a puff of smoke.
6677 if test "X${COLLECT_NAMES+set}" != Xset; then
6679 export COLLECT_NAMES
6684 # Sed substitution that helps us do robust quoting. It backslashifies
6685 # metacharacters that are still active within double-quoted strings.
6686 Xsed='sed -e 1s/^X//'
6687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6689 # Same as above, but do not quote variable references.
6690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6692 # Sed substitution to delay expansion of an escaped shell variable in a
6693 # double_quote_subst'ed string.
6694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6696 # Sed substitution to avoid accidental globbing in evaled expressions
6697 no_glob_subst='s/\*/\\\*/g'
6703 default_ofile=libtool
6704 can_build_shared=yes
6706 # All known linkers require a `.a' archive for static linking (except MSVC,
6707 # which needs '.lib').
6709 ltmain="$ac_aux_dir/ltmain.sh"
6710 ofile="$default_ofile"
6711 with_gnu_ld="$lt_cv_prog_gnu_ld"
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}ar; ac_word=$2
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 printf %s "checking for $ac_word... " >&6; }
6718 if test ${ac_cv_prog_AR+y}
6720 printf %s "(cached) " >&6
6722 if test -n "$AR"; then
6723 ac_cv_prog_AR="$AR" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 case $as_dir in #(((
6732 *) as_dir=$as_dir/ ;;
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_AR="${ac_tool_prefix}ar"
6737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6747 if test -n "$AR"; then
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749 printf "%s\n" "$AR" >&6; }
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 printf "%s\n" "no" >&6; }
6757 if test -z "$ac_cv_prog_AR"; then
6759 # Extract the first word of "ar", so it can be a program name with args.
6760 set dummy ar; ac_word=$2
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 printf %s "checking for $ac_word... " >&6; }
6763 if test ${ac_cv_prog_ac_ct_AR+y}
6765 printf %s "(cached) " >&6
6767 if test -n "$ac_ct_AR"; then
6768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 case $as_dir in #(((
6777 *) as_dir=$as_dir/ ;;
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_ac_ct_AR="ar"
6782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6792 if test -n "$ac_ct_AR"; then
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6794 printf "%s\n" "$ac_ct_AR" >&6; }
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 printf "%s\n" "no" >&6; }
6800 if test "x$ac_ct_AR" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 printf %s "checking for $ac_word... " >&6; }
6820 if test ${ac_cv_prog_RANLIB+y}
6822 printf %s "(cached) " >&6
6824 if test -n "$RANLIB"; then
6825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 case $as_dir in #(((
6834 *) as_dir=$as_dir/ ;;
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848 RANLIB=$ac_cv_prog_RANLIB
6849 if test -n "$RANLIB"; then
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6851 printf "%s\n" "$RANLIB" >&6; }
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 printf "%s\n" "no" >&6; }
6859 if test -z "$ac_cv_prog_RANLIB"; then
6860 ac_ct_RANLIB=$RANLIB
6861 # Extract the first word of "ranlib", so it can be a program name with args.
6862 set dummy ranlib; ac_word=$2
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 printf %s "checking for $ac_word... " >&6; }
6865 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6867 printf %s "(cached) " >&6
6869 if test -n "$ac_ct_RANLIB"; then
6870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 case $as_dir in #(((
6879 *) as_dir=$as_dir/ ;;
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_RANLIB="ranlib"
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6894 if test -n "$ac_ct_RANLIB"; then
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6896 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 printf "%s\n" "no" >&6; }
6902 if test "x$ac_ct_RANLIB" = x; then
6905 case $cross_compiling:$ac_tool_warned in
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6911 RANLIB=$ac_ct_RANLIB
6914 RANLIB="$ac_cv_prog_RANLIB"
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}strip; ac_word=$2
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 printf %s "checking for $ac_word... " >&6; }
6922 if test ${ac_cv_prog_STRIP+y}
6924 printf %s "(cached) " >&6
6926 if test -n "$STRIP"; then
6927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 case $as_dir in #(((
6936 *) as_dir=$as_dir/ ;;
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6950 STRIP=$ac_cv_prog_STRIP
6951 if test -n "$STRIP"; then
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6953 printf "%s\n" "$STRIP" >&6; }
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 printf "%s\n" "no" >&6; }
6961 if test -z "$ac_cv_prog_STRIP"; then
6963 # Extract the first word of "strip", so it can be a program name with args.
6964 set dummy strip; ac_word=$2
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 printf %s "checking for $ac_word... " >&6; }
6967 if test ${ac_cv_prog_ac_ct_STRIP+y}
6969 printf %s "(cached) " >&6
6971 if test -n "$ac_ct_STRIP"; then
6972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 case $as_dir in #(((
6981 *) as_dir=$as_dir/ ;;
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_ac_ct_STRIP="strip"
6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996 if test -n "$ac_ct_STRIP"; then
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6998 printf "%s\n" "$ac_ct_STRIP" >&6; }
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 printf "%s\n" "no" >&6; }
7004 if test "x$ac_ct_STRIP" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7016 STRIP="$ac_cv_prog_STRIP"
7021 old_CFLAGS="$CFLAGS"
7023 # Set sane defaults for various variables
7024 test -z "$AR" && AR=ar
7025 test -z "$AR_FLAGS" && AR_FLAGS=cru
7026 test -z "$AS" && AS=as
7027 test -z "$CC" && CC=cc
7028 test -z "$LTCC" && LTCC=$CC
7029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7030 test -z "$DLLTOOL" && DLLTOOL=dlltool
7031 test -z "$LD" && LD=ld
7032 test -z "$LN_S" && LN_S="ln -s"
7033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7034 test -z "$NM" && NM=nm
7035 test -z "$SED" && SED=sed
7036 test -z "$OBJDUMP" && OBJDUMP=objdump
7037 test -z "$RANLIB" && RANLIB=:
7038 test -z "$STRIP" && STRIP=:
7039 test -z "$ac_objext" && ac_objext=o
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7046 if test -n "$RANLIB"; then
7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7058 for cc_temp in $compiler""; do
7060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7069 # Only perform the check for file, if the check method requires it
7070 case $deplibs_check_method in
7072 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7074 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7075 if test ${lt_cv_path_MAGIC_CMD+y}
7077 printf %s "(cached) " >&6
7081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7084 lt_save_MAGIC_CMD="$MAGIC_CMD"
7085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7087 for ac_dir in $ac_dummy; do
7089 test -z "$ac_dir" && ac_dir=.
7090 if test -f $ac_dir/${ac_tool_prefix}file; then
7091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7092 if test -n "$file_magic_test_file"; then
7093 case $deplibs_check_method in
7095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7098 $EGREP "$file_magic_regex" > /dev/null; then
7103 *** Warning: the command libtool uses to detect shared libraries,
7104 *** $file_magic_cmd, produces output that libtool cannot recognize.
7105 *** The result is that libtool may fail to recognize shared libraries
7106 *** as such. This will affect the creation of libtool libraries that
7107 *** depend on shared libraries, but programs linked with such libtool
7108 *** libraries will work regardless of this problem. Nevertheless, you
7109 *** may want to report the problem to your system manager and/or to
7110 *** bug-libtool@gnu.org
7120 MAGIC_CMD="$lt_save_MAGIC_CMD"
7125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7126 if test -n "$MAGIC_CMD"; then
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7128 printf "%s\n" "$MAGIC_CMD" >&6; }
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 printf "%s\n" "no" >&6; }
7134 if test -z "$lt_cv_path_MAGIC_CMD"; then
7135 if test -n "$ac_tool_prefix"; then
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7137 printf %s "checking for file... " >&6; }
7138 if test ${lt_cv_path_MAGIC_CMD+y}
7140 printf %s "(cached) " >&6
7144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7147 lt_save_MAGIC_CMD="$MAGIC_CMD"
7148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150 for ac_dir in $ac_dummy; do
7152 test -z "$ac_dir" && ac_dir=.
7153 if test -f $ac_dir/file; then
7154 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7155 if test -n "$file_magic_test_file"; then
7156 case $deplibs_check_method in
7158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161 $EGREP "$file_magic_regex" > /dev/null; then
7166 *** Warning: the command libtool uses to detect shared libraries,
7167 *** $file_magic_cmd, produces output that libtool cannot recognize.
7168 *** The result is that libtool may fail to recognize shared libraries
7169 *** as such. This will affect the creation of libtool libraries that
7170 *** depend on shared libraries, but programs linked with such libtool
7171 *** libraries will work regardless of this problem. Nevertheless, you
7172 *** may want to report the problem to your system manager and/or to
7173 *** bug-libtool@gnu.org
7183 MAGIC_CMD="$lt_save_MAGIC_CMD"
7188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189 if test -n "$MAGIC_CMD"; then
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7191 printf "%s\n" "$MAGIC_CMD" >&6; }
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 printf "%s\n" "no" >&6; }
7209 # Check whether --enable-libtool-lock was given.
7210 if test ${enable_libtool_lock+y}
7212 enableval=$enable_libtool_lock;
7215 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7218 # Check whether --with-pic was given.
7219 if test ${with_pic+y}
7221 withval=$with_pic; pic_mode="$withval"
7226 test -z "$pic_mode" && pic_mode=default
7228 # Use C for the default configuration in the libtool script
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238 # Source file extension for C test sources.
7241 # Object file extension for compiled C test sources.
7245 # Code to be used in simple compile tests
7246 lt_simple_compile_test_code="int some_variable = 0;\n"
7248 # Code to be used in simple link tests
7249 lt_simple_link_test_code='int main(){return(0);}\n'
7252 # If no C compiler was specified, use CC.
7255 # If no C compiler flags were specified, use CFLAGS.
7256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7258 # Allow CC to be a program name with arguments.
7262 # save warnings/boilerplate of simple test code
7263 ac_outfile=conftest.$ac_objext
7264 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7266 _lt_compiler_boilerplate=`cat conftest.err`
7269 ac_outfile=conftest.$ac_objext
7270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7272 _lt_linker_boilerplate=`cat conftest.err`
7277 ## There is no encapsulation within the following macros, do not change
7278 ## the running order or otherwise move them around unless you know exactly
7279 ## what you are doing...
7281 lt_prog_compiler_no_builtin_flag=
7283 if test "$GCC" = yes; then
7284 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7288 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7289 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7291 printf %s "(cached) " >&6
7293 lt_cv_prog_compiler_rtti_exceptions=no
7294 ac_outfile=conftest.$ac_objext
7295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7296 lt_compiler_flag="-fno-rtti -fno-exceptions"
7297 # Insert the option either (1) after the last *FLAGS variable, or
7298 # (2) before a word containing "conftest.", or (3) at the end.
7299 # Note that $ac_compile itself does not contain backslashes and begins
7300 # with a dollar sign (not a hyphen), so the echo should work correctly.
7301 # The option is referenced via a variable to avoid confusing sed.
7302 lt_compile=`echo "$ac_compile" | $SED \
7303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7305 -e 's:$: $lt_compiler_flag:'`
7306 (eval echo "\"\$as_me:7306: $lt_compile\"" >&5)
7307 (eval "$lt_compile" 2>conftest.err)
7309 cat conftest.err >&5
7310 echo "$as_me:7310: \$? = $ac_status" >&5
7311 if (exit $ac_status) && test -s "$ac_outfile"; then
7312 # The compiler can only warn and ignore the option if not recognized
7313 # So say no if there are warnings other than the usual output.
7314 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7317 lt_cv_prog_compiler_rtti_exceptions=yes
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7324 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7334 lt_prog_compiler_wl=
7335 lt_prog_compiler_pic=
7336 lt_prog_compiler_static=
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7339 printf %s "checking for $compiler option to produce PIC... " >&6; }
7341 if test "$GCC" = yes; then
7342 lt_prog_compiler_wl='-Wl,'
7343 lt_prog_compiler_static='-static'
7347 # All AIX code is PIC.
7348 if test "$host_cpu" = ia64; then
7349 # AIX 5 now supports IA64 processor
7350 lt_prog_compiler_static='-Bstatic'
7355 # FIXME: we need at least 68020 code to build shared libraries, but
7356 # adding the `-m68020' flag to GCC prevents building anything better,
7358 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7361 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7362 # PIC is the default for these OSes.
7365 mingw* | pw32* | os2*)
7366 # This hack is so that the source file can tell whether it is being
7367 # built for inclusion in a dll (and should export symbols for example).
7368 lt_prog_compiler_pic='-DDLL_EXPORT'
7371 darwin* | rhapsody*)
7372 # PIC is the default on this platform
7373 # Common symbols not allowed in MH_DYLIB files
7374 lt_prog_compiler_pic='-fno-common'
7378 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7379 # Instead, we relocate shared libraries at runtime.
7383 # Just because we use GCC doesn't mean we suddenly get shared libraries
7384 # on systems that don't support them.
7385 lt_prog_compiler_can_build_shared=no
7390 if test -d /usr/nec; then
7391 lt_prog_compiler_pic=-Kconform_pic
7396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7403 lt_prog_compiler_pic='-fPIC'
7409 lt_prog_compiler_pic='-fPIC'
7413 # PORTME Check for flag to pass linker flags through the system compiler.
7416 lt_prog_compiler_wl='-Wl,'
7417 if test "$host_cpu" = ia64; then
7418 # AIX 5 now supports IA64 processor
7419 lt_prog_compiler_static='-Bstatic'
7421 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7425 # PIC is the default on this platform
7426 # Common symbols not allowed in MH_DYLIB files
7427 case $cc_basename in
7429 lt_prog_compiler_pic='-qnocommon'
7430 lt_prog_compiler_wl='-Wl,'
7435 mingw* | pw32* | os2*)
7436 # This hack is so that the source file can tell whether it is being
7437 # built for inclusion in a dll (and should export symbols for example).
7438 lt_prog_compiler_pic='-DDLL_EXPORT'
7441 hpux9* | hpux10* | hpux11*)
7442 lt_prog_compiler_wl='-Wl,'
7443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7450 lt_prog_compiler_pic='+Z'
7453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7454 lt_prog_compiler_static='${wl}-a ${wl}archive'
7457 irix5* | irix6* | nonstopux*)
7458 lt_prog_compiler_wl='-Wl,'
7459 # PIC (with -KPIC) is the default.
7460 lt_prog_compiler_static='-non_shared'
7464 lt_prog_compiler_pic='-KPIC'
7465 lt_prog_compiler_static='-Bstatic'
7469 case $cc_basename in
7471 lt_prog_compiler_wl='-Wl,'
7472 lt_prog_compiler_pic='-KPIC'
7473 lt_prog_compiler_static='-static'
7475 pgcc* | pgf77* | pgf90* | pgf95*)
7476 # Portland Group compilers (*not* the Pentium gcc compiler,
7477 # which looks to be a dead project)
7478 lt_prog_compiler_wl='-Wl,'
7479 lt_prog_compiler_pic='-fpic'
7480 lt_prog_compiler_static='-Bstatic'
7483 lt_prog_compiler_wl='-Wl,'
7484 # All Alpha code is PIC.
7485 lt_prog_compiler_static='-non_shared'
7490 osf3* | osf4* | osf5*)
7491 lt_prog_compiler_wl='-Wl,'
7492 # All OSF/1 code is PIC.
7493 lt_prog_compiler_static='-non_shared'
7497 lt_prog_compiler_pic='-KPIC'
7498 lt_prog_compiler_static='-Bstatic'
7499 case $cc_basename in
7501 lt_prog_compiler_wl='-Qoption ld ';;
7503 lt_prog_compiler_wl='-Wl,';;
7508 lt_prog_compiler_wl='-Qoption ld '
7509 lt_prog_compiler_pic='-PIC'
7510 lt_prog_compiler_static='-Bstatic'
7513 sysv4 | sysv4.2uw2* | sysv4.3*)
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_pic='-KPIC'
7516 lt_prog_compiler_static='-Bstatic'
7520 if test -d /usr/nec ;then
7521 lt_prog_compiler_pic='-Kconform_pic'
7522 lt_prog_compiler_static='-Bstatic'
7526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7527 lt_prog_compiler_wl='-Wl,'
7528 lt_prog_compiler_pic='-KPIC'
7529 lt_prog_compiler_static='-Bstatic'
7533 lt_prog_compiler_wl='-Wl,'
7534 lt_prog_compiler_can_build_shared=no
7538 lt_prog_compiler_pic='-pic'
7539 lt_prog_compiler_static='-Bstatic'
7543 lt_prog_compiler_can_build_shared=no
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7549 printf "%s\n" "$lt_prog_compiler_pic" >&6; }
7552 # Check to make sure the PIC flag actually works.
7554 if test -n "$lt_prog_compiler_pic"; then
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7557 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7558 if test ${lt_prog_compiler_pic_works+y}
7560 printf %s "(cached) " >&6
7562 lt_prog_compiler_pic_works=no
7563 ac_outfile=conftest.$ac_objext
7564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7566 # Insert the option either (1) after the last *FLAGS variable, or
7567 # (2) before a word containing "conftest.", or (3) at the end.
7568 # Note that $ac_compile itself does not contain backslashes and begins
7569 # with a dollar sign (not a hyphen), so the echo should work correctly.
7570 # The option is referenced via a variable to avoid confusing sed.
7571 lt_compile=`echo "$ac_compile" | $SED \
7572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7574 -e 's:$: $lt_compiler_flag:'`
7575 (eval echo "\"\$as_me:7575: $lt_compile\"" >&5)
7576 (eval "$lt_compile" 2>conftest.err)
7578 cat conftest.err >&5
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 if (exit $ac_status) && test -s "$ac_outfile"; then
7581 # The compiler can only warn and ignore the option if not recognized
7582 # So say no if there are warnings other than the usual output.
7583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7586 lt_prog_compiler_pic_works=yes
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7593 printf "%s\n" "$lt_prog_compiler_pic_works" >&6; }
7595 if test x"$lt_prog_compiler_pic_works" = xyes; then
7596 case $lt_prog_compiler_pic in
7598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7601 lt_prog_compiler_pic=
7602 lt_prog_compiler_can_build_shared=no
7607 # For platforms which do not support PIC, -DPIC is meaningless:
7609 lt_prog_compiler_pic=
7612 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7617 # Check to make sure the static flag actually works.
7619 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7621 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7622 if test ${lt_prog_compiler_static_works+y}
7624 printf %s "(cached) " >&6
7626 lt_prog_compiler_static_works=no
7627 save_LDFLAGS="$LDFLAGS"
7628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7629 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7631 # The linker can only warn and ignore the option if not recognized
7632 # So say no if there are warnings
7633 if test -s conftest.err; then
7634 # Append any errors to the config.log.
7635 cat conftest.err 1>&5
7636 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7638 if diff conftest.exp conftest.er2 >/dev/null; then
7639 lt_prog_compiler_static_works=yes
7642 lt_prog_compiler_static_works=yes
7646 LDFLAGS="$save_LDFLAGS"
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7650 printf "%s\n" "$lt_prog_compiler_static_works" >&6; }
7652 if test x"$lt_prog_compiler_static_works" = xyes; then
7655 lt_prog_compiler_static=
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7660 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7661 if test ${lt_cv_prog_compiler_c_o+y}
7663 printf %s "(cached) " >&6
7665 lt_cv_prog_compiler_c_o=no
7666 $rm -r conftest 2>/dev/null
7670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7672 lt_compiler_flag="-o out/conftest2.$ac_objext"
7673 # Insert the option either (1) after the last *FLAGS variable, or
7674 # (2) before a word containing "conftest.", or (3) at the end.
7675 # Note that $ac_compile itself does not contain backslashes and begins
7676 # with a dollar sign (not a hyphen), so the echo should work correctly.
7677 lt_compile=`echo "$ac_compile" | $SED \
7678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680 -e 's:$: $lt_compiler_flag:'`
7681 (eval echo "\"\$as_me:7681: $lt_compile\"" >&5)
7682 (eval "$lt_compile" 2>out/conftest.err)
7684 cat out/conftest.err >&5
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7688 # The compiler can only warn and ignore the option if not recognized
7689 # So say no if there are warnings
7690 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7693 lt_cv_prog_compiler_c_o=yes
7698 # SGI C++ compiler will create directory out/ii_files/ for
7699 # template instantiation
7700 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7701 $rm out/* && rmdir out
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7708 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
7711 hard_links="nottested"
7712 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7713 # do not overwrite the value of need_locks provided by the user
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7715 printf %s "checking if we can lock with hard links... " >&6; }
7718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7720 ln conftest.a conftest.b 2>&5 || hard_links=no
7721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7723 printf "%s\n" "$hard_links" >&6; }
7724 if test "$hard_links" = no; then
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7726 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7737 allow_undefined_flag=
7738 enable_shared_with_static_runtimes=no
7740 archive_expsym_cmds=
7741 old_archive_From_new_cmds=
7742 old_archive_from_expsyms_cmds=
7743 export_dynamic_flag_spec=
7744 whole_archive_flag_spec=
7745 thread_safe_flag_spec=
7746 hardcode_libdir_flag_spec=
7747 hardcode_libdir_flag_spec_ld=
7748 hardcode_libdir_separator=
7751 hardcode_shlibpath_var=unsupported
7752 link_all_deplibs=unknown
7753 hardcode_automatic=no
7756 always_export_symbols=no
7757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7758 # include_expsyms should be a list of space-separated symbols to be *always*
7759 # included in the symbol list
7761 # exclude_expsyms can be an extended regexp of symbols to exclude
7762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7764 # as well as any symbol that contains `d'.
7765 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7767 # platforms (ab)use it in PIC code, but their linkers get confused if
7768 # the symbol is explicitly referenced. Since portable code cannot
7769 # rely on this symbol name, it's probably fine to never include it in
7770 # preloaded symbol tables.
7771 extract_expsyms_cmds=
7772 # Just being paranoid about ensuring that cc_basename is set.
7773 for cc_temp in $compiler""; do
7775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7784 cygwin* | mingw* | pw32*)
7785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7786 # When not using gcc, we currently assume that we are using
7787 # Microsoft Visual C++.
7788 if test "$GCC" != yes; then
7793 # we just hope/assume this is gcc and not c89 (= MSVC++)
7802 if test "$with_gnu_ld" = yes; then
7803 # If archive_cmds runs LD, not CC, wlarc should be empty
7806 # Set some defaults for GNU ld with shared library support. These
7807 # are reset later if shared libraries are not supported. Putting them
7808 # here allows them to be overridden if necessary.
7809 runpath_var=LD_RUN_PATH
7810 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7811 export_dynamic_flag_spec='${wl}--export-dynamic'
7812 # ancient GNU ld didn't support --whole-archive et. al.
7813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7816 whole_archive_flag_spec=
7818 supports_anon_versioning=no
7819 case `$LD -v 2>/dev/null` in
7820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7823 *\ 2.11.*) ;; # other 2.11 versions
7824 *) supports_anon_versioning=yes ;;
7827 # See if GNU ld supports shared libraries.
7829 aix3* | aix4* | aix5*)
7830 # On AIX/PPC, the GNU linker is very broken
7831 if test "$host_cpu" != ia64; then
7835 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7836 *** to be unable to reliably create shared libraries on AIX.
7837 *** Therefore, libtool is disabling shared libraries support. If you
7838 *** really care for shared libraries, you may want to modify your PATH
7839 *** so that a non-GNU linker is found, and then restart.
7846 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)'
7847 hardcode_libdir_flag_spec='-L$libdir'
7848 hardcode_minus_L=yes
7850 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7851 # that the semantics of dynamic libraries on AmigaOS, at least up
7852 # to version 4, is to share data among multiple programs linked
7853 # with the same dynamic library. Since this doesn't match the
7854 # behavior of shared libraries on other platforms, we can't use
7860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861 allow_undefined_flag=unsupported
7862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7863 # support --undefined. This deserves some investigation. FIXME
7864 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7870 cygwin* | mingw* | pw32*)
7871 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7872 # as there is no search path for DLLs.
7873 hardcode_libdir_flag_spec='-L$libdir'
7874 allow_undefined_flag=unsupported
7875 always_export_symbols=no
7876 enable_shared_with_static_runtimes=yes
7877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7879 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7881 # If the export-symbols file already is a .def file (1st line
7882 # is EXPORTS), use it as is; otherwise, prepend...
7883 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7884 cp $export_symbols $output_objdir/$soname.def;
7886 echo EXPORTS > $output_objdir/$soname.def;
7887 cat $export_symbols >> $output_objdir/$soname.def;
7889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7897 hardcode_shlibpath_var=no
7898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7899 export_dynamic_flag_spec='${wl}-E'
7900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7901 # Instead, shared libraries are loaded at an image base (0x10000000 by
7902 # default) and relocated if they conflict, which is a slow very memory
7903 # consuming and fragmenting process. To avoid this, we pick a random,
7904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7907 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7913 case $cc_basename,$host_cpu in
7914 pgcc*) # Portland Group C compiler
7915 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7916 tmp_addflag=' $pic_flag'
7918 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7919 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7920 tmp_addflag=' $pic_flag -Mnomain' ;;
7921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7922 tmp_addflag=' -i_dynamic' ;;
7923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7924 tmp_addflag=' -i_dynamic -nofor_main' ;;
7925 ifc* | ifort*) # Intel Fortran compiler
7926 tmp_addflag=' -nofor_main' ;;
7928 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7930 if test $supports_anon_versioning = yes; then
7931 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7933 $echo "local: *; };" >> $output_objdir/$libname.ver~
7934 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7943 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7952 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7956 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7957 *** create shared libraries on Solaris systems. Therefore, libtool
7958 *** is disabling shared libraries support. We urge you to upgrade GNU
7959 *** binutils to release 2.9.1 or newer. Another option is to modify
7960 *** your PATH or compiler configuration so that the native linker is
7961 *** used, and then restart.
7964 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7973 case `$LD -v 2>&1` in
7974 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7978 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7979 *** reliably create shared libraries on SCO systems. Therefore, libtool
7980 *** is disabling shared libraries support. We urge you to upgrade GNU
7981 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7982 *** your PATH or compiler configuration so that the native linker is
7983 *** used, and then restart.
7988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8003 hardcode_shlibpath_var=no
8007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8016 if test "$ld_shlibs" = no; then
8018 hardcode_libdir_flag_spec=
8019 export_dynamic_flag_spec=
8020 whole_archive_flag_spec=
8023 # PORTME fill in a description of your system's linker (not GNU ld)
8026 allow_undefined_flag=unsupported
8027 always_export_symbols=yes
8028 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'
8029 # Note: this linker hardcodes the directories in LIBPATH if there
8030 # are no directories specified by -L.
8031 hardcode_minus_L=yes
8032 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8033 # Neither direct hardcoding nor static linking is supported with a
8035 hardcode_direct=unsupported
8040 if test "$host_cpu" = ia64; then
8041 # On IA64, the linker does run time linking by default, so we don't
8042 # have to do anything special.
8043 aix_use_runtimelinking=no
8044 exp_sym_flag='-Bexport'
8047 # If we're using GNU nm, then we don't want the "-C" option.
8048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8049 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8050 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'
8052 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'
8054 aix_use_runtimelinking=no
8056 # Test if we are trying to use run time linking or normal
8057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8058 # need to do runtime linking.
8059 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8060 for ld_flag in $LDFLAGS; do
8061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8062 aix_use_runtimelinking=yes
8069 exp_sym_flag='-bexport'
8070 no_entry_flag='-bnoentry'
8073 # When large executables or shared objects are built, AIX ld can
8074 # have problems creating the table of contents. If linking a library
8075 # or program results in "error TOC overflow" add -mminimal-toc to
8076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8081 hardcode_libdir_separator=':'
8082 link_all_deplibs=yes
8084 if test "$GCC" = yes; then
8085 case $host_os in aix4.[012]|aix4.[012].*)
8086 # We only want to do this on AIX 4.2 and lower, the check
8087 # below for broken collect2 doesn't work under 4.3+
8088 collect2name=`${CC} -print-prog-name=collect2`
8089 if test -f "$collect2name" && \
8090 strings "$collect2name" | grep resolve_lib_name >/dev/null
8092 # We have reworked collect2
8095 # We have old collect2
8096 hardcode_direct=unsupported
8097 # It fails to find uninstalled libraries when the uninstalled
8098 # path is not listed in the libpath. Setting hardcode_minus_L
8099 # to unsupported forces relinking
8100 hardcode_minus_L=yes
8101 hardcode_libdir_flag_spec='-L$libdir'
8102 hardcode_libdir_separator=
8106 shared_flag='-shared'
8107 if test "$aix_use_runtimelinking" = yes; then
8108 shared_flag="$shared_flag "'${wl}-G'
8112 if test "$host_cpu" = ia64; then
8113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8114 # chokes on -Wl,-G. The following line is correct:
8117 if test "$aix_use_runtimelinking" = yes; then
8118 shared_flag='${wl}-G'
8120 shared_flag='${wl}-bM:SRE'
8125 # It seems that -bexpall does not export symbols beginning with
8126 # underscore (_), so it is better to generate a list of symbols to export.
8127 always_export_symbols=yes
8128 if test "$aix_use_runtimelinking" = yes; then
8129 # Warning - without using the other runtime loading flags (-brtl),
8130 # -berok will link without error, but may produce a broken library.
8131 allow_undefined_flag='-berok'
8132 # Determine the default libpath from the value encoded in an empty executable.
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8144 if ac_fn_c_try_link "$LINENO"
8147 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8149 # Check for a 64-bit object if we didn't find anything.
8150 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; }
8153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8154 conftest$ac_exeext conftest.$ac_ext
8155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8158 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8160 if test "$host_cpu" = ia64; then
8161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8162 allow_undefined_flag="-z nodefs"
8163 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8165 # Determine the default libpath from the value encoded in an empty executable.
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8177 if ac_fn_c_try_link "$LINENO"
8180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8182 # Check for a 64-bit object if we didn't find anything.
8183 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; }
8186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8187 conftest$ac_exeext conftest.$ac_ext
8188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8191 # Warning - without using the other run time loading flags,
8192 # -berok will link without error, but may produce a broken library.
8193 no_undefined_flag=' ${wl}-bernotok'
8194 allow_undefined_flag=' ${wl}-berok'
8195 # Exported symbols can be pulled into shared objects from archives
8196 whole_archive_flag_spec='$convenience'
8197 archive_cmds_need_lc=yes
8198 # This is similar to how AIX traditionally builds its shared libraries.
8199 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8205 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)'
8206 hardcode_libdir_flag_spec='-L$libdir'
8207 hardcode_minus_L=yes
8208 # see comment about different semantics on the GNU ld section
8213 export_dynamic_flag_spec=-rdynamic
8216 cygwin* | mingw* | pw32*)
8217 # When not using gcc, we currently assume that we are using
8218 # Microsoft Visual C++.
8219 # hardcode_libdir_flag_spec is actually meaningless, as there is
8220 # no search path for DLLs.
8221 hardcode_libdir_flag_spec=' '
8222 allow_undefined_flag=unsupported
8223 # Tell ltmain to make .lib files, not .a files.
8225 # Tell ltmain to make .dll files, not .so files.
8227 # FIXME: Setting linknames here is a bad hack.
8228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8229 # The linker will automatically build a .lib file if we build a DLL.
8230 old_archive_From_new_cmds='true'
8231 # FIXME: Should let the user specify the lib program.
8232 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8233 fix_srcfile_path='`cygpath -w "$srcfile"`'
8234 enable_shared_with_static_runtimes=yes
8237 darwin* | rhapsody*)
8239 rhapsody* | darwin1.[012])
8240 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8244 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8246 case ${MACOSX_DEPLOYMENT_TARGET} in
8248 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8251 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8257 archive_cmds_need_lc=no
8259 hardcode_automatic=yes
8260 hardcode_shlibpath_var=unsupported
8261 whole_archive_flag_spec=''
8262 link_all_deplibs=yes
8263 if test "$GCC" = yes ; then
8264 output_verbose_link_cmd='echo'
8265 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8266 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8268 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}'
8269 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}'
8271 case $cc_basename in
8273 output_verbose_link_cmd='echo'
8274 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8275 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8276 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8277 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278 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}'
8288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 hardcode_shlibpath_var=no
8297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8298 # support. Future versions do this automatically, but an explicit c++rt0.o
8299 # does not break anything, and helps significantly (at the cost of a little
8302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8303 hardcode_libdir_flag_spec='-R$libdir'
8305 hardcode_shlibpath_var=no
8308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_minus_L=yes
8313 hardcode_shlibpath_var=no
8316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8317 freebsd* | kfreebsd*-gnu | dragonfly*)
8318 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8319 hardcode_libdir_flag_spec='-R$libdir'
8321 hardcode_shlibpath_var=no
8325 if test "$GCC" = yes; then
8326 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'
8328 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'
8330 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8331 hardcode_libdir_separator=:
8334 # hardcode_minus_L: Not really in the search PATH,
8335 # but as the default location of the library.
8336 hardcode_minus_L=yes
8337 export_dynamic_flag_spec='${wl}-E'
8341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8346 if test "$with_gnu_ld" = no; then
8347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8348 hardcode_libdir_separator=:
8351 export_dynamic_flag_spec='${wl}-E'
8353 # hardcode_minus_L: Not really in the search PATH,
8354 # but as the default location of the library.
8355 hardcode_minus_L=yes
8360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8363 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8385 if test "$with_gnu_ld" = no; then
8386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8387 hardcode_libdir_separator=:
8391 hardcode_libdir_flag_spec_ld='+b $libdir'
8393 hardcode_shlibpath_var=no
8397 export_dynamic_flag_spec='${wl}-E'
8399 # hardcode_minus_L: Not really in the search PATH,
8400 # but as the default location of the library.
8401 hardcode_minus_L=yes
8407 irix5* | irix6* | nonstopux*)
8408 if test "$GCC" = yes; then
8409 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'
8411 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'
8412 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415 hardcode_libdir_separator=:
8416 link_all_deplibs=yes
8420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8423 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8425 hardcode_libdir_flag_spec='-R$libdir'
8427 hardcode_shlibpath_var=no
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8434 hardcode_libdir_separator=:
8435 hardcode_shlibpath_var=no
8440 hardcode_shlibpath_var=no
8441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445 export_dynamic_flag_spec='${wl}-E'
8448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8450 hardcode_libdir_flag_spec='-R$libdir'
8453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_minus_L=yes
8463 allow_undefined_flag=unsupported
8464 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'
8465 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8469 if test "$GCC" = yes; then
8470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8471 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'
8473 allow_undefined_flag=' -expect_unresolved \*'
8474 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'
8476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8477 hardcode_libdir_separator=:
8480 osf4* | osf5*) # as osf3* with the addition of -msym flag
8481 if test "$GCC" = yes; then
8482 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8483 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'
8484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 allow_undefined_flag=' -expect_unresolved \*'
8487 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'
8488 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8489 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8491 # Both c and cxx compiler support -rpath directly
8492 hardcode_libdir_flag_spec='-rpath $libdir'
8494 hardcode_libdir_separator=:
8498 no_undefined_flag=' -z text'
8499 if test "$GCC" = yes; then
8501 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8503 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8510 hardcode_libdir_flag_spec='-R$libdir'
8511 hardcode_shlibpath_var=no
8513 solaris2.[0-5] | solaris2.[0-5].*) ;;
8515 # The compiler driver will combine linker options so we
8516 # cannot just pass the convience library names through
8517 # without $wl, iff we do not link with $LD.
8518 # Luckily, gcc supports the same syntax we need for Sun Studio.
8519 # Supported since Solaris 2.6 (maybe 2.5.1?)
8522 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8524 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8527 link_all_deplibs=yes
8531 if test "x$host_vendor" = xsequent; then
8532 # Use $CC to link under sequent, because it throws in some extra .o
8533 # files that make .init and .fini sections work.
8534 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_libdir_flag_spec='-L$libdir'
8540 hardcode_minus_L=yes
8541 hardcode_shlibpath_var=no
8545 case $host_vendor in
8547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8548 hardcode_direct=yes # is this really true???
8551 ## LD is ld it makes a PLAMLIB
8552 ## CC just makes a GrossModule.
8553 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8554 reload_cmds='$CC -r -o $output$reload_objs'
8558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8562 runpath_var='LD_RUN_PATH'
8563 hardcode_shlibpath_var=no
8567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568 hardcode_shlibpath_var=no
8569 export_dynamic_flag_spec='-Bexport'
8573 if test -d /usr/nec; then
8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575 hardcode_shlibpath_var=no
8576 runpath_var=LD_RUN_PATH
8577 hardcode_runpath_var=yes
8582 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8583 no_undefined_flag='${wl}-z,text'
8584 archive_cmds_need_lc=no
8585 hardcode_shlibpath_var=no
8586 runpath_var='LD_RUN_PATH'
8588 if test "$GCC" = yes; then
8589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 sysv5* | sco3.2v5* | sco5v6*)
8598 # Note: We can NOT use -z defs as we might desire, because we do not
8599 # link with -lc, and that would cause any symbols used from libc to
8600 # always be unresolved, which means just about no library would
8601 # ever link correctly. If we're not using GNU ld we use -z text
8602 # though, which does catch some bad symbols but isn't as heavy-handed
8604 no_undefined_flag='${wl}-z,text'
8605 allow_undefined_flag='${wl}-z,nodefs'
8606 archive_cmds_need_lc=no
8607 hardcode_shlibpath_var=no
8608 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8609 hardcode_libdir_separator=':'
8610 link_all_deplibs=yes
8611 export_dynamic_flag_spec='${wl}-Bexport'
8612 runpath_var='LD_RUN_PATH'
8614 if test "$GCC" = yes; then
8615 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8616 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8618 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8619 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_shlibpath_var=no
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8636 printf "%s\n" "$ld_shlibs" >&6; }
8637 test "$ld_shlibs" = no && can_build_shared=no
8640 # Do we need to explicitly link libc?
8642 case "x$archive_cmds_need_lc" in
8644 # Assume -lc should be added
8645 archive_cmds_need_lc=yes
8647 if test "$enable_shared" = yes && test "$GCC" = yes; then
8648 case $archive_cmds in
8650 # FIXME: we may have to deal with multi-command sequences.
8653 # Test whether the compiler implicitly links with -lc since on some
8654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8655 # to ld, don't add -lc before -lgcc.
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8657 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
8659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8662 (eval $ac_compile) 2>&5
8664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8665 test $ac_status = 0; } 2>conftest.err; then
8668 libobjs=conftest.$ac_objext
8670 wl=$lt_prog_compiler_wl
8671 pic_flag=$lt_prog_compiler_pic
8677 lt_save_allow_undefined_flag=$allow_undefined_flag
8678 allow_undefined_flag=
8679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8680 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683 test $ac_status = 0; }
8685 archive_cmds_need_lc=no
8687 archive_cmds_need_lc=yes
8689 allow_undefined_flag=$lt_save_allow_undefined_flag
8691 cat conftest.err 1>&5
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8695 printf "%s\n" "$archive_cmds_need_lc" >&6; }
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8703 printf %s "checking dynamic linker characteristics... " >&6; }
8705 libname_spec='lib$name'
8713 shlibpath_overrides_runpath=unknown
8715 dynamic_linker="$host_os ld.so"
8716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8717 if test "$GCC" = yes; then
8718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8720 # if the path contains ";" then we assume it to be the separator
8721 # otherwise default to the standard path separator (i.e. ":") - it is
8722 # assumed that no part of a normal pathname contains ";" but that should
8723 # okay in the real world where ";" in dirpaths is itself problematic.
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8731 need_lib_prefix=unknown
8732 hardcode_into_libs=no
8734 # when you set need_version to no, make sure it does not cause -set_version
8735 # flags to be left without arguments
8736 need_version=unknown
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8742 shlibpath_var=LIBPATH
8744 # AIX 3 has no versioning support, so we append a major version to the name.
8745 soname_spec='${libname}${release}${shared_ext}$major'
8752 hardcode_into_libs=yes
8753 if test "$host_cpu" = ia64; then
8754 # AIX 5 supports IA64
8755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8756 shlibpath_var=LD_LIBRARY_PATH
8758 # With GCC up to 2.95.x, collect2 would create an import file
8759 # for dependence libraries. The import file would start with
8760 # the line `#! .'. This would cause the generated library to
8761 # depend on `.', always an invalid library. This was fixed in
8762 # development snapshots of GCC prior to 3.0.
8764 aix4 | aix4.[01] | aix4.[01].*)
8765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8775 # soname into executable. Probably we can add versioning support to
8776 # collect2, so additional links can be useful in future.
8777 if test "$aix_use_runtimelinking" = yes; then
8778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8779 # instead of lib<name>.a to let people know that these are not
8780 # typical AIX shared libraries.
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783 # We preserve .a as extension for shared libraries through AIX4.2
8784 # and later when we are not doing run time linking.
8785 library_names_spec='${libname}${release}.a $libname.a'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LIBPATH
8793 library_names_spec='$libname.ixlibrary $libname.a'
8794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8795 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'
8799 library_names_spec='${libname}${shared_ext}'
8800 dynamic_linker="$host_os ld.so"
8801 shlibpath_var=LIBRARY_PATH
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8813 # the default ld.so.conf also contains /usr/contrib/lib and
8814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8815 # libtool to hard-code these into programs
8818 cygwin* | mingw* | pw32*)
8819 version_type=windows
8824 case $GCC,$host_os in
8825 yes,cygwin* | yes,mingw* | yes,pw32*)
8826 library_names_spec='$libname.dll.a'
8827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8828 postinstall_cmds='base_file=`basename \${file}`~
8829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8830 dldir=$destdir/`dirname \$dlpath`~
8831 test -d \$dldir || mkdir -p \$dldir~
8832 $install_prog $dir/$dlname \$dldir/$dlname~
8833 chmod a+x \$dldir/$dlname'
8834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8835 dlpath=$dir/\$dldll~
8837 shlibpath_overrides_runpath=yes
8841 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8843 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8846 # MinGW DLLs use traditional 'lib' prefix
8847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8849 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8850 # It is most probably a Windows format PATH printed by
8851 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8852 # path with ; separators, and with drive letters. We can handle the
8853 # drive letters (cygwin fileutils understands them), so leave them,
8854 # especially as we might pass files found there to a mingw objdump,
8855 # which wouldn't understand a cygwinified path. Ahh.
8856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8862 # pw32 DLLs use 'pw' prefix rather than 'lib'
8863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8872 dynamic_linker='Win32 ld.exe'
8873 # FIXME: first we should search . and the directory the executable is in
8877 darwin* | rhapsody*)
8878 dynamic_linker="$host_os dyld"
8882 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8883 soname_spec='${libname}${release}${major}$shared_ext'
8884 shlibpath_overrides_runpath=yes
8885 shlibpath_var=DYLD_LIBRARY_PATH
8886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8887 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8888 if test "$GCC" = yes; then
8889 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"`
8891 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=no
8917 hardcode_into_libs=yes
8918 dynamic_linker='GNU ld.so'
8921 freebsd* | dragonfly*)
8922 # DragonFly does not have aout. When/if they implement a new
8923 # versioning mechanism, adjust this.
8924 if test -x /usr/bin/objformat; then
8925 objformat=`/usr/bin/objformat`
8928 freebsd[123]*) objformat=aout ;;
8932 version_type=freebsd-$objformat
8933 case $version_type in
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8944 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes
8949 freebsd3.[01]* | freebsdelf3.[01]*)
8950 shlibpath_overrides_runpath=yes
8951 hardcode_into_libs=yes
8953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8955 shlibpath_overrides_runpath=no
8956 hardcode_into_libs=yes
8958 freebsd*) # from 4.6 on
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 hardcode_into_libs=yes
8975 hpux9* | hpux10* | hpux11*)
8976 # Give a soname corresponding to the major version so that dld.sl refuses to
8977 # link against other versions.
8984 hardcode_into_libs=yes
8985 dynamic_linker="$host_os dld.so"
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 if test "X$HPUX_IA64_MODE" = X32; then
8991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8999 hardcode_into_libs=yes
9000 dynamic_linker="$host_os dld.sl"
9001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9010 dynamic_linker="$host_os dld.sl"
9011 shlibpath_var=SHLIB_PATH
9012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9017 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9018 postinstall_cmds='chmod 555 $lib'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9033 irix5* | irix6* | nonstopux*)
9035 nonstopux*) version_type=nonstopux ;;
9037 if test "$lt_cv_prog_gnu_ld" = yes; then
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9048 irix5* | nonstopux*)
9052 case $LD in # libtool.m4 will add one of these switches to LD
9053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9054 libsuff= shlibsuff= libmagic=32-bit;;
9055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9056 libsuff=32 shlibsuff=N32 libmagic=N32;;
9057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9059 *) libsuff= shlibsuff= libmagic=never-match;;
9063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9064 shlibpath_overrides_runpath=no
9065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9067 hardcode_into_libs=yes
9070 # No shared lib support for Linux oldld, aout, or coff.
9071 linux*oldld* | linux*aout* | linux*coff*)
9075 # This must be Linux ELF.
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=no
9085 # This implies no fast_install, which is unacceptable.
9086 # Some rework will be needed to allow for fast_install
9087 # before this can be enabled.
9088 hardcode_into_libs=yes
9090 # Append ld.so.conf contents to the search path
9091 if test -f /etc/ld.so.conf; then
9092 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9096 # We used to test for /lib/ld.so.1 and disable shared libraries on
9097 # powerpc, because MkLinux only supported shared libraries with the
9098 # GNU dynamic linker. Since this was broken with cross compilers,
9099 # most powerpc-linux boxes support dynamic linking these days and
9100 # people can always --disable-shared, the test was removed, and we
9101 # assume the GNU/Linux dynamic linker is in use.
9102 dynamic_linker='GNU/Linux ld.so'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=no
9113 hardcode_into_libs=yes
9114 dynamic_linker='GNU ld.so'
9121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9124 dynamic_linker='NetBSD (a.out) ld.so'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 dynamic_linker='NetBSD ld.elf_so'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=yes
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=yes
9154 sys_lib_dlsearch_path_spec="/usr/lib"
9156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9158 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9159 *) need_version=no ;;
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9166 openbsd2.[89] | openbsd2.[89].*)
9167 shlibpath_overrides_runpath=no
9170 shlibpath_overrides_runpath=yes
9174 shlibpath_overrides_runpath=yes
9179 libname_spec='$name'
9182 library_names_spec='$libname${shared_ext} $libname.a'
9183 dynamic_linker='OS/2 ld.exe'
9184 shlibpath_var=LIBPATH
9187 osf3* | osf4* | osf5*)
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9195 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=yes
9206 hardcode_into_libs=yes
9207 # ldd complains unless libraries are executable
9208 postinstall_cmds='chmod +x $lib'
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=yes
9217 if test "$with_gnu_ld" = yes; then
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 case $host_vendor in
9230 shlibpath_overrides_runpath=no
9232 export_dynamic_flag_spec='${wl}-Blargedynsym'
9233 runpath_var=LD_RUN_PATH
9241 shlibpath_overrides_runpath=no
9242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9248 if test -d /usr/nec ;then
9250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9251 soname_spec='$libname${shared_ext}.$major'
9252 shlibpath_var=LD_LIBRARY_PATH
9256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9257 version_type=freebsd-elf
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 hardcode_into_libs=yes
9264 if test "$with_gnu_ld" = yes; then
9265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9266 shlibpath_overrides_runpath=no
9268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9269 shlibpath_overrides_runpath=yes
9272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9276 sys_lib_dlsearch_path_spec='/usr/lib'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9291 printf "%s\n" "$dynamic_linker" >&6; }
9292 test "$dynamic_linker" = no && can_build_shared=no
9294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9295 if test "$GCC" = yes; then
9296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9300 printf %s "checking how to hardcode library paths into programs... " >&6; }
9302 if test -n "$hardcode_libdir_flag_spec" || \
9303 test -n "$runpath_var" || \
9304 test "X$hardcode_automatic" = "Xyes" ; then
9306 # We can hardcode non-existant directories.
9307 if test "$hardcode_direct" != no &&
9308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9309 # have to relink, otherwise we might link with an installed library
9310 # when we should be linking with a yet-to-be-installed one
9311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9312 test "$hardcode_minus_L" != no; then
9313 # Linking always hardcodes the temporary library directory.
9314 hardcode_action=relink
9316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9317 hardcode_action=immediate
9320 # We cannot hardcode anything, or else we can only hardcode existing
9322 hardcode_action=unsupported
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9325 printf "%s\n" "$hardcode_action" >&6; }
9327 if test "$hardcode_action" = relink; then
9328 # Fast installation is not supported
9329 enable_fast_install=no
9330 elif test "$shlibpath_overrides_runpath" = yes ||
9331 test "$enable_shared" = no; then
9332 # Fast installation is not necessary
9333 enable_fast_install=needless
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9339 printf %s "checking whether stripping libraries is possible... " >&6; }
9340 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9342 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9344 printf "%s\n" "yes" >&6; }
9346 # FIXME - insert some real tests, host_os isn't really good enough
9349 if test -n "$STRIP" ; then
9350 striplib="$STRIP -x"
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9352 printf "%s\n" "yes" >&6; }
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 printf "%s\n" "no" >&6; }
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 printf "%s\n" "no" >&6; }
9365 if test "x$enable_dlopen" != xyes; then
9366 enable_dlopen=unknown
9367 enable_dlopen_self=unknown
9368 enable_dlopen_self_static=unknown
9375 lt_cv_dlopen="load_add_on"
9377 lt_cv_dlopen_self=yes
9381 lt_cv_dlopen="LoadLibrary"
9386 lt_cv_dlopen="dlopen"
9391 # if libdl is installed we need to link against it
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9393 printf %s "checking for dlopen in -ldl... " >&6; }
9394 if test ${ac_cv_lib_dl_dlopen+y}
9396 printf %s "(cached) " >&6
9398 ac_check_lib_save_LIBS=$LIBS
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9415 if ac_fn_c_try_link "$LINENO"
9417 ac_cv_lib_dl_dlopen=yes
9419 ac_cv_lib_dl_dlopen=no
9421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9422 conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9426 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9427 if test "x$ac_cv_lib_dl_dlopen" = xyes
9429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9434 lt_cv_dlopen_self=yes
9441 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9442 if test "x$ac_cv_func_shl_load" = xyes
9444 lt_cv_dlopen="shl_load"
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9447 printf %s "checking for shl_load in -ldld... " >&6; }
9448 if test ${ac_cv_lib_dld_shl_load+y}
9450 printf %s "(cached) " >&6
9452 ac_check_lib_save_LIBS=$LIBS
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9469 if ac_fn_c_try_link "$LINENO"
9471 ac_cv_lib_dld_shl_load=yes
9473 ac_cv_lib_dld_shl_load=no
9475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9476 conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9480 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
9481 if test "x$ac_cv_lib_dld_shl_load" = xyes
9483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9486 if test "x$ac_cv_func_dlopen" = xyes
9488 lt_cv_dlopen="dlopen"
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9491 printf %s "checking for dlopen in -ldl... " >&6; }
9492 if test ${ac_cv_lib_dl_dlopen+y}
9494 printf %s "(cached) " >&6
9496 ac_check_lib_save_LIBS=$LIBS
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9501 /* Override any GCC internal prototype to avoid an error.
9502 Use char because int might match the return type of a GCC
9503 builtin and then its argument prototype would still apply. */
9513 if ac_fn_c_try_link "$LINENO"
9515 ac_cv_lib_dl_dlopen=yes
9517 ac_cv_lib_dl_dlopen=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9524 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9525 if test "x$ac_cv_lib_dl_dlopen" = xyes
9527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9530 printf %s "checking for dlopen in -lsvld... " >&6; }
9531 if test ${ac_cv_lib_svld_dlopen+y}
9533 printf %s "(cached) " >&6
9535 ac_check_lib_save_LIBS=$LIBS
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9540 /* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
9552 if ac_fn_c_try_link "$LINENO"
9554 ac_cv_lib_svld_dlopen=yes
9556 ac_cv_lib_svld_dlopen=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9563 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
9564 if test "x$ac_cv_lib_svld_dlopen" = xyes
9566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9569 printf %s "checking for dld_link in -ldld... " >&6; }
9570 if test ${ac_cv_lib_dld_dld_link+y}
9572 printf %s "(cached) " >&6
9574 ac_check_lib_save_LIBS=$LIBS
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9591 if ac_fn_c_try_link "$LINENO"
9593 ac_cv_lib_dld_dld_link=yes
9595 ac_cv_lib_dld_dld_link=no
9597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9598 conftest$ac_exeext conftest.$ac_ext
9599 LIBS=$ac_check_lib_save_LIBS
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9602 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
9603 if test "x$ac_cv_lib_dld_dld_link" = xyes
9605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9626 if test "x$lt_cv_dlopen" != xno; then
9632 case $lt_cv_dlopen in
9634 save_CPPFLAGS="$CPPFLAGS"
9635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9637 save_LDFLAGS="$LDFLAGS"
9638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9641 LIBS="$lt_cv_dlopen_libs $LIBS"
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9644 printf %s "checking whether a program can dlopen itself... " >&6; }
9645 if test ${lt_cv_dlopen_self+y}
9647 printf %s "(cached) " >&6
9649 if test "$cross_compiling" = yes; then :
9650 lt_cv_dlopen_self=cross
9652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9653 lt_status=$lt_dlunknown
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9655 "configure"
9656 #include "confdefs.h"
9665 # define LT_DLGLOBAL RTLD_GLOBAL
9668 # define LT_DLGLOBAL DL_GLOBAL
9670 # define LT_DLGLOBAL 0
9674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9675 find out it does not work in some platform. */
9676 #ifndef LT_DLLAZY_OR_NOW
9678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9681 # define LT_DLLAZY_OR_NOW DL_LAZY
9684 # define LT_DLLAZY_OR_NOW RTLD_NOW
9687 # define LT_DLLAZY_OR_NOW DL_NOW
9689 # define LT_DLLAZY_OR_NOW 0
9697 extern "C" void exit (int);
9700 void fnord() { int i=42;}
9703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9704 int status = $lt_dlunknown;
9708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9710 /* dlclose (self); */
9718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9719 (eval $ac_link) 2>&5
9721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9723 (./conftest; exit; ) >&5 2>/dev/null
9726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9728 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9731 # compilation failed
9732 lt_cv_dlopen_self=no
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9740 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
9742 if test "x$lt_cv_dlopen_self" = xyes; then
9743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9745 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
9746 if test ${lt_cv_dlopen_self_static+y}
9748 printf %s "(cached) " >&6
9750 if test "$cross_compiling" = yes; then :
9751 lt_cv_dlopen_self_static=cross
9753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9754 lt_status=$lt_dlunknown
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9766 # define LT_DLGLOBAL RTLD_GLOBAL
9769 # define LT_DLGLOBAL DL_GLOBAL
9771 # define LT_DLGLOBAL 0
9775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9776 find out it does not work in some platform. */
9777 #ifndef LT_DLLAZY_OR_NOW
9779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9782 # define LT_DLLAZY_OR_NOW DL_LAZY
9785 # define LT_DLLAZY_OR_NOW RTLD_NOW
9788 # define LT_DLLAZY_OR_NOW DL_NOW
9790 # define LT_DLLAZY_OR_NOW 0
9798 extern "C" void exit (int);
9801 void fnord() { int i=42;}
9804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9805 int status = $lt_dlunknown;
9809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9811 /* dlclose (self); */
9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9820 (eval $ac_link) 2>&5
9822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9824 (./conftest; exit; ) >&5 2>/dev/null
9827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9829 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9832 # compilation failed
9833 lt_cv_dlopen_self_static=no
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9841 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
9844 CPPFLAGS="$save_CPPFLAGS"
9845 LDFLAGS="$save_LDFLAGS"
9850 case $lt_cv_dlopen_self in
9851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9852 *) enable_dlopen_self=unknown ;;
9855 case $lt_cv_dlopen_self_static in
9856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9857 *) enable_dlopen_self_static=unknown ;;
9862 # Report which library types will actually be built
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9864 printf %s "checking if libtool supports shared libraries... " >&6; }
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9866 printf "%s\n" "$can_build_shared" >&6; }
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9869 printf %s "checking whether to build shared libraries... " >&6; }
9870 test "$can_build_shared" = "no" && enable_shared=no
9872 # On AIX, shared libraries and static libraries use the same namespace, and
9873 # are all built from PIC.
9876 test "$enable_shared" = yes && enable_static=no
9877 if test -n "$RANLIB"; then
9878 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9879 postinstall_cmds='$RANLIB $lib'
9884 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9885 test "$enable_shared" = yes && enable_static=no
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9890 printf "%s\n" "$enable_shared" >&6; }
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9893 printf %s "checking whether to build static libraries... " >&6; }
9894 # Make sure either enable_shared or enable_static is yes.
9895 test "$enable_shared" = yes || enable_static=yes
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9897 printf "%s\n" "$enable_static" >&6; }
9899 # The else clause should only fire when bootstrapping the
9900 # libtool distribution, otherwise you forgot to ship ltmain.sh
9901 # with your package, and you will get complaints that there are
9902 # no rules to generate ltmain.sh.
9903 if test -f "$ltmain"; then
9904 # See if we are running on zsh, and set the options which allow our commands through
9905 # without removal of \ escapes.
9906 if test -n "${ZSH_VERSION+set}" ; then
9907 setopt NO_GLOB_SUBST
9909 # Now quote all the things that may contain metacharacters while being
9910 # careful not to overquote the AC_SUBSTed values. We take copies of the
9911 # variables and quote the copies for generation of the libtool script.
9912 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9914 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9915 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9916 deplibs_check_method reload_flag reload_cmds need_locks \
9917 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9918 lt_cv_sys_global_symbol_to_c_name_address \
9919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9920 old_postinstall_cmds old_postuninstall_cmds \
9924 lt_prog_compiler_wl \
9925 lt_prog_compiler_pic \
9926 lt_prog_compiler_static \
9927 lt_prog_compiler_no_builtin_flag \
9928 export_dynamic_flag_spec \
9929 thread_safe_flag_spec \
9930 whole_archive_flag_spec \
9931 enable_shared_with_static_runtimes \
9933 old_archive_from_new_cmds \
9938 compiler_lib_search_path \
9940 archive_expsym_cmds \
9942 postuninstall_cmds \
9943 old_archive_from_expsyms_cmds \
9944 allow_undefined_flag \
9946 export_symbols_cmds \
9947 hardcode_libdir_flag_spec \
9948 hardcode_libdir_flag_spec_ld \
9949 hardcode_libdir_separator \
9950 hardcode_automatic \
9952 module_expsym_cmds \
9953 lt_cv_prog_compiler_c_o \
9958 old_archive_cmds | \
9959 old_archive_from_new_cmds | \
9961 archive_expsym_cmds | \
9963 module_expsym_cmds | \
9964 old_archive_from_expsyms_cmds | \
9965 export_symbols_cmds | \
9966 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9967 postinstall_cmds | postuninstall_cmds | \
9968 old_postinstall_cmds | old_postuninstall_cmds | \
9969 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9970 # Double-quote double-evaled strings.
9971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9980 *'\$0 --fallback-echo"')
9981 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9986 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9989 printf "%s\n" "$as_me: creating $ofile" >&6;}
9991 cat <<__EOF__ >> "$cfgfile"
9994 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9995 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9996 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9998 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9999 # Free Software Foundation, Inc.
10001 # This file is part of GNU Libtool:
10002 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10004 # This program is free software; you can redistribute it and/or modify
10005 # it under the terms of the GNU General Public License as published by
10006 # the Free Software Foundation; either version 2 of the License, or
10007 # (at your option) any later version.
10009 # This program is distributed in the hope that it will be useful, but
10010 # WITHOUT ANY WARRANTY; without even the implied warranty of
10011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10012 # General Public License for more details.
10014 # You should have received a copy of the GNU General Public License
10015 # along with this program; if not, write to the Free Software
10016 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10018 # As a special exception to the GNU General Public License, if you
10019 # distribute this file as part of a program that contains a
10020 # configuration script generated by Autoconf, you may include it under
10021 # the same distribution terms that you use for the rest of that program.
10023 # A sed program that does not truncate output.
10026 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10027 Xsed="$SED -e 1s/^X//"
10029 # The HP-UX ksh and POSIX shell print the target directory to stdout
10030 # if CDPATH is set.
10031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10033 # The names of the tagged configurations supported by this script.
10036 # ### BEGIN LIBTOOL CONFIG
10038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10040 # Shell to use when invoking shell scripts.
10043 # Whether or not to build shared libraries.
10044 build_libtool_libs=$enable_shared
10046 # Whether or not to build static libraries.
10047 build_old_libs=$enable_static
10049 # Whether or not to add -lc for building shared libraries.
10050 build_libtool_need_lc=$archive_cmds_need_lc
10052 # Whether or not to disallow shared libs when runtime libs are static
10053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10055 # Whether or not to optimize for fast installation.
10056 fast_install=$enable_fast_install
10059 host_alias=$host_alias
10063 # The build system.
10064 build_alias=$build_alias
10068 # An echo program that does not interpret backslashes.
10073 AR_FLAGS=$lt_AR_FLAGS
10078 # LTCC compiler flags.
10079 LTCFLAGS=$lt_LTCFLAGS
10081 # A language-specific compiler.
10084 # Is the compiler the GNU C compiler?
10090 # The linker used to build libraries.
10093 # Whether we need hard or soft links.
10096 # A BSD-compatible nm program.
10099 # A symbol stripping program
10102 # Used to examine libraries when file_magic_cmd begins "file"
10103 MAGIC_CMD=$MAGIC_CMD
10105 # Used on cygwin: DLL creation program.
10108 # Used on cygwin: object dumper.
10111 # Used on cygwin: assembler.
10114 # The name of the directory that contains temporary libtool files.
10117 # How to create reloadable object files.
10118 reload_flag=$lt_reload_flag
10119 reload_cmds=$lt_reload_cmds
10121 # How to pass a linker flag through the compiler.
10122 wl=$lt_lt_prog_compiler_wl
10124 # Object file suffix (normally "o").
10125 objext="$ac_objext"
10127 # Old archive suffix (normally "a").
10130 # Shared library suffix (normally ".so").
10131 shrext_cmds='$shrext_cmds'
10133 # Executable file suffix (normally "").
10136 # Additional compiler flags for building library objects.
10137 pic_flag=$lt_lt_prog_compiler_pic
10140 # What is the maximum length of a command?
10141 max_cmd_len=$lt_cv_sys_max_cmd_len
10143 # Does compiler simultaneously support -c and -o options?
10144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10146 # Must we lock files when doing compilation?
10147 need_locks=$lt_need_locks
10149 # Do we need the lib prefix for modules?
10150 need_lib_prefix=$need_lib_prefix
10152 # Do we need a version for libraries?
10153 need_version=$need_version
10155 # Whether dlopen is supported.
10156 dlopen_support=$enable_dlopen
10158 # Whether dlopen of programs is supported.
10159 dlopen_self=$enable_dlopen_self
10161 # Whether dlopen of statically linked programs is supported.
10162 dlopen_self_static=$enable_dlopen_self_static
10164 # Compiler flag to prevent dynamic linking.
10165 link_static_flag=$lt_lt_prog_compiler_static
10167 # Compiler flag to turn off builtin functions.
10168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10170 # Compiler flag to allow reflexive dlopens.
10171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10173 # Compiler flag to generate shared objects directly from archives.
10174 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10176 # Compiler flag to generate thread-safe objects.
10177 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10179 # Library versioning type.
10180 version_type=$version_type
10182 # Format of library name prefix.
10183 libname_spec=$lt_libname_spec
10185 # List of archive names. First name is the real one, the rest are links.
10186 # The last name is the one that the linker finds with -lNAME.
10187 library_names_spec=$lt_library_names_spec
10189 # The coded name of the library, if different from the real name.
10190 soname_spec=$lt_soname_spec
10192 # Commands used to build and install an old-style archive.
10194 old_archive_cmds=$lt_old_archive_cmds
10195 old_postinstall_cmds=$lt_old_postinstall_cmds
10196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10198 # Create an old-style archive from a shared archive.
10199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10201 # Create a temporary old-style archive to link instead of a shared archive.
10202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10204 # Commands used to build and install a shared archive.
10205 archive_cmds=$lt_archive_cmds
10206 archive_expsym_cmds=$lt_archive_expsym_cmds
10207 postinstall_cmds=$lt_postinstall_cmds
10208 postuninstall_cmds=$lt_postuninstall_cmds
10210 # Commands used to build a loadable module (assumed same as above if empty)
10211 module_cmds=$lt_module_cmds
10212 module_expsym_cmds=$lt_module_expsym_cmds
10214 # Commands to strip libraries.
10215 old_striplib=$lt_old_striplib
10216 striplib=$lt_striplib
10218 # Dependencies to place before the objects being linked to create a
10220 predep_objects=$lt_predep_objects
10222 # Dependencies to place after the objects being linked to create a
10224 postdep_objects=$lt_postdep_objects
10226 # Dependencies to place before the objects being linked to create a
10228 predeps=$lt_predeps
10230 # Dependencies to place after the objects being linked to create a
10232 postdeps=$lt_postdeps
10234 # The library search path used internally by the compiler when linking
10235 # a shared library.
10236 compiler_lib_search_path=$lt_compiler_lib_search_path
10238 # Method to check whether dependent libraries are shared objects.
10239 deplibs_check_method=$lt_deplibs_check_method
10241 # Command to use when deplibs_check_method == file_magic.
10242 file_magic_cmd=$lt_file_magic_cmd
10244 # Flag that allows shared libraries with undefined symbols to be built.
10245 allow_undefined_flag=$lt_allow_undefined_flag
10247 # Flag that forces no undefined symbols.
10248 no_undefined_flag=$lt_no_undefined_flag
10250 # Commands used to finish a libtool library installation in a directory.
10251 finish_cmds=$lt_finish_cmds
10253 # Same as above, but a single script fragment to be evaled but not shown.
10254 finish_eval=$lt_finish_eval
10256 # Take the output of nm and produce a listing of raw symbols and C names.
10257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10259 # Transform the output of nm in a proper C declaration
10260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10262 # Transform the output of nm in a C name address pair
10263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10265 # This is the shared library runtime path variable.
10266 runpath_var=$runpath_var
10268 # This is the shared library path variable.
10269 shlibpath_var=$shlibpath_var
10271 # Is shlibpath searched before the hard-coded library search path?
10272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10274 # How to hardcode a shared library path into an executable.
10275 hardcode_action=$hardcode_action
10277 # Whether we should hardcode library paths into libraries.
10278 hardcode_into_libs=$hardcode_into_libs
10280 # Flag to hardcode \$libdir into a binary during linking.
10281 # This must work even if \$libdir does not exist.
10282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10284 # If ld is used when linking, flag to hardcode \$libdir into
10285 # a binary during linking. This must work even if \$libdir does
10287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10289 # Whether we need a single -rpath flag with a separated argument.
10290 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10293 # resulting binary.
10294 hardcode_direct=$hardcode_direct
10296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10297 # resulting binary.
10298 hardcode_minus_L=$hardcode_minus_L
10300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10301 # the resulting binary.
10302 hardcode_shlibpath_var=$hardcode_shlibpath_var
10304 # Set to yes if building a shared library automatically hardcodes DIR into the library
10305 # and all subsequent libraries and executables linked against it.
10306 hardcode_automatic=$hardcode_automatic
10308 # Variables whose values should be saved in libtool wrapper scripts and
10309 # restored at relink time.
10310 variables_saved_for_relink="$variables_saved_for_relink"
10312 # Whether libtool must link a program against all its dependency libraries.
10313 link_all_deplibs=$link_all_deplibs
10315 # Compile-time system search path for libraries
10316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10318 # Run-time system search path for libraries
10319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10321 # Fix the shell variable \$srcfile for the compiler.
10322 fix_srcfile_path="$fix_srcfile_path"
10324 # Set to yes if exported symbols are required.
10325 always_export_symbols=$always_export_symbols
10327 # The commands to list exported symbols.
10328 export_symbols_cmds=$lt_export_symbols_cmds
10330 # The commands to extract the exported symbol list from a shared archive.
10331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10333 # Symbols that should not be listed in the preloaded symbols.
10334 exclude_expsyms=$lt_exclude_expsyms
10336 # Symbols that must always be exported.
10337 include_expsyms=$lt_include_expsyms
10339 # ### END LIBTOOL CONFIG
10346 cat <<\EOF >> "$cfgfile"
10348 # AIX sometimes has problems with the GCC collect2 program. For some
10349 # reason, if we set the COLLECT_NAMES environment variable, the problems
10350 # vanish in a puff of smoke.
10351 if test "X${COLLECT_NAMES+set}" != Xset; then
10353 export COLLECT_NAMES
10359 # We use sed instead of cat because bash on DJGPP gets confused if
10360 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10361 # text mode, it properly converts lines to CR/LF. This bash problem
10362 # is reportedly fixed, but why not run on old versions too?
10363 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10365 mv -f "$cfgfile" "$ofile" || \
10366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10370 # If there is no Makefile yet, we rely on a make rule to execute
10371 # `config.status --recheck' to rerun these tests and create the
10372 # libtool script then.
10373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10374 if test -f "$ltmain_in"; then
10375 test -f Makefile && make "$ltmain"
10381 ac_cpp='$CPP $CPPFLAGS'
10382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10389 # Check whether --with-tags was given.
10390 if test ${with_tags+y}
10392 withval=$with_tags; tagnames="$withval"
10396 if test -f "$ltmain" && test -n "$tagnames"; then
10397 if test ! -f "${ofile}"; then
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10399 printf "%s\n" "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10402 if test -z "$LTCC"; then
10403 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10404 if test -z "$LTCC"; then
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10406 printf "%s\n" "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10409 printf "%s\n" "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10412 if test -z "$LTCFLAGS"; then
10413 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10416 # Extract list of available tagged configurations in $ofile.
10417 # Note that this assumes the entire list is on one line.
10418 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10421 for tagname in $tagnames; do
10423 # Check whether tagname contains only valid characters
10424 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10426 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10430 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10432 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10435 # Update the list of available tags.
10436 if test -n "$tagname"; then
10437 echo appending configuration tag \"$tagname\" to $ofile
10441 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10442 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10443 (test "X$CXX" != "Xg++"))) ; then
10445 ac_cpp='$CXXCPP $CPPFLAGS'
10446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10453 archive_cmds_need_lc_CXX=no
10454 allow_undefined_flag_CXX=
10455 always_export_symbols_CXX=no
10456 archive_expsym_cmds_CXX=
10457 export_dynamic_flag_spec_CXX=
10458 hardcode_direct_CXX=no
10459 hardcode_libdir_flag_spec_CXX=
10460 hardcode_libdir_flag_spec_ld_CXX=
10461 hardcode_libdir_separator_CXX=
10462 hardcode_minus_L_CXX=no
10463 hardcode_shlibpath_var_CXX=unsupported
10464 hardcode_automatic_CXX=no
10466 module_expsym_cmds_CXX=
10467 link_all_deplibs_CXX=unknown
10468 old_archive_cmds_CXX=$old_archive_cmds
10469 no_undefined_flag_CXX=
10470 whole_archive_flag_spec_CXX=
10471 enable_shared_with_static_runtimes_CXX=no
10473 # Dependencies to place before and after the object being linked:
10474 predep_objects_CXX=
10475 postdep_objects_CXX=
10478 compiler_lib_search_path_CXX=
10480 # Source file extension for C++ test sources.
10483 # Object file extension for compiled C++ test sources.
10487 # Code to be used in simple compile tests
10488 lt_simple_compile_test_code="int some_variable = 0;\n"
10490 # Code to be used in simple link tests
10491 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10495 # If no C compiler was specified, use CC.
10498 # If no C compiler flags were specified, use CFLAGS.
10499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10501 # Allow CC to be a program name with arguments.
10505 # save warnings/boilerplate of simple test code
10506 ac_outfile=conftest.$ac_objext
10507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10509 _lt_compiler_boilerplate=`cat conftest.err`
10512 ac_outfile=conftest.$ac_objext
10513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10515 _lt_linker_boilerplate=`cat conftest.err`
10519 # Allow CC to be a program name with arguments.
10524 lt_save_with_gnu_ld=$with_gnu_ld
10525 lt_save_path_LD=$lt_cv_path_LD
10526 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10527 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10529 $as_unset lt_cv_prog_gnu_ld
10531 if test -n "${lt_cv_path_LDCXX+set}"; then
10532 lt_cv_path_LD=$lt_cv_path_LDCXX
10534 $as_unset lt_cv_path_LD
10536 test -z "${LDCXX+set}" || LD=$LDCXX
10540 for cc_temp in $compiler""; do
10542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10548 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10551 # We don't want -fno-exception wen compiling C++ code, so set the
10552 # no_builtin_flag separately
10553 if test "$GXX" = yes; then
10554 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10556 lt_prog_compiler_no_builtin_flag_CXX=
10559 if test "$GXX" = yes; then
10560 # Set up default GNU C++ configuration
10563 # Check whether --with-gnu-ld was given.
10564 if test ${with_gnu_ld+y}
10566 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10572 if test "$GCC" = yes; then
10573 # Check if gcc -print-prog-name=ld gives a path.
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10575 printf %s "checking for ld used by $CC... " >&6; }
10578 # gcc leaves a trailing carriage return which upsets mingw
10579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10584 # Accept absolute paths.
10586 re_direlt='/[^/][^/]*/\.\./'
10587 # Canonicalize the pathname of ld
10588 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10590 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10592 test -z "$LD" && LD="$ac_prog"
10595 # If it fails, then pretend we aren't using GCC.
10599 # If it is relative, then search for the first ld in PATH.
10600 with_gnu_ld=unknown
10603 elif test "$with_gnu_ld" = yes; then
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10605 printf %s "checking for GNU ld... " >&6; }
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10608 printf %s "checking for non-GNU ld... " >&6; }
10610 if test ${lt_cv_path_LD+y}
10612 printf %s "(cached) " >&6
10614 if test -z "$LD"; then
10615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10616 for ac_dir in $PATH; do
10618 test -z "$ac_dir" && ac_dir=.
10619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10620 lt_cv_path_LD="$ac_dir/$ac_prog"
10621 # Check to see if the program is GNU ld. I'd rather use --version,
10622 # but apparently some variants of GNU ld only accept -v.
10623 # Break only if it was the GNU/non-GNU ld that we prefer.
10624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10625 *GNU* | *'with BFD'*)
10626 test "$with_gnu_ld" != no && break
10629 test "$with_gnu_ld" != yes && break
10636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10640 LD="$lt_cv_path_LD"
10641 if test -n "$LD"; then
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10643 printf "%s\n" "$LD" >&6; }
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 printf "%s\n" "no" >&6; }
10648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10650 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
10651 if test ${lt_cv_prog_gnu_ld+y}
10653 printf %s "(cached) " >&6
10655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10656 case `$LD -v 2>&1 </dev/null` in
10657 *GNU* | *'with BFD'*)
10658 lt_cv_prog_gnu_ld=yes
10661 lt_cv_prog_gnu_ld=no
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10666 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
10667 with_gnu_ld=$lt_cv_prog_gnu_ld
10671 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10672 # archiving commands below assume that GNU ld is being used.
10673 if test "$with_gnu_ld" = yes; then
10674 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10675 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'
10677 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10680 # If archive_cmds runs LD, not CC, wlarc should be empty
10681 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10682 # investigate it a little bit more. (MM)
10685 # ancient GNU ld didn't support --whole-archive et. al.
10686 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10687 grep 'no-whole-archive' > /dev/null; then
10688 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10690 whole_archive_flag_spec_CXX=
10696 # A generic and very simple default shared library creation
10697 # command for GNU C++ for the case where it uses the native
10698 # linker, instead of GNU ld. If possible, this setting should
10699 # overridden to take advantage of the native linker features on
10700 # the platform it is being used on.
10701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10704 # Commands to make compiler produce verbose output that lists
10705 # what "hidden" libraries, object files and flags are used when
10706 # linking a shared library.
10707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10715 # PORTME: fill in a description of your system's C++ link characteristics
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10717 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10721 # FIXME: insert proper C++ library support
10725 if test "$host_cpu" = ia64; then
10726 # On IA64, the linker does run time linking by default, so we don't
10727 # have to do anything special.
10728 aix_use_runtimelinking=no
10729 exp_sym_flag='-Bexport'
10732 aix_use_runtimelinking=no
10734 # Test if we are trying to use run time linking or normal
10735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10736 # need to do runtime linking.
10737 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10738 for ld_flag in $LDFLAGS; do
10741 aix_use_runtimelinking=yes
10749 exp_sym_flag='-bexport'
10750 no_entry_flag='-bnoentry'
10753 # When large executables or shared objects are built, AIX ld can
10754 # have problems creating the table of contents. If linking a library
10755 # or program results in "error TOC overflow" add -mminimal-toc to
10756 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10757 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10759 archive_cmds_CXX=''
10760 hardcode_direct_CXX=yes
10761 hardcode_libdir_separator_CXX=':'
10762 link_all_deplibs_CXX=yes
10764 if test "$GXX" = yes; then
10765 case $host_os in aix4.[012]|aix4.[012].*)
10766 # We only want to do this on AIX 4.2 and lower, the check
10767 # below for broken collect2 doesn't work under 4.3+
10768 collect2name=`${CC} -print-prog-name=collect2`
10769 if test -f "$collect2name" && \
10770 strings "$collect2name" | grep resolve_lib_name >/dev/null
10772 # We have reworked collect2
10773 hardcode_direct_CXX=yes
10775 # We have old collect2
10776 hardcode_direct_CXX=unsupported
10777 # It fails to find uninstalled libraries when the uninstalled
10778 # path is not listed in the libpath. Setting hardcode_minus_L
10779 # to unsupported forces relinking
10780 hardcode_minus_L_CXX=yes
10781 hardcode_libdir_flag_spec_CXX='-L$libdir'
10782 hardcode_libdir_separator_CXX=
10786 shared_flag='-shared'
10787 if test "$aix_use_runtimelinking" = yes; then
10788 shared_flag="$shared_flag "'${wl}-G'
10792 if test "$host_cpu" = ia64; then
10793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10794 # chokes on -Wl,-G. The following line is correct:
10797 if test "$aix_use_runtimelinking" = yes; then
10798 shared_flag='${wl}-G'
10800 shared_flag='${wl}-bM:SRE'
10805 # It seems that -bexpall does not export symbols beginning with
10806 # underscore (_), so it is better to generate a list of symbols to export.
10807 always_export_symbols_CXX=yes
10808 if test "$aix_use_runtimelinking" = yes; then
10809 # Warning - without using the other runtime loading flags (-brtl),
10810 # -berok will link without error, but may produce a broken library.
10811 allow_undefined_flag_CXX='-berok'
10812 # Determine the default libpath from the value encoded in an empty executable.
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10824 if ac_fn_cxx_try_link "$LINENO"
10827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10829 # Check for a 64-bit object if we didn't find anything.
10830 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; }
10833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10834 conftest$ac_exeext conftest.$ac_ext
10835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10837 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10839 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10841 if test "$host_cpu" = ia64; then
10842 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10843 allow_undefined_flag_CXX="-z nodefs"
10844 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10846 # Determine the default libpath from the value encoded in an empty executable.
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10858 if ac_fn_cxx_try_link "$LINENO"
10861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10863 # Check for a 64-bit object if we didn't find anything.
10864 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; }
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10868 conftest$ac_exeext conftest.$ac_ext
10869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10872 # Warning - without using the other run time loading flags,
10873 # -berok will link without error, but may produce a broken library.
10874 no_undefined_flag_CXX=' ${wl}-bernotok'
10875 allow_undefined_flag_CXX=' ${wl}-berok'
10876 # Exported symbols can be pulled into shared objects from archives
10877 whole_archive_flag_spec_CXX='$convenience'
10878 archive_cmds_need_lc_CXX=yes
10879 # This is similar to how AIX traditionally builds its shared libraries.
10880 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10887 allow_undefined_flag_CXX=unsupported
10888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10889 # support --undefined. This deserves some investigation. FIXME
10890 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10897 case $cc_basename in
10899 # FIXME: insert proper C++ library support
10905 cygwin* | mingw* | pw32*)
10906 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10907 # as there is no search path for DLLs.
10908 hardcode_libdir_flag_spec_CXX='-L$libdir'
10909 allow_undefined_flag_CXX=unsupported
10910 always_export_symbols_CXX=no
10911 enable_shared_with_static_runtimes_CXX=yes
10913 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10915 # If the export-symbols file already is a .def file (1st line
10916 # is EXPORTS), use it as is; otherwise, prepend...
10917 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10918 cp $export_symbols $output_objdir/$soname.def;
10920 echo EXPORTS > $output_objdir/$soname.def;
10921 cat $export_symbols >> $output_objdir/$soname.def;
10923 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10928 darwin* | rhapsody*)
10930 rhapsody* | darwin1.[012])
10931 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10934 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10935 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10937 case ${MACOSX_DEPLOYMENT_TARGET} in
10939 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10942 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10948 archive_cmds_need_lc_CXX=no
10949 hardcode_direct_CXX=no
10950 hardcode_automatic_CXX=yes
10951 hardcode_shlibpath_var_CXX=unsupported
10952 whole_archive_flag_spec_CXX=''
10953 link_all_deplibs_CXX=yes
10955 if test "$GXX" = yes ; then
10956 lt_int_apple_cc_single_mod=no
10957 output_verbose_link_cmd='echo'
10958 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10959 lt_int_apple_cc_single_mod=yes
10961 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10962 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10964 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10966 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10967 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10968 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10969 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}'
10971 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10973 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}'
10975 case $cc_basename in
10977 output_verbose_link_cmd='echo'
10978 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10979 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10980 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10981 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10982 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}'
10992 case $cc_basename in
10994 # FIXME: insert proper C++ library support
10998 # Green Hills C++ Compiler
10999 # FIXME: insert proper C++ library support
11003 # FIXME: insert proper C++ library support
11009 # C++ shared libraries reported to be fairly broken before switch to ELF
11013 archive_cmds_need_lc_CXX=no
11015 freebsd* | kfreebsd*-gnu | dragonfly*)
11016 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11023 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11024 hardcode_libdir_separator_CXX=:
11025 export_dynamic_flag_spec_CXX='${wl}-E'
11026 hardcode_direct_CXX=yes
11027 hardcode_minus_L_CXX=yes # Not in the search PATH,
11028 # but as the default
11029 # location of the library.
11031 case $cc_basename in
11033 # FIXME: insert proper C++ library support
11037 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'
11038 # Commands to make compiler produce verbose output that lists
11039 # what "hidden" libraries, object files and flags are used when
11040 # linking a shared library.
11042 # There doesn't appear to be a way to prevent this compiler from
11043 # explicitly linking system object files so we need to strip them
11044 # from the output so that they don't get included in the library
11046 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'
11049 if test "$GXX" = yes; then
11050 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'
11052 # FIXME: insert proper C++ library support
11059 if test $with_gnu_ld = no; then
11060 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11061 hardcode_libdir_separator_CXX=:
11065 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11068 export_dynamic_flag_spec_CXX='${wl}-E'
11074 hardcode_direct_CXX=no
11075 hardcode_shlibpath_var_CXX=no
11078 hardcode_direct_CXX=yes
11079 hardcode_minus_L_CXX=yes # Not in the search PATH,
11080 # but as the default
11081 # location of the library.
11085 case $cc_basename in
11087 # FIXME: insert proper C++ library support
11093 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11096 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11099 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11102 # Commands to make compiler produce verbose output that lists
11103 # what "hidden" libraries, object files and flags are used when
11104 # linking a shared library.
11106 # There doesn't appear to be a way to prevent this compiler from
11107 # explicitly linking system object files so we need to strip them
11108 # from the output so that they don't get included in the library
11110 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'
11113 if test "$GXX" = yes; then
11114 if test $with_gnu_ld = no; then
11117 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11120 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11123 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'
11128 # FIXME: insert proper C++ library support
11135 hardcode_direct_CXX=no
11136 hardcode_shlibpath_var_CXX=no
11137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11138 export_dynamic_flag_spec_CXX='${wl}-E'
11139 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11140 # Instead, shared libraries are loaded at an image base (0x10000000 by
11141 # default) and relocated if they conflict, which is a slow very memory
11142 # consuming and fragmenting process. To avoid this, we pick a random,
11143 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11144 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11145 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11146 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11149 case $cc_basename in
11152 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 ${output_objdir}/so_locations -o $lib'
11154 # Archives containing C++ object files must be created using
11155 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11156 # necessary to make sure instantiated templates are included
11158 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11161 if test "$GXX" = yes; then
11162 if test "$with_gnu_ld" = no; then
11163 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}${output_objdir}/so_locations -o $lib'
11165 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'
11168 link_all_deplibs_CXX=yes
11171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11172 hardcode_libdir_separator_CXX=:
11175 case $cc_basename in
11177 # Kuck and Associates, Inc. (KAI) C++ Compiler
11179 # KCC will only create a shared library if the output file
11180 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11181 # to its proper name (with version) after linking.
11182 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'
11183 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'
11184 # Commands to make compiler produce verbose output that lists
11185 # what "hidden" libraries, object files and flags are used when
11186 # linking a shared library.
11188 # There doesn't appear to be a way to prevent this compiler from
11189 # explicitly linking system object files so we need to strip them
11190 # from the output so that they don't get included in the library
11192 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'
11194 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11195 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11197 # Archives containing C++ object files must be created using
11198 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11199 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11204 # version 8.0 and above of icpc choke on multiply defined symbols
11205 # if we add $predep_objects and $postdep_objects, however 7.1 and
11206 # earlier do not add the objects themselves.
11207 case `$CC -V 2>&1` in
11209 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11210 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'
11212 *) # Version 8.0 or newer
11215 ia64*) tmp_idyn=' -i_dynamic';;
11217 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11218 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11221 archive_cmds_need_lc_CXX=no
11222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11227 # Portland Group C++ compiler
11228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11229 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11231 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11233 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238 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'
11240 runpath_var=LD_RUN_PATH
11241 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11242 hardcode_libdir_separator_CXX=:
11244 # Commands to make compiler produce verbose output that lists
11245 # what "hidden" libraries, object files and flags are used when
11246 # linking a shared library.
11248 # There doesn't appear to be a way to prevent this compiler from
11249 # explicitly linking system object files so we need to strip them
11250 # from the output so that they don't get included in the library
11252 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'
11257 # FIXME: insert proper C++ library support
11261 # FIXME: insert proper C++ library support
11265 case $cc_basename in
11267 # FIXME: insert proper C++ library support
11271 # FIXME: insert proper C++ library support
11277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11278 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11280 hardcode_libdir_flag_spec_CXX='-R$libdir'
11281 hardcode_direct_CXX=yes
11282 hardcode_shlibpath_var_CXX=no
11284 # Workaround some broken pre-1.5 toolchains
11285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11288 # C++ shared libraries are fairly broken
11292 hardcode_direct_CXX=yes
11293 hardcode_shlibpath_var_CXX=no
11294 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11297 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11298 export_dynamic_flag_spec_CXX='${wl}-E'
11299 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11301 output_verbose_link_cmd='echo'
11304 case $cc_basename in
11306 # Kuck and Associates, Inc. (KAI) C++ Compiler
11308 # KCC will only create a shared library if the output file
11309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11310 # to its proper name (with version) after linking.
11311 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'
11313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11314 hardcode_libdir_separator_CXX=:
11316 # Archives containing C++ object files must be created using
11317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11322 # Rational C++ 2.4.1
11323 # FIXME: insert proper C++ library support
11327 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11328 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 ${output_objdir}/so_locations -o $lib'
11330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11331 hardcode_libdir_separator_CXX=:
11333 # Commands to make compiler produce verbose output that lists
11334 # what "hidden" libraries, object files and flags are used when
11335 # linking a shared library.
11337 # There doesn't appear to be a way to prevent this compiler from
11338 # explicitly linking system object files so we need to strip them
11339 # from the output so that they don't get included in the library
11341 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'
11344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346 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}${output_objdir}/so_locations -o $lib'
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11357 # FIXME: insert proper C++ library support
11364 case $cc_basename in
11366 # Kuck and Associates, Inc. (KAI) C++ Compiler
11368 # KCC will only create a shared library if the output file
11369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11370 # to its proper name (with version) after linking.
11371 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'
11373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11374 hardcode_libdir_separator_CXX=:
11376 # Archives containing C++ object files must be created using
11377 # the KAI C++ compiler.
11378 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11381 # Rational C++ 2.4.1
11382 # FIXME: insert proper C++ library support
11386 allow_undefined_flag_CXX=' -expect_unresolved \*'
11387 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 ${output_objdir}/so_locations -o $lib'
11388 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11389 echo "-hidden">> $lib.exp~
11390 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11394 hardcode_libdir_separator_CXX=:
11396 # Commands to make compiler produce verbose output that lists
11397 # what "hidden" libraries, object files and flags are used when
11398 # linking a shared library.
11400 # There doesn't appear to be a way to prevent this compiler from
11401 # explicitly linking system object files so we need to strip them
11402 # from the output so that they don't get included in the library
11404 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'
11407 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11408 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11409 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}${output_objdir}/so_locations -o $lib'
11411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11412 hardcode_libdir_separator_CXX=:
11414 # Commands to make compiler produce verbose output that lists
11415 # what "hidden" libraries, object files and flags are used when
11416 # linking a shared library.
11417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11420 # FIXME: insert proper C++ library support
11427 # FIXME: insert proper C++ library support
11431 case $cc_basename in
11434 # FIXME: insert proper C++ library support
11439 # FIXME: insert proper C++ library support
11443 # FIXME: insert proper C++ library support
11449 case $cc_basename in
11451 # Sun C++ 4.2, 5.x and Centerline C++
11452 archive_cmds_need_lc_CXX=yes
11453 no_undefined_flag_CXX=' -zdefs'
11454 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11455 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11456 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11458 hardcode_libdir_flag_spec_CXX='-R$libdir'
11459 hardcode_shlibpath_var_CXX=no
11461 solaris2.[0-5] | solaris2.[0-5].*) ;;
11463 # The C++ compiler is used as linker so we must use $wl
11464 # flag to pass the commands to the underlying system
11465 # linker. We must also pass each convience library through
11466 # to the system linker between allextract/defaultextract.
11467 # The C++ compiler will combine linker options so we
11468 # cannot just pass the convience library names through
11470 # Supported since Solaris 2.6 (maybe 2.5.1?)
11471 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11474 link_all_deplibs_CXX=yes
11476 output_verbose_link_cmd='echo'
11478 # Archives containing C++ object files must be created using
11479 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11480 # necessary to make sure instantiated templates are included
11482 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11485 # Green Hills C++ Compiler
11486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11488 # The C++ compiler must be used to create the archive.
11489 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11492 # GNU C++ compiler with Solaris linker
11493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11494 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11495 if $CC --version | grep -v '^2\.7' > /dev/null; then
11496 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11497 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11498 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11500 # Commands to make compiler produce verbose output that lists
11501 # what "hidden" libraries, object files and flags are used when
11502 # linking a shared library.
11503 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11505 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11507 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11508 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11509 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11511 # Commands to make compiler produce verbose output that lists
11512 # what "hidden" libraries, object files and flags are used when
11513 # linking a shared library.
11514 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11517 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11523 no_undefined_flag_CXX='${wl}-z,text'
11524 archive_cmds_need_lc_CXX=no
11525 hardcode_shlibpath_var_CXX=no
11526 runpath_var='LD_RUN_PATH'
11528 case $cc_basename in
11530 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11534 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11535 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11539 sysv5* | sco3.2v5* | sco5v6*)
11540 # Note: We can NOT use -z defs as we might desire, because we do not
11541 # link with -lc, and that would cause any symbols used from libc to
11542 # always be unresolved, which means just about no library would
11543 # ever link correctly. If we're not using GNU ld we use -z text
11544 # though, which does catch some bad symbols but isn't as heavy-handed
11546 # For security reasons, it is highly recommended that you always
11547 # use absolute paths for naming shared libraries, and exclude the
11548 # DT_RUNPATH tag from executables and libraries. But doing so
11549 # requires that you compile everything twice, which is a pain.
11550 # So that behaviour is only enabled if SCOABSPATH is set to a
11551 # non-empty value in the environment. Most likely only useful for
11552 # creating official distributions of packages.
11553 # This is a hack until libtool officially supports absolute path
11554 # names for shared libraries.
11555 no_undefined_flag_CXX='${wl}-z,text'
11556 allow_undefined_flag_CXX='${wl}-z,nodefs'
11557 archive_cmds_need_lc_CXX=no
11558 hardcode_shlibpath_var_CXX=no
11559 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11560 hardcode_libdir_separator_CXX=':'
11561 link_all_deplibs_CXX=yes
11562 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11563 runpath_var='LD_RUN_PATH'
11565 case $cc_basename in
11567 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11572 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11577 case $cc_basename in
11579 # NonStop-UX NCC 3.20
11580 # FIXME: insert proper C++ library support
11584 # FIXME: insert proper C++ library support
11590 # FIXME: insert proper C++ library support
11594 # FIXME: insert proper C++ library support
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11599 printf "%s\n" "$ld_shlibs_CXX" >&6; }
11600 test "$ld_shlibs_CXX" = no && can_build_shared=no
11606 ## There is no encapsulation within the following macros, do not change
11607 ## the running order or otherwise move them around unless you know exactly
11608 ## what you are doing...
11610 cat > conftest.$ac_ext <<EOF
11614 Foo (void) { a = 0; }
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621 (eval $ac_compile) 2>&5
11623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; }; then
11625 # Parse the compiler output and extract the necessary
11626 # objects, libraries and library flags.
11628 # Sentinel used to keep track of whether or not we are before
11629 # the conftest object file.
11630 pre_test_object_deps_done=no
11632 # The `*' in the case matches for architectures that use `case' in
11633 # $output_verbose_cmd can trigger glob expansion during the loop
11634 # eval without this substitution.
11635 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11637 for p in `eval $output_verbose_link_cmd`; do
11641 # Some compilers place space between "-{L,R}" and the path.
11642 # Remove the space.
11643 if test $p = "-L" \
11644 || test $p = "-R"; then
11651 if test "$pre_test_object_deps_done" = no; then
11654 # Internal compiler library paths should come after those
11655 # provided the user. The postdeps already come after the
11656 # user supplied libs so there is no need to process them.
11657 if test -z "$compiler_lib_search_path_CXX"; then
11658 compiler_lib_search_path_CXX="${prev}${p}"
11660 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11663 # The "-l" case would never come before the object being
11664 # linked, so don't bother handling this case.
11667 if test -z "$postdeps_CXX"; then
11668 postdeps_CXX="${prev}${p}"
11670 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11676 # This assumes that the test object file only shows up
11677 # once in the compiler output.
11678 if test "$p" = "conftest.$objext"; then
11679 pre_test_object_deps_done=yes
11683 if test "$pre_test_object_deps_done" = no; then
11684 if test -z "$predep_objects_CXX"; then
11685 predep_objects_CXX="$p"
11687 predep_objects_CXX="$predep_objects_CXX $p"
11690 if test -z "$postdep_objects_CXX"; then
11691 postdep_objects_CXX="$p"
11693 postdep_objects_CXX="$postdep_objects_CXX $p"
11698 *) ;; # Ignore the rest.
11706 echo "libtool.m4: error: problem compiling CXX test program"
11709 $rm -f confest.$objext
11711 # PORTME: override above test on systems where it is broken
11714 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11715 # hack all around it, let's just trust "g++" to DTRT.
11716 predep_objects_CXX=
11717 postdep_objects_CXX=
11722 case $cc_basename in
11724 # Adding this requires a known-good setup of shared libraries for
11725 # Sun compiler versions before 5.6, else PIC objects from an old
11726 # archive will be linked into the output, leading to subtle bugs.
11727 postdeps_CXX='-lCstd -lCrun'
11734 case " $postdeps_CXX " in
11735 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11738 lt_prog_compiler_wl_CXX=
11739 lt_prog_compiler_pic_CXX=
11740 lt_prog_compiler_static_CXX=
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11743 printf %s "checking for $compiler option to produce PIC... " >&6; }
11745 # C++ specific cases for pic, static, wl, etc.
11746 if test "$GXX" = yes; then
11747 lt_prog_compiler_wl_CXX='-Wl,'
11748 lt_prog_compiler_static_CXX='-static'
11752 # All AIX code is PIC.
11753 if test "$host_cpu" = ia64; then
11754 # AIX 5 now supports IA64 processor
11755 lt_prog_compiler_static_CXX='-Bstatic'
11759 # FIXME: we need at least 68020 code to build shared libraries, but
11760 # adding the `-m68020' flag to GCC prevents building anything better,
11762 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11765 # PIC is the default for these OSes.
11767 mingw* | os2* | pw32*)
11768 # This hack is so that the source file can tell whether it is being
11769 # built for inclusion in a dll (and should export symbols for example).
11770 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11772 darwin* | rhapsody*)
11773 # PIC is the default on this platform
11774 # Common symbols not allowed in MH_DYLIB files
11775 lt_prog_compiler_pic_CXX='-fno-common'
11778 # DJGPP does not support shared libraries at all
11779 lt_prog_compiler_pic_CXX=
11782 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11783 # Instead, we relocate shared libraries at runtime.
11786 if test -d /usr/nec; then
11787 lt_prog_compiler_pic_CXX=-Kconform_pic
11791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11792 # not for PA HP-UX.
11797 lt_prog_compiler_pic_CXX='-fPIC'
11802 lt_prog_compiler_pic_CXX='-fPIC'
11808 # All AIX code is PIC.
11809 if test "$host_cpu" = ia64; then
11810 # AIX 5 now supports IA64 processor
11811 lt_prog_compiler_static_CXX='-Bstatic'
11813 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11817 case $cc_basename in
11819 # Green Hills C++ Compiler
11820 # _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"
11825 # PIC is the default on this platform
11826 # Common symbols not allowed in MH_DYLIB files
11827 case $cc_basename in
11829 lt_prog_compiler_pic_CXX='-qnocommon'
11830 lt_prog_compiler_wl_CXX='-Wl,'
11835 case $cc_basename in
11837 lt_prog_compiler_pic_CXX='-KPIC'
11840 # Green Hills C++ Compiler
11841 lt_prog_compiler_pic_CXX='-pic'
11847 freebsd* | kfreebsd*-gnu | dragonfly*)
11848 # FreeBSD uses GNU C++
11850 hpux9* | hpux10* | hpux11*)
11851 case $cc_basename in
11853 lt_prog_compiler_wl_CXX='-Wl,'
11854 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11855 if test "$host_cpu" != ia64; then
11856 lt_prog_compiler_pic_CXX='+Z'
11860 lt_prog_compiler_wl_CXX='-Wl,'
11861 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11867 lt_prog_compiler_pic_CXX='+Z'
11876 # This is c89, which is MS Visual C++ (no shared libs)
11877 # Anyone wants to do a port?
11879 irix5* | irix6* | nonstopux*)
11880 case $cc_basename in
11882 lt_prog_compiler_wl_CXX='-Wl,'
11883 lt_prog_compiler_static_CXX='-non_shared'
11884 # CC pic flag -KPIC is the default.
11891 case $cc_basename in
11894 lt_prog_compiler_wl_CXX='--backend -Wl,'
11895 lt_prog_compiler_pic_CXX='-fPIC'
11899 lt_prog_compiler_wl_CXX='-Wl,'
11900 lt_prog_compiler_pic_CXX='-KPIC'
11901 lt_prog_compiler_static_CXX='-static'
11904 # Portland Group C++ compiler.
11905 lt_prog_compiler_wl_CXX='-Wl,'
11906 lt_prog_compiler_pic_CXX='-fpic'
11907 lt_prog_compiler_static_CXX='-Bstatic'
11911 # Make sure the PIC flag is empty. It appears that all Alpha
11912 # Linux and Compaq Tru64 Unix objects are PIC.
11913 lt_prog_compiler_pic_CXX=
11914 lt_prog_compiler_static_CXX='-non_shared'
11925 case $cc_basename in
11927 lt_prog_compiler_pic_CXX='-W c,exportall'
11935 osf3* | osf4* | osf5*)
11936 case $cc_basename in
11938 lt_prog_compiler_wl_CXX='--backend -Wl,'
11941 # Rational C++ 2.4.1
11942 lt_prog_compiler_pic_CXX='-pic'
11945 # Digital/Compaq C++
11946 lt_prog_compiler_wl_CXX='-Wl,'
11947 # Make sure the PIC flag is empty. It appears that all Alpha
11948 # Linux and Compaq Tru64 Unix objects are PIC.
11949 lt_prog_compiler_pic_CXX=
11950 lt_prog_compiler_static_CXX='-non_shared'
11959 case $cc_basename in
11961 # Sun C++ 4.2, 5.x and Centerline C++
11962 lt_prog_compiler_pic_CXX='-KPIC'
11963 lt_prog_compiler_static_CXX='-Bstatic'
11964 lt_prog_compiler_wl_CXX='-Qoption ld '
11967 # Green Hills C++ Compiler
11968 lt_prog_compiler_pic_CXX='-PIC'
11975 case $cc_basename in
11978 lt_prog_compiler_pic_CXX='-pic'
11979 lt_prog_compiler_static_CXX='-Bstatic'
11983 lt_prog_compiler_pic_CXX='-pic'
11990 case $cc_basename in
11992 # NonStop-UX NCC 3.20
11993 lt_prog_compiler_pic_CXX='-KPIC'
11999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12000 case $cc_basename in
12002 lt_prog_compiler_wl_CXX='-Wl,'
12003 lt_prog_compiler_pic_CXX='-KPIC'
12004 lt_prog_compiler_static_CXX='-Bstatic'
12011 lt_prog_compiler_can_build_shared_CXX=no
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12017 printf "%s\n" "$lt_prog_compiler_pic_CXX" >&6; }
12020 # Check to make sure the PIC flag actually works.
12022 if test -n "$lt_prog_compiler_pic_CXX"; then
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12025 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12026 if test ${lt_prog_compiler_pic_works_CXX+y}
12028 printf %s "(cached) " >&6
12030 lt_prog_compiler_pic_works_CXX=no
12031 ac_outfile=conftest.$ac_objext
12032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12033 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12034 # Insert the option either (1) after the last *FLAGS variable, or
12035 # (2) before a word containing "conftest.", or (3) at the end.
12036 # Note that $ac_compile itself does not contain backslashes and begins
12037 # with a dollar sign (not a hyphen), so the echo should work correctly.
12038 # The option is referenced via a variable to avoid confusing sed.
12039 lt_compile=`echo "$ac_compile" | $SED \
12040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12042 -e 's:$: $lt_compiler_flag:'`
12043 (eval echo "\"\$as_me:12043: $lt_compile\"" >&5)
12044 (eval "$lt_compile" 2>conftest.err)
12046 cat conftest.err >&5
12047 echo "$as_me:12047: \$? = $ac_status" >&5
12048 if (exit $ac_status) && test -s "$ac_outfile"; then
12049 # The compiler can only warn and ignore the option if not recognized
12050 # So say no if there are warnings other than the usual output.
12051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12054 lt_prog_compiler_pic_works_CXX=yes
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12061 printf "%s\n" "$lt_prog_compiler_pic_works_CXX" >&6; }
12063 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12064 case $lt_prog_compiler_pic_CXX in
12066 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12069 lt_prog_compiler_pic_CXX=
12070 lt_prog_compiler_can_build_shared_CXX=no
12075 # For platforms which do not support PIC, -DPIC is meaningless:
12077 lt_prog_compiler_pic_CXX=
12080 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12085 # Check to make sure the static flag actually works.
12087 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12089 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12090 if test ${lt_prog_compiler_static_works_CXX+y}
12092 printf %s "(cached) " >&6
12094 lt_prog_compiler_static_works_CXX=no
12095 save_LDFLAGS="$LDFLAGS"
12096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12097 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12099 # The linker can only warn and ignore the option if not recognized
12100 # So say no if there are warnings
12101 if test -s conftest.err; then
12102 # Append any errors to the config.log.
12103 cat conftest.err 1>&5
12104 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12106 if diff conftest.exp conftest.er2 >/dev/null; then
12107 lt_prog_compiler_static_works_CXX=yes
12110 lt_prog_compiler_static_works_CXX=yes
12114 LDFLAGS="$save_LDFLAGS"
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12118 printf "%s\n" "$lt_prog_compiler_static_works_CXX" >&6; }
12120 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12123 lt_prog_compiler_static_CXX=
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12128 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12129 if test ${lt_cv_prog_compiler_c_o_CXX+y}
12131 printf %s "(cached) " >&6
12133 lt_cv_prog_compiler_c_o_CXX=no
12134 $rm -r conftest 2>/dev/null
12138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12140 lt_compiler_flag="-o out/conftest2.$ac_objext"
12141 # Insert the option either (1) after the last *FLAGS variable, or
12142 # (2) before a word containing "conftest.", or (3) at the end.
12143 # Note that $ac_compile itself does not contain backslashes and begins
12144 # with a dollar sign (not a hyphen), so the echo should work correctly.
12145 lt_compile=`echo "$ac_compile" | $SED \
12146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12148 -e 's:$: $lt_compiler_flag:'`
12149 (eval echo "\"\$as_me:12149: $lt_compile\"" >&5)
12150 (eval "$lt_compile" 2>out/conftest.err)
12152 cat out/conftest.err >&5
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12156 # The compiler can only warn and ignore the option if not recognized
12157 # So say no if there are warnings
12158 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12161 lt_cv_prog_compiler_c_o_CXX=yes
12166 # SGI C++ compiler will create directory out/ii_files/ for
12167 # template instantiation
12168 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12169 $rm out/* && rmdir out
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12176 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12179 hard_links="nottested"
12180 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12181 # do not overwrite the value of need_locks provided by the user
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12183 printf %s "checking if we can lock with hard links... " >&6; }
12186 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12188 ln conftest.a conftest.b 2>&5 || hard_links=no
12189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12191 printf "%s\n" "$hard_links" >&6; }
12192 if test "$hard_links" = no; then
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12194 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12202 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12204 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12207 # If we're using GNU nm, then we don't want the "-C" option.
12208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12209 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12210 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'
12212 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'
12216 export_symbols_cmds_CXX="$ltdll_cmds"
12219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12222 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12227 printf "%s\n" "$ld_shlibs_CXX" >&6; }
12228 test "$ld_shlibs_CXX" = no && can_build_shared=no
12231 # Do we need to explicitly link libc?
12233 case "x$archive_cmds_need_lc_CXX" in
12235 # Assume -lc should be added
12236 archive_cmds_need_lc_CXX=yes
12238 if test "$enable_shared" = yes && test "$GCC" = yes; then
12239 case $archive_cmds_CXX in
12241 # FIXME: we may have to deal with multi-command sequences.
12244 # Test whether the compiler implicitly links with -lc since on some
12245 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12246 # to ld, don't add -lc before -lgcc.
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12248 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12253 (eval $ac_compile) 2>&5
12255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; } 2>conftest.err; then
12259 libobjs=conftest.$ac_objext
12261 wl=$lt_prog_compiler_wl_CXX
12262 pic_flag=$lt_prog_compiler_pic_CXX
12268 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12269 allow_undefined_flag_CXX=
12270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12271 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12274 test $ac_status = 0; }
12276 archive_cmds_need_lc_CXX=no
12278 archive_cmds_need_lc_CXX=yes
12280 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12282 cat conftest.err 1>&5
12285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12286 printf "%s\n" "$archive_cmds_need_lc_CXX" >&6; }
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12294 printf %s "checking dynamic linker characteristics... " >&6; }
12295 library_names_spec=
12296 libname_spec='lib$name'
12300 postuninstall_cmds=
12304 shlibpath_overrides_runpath=unknown
12306 dynamic_linker="$host_os ld.so"
12307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12308 if test "$GCC" = yes; then
12309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12311 # if the path contains ";" then we assume it to be the separator
12312 # otherwise default to the standard path separator (i.e. ":") - it is
12313 # assumed that no part of a normal pathname contains ";" but that should
12314 # okay in the real world where ";" in dirpaths is itself problematic.
12315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12322 need_lib_prefix=unknown
12323 hardcode_into_libs=no
12325 # when you set need_version to no, make sure it does not cause -set_version
12326 # flags to be left without arguments
12327 need_version=unknown
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12333 shlibpath_var=LIBPATH
12335 # AIX 3 has no versioning support, so we append a major version to the name.
12336 soname_spec='${libname}${release}${shared_ext}$major'
12343 hardcode_into_libs=yes
12344 if test "$host_cpu" = ia64; then
12345 # AIX 5 supports IA64
12346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12347 shlibpath_var=LD_LIBRARY_PATH
12349 # With GCC up to 2.95.x, collect2 would create an import file
12350 # for dependence libraries. The import file would start with
12351 # the line `#! .'. This would cause the generated library to
12352 # depend on `.', always an invalid library. This was fixed in
12353 # development snapshots of GCC prior to 3.0.
12355 aix4 | aix4.[01] | aix4.[01].*)
12356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12361 can_build_shared=no
12365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12366 # soname into executable. Probably we can add versioning support to
12367 # collect2, so additional links can be useful in future.
12368 if test "$aix_use_runtimelinking" = yes; then
12369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12370 # instead of lib<name>.a to let people know that these are not
12371 # typical AIX shared libraries.
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 # We preserve .a as extension for shared libraries through AIX4.2
12375 # and later when we are not doing run time linking.
12376 library_names_spec='${libname}${release}.a $libname.a'
12377 soname_spec='${libname}${release}${shared_ext}$major'
12379 shlibpath_var=LIBPATH
12384 library_names_spec='$libname.ixlibrary $libname.a'
12385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12386 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'
12390 library_names_spec='${libname}${shared_ext}'
12391 dynamic_linker="$host_os ld.so"
12392 shlibpath_var=LIBRARY_PATH
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399 soname_spec='${libname}${release}${shared_ext}$major'
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12404 # the default ld.so.conf also contains /usr/contrib/lib and
12405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12406 # libtool to hard-code these into programs
12409 cygwin* | mingw* | pw32*)
12410 version_type=windows
12415 case $GCC,$host_os in
12416 yes,cygwin* | yes,mingw* | yes,pw32*)
12417 library_names_spec='$libname.dll.a'
12418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12419 postinstall_cmds='base_file=`basename \${file}`~
12420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12421 dldir=$destdir/`dirname \$dlpath`~
12422 test -d \$dldir || mkdir -p \$dldir~
12423 $install_prog $dir/$dlname \$dldir/$dlname~
12424 chmod a+x \$dldir/$dlname'
12425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12426 dlpath=$dir/\$dldll~
12428 shlibpath_overrides_runpath=yes
12432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12437 # MinGW DLLs use traditional 'lib' prefix
12438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12439 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12440 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12441 # It is most probably a Windows format PATH printed by
12442 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12443 # path with ; separators, and with drive letters. We can handle the
12444 # drive letters (cygwin fileutils understands them), so leave them,
12445 # especially as we might pass files found there to a mingw objdump,
12446 # which wouldn't understand a cygwinified path. Ahh.
12447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12453 # pw32 DLLs use 'pw' prefix rather than 'lib'
12454 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12460 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12463 dynamic_linker='Win32 ld.exe'
12464 # FIXME: first we should search . and the directory the executable is in
12468 darwin* | rhapsody*)
12469 dynamic_linker="$host_os dyld"
12470 version_type=darwin
12473 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12474 soname_spec='${libname}${release}${major}$shared_ext'
12475 shlibpath_overrides_runpath=yes
12476 shlibpath_var=DYLD_LIBRARY_PATH
12477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12478 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12479 if test "$GCC" = yes; then
12480 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"`
12482 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12492 soname_spec='${libname}${release}${shared_ext}$major'
12493 shlibpath_var=LD_LIBRARY_PATH
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12505 soname_spec='${libname}${release}${shared_ext}$major'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 shlibpath_overrides_runpath=no
12508 hardcode_into_libs=yes
12509 dynamic_linker='GNU ld.so'
12512 freebsd* | dragonfly*)
12513 # DragonFly does not have aout. When/if they implement a new
12514 # versioning mechanism, adjust this.
12515 if test -x /usr/bin/objformat; then
12516 objformat=`/usr/bin/objformat`
12519 freebsd[123]*) objformat=aout ;;
12520 *) objformat=elf ;;
12523 version_type=freebsd-$objformat
12524 case $version_type in
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12535 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=yes
12540 freebsd3.[01]* | freebsdelf3.[01]*)
12541 shlibpath_overrides_runpath=yes
12542 hardcode_into_libs=yes
12544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12546 shlibpath_overrides_runpath=no
12547 hardcode_into_libs=yes
12549 freebsd*) # from 4.6 on
12550 shlibpath_overrides_runpath=yes
12551 hardcode_into_libs=yes
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12561 soname_spec='${libname}${release}${shared_ext}$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 hardcode_into_libs=yes
12566 hpux9* | hpux10* | hpux11*)
12567 # Give a soname corresponding to the major version so that dld.sl refuses to
12568 # link against other versions.
12575 hardcode_into_libs=yes
12576 dynamic_linker="$host_os dld.so"
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 if test "X$HPUX_IA64_MODE" = X32; then
12582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12590 hardcode_into_libs=yes
12591 dynamic_linker="$host_os dld.sl"
12592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601 dynamic_linker="$host_os dld.sl"
12602 shlibpath_var=SHLIB_PATH
12603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605 soname_spec='${libname}${release}${shared_ext}$major'
12608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12609 postinstall_cmds='chmod 555 $lib'
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12617 soname_spec='${libname}${release}${shared_ext}$major'
12618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 shlibpath_overrides_runpath=no
12621 hardcode_into_libs=yes
12624 irix5* | irix6* | nonstopux*)
12626 nonstopux*) version_type=nonstopux ;;
12628 if test "$lt_cv_prog_gnu_ld" = yes; then
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12639 irix5* | nonstopux*)
12640 libsuff= shlibsuff=
12643 case $LD in # libtool.m4 will add one of these switches to LD
12644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12645 libsuff= shlibsuff= libmagic=32-bit;;
12646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12647 libsuff=32 shlibsuff=N32 libmagic=N32;;
12648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12649 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12650 *) libsuff= shlibsuff= libmagic=never-match;;
12654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12655 shlibpath_overrides_runpath=no
12656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12658 hardcode_into_libs=yes
12661 # No shared lib support for Linux oldld, aout, or coff.
12662 linux*oldld* | linux*aout* | linux*coff*)
12666 # This must be Linux ELF.
12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672 soname_spec='${libname}${release}${shared_ext}$major'
12673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 shlibpath_overrides_runpath=no
12676 # This implies no fast_install, which is unacceptable.
12677 # Some rework will be needed to allow for fast_install
12678 # before this can be enabled.
12679 hardcode_into_libs=yes
12681 # Append ld.so.conf contents to the search path
12682 if test -f /etc/ld.so.conf; then
12683 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12684 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12687 # We used to test for /lib/ld.so.1 and disable shared libraries on
12688 # powerpc, because MkLinux only supported shared libraries with the
12689 # GNU dynamic linker. Since this was broken with cross compilers,
12690 # most powerpc-linux boxes support dynamic linking these days and
12691 # people can always --disable-shared, the test was removed, and we
12692 # assume the GNU/Linux dynamic linker is in use.
12693 dynamic_linker='GNU/Linux ld.so'
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12701 soname_spec='${libname}${release}${shared_ext}$major'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 shlibpath_overrides_runpath=no
12704 hardcode_into_libs=yes
12705 dynamic_linker='GNU ld.so'
12712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12715 dynamic_linker='NetBSD (a.out) ld.so'
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12718 soname_spec='${libname}${release}${shared_ext}$major'
12719 dynamic_linker='NetBSD ld.elf_so'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath=yes
12723 hardcode_into_libs=yes
12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729 shlibpath_var=LD_LIBRARY_PATH
12730 shlibpath_overrides_runpath=yes
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 shlibpath_overrides_runpath=yes
12745 sys_lib_dlsearch_path_spec="/usr/lib"
12747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12750 *) need_version=no ;;
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12757 openbsd2.[89] | openbsd2.[89].*)
12758 shlibpath_overrides_runpath=no
12761 shlibpath_overrides_runpath=yes
12765 shlibpath_overrides_runpath=yes
12770 libname_spec='$name'
12773 library_names_spec='$libname${shared_ext} $libname.a'
12774 dynamic_linker='OS/2 ld.exe'
12775 shlibpath_var=LIBPATH
12778 osf3* | osf4* | osf5*)
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=yes
12797 hardcode_into_libs=yes
12798 # ldd complains unless libraries are executable
12799 postinstall_cmds='chmod +x $lib'
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 shlibpath_overrides_runpath=yes
12808 if test "$with_gnu_ld" = yes; then
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 shlibpath_var=LD_LIBRARY_PATH
12819 case $host_vendor in
12821 shlibpath_overrides_runpath=no
12823 export_dynamic_flag_spec='${wl}-Blargedynsym'
12824 runpath_var=LD_RUN_PATH
12832 shlibpath_overrides_runpath=no
12833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12839 if test -d /usr/nec ;then
12841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12842 soname_spec='$libname${shared_ext}.$major'
12843 shlibpath_var=LD_LIBRARY_PATH
12847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12848 version_type=freebsd-elf
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12852 soname_spec='${libname}${release}${shared_ext}$major'
12853 shlibpath_var=LD_LIBRARY_PATH
12854 hardcode_into_libs=yes
12855 if test "$with_gnu_ld" = yes; then
12856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12857 shlibpath_overrides_runpath=no
12859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12860 shlibpath_overrides_runpath=yes
12863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12867 sys_lib_dlsearch_path_spec='/usr/lib'
12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873 soname_spec='${libname}${release}${shared_ext}$major'
12874 shlibpath_var=LD_LIBRARY_PATH
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12882 printf "%s\n" "$dynamic_linker" >&6; }
12883 test "$dynamic_linker" = no && can_build_shared=no
12885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12886 if test "$GCC" = yes; then
12887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12891 printf %s "checking how to hardcode library paths into programs... " >&6; }
12892 hardcode_action_CXX=
12893 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12894 test -n "$runpath_var_CXX" || \
12895 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12897 # We can hardcode non-existant directories.
12898 if test "$hardcode_direct_CXX" != no &&
12899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12900 # have to relink, otherwise we might link with an installed library
12901 # when we should be linking with a yet-to-be-installed one
12902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12903 test "$hardcode_minus_L_CXX" != no; then
12904 # Linking always hardcodes the temporary library directory.
12905 hardcode_action_CXX=relink
12907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12908 hardcode_action_CXX=immediate
12911 # We cannot hardcode anything, or else we can only hardcode existing
12913 hardcode_action_CXX=unsupported
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12916 printf "%s\n" "$hardcode_action_CXX" >&6; }
12918 if test "$hardcode_action_CXX" = relink; then
12919 # Fast installation is not supported
12920 enable_fast_install=no
12921 elif test "$shlibpath_overrides_runpath" = yes ||
12922 test "$enable_shared" = no; then
12923 # Fast installation is not necessary
12924 enable_fast_install=needless
12928 # The else clause should only fire when bootstrapping the
12929 # libtool distribution, otherwise you forgot to ship ltmain.sh
12930 # with your package, and you will get complaints that there are
12931 # no rules to generate ltmain.sh.
12932 if test -f "$ltmain"; then
12933 # See if we are running on zsh, and set the options which allow our commands through
12934 # without removal of \ escapes.
12935 if test -n "${ZSH_VERSION+set}" ; then
12936 setopt NO_GLOB_SUBST
12938 # Now quote all the things that may contain metacharacters while being
12939 # careful not to overquote the AC_SUBSTed values. We take copies of the
12940 # variables and quote the copies for generation of the libtool script.
12941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12945 deplibs_check_method reload_flag reload_cmds need_locks \
12946 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12947 lt_cv_sys_global_symbol_to_c_name_address \
12948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12949 old_postinstall_cmds old_postuninstall_cmds \
12953 lt_prog_compiler_wl_CXX \
12954 lt_prog_compiler_pic_CXX \
12955 lt_prog_compiler_static_CXX \
12956 lt_prog_compiler_no_builtin_flag_CXX \
12957 export_dynamic_flag_spec_CXX \
12958 thread_safe_flag_spec_CXX \
12959 whole_archive_flag_spec_CXX \
12960 enable_shared_with_static_runtimes_CXX \
12961 old_archive_cmds_CXX \
12962 old_archive_from_new_cmds_CXX \
12963 predep_objects_CXX \
12964 postdep_objects_CXX \
12967 compiler_lib_search_path_CXX \
12969 archive_expsym_cmds_CXX \
12970 postinstall_cmds_CXX \
12971 postuninstall_cmds_CXX \
12972 old_archive_from_expsyms_cmds_CXX \
12973 allow_undefined_flag_CXX \
12974 no_undefined_flag_CXX \
12975 export_symbols_cmds_CXX \
12976 hardcode_libdir_flag_spec_CXX \
12977 hardcode_libdir_flag_spec_ld_CXX \
12978 hardcode_libdir_separator_CXX \
12979 hardcode_automatic_CXX \
12981 module_expsym_cmds_CXX \
12982 lt_cv_prog_compiler_c_o_CXX \
12983 exclude_expsyms_CXX \
12984 include_expsyms_CXX; do
12987 old_archive_cmds_CXX | \
12988 old_archive_from_new_cmds_CXX | \
12989 archive_cmds_CXX | \
12990 archive_expsym_cmds_CXX | \
12991 module_cmds_CXX | \
12992 module_expsym_cmds_CXX | \
12993 old_archive_from_expsyms_cmds_CXX | \
12994 export_symbols_cmds_CXX | \
12995 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12996 postinstall_cmds | postuninstall_cmds | \
12997 old_postinstall_cmds | old_postuninstall_cmds | \
12998 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12999 # Double-quote double-evaled strings.
13000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13009 *'\$0 --fallback-echo"')
13010 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13016 cat <<__EOF__ >> "$cfgfile"
13017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13021 # Shell to use when invoking shell scripts.
13024 # Whether or not to build shared libraries.
13025 build_libtool_libs=$enable_shared
13027 # Whether or not to build static libraries.
13028 build_old_libs=$enable_static
13030 # Whether or not to add -lc for building shared libraries.
13031 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13033 # Whether or not to disallow shared libs when runtime libs are static
13034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13036 # Whether or not to optimize for fast installation.
13037 fast_install=$enable_fast_install
13040 host_alias=$host_alias
13044 # The build system.
13045 build_alias=$build_alias
13049 # An echo program that does not interpret backslashes.
13054 AR_FLAGS=$lt_AR_FLAGS
13059 # LTCC compiler flags.
13060 LTCFLAGS=$lt_LTCFLAGS
13062 # A language-specific compiler.
13063 CC=$lt_compiler_CXX
13065 # Is the compiler the GNU C compiler?
13071 # The linker used to build libraries.
13074 # Whether we need hard or soft links.
13077 # A BSD-compatible nm program.
13080 # A symbol stripping program
13083 # Used to examine libraries when file_magic_cmd begins "file"
13084 MAGIC_CMD=$MAGIC_CMD
13086 # Used on cygwin: DLL creation program.
13089 # Used on cygwin: object dumper.
13092 # Used on cygwin: assembler.
13095 # The name of the directory that contains temporary libtool files.
13098 # How to create reloadable object files.
13099 reload_flag=$lt_reload_flag
13100 reload_cmds=$lt_reload_cmds
13102 # How to pass a linker flag through the compiler.
13103 wl=$lt_lt_prog_compiler_wl_CXX
13105 # Object file suffix (normally "o").
13106 objext="$ac_objext"
13108 # Old archive suffix (normally "a").
13111 # Shared library suffix (normally ".so").
13112 shrext_cmds='$shrext_cmds'
13114 # Executable file suffix (normally "").
13117 # Additional compiler flags for building library objects.
13118 pic_flag=$lt_lt_prog_compiler_pic_CXX
13121 # What is the maximum length of a command?
13122 max_cmd_len=$lt_cv_sys_max_cmd_len
13124 # Does compiler simultaneously support -c and -o options?
13125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13127 # Must we lock files when doing compilation?
13128 need_locks=$lt_need_locks
13130 # Do we need the lib prefix for modules?
13131 need_lib_prefix=$need_lib_prefix
13133 # Do we need a version for libraries?
13134 need_version=$need_version
13136 # Whether dlopen is supported.
13137 dlopen_support=$enable_dlopen
13139 # Whether dlopen of programs is supported.
13140 dlopen_self=$enable_dlopen_self
13142 # Whether dlopen of statically linked programs is supported.
13143 dlopen_self_static=$enable_dlopen_self_static
13145 # Compiler flag to prevent dynamic linking.
13146 link_static_flag=$lt_lt_prog_compiler_static_CXX
13148 # Compiler flag to turn off builtin functions.
13149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13151 # Compiler flag to allow reflexive dlopens.
13152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13154 # Compiler flag to generate shared objects directly from archives.
13155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13157 # Compiler flag to generate thread-safe objects.
13158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13160 # Library versioning type.
13161 version_type=$version_type
13163 # Format of library name prefix.
13164 libname_spec=$lt_libname_spec
13166 # List of archive names. First name is the real one, the rest are links.
13167 # The last name is the one that the linker finds with -lNAME.
13168 library_names_spec=$lt_library_names_spec
13170 # The coded name of the library, if different from the real name.
13171 soname_spec=$lt_soname_spec
13173 # Commands used to build and install an old-style archive.
13175 old_archive_cmds=$lt_old_archive_cmds_CXX
13176 old_postinstall_cmds=$lt_old_postinstall_cmds
13177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13179 # Create an old-style archive from a shared archive.
13180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13182 # Create a temporary old-style archive to link instead of a shared archive.
13183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13185 # Commands used to build and install a shared archive.
13186 archive_cmds=$lt_archive_cmds_CXX
13187 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13188 postinstall_cmds=$lt_postinstall_cmds
13189 postuninstall_cmds=$lt_postuninstall_cmds
13191 # Commands used to build a loadable module (assumed same as above if empty)
13192 module_cmds=$lt_module_cmds_CXX
13193 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13195 # Commands to strip libraries.
13196 old_striplib=$lt_old_striplib
13197 striplib=$lt_striplib
13199 # Dependencies to place before the objects being linked to create a
13201 predep_objects=$lt_predep_objects_CXX
13203 # Dependencies to place after the objects being linked to create a
13205 postdep_objects=$lt_postdep_objects_CXX
13207 # Dependencies to place before the objects being linked to create a
13209 predeps=$lt_predeps_CXX
13211 # Dependencies to place after the objects being linked to create a
13213 postdeps=$lt_postdeps_CXX
13215 # The library search path used internally by the compiler when linking
13216 # a shared library.
13217 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13219 # Method to check whether dependent libraries are shared objects.
13220 deplibs_check_method=$lt_deplibs_check_method
13222 # Command to use when deplibs_check_method == file_magic.
13223 file_magic_cmd=$lt_file_magic_cmd
13225 # Flag that allows shared libraries with undefined symbols to be built.
13226 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13228 # Flag that forces no undefined symbols.
13229 no_undefined_flag=$lt_no_undefined_flag_CXX
13231 # Commands used to finish a libtool library installation in a directory.
13232 finish_cmds=$lt_finish_cmds
13234 # Same as above, but a single script fragment to be evaled but not shown.
13235 finish_eval=$lt_finish_eval
13237 # Take the output of nm and produce a listing of raw symbols and C names.
13238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13240 # Transform the output of nm in a proper C declaration
13241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13243 # Transform the output of nm in a C name address pair
13244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13246 # This is the shared library runtime path variable.
13247 runpath_var=$runpath_var
13249 # This is the shared library path variable.
13250 shlibpath_var=$shlibpath_var
13252 # Is shlibpath searched before the hard-coded library search path?
13253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13255 # How to hardcode a shared library path into an executable.
13256 hardcode_action=$hardcode_action_CXX
13258 # Whether we should hardcode library paths into libraries.
13259 hardcode_into_libs=$hardcode_into_libs
13261 # Flag to hardcode \$libdir into a binary during linking.
13262 # This must work even if \$libdir does not exist.
13263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13265 # If ld is used when linking, flag to hardcode \$libdir into
13266 # a binary during linking. This must work even if \$libdir does
13268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13270 # Whether we need a single -rpath flag with a separated argument.
13271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13274 # resulting binary.
13275 hardcode_direct=$hardcode_direct_CXX
13277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13278 # resulting binary.
13279 hardcode_minus_L=$hardcode_minus_L_CXX
13281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13282 # the resulting binary.
13283 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13285 # Set to yes if building a shared library automatically hardcodes DIR into the library
13286 # and all subsequent libraries and executables linked against it.
13287 hardcode_automatic=$hardcode_automatic_CXX
13289 # Variables whose values should be saved in libtool wrapper scripts and
13290 # restored at relink time.
13291 variables_saved_for_relink="$variables_saved_for_relink"
13293 # Whether libtool must link a program against all its dependency libraries.
13294 link_all_deplibs=$link_all_deplibs_CXX
13296 # Compile-time system search path for libraries
13297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13299 # Run-time system search path for libraries
13300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13302 # Fix the shell variable \$srcfile for the compiler.
13303 fix_srcfile_path="$fix_srcfile_path_CXX"
13305 # Set to yes if exported symbols are required.
13306 always_export_symbols=$always_export_symbols_CXX
13308 # The commands to list exported symbols.
13309 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13311 # The commands to extract the exported symbol list from a shared archive.
13312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13314 # Symbols that should not be listed in the preloaded symbols.
13315 exclude_expsyms=$lt_exclude_expsyms_CXX
13317 # Symbols that must always be exported.
13318 include_expsyms=$lt_include_expsyms_CXX
13320 # ### END LIBTOOL TAG CONFIG: $tagname
13326 # If there is no Makefile yet, we rely on a make rule to execute
13327 # `config.status --recheck' to rerun these tests and create the
13328 # libtool script then.
13329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13330 if test -f "$ltmain_in"; then
13331 test -f Makefile && make "$ltmain"
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13346 with_gnu_ldcxx=$with_gnu_ld
13347 with_gnu_ld=$lt_save_with_gnu_ld
13348 lt_cv_path_LDCXX=$lt_cv_path_LD
13349 lt_cv_path_LD=$lt_save_path_LD
13350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13359 if test -n "$F77" && test "X$F77" != "Xno"; then
13362 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13363 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13367 archive_cmds_need_lc_F77=no
13368 allow_undefined_flag_F77=
13369 always_export_symbols_F77=no
13370 archive_expsym_cmds_F77=
13371 export_dynamic_flag_spec_F77=
13372 hardcode_direct_F77=no
13373 hardcode_libdir_flag_spec_F77=
13374 hardcode_libdir_flag_spec_ld_F77=
13375 hardcode_libdir_separator_F77=
13376 hardcode_minus_L_F77=no
13377 hardcode_automatic_F77=no
13379 module_expsym_cmds_F77=
13380 link_all_deplibs_F77=unknown
13381 old_archive_cmds_F77=$old_archive_cmds
13382 no_undefined_flag_F77=
13383 whole_archive_flag_spec_F77=
13384 enable_shared_with_static_runtimes_F77=no
13386 # Source file extension for f77 test sources.
13389 # Object file extension for compiled f77 test sources.
13393 # Code to be used in simple compile tests
13394 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13396 # Code to be used in simple link tests
13397 lt_simple_link_test_code=" program t\n end\n"
13399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13401 # If no C compiler was specified, use CC.
13404 # If no C compiler flags were specified, use CFLAGS.
13405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13407 # Allow CC to be a program name with arguments.
13411 # save warnings/boilerplate of simple test code
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13415 _lt_compiler_boilerplate=`cat conftest.err`
13418 ac_outfile=conftest.$ac_objext
13419 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13421 _lt_linker_boilerplate=`cat conftest.err`
13425 # Allow CC to be a program name with arguments.
13430 for cc_temp in $compiler""; do
13432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13442 printf %s "checking if libtool supports shared libraries... " >&6; }
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13444 printf "%s\n" "$can_build_shared" >&6; }
13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13447 printf %s "checking whether to build shared libraries... " >&6; }
13448 test "$can_build_shared" = "no" && enable_shared=no
13450 # On AIX, shared libraries and static libraries use the same namespace, and
13451 # are all built from PIC.
13454 test "$enable_shared" = yes && enable_static=no
13455 if test -n "$RANLIB"; then
13456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13457 postinstall_cmds='$RANLIB $lib'
13461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13462 test "$enable_shared" = yes && enable_static=no
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13467 printf "%s\n" "$enable_shared" >&6; }
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13470 printf %s "checking whether to build static libraries... " >&6; }
13471 # Make sure either enable_shared or enable_static is yes.
13472 test "$enable_shared" = yes || enable_static=yes
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13474 printf "%s\n" "$enable_static" >&6; }
13479 lt_prog_compiler_wl_F77=
13480 lt_prog_compiler_pic_F77=
13481 lt_prog_compiler_static_F77=
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13484 printf %s "checking for $compiler option to produce PIC... " >&6; }
13486 if test "$GCC" = yes; then
13487 lt_prog_compiler_wl_F77='-Wl,'
13488 lt_prog_compiler_static_F77='-static'
13492 # All AIX code is PIC.
13493 if test "$host_cpu" = ia64; then
13494 # AIX 5 now supports IA64 processor
13495 lt_prog_compiler_static_F77='-Bstatic'
13500 # FIXME: we need at least 68020 code to build shared libraries, but
13501 # adding the `-m68020' flag to GCC prevents building anything better,
13503 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13506 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13507 # PIC is the default for these OSes.
13510 mingw* | pw32* | os2*)
13511 # This hack is so that the source file can tell whether it is being
13512 # built for inclusion in a dll (and should export symbols for example).
13513 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13516 darwin* | rhapsody*)
13517 # PIC is the default on this platform
13518 # Common symbols not allowed in MH_DYLIB files
13519 lt_prog_compiler_pic_F77='-fno-common'
13523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13524 # Instead, we relocate shared libraries at runtime.
13528 # Just because we use GCC doesn't mean we suddenly get shared libraries
13529 # on systems that don't support them.
13530 lt_prog_compiler_can_build_shared_F77=no
13535 if test -d /usr/nec; then
13536 lt_prog_compiler_pic_F77=-Kconform_pic
13541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13542 # not for PA HP-UX.
13548 lt_prog_compiler_pic_F77='-fPIC'
13554 lt_prog_compiler_pic_F77='-fPIC'
13558 # PORTME Check for flag to pass linker flags through the system compiler.
13561 lt_prog_compiler_wl_F77='-Wl,'
13562 if test "$host_cpu" = ia64; then
13563 # AIX 5 now supports IA64 processor
13564 lt_prog_compiler_static_F77='-Bstatic'
13566 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13570 # PIC is the default on this platform
13571 # Common symbols not allowed in MH_DYLIB files
13572 case $cc_basename in
13574 lt_prog_compiler_pic_F77='-qnocommon'
13575 lt_prog_compiler_wl_F77='-Wl,'
13580 mingw* | pw32* | os2*)
13581 # This hack is so that the source file can tell whether it is being
13582 # built for inclusion in a dll (and should export symbols for example).
13583 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13586 hpux9* | hpux10* | hpux11*)
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13589 # not for PA HP-UX.
13595 lt_prog_compiler_pic_F77='+Z'
13598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13599 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13602 irix5* | irix6* | nonstopux*)
13603 lt_prog_compiler_wl_F77='-Wl,'
13604 # PIC (with -KPIC) is the default.
13605 lt_prog_compiler_static_F77='-non_shared'
13609 lt_prog_compiler_pic_F77='-KPIC'
13610 lt_prog_compiler_static_F77='-Bstatic'
13614 case $cc_basename in
13616 lt_prog_compiler_wl_F77='-Wl,'
13617 lt_prog_compiler_pic_F77='-KPIC'
13618 lt_prog_compiler_static_F77='-static'
13620 pgcc* | pgf77* | pgf90* | pgf95*)
13621 # Portland Group compilers (*not* the Pentium gcc compiler,
13622 # which looks to be a dead project)
13623 lt_prog_compiler_wl_F77='-Wl,'
13624 lt_prog_compiler_pic_F77='-fpic'
13625 lt_prog_compiler_static_F77='-Bstatic'
13628 lt_prog_compiler_wl_F77='-Wl,'
13629 # All Alpha code is PIC.
13630 lt_prog_compiler_static_F77='-non_shared'
13635 osf3* | osf4* | osf5*)
13636 lt_prog_compiler_wl_F77='-Wl,'
13637 # All OSF/1 code is PIC.
13638 lt_prog_compiler_static_F77='-non_shared'
13642 lt_prog_compiler_pic_F77='-KPIC'
13643 lt_prog_compiler_static_F77='-Bstatic'
13644 case $cc_basename in
13645 f77* | f90* | f95*)
13646 lt_prog_compiler_wl_F77='-Qoption ld ';;
13648 lt_prog_compiler_wl_F77='-Wl,';;
13653 lt_prog_compiler_wl_F77='-Qoption ld '
13654 lt_prog_compiler_pic_F77='-PIC'
13655 lt_prog_compiler_static_F77='-Bstatic'
13658 sysv4 | sysv4.2uw2* | sysv4.3*)
13659 lt_prog_compiler_wl_F77='-Wl,'
13660 lt_prog_compiler_pic_F77='-KPIC'
13661 lt_prog_compiler_static_F77='-Bstatic'
13665 if test -d /usr/nec ;then
13666 lt_prog_compiler_pic_F77='-Kconform_pic'
13667 lt_prog_compiler_static_F77='-Bstatic'
13671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13672 lt_prog_compiler_wl_F77='-Wl,'
13673 lt_prog_compiler_pic_F77='-KPIC'
13674 lt_prog_compiler_static_F77='-Bstatic'
13678 lt_prog_compiler_wl_F77='-Wl,'
13679 lt_prog_compiler_can_build_shared_F77=no
13683 lt_prog_compiler_pic_F77='-pic'
13684 lt_prog_compiler_static_F77='-Bstatic'
13688 lt_prog_compiler_can_build_shared_F77=no
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13694 printf "%s\n" "$lt_prog_compiler_pic_F77" >&6; }
13697 # Check to make sure the PIC flag actually works.
13699 if test -n "$lt_prog_compiler_pic_F77"; then
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13702 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13703 if test ${lt_prog_compiler_pic_works_F77+y}
13705 printf %s "(cached) " >&6
13707 lt_prog_compiler_pic_works_F77=no
13708 ac_outfile=conftest.$ac_objext
13709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13711 # Insert the option either (1) after the last *FLAGS variable, or
13712 # (2) before a word containing "conftest.", or (3) at the end.
13713 # Note that $ac_compile itself does not contain backslashes and begins
13714 # with a dollar sign (not a hyphen), so the echo should work correctly.
13715 # The option is referenced via a variable to avoid confusing sed.
13716 lt_compile=`echo "$ac_compile" | $SED \
13717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719 -e 's:$: $lt_compiler_flag:'`
13720 (eval echo "\"\$as_me:13720: $lt_compile\"" >&5)
13721 (eval "$lt_compile" 2>conftest.err)
13723 cat conftest.err >&5
13724 echo "$as_me:13724: \$? = $ac_status" >&5
13725 if (exit $ac_status) && test -s "$ac_outfile"; then
13726 # The compiler can only warn and ignore the option if not recognized
13727 # So say no if there are warnings other than the usual output.
13728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13731 lt_prog_compiler_pic_works_F77=yes
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13738 printf "%s\n" "$lt_prog_compiler_pic_works_F77" >&6; }
13740 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13741 case $lt_prog_compiler_pic_F77 in
13743 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13746 lt_prog_compiler_pic_F77=
13747 lt_prog_compiler_can_build_shared_F77=no
13752 # For platforms which do not support PIC, -DPIC is meaningless:
13754 lt_prog_compiler_pic_F77=
13757 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13762 # Check to make sure the static flag actually works.
13764 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13766 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13767 if test ${lt_prog_compiler_static_works_F77+y}
13769 printf %s "(cached) " >&6
13771 lt_prog_compiler_static_works_F77=no
13772 save_LDFLAGS="$LDFLAGS"
13773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13774 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13776 # The linker can only warn and ignore the option if not recognized
13777 # So say no if there are warnings
13778 if test -s conftest.err; then
13779 # Append any errors to the config.log.
13780 cat conftest.err 1>&5
13781 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13783 if diff conftest.exp conftest.er2 >/dev/null; then
13784 lt_prog_compiler_static_works_F77=yes
13787 lt_prog_compiler_static_works_F77=yes
13791 LDFLAGS="$save_LDFLAGS"
13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13795 printf "%s\n" "$lt_prog_compiler_static_works_F77" >&6; }
13797 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13800 lt_prog_compiler_static_F77=
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13805 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13806 if test ${lt_cv_prog_compiler_c_o_F77+y}
13808 printf %s "(cached) " >&6
13810 lt_cv_prog_compiler_c_o_F77=no
13811 $rm -r conftest 2>/dev/null
13815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13817 lt_compiler_flag="-o out/conftest2.$ac_objext"
13818 # Insert the option either (1) after the last *FLAGS variable, or
13819 # (2) before a word containing "conftest.", or (3) at the end.
13820 # Note that $ac_compile itself does not contain backslashes and begins
13821 # with a dollar sign (not a hyphen), so the echo should work correctly.
13822 lt_compile=`echo "$ac_compile" | $SED \
13823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825 -e 's:$: $lt_compiler_flag:'`
13826 (eval echo "\"\$as_me:13826: $lt_compile\"" >&5)
13827 (eval "$lt_compile" 2>out/conftest.err)
13829 cat out/conftest.err >&5
13830 echo "$as_me:13830: \$? = $ac_status" >&5
13831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13833 # The compiler can only warn and ignore the option if not recognized
13834 # So say no if there are warnings
13835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838 lt_cv_prog_compiler_c_o_F77=yes
13843 # SGI C++ compiler will create directory out/ii_files/ for
13844 # template instantiation
13845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13846 $rm out/* && rmdir out
13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13853 printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; }
13856 hard_links="nottested"
13857 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13858 # do not overwrite the value of need_locks provided by the user
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13860 printf %s "checking if we can lock with hard links... " >&6; }
13863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13865 ln conftest.a conftest.b 2>&5 || hard_links=no
13866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13868 printf "%s\n" "$hard_links" >&6; }
13869 if test "$hard_links" = no; then
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13871 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13882 allow_undefined_flag_F77=
13883 enable_shared_with_static_runtimes_F77=no
13885 archive_expsym_cmds_F77=
13886 old_archive_From_new_cmds_F77=
13887 old_archive_from_expsyms_cmds_F77=
13888 export_dynamic_flag_spec_F77=
13889 whole_archive_flag_spec_F77=
13890 thread_safe_flag_spec_F77=
13891 hardcode_libdir_flag_spec_F77=
13892 hardcode_libdir_flag_spec_ld_F77=
13893 hardcode_libdir_separator_F77=
13894 hardcode_direct_F77=no
13895 hardcode_minus_L_F77=no
13896 hardcode_shlibpath_var_F77=unsupported
13897 link_all_deplibs_F77=unknown
13898 hardcode_automatic_F77=no
13900 module_expsym_cmds_F77=
13901 always_export_symbols_F77=no
13902 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903 # include_expsyms should be a list of space-separated symbols to be *always*
13904 # included in the symbol list
13905 include_expsyms_F77=
13906 # exclude_expsyms can be an extended regexp of symbols to exclude
13907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13909 # as well as any symbol that contains `d'.
13910 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13912 # platforms (ab)use it in PIC code, but their linkers get confused if
13913 # the symbol is explicitly referenced. Since portable code cannot
13914 # rely on this symbol name, it's probably fine to never include it in
13915 # preloaded symbol tables.
13916 extract_expsyms_cmds=
13917 # Just being paranoid about ensuring that cc_basename is set.
13918 for cc_temp in $compiler""; do
13920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13929 cygwin* | mingw* | pw32*)
13930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13931 # When not using gcc, we currently assume that we are using
13932 # Microsoft Visual C++.
13933 if test "$GCC" != yes; then
13938 # we just hope/assume this is gcc and not c89 (= MSVC++)
13947 if test "$with_gnu_ld" = yes; then
13948 # If archive_cmds runs LD, not CC, wlarc should be empty
13951 # Set some defaults for GNU ld with shared library support. These
13952 # are reset later if shared libraries are not supported. Putting them
13953 # here allows them to be overridden if necessary.
13954 runpath_var=LD_RUN_PATH
13955 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13956 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13957 # ancient GNU ld didn't support --whole-archive et. al.
13958 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13959 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13961 whole_archive_flag_spec_F77=
13963 supports_anon_versioning=no
13964 case `$LD -v 2>/dev/null` in
13965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13968 *\ 2.11.*) ;; # other 2.11 versions
13969 *) supports_anon_versioning=yes ;;
13972 # See if GNU ld supports shared libraries.
13974 aix3* | aix4* | aix5*)
13975 # On AIX/PPC, the GNU linker is very broken
13976 if test "$host_cpu" != ia64; then
13980 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13981 *** to be unable to reliably create shared libraries on AIX.
13982 *** Therefore, libtool is disabling shared libraries support. If you
13983 *** really care for shared libraries, you may want to modify your PATH
13984 *** so that a non-GNU linker is found, and then restart.
13991 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)'
13992 hardcode_libdir_flag_spec_F77='-L$libdir'
13993 hardcode_minus_L_F77=yes
13995 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13996 # that the semantics of dynamic libraries on AmigaOS, at least up
13997 # to version 4, is to share data among multiple programs linked
13998 # with the same dynamic library. Since this doesn't match the
13999 # behavior of shared libraries on other platforms, we can't use
14005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14006 allow_undefined_flag_F77=unsupported
14007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14008 # support --undefined. This deserves some investigation. FIXME
14009 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015 cygwin* | mingw* | pw32*)
14016 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14017 # as there is no search path for DLLs.
14018 hardcode_libdir_flag_spec_F77='-L$libdir'
14019 allow_undefined_flag_F77=unsupported
14020 always_export_symbols_F77=no
14021 enable_shared_with_static_runtimes_F77=yes
14022 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14024 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14026 # If the export-symbols file already is a .def file (1st line
14027 # is EXPORTS), use it as is; otherwise, prepend...
14028 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14029 cp $export_symbols $output_objdir/$soname.def;
14031 echo EXPORTS > $output_objdir/$soname.def;
14032 cat $export_symbols >> $output_objdir/$soname.def;
14034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14041 hardcode_direct_F77=no
14042 hardcode_shlibpath_var_F77=no
14043 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14044 export_dynamic_flag_spec_F77='${wl}-E'
14045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14046 # Instead, shared libraries are loaded at an image base (0x10000000 by
14047 # default) and relocated if they conflict, which is a slow very memory
14048 # consuming and fragmenting process. To avoid this, we pick a random,
14049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14051 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14052 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14058 case $cc_basename,$host_cpu in
14059 pgcc*) # Portland Group C compiler
14060 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14061 tmp_addflag=' $pic_flag'
14063 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14064 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14065 tmp_addflag=' $pic_flag -Mnomain' ;;
14066 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14067 tmp_addflag=' -i_dynamic' ;;
14068 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14069 tmp_addflag=' -i_dynamic -nofor_main' ;;
14070 ifc* | ifort*) # Intel Fortran compiler
14071 tmp_addflag=' -nofor_main' ;;
14073 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075 if test $supports_anon_versioning = yes; then
14076 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14078 $echo "local: *; };" >> $output_objdir/$libname.ver~
14079 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14087 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14088 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14097 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14102 *** create shared libraries on Solaris systems. Therefore, libtool
14103 *** is disabling shared libraries support. We urge you to upgrade GNU
14104 *** binutils to release 2.9.1 or newer. Another option is to modify
14105 *** your PATH or compiler configuration so that the native linker is
14106 *** used, and then restart.
14109 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14118 case `$LD -v 2>&1` in
14119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14124 *** reliably create shared libraries on SCO systems. Therefore, libtool
14125 *** is disabling shared libraries support. We urge you to upgrade GNU
14126 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14127 *** your PATH or compiler configuration so that the native linker is
14128 *** used, and then restart.
14133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14136 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14145 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_direct_F77=yes
14148 hardcode_shlibpath_var_F77=no
14152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14153 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14161 if test "$ld_shlibs_F77" = no; then
14163 hardcode_libdir_flag_spec_F77=
14164 export_dynamic_flag_spec_F77=
14165 whole_archive_flag_spec_F77=
14168 # PORTME fill in a description of your system's linker (not GNU ld)
14171 allow_undefined_flag_F77=unsupported
14172 always_export_symbols_F77=yes
14173 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'
14174 # Note: this linker hardcodes the directories in LIBPATH if there
14175 # are no directories specified by -L.
14176 hardcode_minus_L_F77=yes
14177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14178 # Neither direct hardcoding nor static linking is supported with a
14180 hardcode_direct_F77=unsupported
14185 if test "$host_cpu" = ia64; then
14186 # On IA64, the linker does run time linking by default, so we don't
14187 # have to do anything special.
14188 aix_use_runtimelinking=no
14189 exp_sym_flag='-Bexport'
14192 # If we're using GNU nm, then we don't want the "-C" option.
14193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14194 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14195 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'
14197 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'
14199 aix_use_runtimelinking=no
14201 # Test if we are trying to use run time linking or normal
14202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14203 # need to do runtime linking.
14204 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14205 for ld_flag in $LDFLAGS; do
14206 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14207 aix_use_runtimelinking=yes
14214 exp_sym_flag='-bexport'
14215 no_entry_flag='-bnoentry'
14218 # When large executables or shared objects are built, AIX ld can
14219 # have problems creating the table of contents. If linking a library
14220 # or program results in "error TOC overflow" add -mminimal-toc to
14221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14224 archive_cmds_F77=''
14225 hardcode_direct_F77=yes
14226 hardcode_libdir_separator_F77=':'
14227 link_all_deplibs_F77=yes
14229 if test "$GCC" = yes; then
14230 case $host_os in aix4.[012]|aix4.[012].*)
14231 # We only want to do this on AIX 4.2 and lower, the check
14232 # below for broken collect2 doesn't work under 4.3+
14233 collect2name=`${CC} -print-prog-name=collect2`
14234 if test -f "$collect2name" && \
14235 strings "$collect2name" | grep resolve_lib_name >/dev/null
14237 # We have reworked collect2
14238 hardcode_direct_F77=yes
14240 # We have old collect2
14241 hardcode_direct_F77=unsupported
14242 # It fails to find uninstalled libraries when the uninstalled
14243 # path is not listed in the libpath. Setting hardcode_minus_L
14244 # to unsupported forces relinking
14245 hardcode_minus_L_F77=yes
14246 hardcode_libdir_flag_spec_F77='-L$libdir'
14247 hardcode_libdir_separator_F77=
14251 shared_flag='-shared'
14252 if test "$aix_use_runtimelinking" = yes; then
14253 shared_flag="$shared_flag "'${wl}-G'
14257 if test "$host_cpu" = ia64; then
14258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14259 # chokes on -Wl,-G. The following line is correct:
14262 if test "$aix_use_runtimelinking" = yes; then
14263 shared_flag='${wl}-G'
14265 shared_flag='${wl}-bM:SRE'
14270 # It seems that -bexpall does not export symbols beginning with
14271 # underscore (_), so it is better to generate a list of symbols to export.
14272 always_export_symbols_F77=yes
14273 if test "$aix_use_runtimelinking" = yes; then
14274 # Warning - without using the other runtime loading flags (-brtl),
14275 # -berok will link without error, but may produce a broken library.
14276 allow_undefined_flag_F77='-berok'
14277 # Determine the default libpath from the value encoded in an empty executable.
14278 cat > conftest.$ac_ext <<_ACEOF
14283 if ac_fn_f77_try_link "$LINENO"
14286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14288 # Check for a 64-bit object if we didn't find anything.
14289 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; }
14292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14293 conftest$ac_exeext conftest.$ac_ext
14294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14296 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14297 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14299 if test "$host_cpu" = ia64; then
14300 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14301 allow_undefined_flag_F77="-z nodefs"
14302 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14304 # Determine the default libpath from the value encoded in an empty executable.
14305 cat > conftest.$ac_ext <<_ACEOF
14310 if ac_fn_f77_try_link "$LINENO"
14313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14315 # Check for a 64-bit object if we didn't find anything.
14316 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; }
14319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14320 conftest$ac_exeext conftest.$ac_ext
14321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14323 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14324 # Warning - without using the other run time loading flags,
14325 # -berok will link without error, but may produce a broken library.
14326 no_undefined_flag_F77=' ${wl}-bernotok'
14327 allow_undefined_flag_F77=' ${wl}-berok'
14328 # Exported symbols can be pulled into shared objects from archives
14329 whole_archive_flag_spec_F77='$convenience'
14330 archive_cmds_need_lc_F77=yes
14331 # This is similar to how AIX traditionally builds its shared libraries.
14332 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14338 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)'
14339 hardcode_libdir_flag_spec_F77='-L$libdir'
14340 hardcode_minus_L_F77=yes
14341 # see comment about different semantics on the GNU ld section
14346 export_dynamic_flag_spec_F77=-rdynamic
14349 cygwin* | mingw* | pw32*)
14350 # When not using gcc, we currently assume that we are using
14351 # Microsoft Visual C++.
14352 # hardcode_libdir_flag_spec is actually meaningless, as there is
14353 # no search path for DLLs.
14354 hardcode_libdir_flag_spec_F77=' '
14355 allow_undefined_flag_F77=unsupported
14356 # Tell ltmain to make .lib files, not .a files.
14358 # Tell ltmain to make .dll files, not .so files.
14360 # FIXME: Setting linknames here is a bad hack.
14361 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14362 # The linker will automatically build a .lib file if we build a DLL.
14363 old_archive_From_new_cmds_F77='true'
14364 # FIXME: Should let the user specify the lib program.
14365 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14366 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14367 enable_shared_with_static_runtimes_F77=yes
14370 darwin* | rhapsody*)
14372 rhapsody* | darwin1.[012])
14373 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14376 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14379 case ${MACOSX_DEPLOYMENT_TARGET} in
14381 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14384 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14390 archive_cmds_need_lc_F77=no
14391 hardcode_direct_F77=no
14392 hardcode_automatic_F77=yes
14393 hardcode_shlibpath_var_F77=unsupported
14394 whole_archive_flag_spec_F77=''
14395 link_all_deplibs_F77=yes
14396 if test "$GCC" = yes ; then
14397 output_verbose_link_cmd='echo'
14398 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14399 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14401 archive_expsym_cmds_F77='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}'
14402 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}'
14404 case $cc_basename in
14406 output_verbose_link_cmd='echo'
14407 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14408 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14410 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14411 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}'
14421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422 hardcode_libdir_flag_spec_F77='-L$libdir'
14423 hardcode_shlibpath_var_F77=no
14430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14431 # support. Future versions do this automatically, but an explicit c++rt0.o
14432 # does not break anything, and helps significantly (at the cost of a little
14435 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14436 hardcode_libdir_flag_spec_F77='-R$libdir'
14437 hardcode_direct_F77=yes
14438 hardcode_shlibpath_var_F77=no
14441 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14443 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14444 hardcode_direct_F77=yes
14445 hardcode_minus_L_F77=yes
14446 hardcode_shlibpath_var_F77=no
14449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14450 freebsd* | kfreebsd*-gnu | dragonfly*)
14451 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14452 hardcode_libdir_flag_spec_F77='-R$libdir'
14453 hardcode_direct_F77=yes
14454 hardcode_shlibpath_var_F77=no
14458 if test "$GCC" = yes; then
14459 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'
14461 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'
14463 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14464 hardcode_libdir_separator_F77=:
14465 hardcode_direct_F77=yes
14467 # hardcode_minus_L: Not really in the search PATH,
14468 # but as the default location of the library.
14469 hardcode_minus_L_F77=yes
14470 export_dynamic_flag_spec_F77='${wl}-E'
14474 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14475 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14479 if test "$with_gnu_ld" = no; then
14480 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14481 hardcode_libdir_separator_F77=:
14483 hardcode_direct_F77=yes
14484 export_dynamic_flag_spec_F77='${wl}-E'
14486 # hardcode_minus_L: Not really in the search PATH,
14487 # but as the default location of the library.
14488 hardcode_minus_L_F77=yes
14493 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14496 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14499 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14518 if test "$with_gnu_ld" = no; then
14519 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14520 hardcode_libdir_separator_F77=:
14524 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14525 hardcode_direct_F77=no
14526 hardcode_shlibpath_var_F77=no
14529 hardcode_direct_F77=yes
14530 export_dynamic_flag_spec_F77='${wl}-E'
14532 # hardcode_minus_L: Not really in the search PATH,
14533 # but as the default location of the library.
14534 hardcode_minus_L_F77=yes
14540 irix5* | irix6* | nonstopux*)
14541 if test "$GCC" = yes; then
14542 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'
14544 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'
14545 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14547 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14548 hardcode_libdir_separator_F77=:
14549 link_all_deplibs_F77=yes
14553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14556 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14558 hardcode_libdir_flag_spec_F77='-R$libdir'
14559 hardcode_direct_F77=yes
14560 hardcode_shlibpath_var_F77=no
14564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14565 hardcode_direct_F77=yes
14566 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14567 hardcode_libdir_separator_F77=:
14568 hardcode_shlibpath_var_F77=no
14572 hardcode_direct_F77=yes
14573 hardcode_shlibpath_var_F77=no
14574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14575 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14576 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14578 export_dynamic_flag_spec_F77='${wl}-E'
14581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14582 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14583 hardcode_libdir_flag_spec_F77='-R$libdir'
14586 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14587 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14594 hardcode_libdir_flag_spec_F77='-L$libdir'
14595 hardcode_minus_L_F77=yes
14596 allow_undefined_flag_F77=unsupported
14597 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'
14598 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14602 if test "$GCC" = yes; then
14603 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14604 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'
14606 allow_undefined_flag_F77=' -expect_unresolved \*'
14607 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'
14609 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14610 hardcode_libdir_separator_F77=:
14613 osf4* | osf5*) # as osf3* with the addition of -msym flag
14614 if test "$GCC" = yes; then
14615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14616 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'
14617 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14619 allow_undefined_flag_F77=' -expect_unresolved \*'
14620 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'
14621 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~
14622 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14624 # Both c and cxx compiler support -rpath directly
14625 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14627 hardcode_libdir_separator_F77=:
14631 no_undefined_flag_F77=' -z text'
14632 if test "$GCC" = yes; then
14634 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14635 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14636 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14639 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14643 hardcode_libdir_flag_spec_F77='-R$libdir'
14644 hardcode_shlibpath_var_F77=no
14646 solaris2.[0-5] | solaris2.[0-5].*) ;;
14648 # The compiler driver will combine linker options so we
14649 # cannot just pass the convience library names through
14650 # without $wl, iff we do not link with $LD.
14651 # Luckily, gcc supports the same syntax we need for Sun Studio.
14652 # Supported since Solaris 2.6 (maybe 2.5.1?)
14655 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14657 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14660 link_all_deplibs_F77=yes
14664 if test "x$host_vendor" = xsequent; then
14665 # Use $CC to link under sequent, because it throws in some extra .o
14666 # files that make .init and .fini sections work.
14667 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14669 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14671 hardcode_libdir_flag_spec_F77='-L$libdir'
14672 hardcode_direct_F77=yes
14673 hardcode_minus_L_F77=yes
14674 hardcode_shlibpath_var_F77=no
14678 case $host_vendor in
14680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14681 hardcode_direct_F77=yes # is this really true???
14684 ## LD is ld it makes a PLAMLIB
14685 ## CC just makes a GrossModule.
14686 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14687 reload_cmds_F77='$CC -r -o $output$reload_objs'
14688 hardcode_direct_F77=no
14691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14695 runpath_var='LD_RUN_PATH'
14696 hardcode_shlibpath_var_F77=no
14700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_shlibpath_var_F77=no
14702 export_dynamic_flag_spec_F77='-Bexport'
14706 if test -d /usr/nec; then
14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_shlibpath_var_F77=no
14709 runpath_var=LD_RUN_PATH
14710 hardcode_runpath_var=yes
14715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14716 no_undefined_flag_F77='${wl}-z,text'
14717 archive_cmds_need_lc_F77=no
14718 hardcode_shlibpath_var_F77=no
14719 runpath_var='LD_RUN_PATH'
14721 if test "$GCC" = yes; then
14722 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14725 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 sysv5* | sco3.2v5* | sco5v6*)
14731 # Note: We can NOT use -z defs as we might desire, because we do not
14732 # link with -lc, and that would cause any symbols used from libc to
14733 # always be unresolved, which means just about no library would
14734 # ever link correctly. If we're not using GNU ld we use -z text
14735 # though, which does catch some bad symbols but isn't as heavy-handed
14737 no_undefined_flag_F77='${wl}-z,text'
14738 allow_undefined_flag_F77='${wl}-z,nodefs'
14739 archive_cmds_need_lc_F77=no
14740 hardcode_shlibpath_var_F77=no
14741 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14742 hardcode_libdir_separator_F77=':'
14743 link_all_deplibs_F77=yes
14744 export_dynamic_flag_spec_F77='${wl}-Bexport'
14745 runpath_var='LD_RUN_PATH'
14747 if test "$GCC" = yes; then
14748 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14749 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14751 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758 hardcode_libdir_flag_spec_F77='-L$libdir'
14759 hardcode_shlibpath_var_F77=no
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14769 printf "%s\n" "$ld_shlibs_F77" >&6; }
14770 test "$ld_shlibs_F77" = no && can_build_shared=no
14773 # Do we need to explicitly link libc?
14775 case "x$archive_cmds_need_lc_F77" in
14777 # Assume -lc should be added
14778 archive_cmds_need_lc_F77=yes
14780 if test "$enable_shared" = yes && test "$GCC" = yes; then
14781 case $archive_cmds_F77 in
14783 # FIXME: we may have to deal with multi-command sequences.
14786 # Test whether the compiler implicitly links with -lc since on some
14787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14788 # to ld, don't add -lc before -lgcc.
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14790 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14795 (eval $ac_compile) 2>&5
14797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798 test $ac_status = 0; } 2>conftest.err; then
14801 libobjs=conftest.$ac_objext
14803 wl=$lt_prog_compiler_wl_F77
14804 pic_flag=$lt_prog_compiler_pic_F77
14810 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14811 allow_undefined_flag_F77=
14812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14813 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 test $ac_status = 0; }
14818 archive_cmds_need_lc_F77=no
14820 archive_cmds_need_lc_F77=yes
14822 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14824 cat conftest.err 1>&5
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14828 printf "%s\n" "$archive_cmds_need_lc_F77" >&6; }
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14836 printf %s "checking dynamic linker characteristics... " >&6; }
14837 library_names_spec=
14838 libname_spec='lib$name'
14842 postuninstall_cmds=
14846 shlibpath_overrides_runpath=unknown
14848 dynamic_linker="$host_os ld.so"
14849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14850 if test "$GCC" = yes; then
14851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14852 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14853 # if the path contains ";" then we assume it to be the separator
14854 # otherwise default to the standard path separator (i.e. ":") - it is
14855 # assumed that no part of a normal pathname contains ";" but that should
14856 # okay in the real world where ";" in dirpaths is itself problematic.
14857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14864 need_lib_prefix=unknown
14865 hardcode_into_libs=no
14867 # when you set need_version to no, make sure it does not cause -set_version
14868 # flags to be left without arguments
14869 need_version=unknown
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14875 shlibpath_var=LIBPATH
14877 # AIX 3 has no versioning support, so we append a major version to the name.
14878 soname_spec='${libname}${release}${shared_ext}$major'
14885 hardcode_into_libs=yes
14886 if test "$host_cpu" = ia64; then
14887 # AIX 5 supports IA64
14888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14891 # With GCC up to 2.95.x, collect2 would create an import file
14892 # for dependence libraries. The import file would start with
14893 # the line `#! .'. This would cause the generated library to
14894 # depend on `.', always an invalid library. This was fixed in
14895 # development snapshots of GCC prior to 3.0.
14897 aix4 | aix4.[01] | aix4.[01].*)
14898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14900 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14903 can_build_shared=no
14907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14908 # soname into executable. Probably we can add versioning support to
14909 # collect2, so additional links can be useful in future.
14910 if test "$aix_use_runtimelinking" = yes; then
14911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14912 # instead of lib<name>.a to let people know that these are not
14913 # typical AIX shared libraries.
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 # We preserve .a as extension for shared libraries through AIX4.2
14917 # and later when we are not doing run time linking.
14918 library_names_spec='${libname}${release}.a $libname.a'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LIBPATH
14926 library_names_spec='$libname.ixlibrary $libname.a'
14927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14928 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'
14932 library_names_spec='${libname}${shared_ext}'
14933 dynamic_linker="$host_os ld.so"
14934 shlibpath_var=LIBRARY_PATH
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14945 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14946 # the default ld.so.conf also contains /usr/contrib/lib and
14947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14948 # libtool to hard-code these into programs
14951 cygwin* | mingw* | pw32*)
14952 version_type=windows
14957 case $GCC,$host_os in
14958 yes,cygwin* | yes,mingw* | yes,pw32*)
14959 library_names_spec='$libname.dll.a'
14960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14961 postinstall_cmds='base_file=`basename \${file}`~
14962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14963 dldir=$destdir/`dirname \$dlpath`~
14964 test -d \$dldir || mkdir -p \$dldir~
14965 $install_prog $dir/$dlname \$dldir/$dlname~
14966 chmod a+x \$dldir/$dlname'
14967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14968 dlpath=$dir/\$dldll~
14970 shlibpath_overrides_runpath=yes
14974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14979 # MinGW DLLs use traditional 'lib' prefix
14980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14983 # It is most probably a Windows format PATH printed by
14984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14985 # path with ; separators, and with drive letters. We can handle the
14986 # drive letters (cygwin fileutils understands them), so leave them,
14987 # especially as we might pass files found there to a mingw objdump,
14988 # which wouldn't understand a cygwinified path. Ahh.
14989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14995 # pw32 DLLs use 'pw' prefix rather than 'lib'
14996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15005 dynamic_linker='Win32 ld.exe'
15006 # FIXME: first we should search . and the directory the executable is in
15010 darwin* | rhapsody*)
15011 dynamic_linker="$host_os dyld"
15012 version_type=darwin
15015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15016 soname_spec='${libname}${release}${major}$shared_ext'
15017 shlibpath_overrides_runpath=yes
15018 shlibpath_var=DYLD_LIBRARY_PATH
15019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15020 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15021 if test "$GCC" = yes; then
15022 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"`
15024 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 shlibpath_var=LD_LIBRARY_PATH
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 shlibpath_overrides_runpath=no
15050 hardcode_into_libs=yes
15051 dynamic_linker='GNU ld.so'
15054 freebsd* | dragonfly*)
15055 # DragonFly does not have aout. When/if they implement a new
15056 # versioning mechanism, adjust this.
15057 if test -x /usr/bin/objformat; then
15058 objformat=`/usr/bin/objformat`
15061 freebsd[123]*) objformat=aout ;;
15062 *) objformat=elf ;;
15065 version_type=freebsd-$objformat
15066 case $version_type in
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15077 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15082 freebsd3.[01]* | freebsdelf3.[01]*)
15083 shlibpath_overrides_runpath=yes
15084 hardcode_into_libs=yes
15086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15088 shlibpath_overrides_runpath=no
15089 hardcode_into_libs=yes
15091 freebsd*) # from 4.6 on
15092 shlibpath_overrides_runpath=yes
15093 hardcode_into_libs=yes
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 hardcode_into_libs=yes
15108 hpux9* | hpux10* | hpux11*)
15109 # Give a soname corresponding to the major version so that dld.sl refuses to
15110 # link against other versions.
15117 hardcode_into_libs=yes
15118 dynamic_linker="$host_os dld.so"
15119 shlibpath_var=LD_LIBRARY_PATH
15120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 if test "X$HPUX_IA64_MODE" = X32; then
15124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15132 hardcode_into_libs=yes
15133 dynamic_linker="$host_os dld.sl"
15134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15143 dynamic_linker="$host_os dld.sl"
15144 shlibpath_var=SHLIB_PATH
15145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15150 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15151 postinstall_cmds='chmod 555 $lib'
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=no
15163 hardcode_into_libs=yes
15166 irix5* | irix6* | nonstopux*)
15168 nonstopux*) version_type=nonstopux ;;
15170 if test "$lt_cv_prog_gnu_ld" = yes; then
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15181 irix5* | nonstopux*)
15182 libsuff= shlibsuff=
15185 case $LD in # libtool.m4 will add one of these switches to LD
15186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15187 libsuff= shlibsuff= libmagic=32-bit;;
15188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15189 libsuff=32 shlibsuff=N32 libmagic=N32;;
15190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15192 *) libsuff= shlibsuff= libmagic=never-match;;
15196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15197 shlibpath_overrides_runpath=no
15198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15200 hardcode_into_libs=yes
15203 # No shared lib support for Linux oldld, aout, or coff.
15204 linux*oldld* | linux*aout* | linux*coff*)
15208 # This must be Linux ELF.
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 # This implies no fast_install, which is unacceptable.
15219 # Some rework will be needed to allow for fast_install
15220 # before this can be enabled.
15221 hardcode_into_libs=yes
15223 # Append ld.so.conf contents to the search path
15224 if test -f /etc/ld.so.conf; then
15225 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15229 # We used to test for /lib/ld.so.1 and disable shared libraries on
15230 # powerpc, because MkLinux only supported shared libraries with the
15231 # GNU dynamic linker. Since this was broken with cross compilers,
15232 # most powerpc-linux boxes support dynamic linking these days and
15233 # people can always --disable-shared, the test was removed, and we
15234 # assume the GNU/Linux dynamic linker is in use.
15235 dynamic_linker='GNU/Linux ld.so'
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=no
15246 hardcode_into_libs=yes
15247 dynamic_linker='GNU ld.so'
15254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15257 dynamic_linker='NetBSD (a.out) ld.so'
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 dynamic_linker='NetBSD ld.elf_so'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=yes
15287 sys_lib_dlsearch_path_spec="/usr/lib"
15289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15292 *) need_version=no ;;
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15299 openbsd2.[89] | openbsd2.[89].*)
15300 shlibpath_overrides_runpath=no
15303 shlibpath_overrides_runpath=yes
15307 shlibpath_overrides_runpath=yes
15312 libname_spec='$name'
15315 library_names_spec='$libname${shared_ext} $libname.a'
15316 dynamic_linker='OS/2 ld.exe'
15317 shlibpath_var=LIBPATH
15320 osf3* | osf4* | osf5*)
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15340 # ldd complains unless libraries are executable
15341 postinstall_cmds='chmod +x $lib'
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15350 if test "$with_gnu_ld" = yes; then
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 case $host_vendor in
15363 shlibpath_overrides_runpath=no
15365 export_dynamic_flag_spec='${wl}-Blargedynsym'
15366 runpath_var=LD_RUN_PATH
15374 shlibpath_overrides_runpath=no
15375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15381 if test -d /usr/nec ;then
15383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15384 soname_spec='$libname${shared_ext}.$major'
15385 shlibpath_var=LD_LIBRARY_PATH
15389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15390 version_type=freebsd-elf
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 hardcode_into_libs=yes
15397 if test "$with_gnu_ld" = yes; then
15398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15399 shlibpath_overrides_runpath=no
15401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15402 shlibpath_overrides_runpath=yes
15405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15409 sys_lib_dlsearch_path_spec='/usr/lib'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15424 printf "%s\n" "$dynamic_linker" >&6; }
15425 test "$dynamic_linker" = no && can_build_shared=no
15427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15428 if test "$GCC" = yes; then
15429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15433 printf %s "checking how to hardcode library paths into programs... " >&6; }
15434 hardcode_action_F77=
15435 if test -n "$hardcode_libdir_flag_spec_F77" || \
15436 test -n "$runpath_var_F77" || \
15437 test "X$hardcode_automatic_F77" = "Xyes" ; then
15439 # We can hardcode non-existant directories.
15440 if test "$hardcode_direct_F77" != no &&
15441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15442 # have to relink, otherwise we might link with an installed library
15443 # when we should be linking with a yet-to-be-installed one
15444 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15445 test "$hardcode_minus_L_F77" != no; then
15446 # Linking always hardcodes the temporary library directory.
15447 hardcode_action_F77=relink
15449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15450 hardcode_action_F77=immediate
15453 # We cannot hardcode anything, or else we can only hardcode existing
15455 hardcode_action_F77=unsupported
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15458 printf "%s\n" "$hardcode_action_F77" >&6; }
15460 if test "$hardcode_action_F77" = relink; then
15461 # Fast installation is not supported
15462 enable_fast_install=no
15463 elif test "$shlibpath_overrides_runpath" = yes ||
15464 test "$enable_shared" = no; then
15465 # Fast installation is not necessary
15466 enable_fast_install=needless
15470 # The else clause should only fire when bootstrapping the
15471 # libtool distribution, otherwise you forgot to ship ltmain.sh
15472 # with your package, and you will get complaints that there are
15473 # no rules to generate ltmain.sh.
15474 if test -f "$ltmain"; then
15475 # See if we are running on zsh, and set the options which allow our commands through
15476 # without removal of \ escapes.
15477 if test -n "${ZSH_VERSION+set}" ; then
15478 setopt NO_GLOB_SUBST
15480 # Now quote all the things that may contain metacharacters while being
15481 # careful not to overquote the AC_SUBSTed values. We take copies of the
15482 # variables and quote the copies for generation of the libtool script.
15483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15487 deplibs_check_method reload_flag reload_cmds need_locks \
15488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15489 lt_cv_sys_global_symbol_to_c_name_address \
15490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15491 old_postinstall_cmds old_postuninstall_cmds \
15495 lt_prog_compiler_wl_F77 \
15496 lt_prog_compiler_pic_F77 \
15497 lt_prog_compiler_static_F77 \
15498 lt_prog_compiler_no_builtin_flag_F77 \
15499 export_dynamic_flag_spec_F77 \
15500 thread_safe_flag_spec_F77 \
15501 whole_archive_flag_spec_F77 \
15502 enable_shared_with_static_runtimes_F77 \
15503 old_archive_cmds_F77 \
15504 old_archive_from_new_cmds_F77 \
15505 predep_objects_F77 \
15506 postdep_objects_F77 \
15509 compiler_lib_search_path_F77 \
15511 archive_expsym_cmds_F77 \
15512 postinstall_cmds_F77 \
15513 postuninstall_cmds_F77 \
15514 old_archive_from_expsyms_cmds_F77 \
15515 allow_undefined_flag_F77 \
15516 no_undefined_flag_F77 \
15517 export_symbols_cmds_F77 \
15518 hardcode_libdir_flag_spec_F77 \
15519 hardcode_libdir_flag_spec_ld_F77 \
15520 hardcode_libdir_separator_F77 \
15521 hardcode_automatic_F77 \
15523 module_expsym_cmds_F77 \
15524 lt_cv_prog_compiler_c_o_F77 \
15525 exclude_expsyms_F77 \
15526 include_expsyms_F77; do
15529 old_archive_cmds_F77 | \
15530 old_archive_from_new_cmds_F77 | \
15531 archive_cmds_F77 | \
15532 archive_expsym_cmds_F77 | \
15533 module_cmds_F77 | \
15534 module_expsym_cmds_F77 | \
15535 old_archive_from_expsyms_cmds_F77 | \
15536 export_symbols_cmds_F77 | \
15537 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15538 postinstall_cmds | postuninstall_cmds | \
15539 old_postinstall_cmds | old_postuninstall_cmds | \
15540 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15541 # Double-quote double-evaled strings.
15542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15551 *'\$0 --fallback-echo"')
15552 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15558 cat <<__EOF__ >> "$cfgfile"
15559 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15561 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15563 # Shell to use when invoking shell scripts.
15566 # Whether or not to build shared libraries.
15567 build_libtool_libs=$enable_shared
15569 # Whether or not to build static libraries.
15570 build_old_libs=$enable_static
15572 # Whether or not to add -lc for building shared libraries.
15573 build_libtool_need_lc=$archive_cmds_need_lc_F77
15575 # Whether or not to disallow shared libs when runtime libs are static
15576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15578 # Whether or not to optimize for fast installation.
15579 fast_install=$enable_fast_install
15582 host_alias=$host_alias
15586 # The build system.
15587 build_alias=$build_alias
15591 # An echo program that does not interpret backslashes.
15596 AR_FLAGS=$lt_AR_FLAGS
15601 # LTCC compiler flags.
15602 LTCFLAGS=$lt_LTCFLAGS
15604 # A language-specific compiler.
15605 CC=$lt_compiler_F77
15607 # Is the compiler the GNU C compiler?
15613 # The linker used to build libraries.
15616 # Whether we need hard or soft links.
15619 # A BSD-compatible nm program.
15622 # A symbol stripping program
15625 # Used to examine libraries when file_magic_cmd begins "file"
15626 MAGIC_CMD=$MAGIC_CMD
15628 # Used on cygwin: DLL creation program.
15631 # Used on cygwin: object dumper.
15634 # Used on cygwin: assembler.
15637 # The name of the directory that contains temporary libtool files.
15640 # How to create reloadable object files.
15641 reload_flag=$lt_reload_flag
15642 reload_cmds=$lt_reload_cmds
15644 # How to pass a linker flag through the compiler.
15645 wl=$lt_lt_prog_compiler_wl_F77
15647 # Object file suffix (normally "o").
15648 objext="$ac_objext"
15650 # Old archive suffix (normally "a").
15653 # Shared library suffix (normally ".so").
15654 shrext_cmds='$shrext_cmds'
15656 # Executable file suffix (normally "").
15659 # Additional compiler flags for building library objects.
15660 pic_flag=$lt_lt_prog_compiler_pic_F77
15663 # What is the maximum length of a command?
15664 max_cmd_len=$lt_cv_sys_max_cmd_len
15666 # Does compiler simultaneously support -c and -o options?
15667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15669 # Must we lock files when doing compilation?
15670 need_locks=$lt_need_locks
15672 # Do we need the lib prefix for modules?
15673 need_lib_prefix=$need_lib_prefix
15675 # Do we need a version for libraries?
15676 need_version=$need_version
15678 # Whether dlopen is supported.
15679 dlopen_support=$enable_dlopen
15681 # Whether dlopen of programs is supported.
15682 dlopen_self=$enable_dlopen_self
15684 # Whether dlopen of statically linked programs is supported.
15685 dlopen_self_static=$enable_dlopen_self_static
15687 # Compiler flag to prevent dynamic linking.
15688 link_static_flag=$lt_lt_prog_compiler_static_F77
15690 # Compiler flag to turn off builtin functions.
15691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15693 # Compiler flag to allow reflexive dlopens.
15694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15696 # Compiler flag to generate shared objects directly from archives.
15697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15699 # Compiler flag to generate thread-safe objects.
15700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15702 # Library versioning type.
15703 version_type=$version_type
15705 # Format of library name prefix.
15706 libname_spec=$lt_libname_spec
15708 # List of archive names. First name is the real one, the rest are links.
15709 # The last name is the one that the linker finds with -lNAME.
15710 library_names_spec=$lt_library_names_spec
15712 # The coded name of the library, if different from the real name.
15713 soname_spec=$lt_soname_spec
15715 # Commands used to build and install an old-style archive.
15717 old_archive_cmds=$lt_old_archive_cmds_F77
15718 old_postinstall_cmds=$lt_old_postinstall_cmds
15719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15721 # Create an old-style archive from a shared archive.
15722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15724 # Create a temporary old-style archive to link instead of a shared archive.
15725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15727 # Commands used to build and install a shared archive.
15728 archive_cmds=$lt_archive_cmds_F77
15729 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15730 postinstall_cmds=$lt_postinstall_cmds
15731 postuninstall_cmds=$lt_postuninstall_cmds
15733 # Commands used to build a loadable module (assumed same as above if empty)
15734 module_cmds=$lt_module_cmds_F77
15735 module_expsym_cmds=$lt_module_expsym_cmds_F77
15737 # Commands to strip libraries.
15738 old_striplib=$lt_old_striplib
15739 striplib=$lt_striplib
15741 # Dependencies to place before the objects being linked to create a
15743 predep_objects=$lt_predep_objects_F77
15745 # Dependencies to place after the objects being linked to create a
15747 postdep_objects=$lt_postdep_objects_F77
15749 # Dependencies to place before the objects being linked to create a
15751 predeps=$lt_predeps_F77
15753 # Dependencies to place after the objects being linked to create a
15755 postdeps=$lt_postdeps_F77
15757 # The library search path used internally by the compiler when linking
15758 # a shared library.
15759 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15761 # Method to check whether dependent libraries are shared objects.
15762 deplibs_check_method=$lt_deplibs_check_method
15764 # Command to use when deplibs_check_method == file_magic.
15765 file_magic_cmd=$lt_file_magic_cmd
15767 # Flag that allows shared libraries with undefined symbols to be built.
15768 allow_undefined_flag=$lt_allow_undefined_flag_F77
15770 # Flag that forces no undefined symbols.
15771 no_undefined_flag=$lt_no_undefined_flag_F77
15773 # Commands used to finish a libtool library installation in a directory.
15774 finish_cmds=$lt_finish_cmds
15776 # Same as above, but a single script fragment to be evaled but not shown.
15777 finish_eval=$lt_finish_eval
15779 # Take the output of nm and produce a listing of raw symbols and C names.
15780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15782 # Transform the output of nm in a proper C declaration
15783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15785 # Transform the output of nm in a C name address pair
15786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15788 # This is the shared library runtime path variable.
15789 runpath_var=$runpath_var
15791 # This is the shared library path variable.
15792 shlibpath_var=$shlibpath_var
15794 # Is shlibpath searched before the hard-coded library search path?
15795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15797 # How to hardcode a shared library path into an executable.
15798 hardcode_action=$hardcode_action_F77
15800 # Whether we should hardcode library paths into libraries.
15801 hardcode_into_libs=$hardcode_into_libs
15803 # Flag to hardcode \$libdir into a binary during linking.
15804 # This must work even if \$libdir does not exist.
15805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15807 # If ld is used when linking, flag to hardcode \$libdir into
15808 # a binary during linking. This must work even if \$libdir does
15810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15812 # Whether we need a single -rpath flag with a separated argument.
15813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15816 # resulting binary.
15817 hardcode_direct=$hardcode_direct_F77
15819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15820 # resulting binary.
15821 hardcode_minus_L=$hardcode_minus_L_F77
15823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15824 # the resulting binary.
15825 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15827 # Set to yes if building a shared library automatically hardcodes DIR into the library
15828 # and all subsequent libraries and executables linked against it.
15829 hardcode_automatic=$hardcode_automatic_F77
15831 # Variables whose values should be saved in libtool wrapper scripts and
15832 # restored at relink time.
15833 variables_saved_for_relink="$variables_saved_for_relink"
15835 # Whether libtool must link a program against all its dependency libraries.
15836 link_all_deplibs=$link_all_deplibs_F77
15838 # Compile-time system search path for libraries
15839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15841 # Run-time system search path for libraries
15842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15844 # Fix the shell variable \$srcfile for the compiler.
15845 fix_srcfile_path="$fix_srcfile_path_F77"
15847 # Set to yes if exported symbols are required.
15848 always_export_symbols=$always_export_symbols_F77
15850 # The commands to list exported symbols.
15851 export_symbols_cmds=$lt_export_symbols_cmds_F77
15853 # The commands to extract the exported symbol list from a shared archive.
15854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15856 # Symbols that should not be listed in the preloaded symbols.
15857 exclude_expsyms=$lt_exclude_expsyms_F77
15859 # Symbols that must always be exported.
15860 include_expsyms=$lt_include_expsyms_F77
15862 # ### END LIBTOOL TAG CONFIG: $tagname
15868 # If there is no Makefile yet, we rely on a make rule to execute
15869 # `config.status --recheck' to rerun these tests and create the
15870 # libtool script then.
15871 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15872 if test -f "$ltmain_in"; then
15873 test -f Makefile && make "$ltmain"
15879 ac_cpp='$CPP $CPPFLAGS'
15880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15895 # Source file extension for Java test sources.
15898 # Object file extension for compiled Java test sources.
15902 # Code to be used in simple compile tests
15903 lt_simple_compile_test_code="class foo {}\n"
15905 # Code to be used in simple link tests
15906 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15908 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15910 # If no C compiler was specified, use CC.
15913 # If no C compiler flags were specified, use CFLAGS.
15914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15916 # Allow CC to be a program name with arguments.
15920 # save warnings/boilerplate of simple test code
15921 ac_outfile=conftest.$ac_objext
15922 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15924 _lt_compiler_boilerplate=`cat conftest.err`
15927 ac_outfile=conftest.$ac_objext
15928 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15930 _lt_linker_boilerplate=`cat conftest.err`
15934 # Allow CC to be a program name with arguments.
15939 for cc_temp in $compiler""; do
15941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15947 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15950 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15951 archive_cmds_need_lc_GCJ=no
15953 old_archive_cmds_GCJ=$old_archive_cmds
15956 ## There is no encapsulation within the following macros, do not change
15957 ## the running order or otherwise move them around unless you know exactly
15958 ## what you are doing...
15960 lt_prog_compiler_no_builtin_flag_GCJ=
15962 if test "$GCC" = yes; then
15963 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15967 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15968 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15970 printf %s "(cached) " >&6
15972 lt_cv_prog_compiler_rtti_exceptions=no
15973 ac_outfile=conftest.$ac_objext
15974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15975 lt_compiler_flag="-fno-rtti -fno-exceptions"
15976 # Insert the option either (1) after the last *FLAGS variable, or
15977 # (2) before a word containing "conftest.", or (3) at the end.
15978 # Note that $ac_compile itself does not contain backslashes and begins
15979 # with a dollar sign (not a hyphen), so the echo should work correctly.
15980 # The option is referenced via a variable to avoid confusing sed.
15981 lt_compile=`echo "$ac_compile" | $SED \
15982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15984 -e 's:$: $lt_compiler_flag:'`
15985 (eval echo "\"\$as_me:15985: $lt_compile\"" >&5)
15986 (eval "$lt_compile" 2>conftest.err)
15988 cat conftest.err >&5
15989 echo "$as_me:15989: \$? = $ac_status" >&5
15990 if (exit $ac_status) && test -s "$ac_outfile"; then
15991 # The compiler can only warn and ignore the option if not recognized
15992 # So say no if there are warnings other than the usual output.
15993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15996 lt_cv_prog_compiler_rtti_exceptions=yes
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16003 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16006 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16013 lt_prog_compiler_wl_GCJ=
16014 lt_prog_compiler_pic_GCJ=
16015 lt_prog_compiler_static_GCJ=
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16018 printf %s "checking for $compiler option to produce PIC... " >&6; }
16020 if test "$GCC" = yes; then
16021 lt_prog_compiler_wl_GCJ='-Wl,'
16022 lt_prog_compiler_static_GCJ='-static'
16026 # All AIX code is PIC.
16027 if test "$host_cpu" = ia64; then
16028 # AIX 5 now supports IA64 processor
16029 lt_prog_compiler_static_GCJ='-Bstatic'
16034 # FIXME: we need at least 68020 code to build shared libraries, but
16035 # adding the `-m68020' flag to GCC prevents building anything better,
16037 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16041 # PIC is the default for these OSes.
16044 mingw* | pw32* | os2*)
16045 # This hack is so that the source file can tell whether it is being
16046 # built for inclusion in a dll (and should export symbols for example).
16047 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16050 darwin* | rhapsody*)
16051 # PIC is the default on this platform
16052 # Common symbols not allowed in MH_DYLIB files
16053 lt_prog_compiler_pic_GCJ='-fno-common'
16057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16058 # Instead, we relocate shared libraries at runtime.
16062 # Just because we use GCC doesn't mean we suddenly get shared libraries
16063 # on systems that don't support them.
16064 lt_prog_compiler_can_build_shared_GCJ=no
16069 if test -d /usr/nec; then
16070 lt_prog_compiler_pic_GCJ=-Kconform_pic
16075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16076 # not for PA HP-UX.
16082 lt_prog_compiler_pic_GCJ='-fPIC'
16088 lt_prog_compiler_pic_GCJ='-fPIC'
16092 # PORTME Check for flag to pass linker flags through the system compiler.
16095 lt_prog_compiler_wl_GCJ='-Wl,'
16096 if test "$host_cpu" = ia64; then
16097 # AIX 5 now supports IA64 processor
16098 lt_prog_compiler_static_GCJ='-Bstatic'
16100 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16104 # PIC is the default on this platform
16105 # Common symbols not allowed in MH_DYLIB files
16106 case $cc_basename in
16108 lt_prog_compiler_pic_GCJ='-qnocommon'
16109 lt_prog_compiler_wl_GCJ='-Wl,'
16114 mingw* | pw32* | os2*)
16115 # This hack is so that the source file can tell whether it is being
16116 # built for inclusion in a dll (and should export symbols for example).
16117 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16120 hpux9* | hpux10* | hpux11*)
16121 lt_prog_compiler_wl_GCJ='-Wl,'
16122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16123 # not for PA HP-UX.
16129 lt_prog_compiler_pic_GCJ='+Z'
16132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16133 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16136 irix5* | irix6* | nonstopux*)
16137 lt_prog_compiler_wl_GCJ='-Wl,'
16138 # PIC (with -KPIC) is the default.
16139 lt_prog_compiler_static_GCJ='-non_shared'
16143 lt_prog_compiler_pic_GCJ='-KPIC'
16144 lt_prog_compiler_static_GCJ='-Bstatic'
16148 case $cc_basename in
16150 lt_prog_compiler_wl_GCJ='-Wl,'
16151 lt_prog_compiler_pic_GCJ='-KPIC'
16152 lt_prog_compiler_static_GCJ='-static'
16154 pgcc* | pgf77* | pgf90* | pgf95*)
16155 # Portland Group compilers (*not* the Pentium gcc compiler,
16156 # which looks to be a dead project)
16157 lt_prog_compiler_wl_GCJ='-Wl,'
16158 lt_prog_compiler_pic_GCJ='-fpic'
16159 lt_prog_compiler_static_GCJ='-Bstatic'
16162 lt_prog_compiler_wl_GCJ='-Wl,'
16163 # All Alpha code is PIC.
16164 lt_prog_compiler_static_GCJ='-non_shared'
16169 osf3* | osf4* | osf5*)
16170 lt_prog_compiler_wl_GCJ='-Wl,'
16171 # All OSF/1 code is PIC.
16172 lt_prog_compiler_static_GCJ='-non_shared'
16176 lt_prog_compiler_pic_GCJ='-KPIC'
16177 lt_prog_compiler_static_GCJ='-Bstatic'
16178 case $cc_basename in
16179 f77* | f90* | f95*)
16180 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16182 lt_prog_compiler_wl_GCJ='-Wl,';;
16187 lt_prog_compiler_wl_GCJ='-Qoption ld '
16188 lt_prog_compiler_pic_GCJ='-PIC'
16189 lt_prog_compiler_static_GCJ='-Bstatic'
16192 sysv4 | sysv4.2uw2* | sysv4.3*)
16193 lt_prog_compiler_wl_GCJ='-Wl,'
16194 lt_prog_compiler_pic_GCJ='-KPIC'
16195 lt_prog_compiler_static_GCJ='-Bstatic'
16199 if test -d /usr/nec ;then
16200 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16201 lt_prog_compiler_static_GCJ='-Bstatic'
16205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16206 lt_prog_compiler_wl_GCJ='-Wl,'
16207 lt_prog_compiler_pic_GCJ='-KPIC'
16208 lt_prog_compiler_static_GCJ='-Bstatic'
16212 lt_prog_compiler_wl_GCJ='-Wl,'
16213 lt_prog_compiler_can_build_shared_GCJ=no
16217 lt_prog_compiler_pic_GCJ='-pic'
16218 lt_prog_compiler_static_GCJ='-Bstatic'
16222 lt_prog_compiler_can_build_shared_GCJ=no
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16228 printf "%s\n" "$lt_prog_compiler_pic_GCJ" >&6; }
16231 # Check to make sure the PIC flag actually works.
16233 if test -n "$lt_prog_compiler_pic_GCJ"; then
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16236 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16237 if test ${lt_prog_compiler_pic_works_GCJ+y}
16239 printf %s "(cached) " >&6
16241 lt_prog_compiler_pic_works_GCJ=no
16242 ac_outfile=conftest.$ac_objext
16243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16244 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16245 # Insert the option either (1) after the last *FLAGS variable, or
16246 # (2) before a word containing "conftest.", or (3) at the end.
16247 # Note that $ac_compile itself does not contain backslashes and begins
16248 # with a dollar sign (not a hyphen), so the echo should work correctly.
16249 # The option is referenced via a variable to avoid confusing sed.
16250 lt_compile=`echo "$ac_compile" | $SED \
16251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16253 -e 's:$: $lt_compiler_flag:'`
16254 (eval echo "\"\$as_me:16254: $lt_compile\"" >&5)
16255 (eval "$lt_compile" 2>conftest.err)
16257 cat conftest.err >&5
16258 echo "$as_me:16258: \$? = $ac_status" >&5
16259 if (exit $ac_status) && test -s "$ac_outfile"; then
16260 # The compiler can only warn and ignore the option if not recognized
16261 # So say no if there are warnings other than the usual output.
16262 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16265 lt_prog_compiler_pic_works_GCJ=yes
16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16272 printf "%s\n" "$lt_prog_compiler_pic_works_GCJ" >&6; }
16274 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16275 case $lt_prog_compiler_pic_GCJ in
16277 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16280 lt_prog_compiler_pic_GCJ=
16281 lt_prog_compiler_can_build_shared_GCJ=no
16286 # For platforms which do not support PIC, -DPIC is meaningless:
16288 lt_prog_compiler_pic_GCJ=
16291 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16296 # Check to make sure the static flag actually works.
16298 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16300 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16301 if test ${lt_prog_compiler_static_works_GCJ+y}
16303 printf %s "(cached) " >&6
16305 lt_prog_compiler_static_works_GCJ=no
16306 save_LDFLAGS="$LDFLAGS"
16307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16308 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16310 # The linker can only warn and ignore the option if not recognized
16311 # So say no if there are warnings
16312 if test -s conftest.err; then
16313 # Append any errors to the config.log.
16314 cat conftest.err 1>&5
16315 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16317 if diff conftest.exp conftest.er2 >/dev/null; then
16318 lt_prog_compiler_static_works_GCJ=yes
16321 lt_prog_compiler_static_works_GCJ=yes
16325 LDFLAGS="$save_LDFLAGS"
16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16329 printf "%s\n" "$lt_prog_compiler_static_works_GCJ" >&6; }
16331 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16334 lt_prog_compiler_static_GCJ=
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16339 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16340 if test ${lt_cv_prog_compiler_c_o_GCJ+y}
16342 printf %s "(cached) " >&6
16344 lt_cv_prog_compiler_c_o_GCJ=no
16345 $rm -r conftest 2>/dev/null
16349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16351 lt_compiler_flag="-o out/conftest2.$ac_objext"
16352 # Insert the option either (1) after the last *FLAGS variable, or
16353 # (2) before a word containing "conftest.", or (3) at the end.
16354 # Note that $ac_compile itself does not contain backslashes and begins
16355 # with a dollar sign (not a hyphen), so the echo should work correctly.
16356 lt_compile=`echo "$ac_compile" | $SED \
16357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16359 -e 's:$: $lt_compiler_flag:'`
16360 (eval echo "\"\$as_me:16360: $lt_compile\"" >&5)
16361 (eval "$lt_compile" 2>out/conftest.err)
16363 cat out/conftest.err >&5
16364 echo "$as_me:16364: \$? = $ac_status" >&5
16365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16367 # The compiler can only warn and ignore the option if not recognized
16368 # So say no if there are warnings
16369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16372 lt_cv_prog_compiler_c_o_GCJ=yes
16377 # SGI C++ compiler will create directory out/ii_files/ for
16378 # template instantiation
16379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16380 $rm out/* && rmdir out
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16387 printf "%s\n" "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16390 hard_links="nottested"
16391 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16392 # do not overwrite the value of need_locks provided by the user
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16394 printf %s "checking if we can lock with hard links... " >&6; }
16397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16399 ln conftest.a conftest.b 2>&5 || hard_links=no
16400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16402 printf "%s\n" "$hard_links" >&6; }
16403 if test "$hard_links" = no; then
16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16405 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16413 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16416 allow_undefined_flag_GCJ=
16417 enable_shared_with_static_runtimes_GCJ=no
16419 archive_expsym_cmds_GCJ=
16420 old_archive_From_new_cmds_GCJ=
16421 old_archive_from_expsyms_cmds_GCJ=
16422 export_dynamic_flag_spec_GCJ=
16423 whole_archive_flag_spec_GCJ=
16424 thread_safe_flag_spec_GCJ=
16425 hardcode_libdir_flag_spec_GCJ=
16426 hardcode_libdir_flag_spec_ld_GCJ=
16427 hardcode_libdir_separator_GCJ=
16428 hardcode_direct_GCJ=no
16429 hardcode_minus_L_GCJ=no
16430 hardcode_shlibpath_var_GCJ=unsupported
16431 link_all_deplibs_GCJ=unknown
16432 hardcode_automatic_GCJ=no
16434 module_expsym_cmds_GCJ=
16435 always_export_symbols_GCJ=no
16436 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16437 # include_expsyms should be a list of space-separated symbols to be *always*
16438 # included in the symbol list
16439 include_expsyms_GCJ=
16440 # exclude_expsyms can be an extended regexp of symbols to exclude
16441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16443 # as well as any symbol that contains `d'.
16444 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16446 # platforms (ab)use it in PIC code, but their linkers get confused if
16447 # the symbol is explicitly referenced. Since portable code cannot
16448 # rely on this symbol name, it's probably fine to never include it in
16449 # preloaded symbol tables.
16450 extract_expsyms_cmds=
16451 # Just being paranoid about ensuring that cc_basename is set.
16452 for cc_temp in $compiler""; do
16454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16463 cygwin* | mingw* | pw32*)
16464 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16465 # When not using gcc, we currently assume that we are using
16466 # Microsoft Visual C++.
16467 if test "$GCC" != yes; then
16472 # we just hope/assume this is gcc and not c89 (= MSVC++)
16481 if test "$with_gnu_ld" = yes; then
16482 # If archive_cmds runs LD, not CC, wlarc should be empty
16485 # Set some defaults for GNU ld with shared library support. These
16486 # are reset later if shared libraries are not supported. Putting them
16487 # here allows them to be overridden if necessary.
16488 runpath_var=LD_RUN_PATH
16489 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16490 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16491 # ancient GNU ld didn't support --whole-archive et. al.
16492 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16493 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16495 whole_archive_flag_spec_GCJ=
16497 supports_anon_versioning=no
16498 case `$LD -v 2>/dev/null` in
16499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16502 *\ 2.11.*) ;; # other 2.11 versions
16503 *) supports_anon_versioning=yes ;;
16506 # See if GNU ld supports shared libraries.
16508 aix3* | aix4* | aix5*)
16509 # On AIX/PPC, the GNU linker is very broken
16510 if test "$host_cpu" != ia64; then
16514 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16515 *** to be unable to reliably create shared libraries on AIX.
16516 *** Therefore, libtool is disabling shared libraries support. If you
16517 *** really care for shared libraries, you may want to modify your PATH
16518 *** so that a non-GNU linker is found, and then restart.
16525 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)'
16526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16527 hardcode_minus_L_GCJ=yes
16529 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16530 # that the semantics of dynamic libraries on AmigaOS, at least up
16531 # to version 4, is to share data among multiple programs linked
16532 # with the same dynamic library. Since this doesn't match the
16533 # behavior of shared libraries on other platforms, we can't use
16539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16540 allow_undefined_flag_GCJ=unsupported
16541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16542 # support --undefined. This deserves some investigation. FIXME
16543 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16549 cygwin* | mingw* | pw32*)
16550 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16551 # as there is no search path for DLLs.
16552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553 allow_undefined_flag_GCJ=unsupported
16554 always_export_symbols_GCJ=no
16555 enable_shared_with_static_runtimes_GCJ=yes
16556 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16560 # If the export-symbols file already is a .def file (1st line
16561 # is EXPORTS), use it as is; otherwise, prepend...
16562 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16563 cp $export_symbols $output_objdir/$soname.def;
16565 echo EXPORTS > $output_objdir/$soname.def;
16566 cat $export_symbols >> $output_objdir/$soname.def;
16568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16575 hardcode_direct_GCJ=no
16576 hardcode_shlibpath_var_GCJ=no
16577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16578 export_dynamic_flag_spec_GCJ='${wl}-E'
16579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16580 # Instead, shared libraries are loaded at an image base (0x10000000 by
16581 # default) and relocated if they conflict, which is a slow very memory
16582 # consuming and fragmenting process. To avoid this, we pick a random,
16583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16585 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16586 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16592 case $cc_basename,$host_cpu in
16593 pgcc*) # Portland Group C compiler
16594 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16595 tmp_addflag=' $pic_flag'
16597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16598 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16599 tmp_addflag=' $pic_flag -Mnomain' ;;
16600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16601 tmp_addflag=' -i_dynamic' ;;
16602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16603 tmp_addflag=' -i_dynamic -nofor_main' ;;
16604 ifc* | ifort*) # Intel Fortran compiler
16605 tmp_addflag=' -nofor_main' ;;
16607 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16609 if test $supports_anon_versioning = yes; then
16610 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16612 $echo "local: *; };" >> $output_objdir/$libname.ver~
16613 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16622 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16625 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16626 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16636 *** create shared libraries on Solaris systems. Therefore, libtool
16637 *** is disabling shared libraries support. We urge you to upgrade GNU
16638 *** binutils to release 2.9.1 or newer. Another option is to modify
16639 *** your PATH or compiler configuration so that the native linker is
16640 *** used, and then restart.
16643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16652 case `$LD -v 2>&1` in
16653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16658 *** reliably create shared libraries on SCO systems. Therefore, libtool
16659 *** is disabling shared libraries support. We urge you to upgrade GNU
16660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16661 *** your PATH or compiler configuration so that the native linker is
16662 *** used, and then restart.
16667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16668 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16679 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_direct_GCJ=yes
16682 hardcode_shlibpath_var_GCJ=no
16686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16695 if test "$ld_shlibs_GCJ" = no; then
16697 hardcode_libdir_flag_spec_GCJ=
16698 export_dynamic_flag_spec_GCJ=
16699 whole_archive_flag_spec_GCJ=
16702 # PORTME fill in a description of your system's linker (not GNU ld)
16705 allow_undefined_flag_GCJ=unsupported
16706 always_export_symbols_GCJ=yes
16707 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'
16708 # Note: this linker hardcodes the directories in LIBPATH if there
16709 # are no directories specified by -L.
16710 hardcode_minus_L_GCJ=yes
16711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16712 # Neither direct hardcoding nor static linking is supported with a
16714 hardcode_direct_GCJ=unsupported
16719 if test "$host_cpu" = ia64; then
16720 # On IA64, the linker does run time linking by default, so we don't
16721 # have to do anything special.
16722 aix_use_runtimelinking=no
16723 exp_sym_flag='-Bexport'
16726 # If we're using GNU nm, then we don't want the "-C" option.
16727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16729 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'
16731 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'
16733 aix_use_runtimelinking=no
16735 # Test if we are trying to use run time linking or normal
16736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16737 # need to do runtime linking.
16738 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16739 for ld_flag in $LDFLAGS; do
16740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16741 aix_use_runtimelinking=yes
16748 exp_sym_flag='-bexport'
16749 no_entry_flag='-bnoentry'
16752 # When large executables or shared objects are built, AIX ld can
16753 # have problems creating the table of contents. If linking a library
16754 # or program results in "error TOC overflow" add -mminimal-toc to
16755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16758 archive_cmds_GCJ=''
16759 hardcode_direct_GCJ=yes
16760 hardcode_libdir_separator_GCJ=':'
16761 link_all_deplibs_GCJ=yes
16763 if test "$GCC" = yes; then
16764 case $host_os in aix4.[012]|aix4.[012].*)
16765 # We only want to do this on AIX 4.2 and lower, the check
16766 # below for broken collect2 doesn't work under 4.3+
16767 collect2name=`${CC} -print-prog-name=collect2`
16768 if test -f "$collect2name" && \
16769 strings "$collect2name" | grep resolve_lib_name >/dev/null
16771 # We have reworked collect2
16772 hardcode_direct_GCJ=yes
16774 # We have old collect2
16775 hardcode_direct_GCJ=unsupported
16776 # It fails to find uninstalled libraries when the uninstalled
16777 # path is not listed in the libpath. Setting hardcode_minus_L
16778 # to unsupported forces relinking
16779 hardcode_minus_L_GCJ=yes
16780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16781 hardcode_libdir_separator_GCJ=
16785 shared_flag='-shared'
16786 if test "$aix_use_runtimelinking" = yes; then
16787 shared_flag="$shared_flag "'${wl}-G'
16791 if test "$host_cpu" = ia64; then
16792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16793 # chokes on -Wl,-G. The following line is correct:
16796 if test "$aix_use_runtimelinking" = yes; then
16797 shared_flag='${wl}-G'
16799 shared_flag='${wl}-bM:SRE'
16804 # It seems that -bexpall does not export symbols beginning with
16805 # underscore (_), so it is better to generate a list of symbols to export.
16806 always_export_symbols_GCJ=yes
16807 if test "$aix_use_runtimelinking" = yes; then
16808 # Warning - without using the other runtime loading flags (-brtl),
16809 # -berok will link without error, but may produce a broken library.
16810 allow_undefined_flag_GCJ='-berok'
16811 # Determine the default libpath from the value encoded in an empty executable.
16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16823 if ac_fn_c_try_link "$LINENO"
16826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16828 # Check for a 64-bit object if we didn't find anything.
16829 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; }
16832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16833 conftest$ac_exeext conftest.$ac_ext
16834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16836 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16837 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16839 if test "$host_cpu" = ia64; then
16840 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16841 allow_undefined_flag_GCJ="-z nodefs"
16842 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16844 # Determine the default libpath from the value encoded in an empty executable.
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16856 if ac_fn_c_try_link "$LINENO"
16859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16861 # Check for a 64-bit object if we didn't find anything.
16862 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; }
16865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16866 conftest$ac_exeext conftest.$ac_ext
16867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16869 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16870 # Warning - without using the other run time loading flags,
16871 # -berok will link without error, but may produce a broken library.
16872 no_undefined_flag_GCJ=' ${wl}-bernotok'
16873 allow_undefined_flag_GCJ=' ${wl}-berok'
16874 # Exported symbols can be pulled into shared objects from archives
16875 whole_archive_flag_spec_GCJ='$convenience'
16876 archive_cmds_need_lc_GCJ=yes
16877 # This is similar to how AIX traditionally builds its shared libraries.
16878 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16884 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)'
16885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16886 hardcode_minus_L_GCJ=yes
16887 # see comment about different semantics on the GNU ld section
16892 export_dynamic_flag_spec_GCJ=-rdynamic
16895 cygwin* | mingw* | pw32*)
16896 # When not using gcc, we currently assume that we are using
16897 # Microsoft Visual C++.
16898 # hardcode_libdir_flag_spec is actually meaningless, as there is
16899 # no search path for DLLs.
16900 hardcode_libdir_flag_spec_GCJ=' '
16901 allow_undefined_flag_GCJ=unsupported
16902 # Tell ltmain to make .lib files, not .a files.
16904 # Tell ltmain to make .dll files, not .so files.
16906 # FIXME: Setting linknames here is a bad hack.
16907 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16908 # The linker will automatically build a .lib file if we build a DLL.
16909 old_archive_From_new_cmds_GCJ='true'
16910 # FIXME: Should let the user specify the lib program.
16911 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16912 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16913 enable_shared_with_static_runtimes_GCJ=yes
16916 darwin* | rhapsody*)
16918 rhapsody* | darwin1.[012])
16919 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16922 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16925 case ${MACOSX_DEPLOYMENT_TARGET} in
16927 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16930 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16936 archive_cmds_need_lc_GCJ=no
16937 hardcode_direct_GCJ=no
16938 hardcode_automatic_GCJ=yes
16939 hardcode_shlibpath_var_GCJ=unsupported
16940 whole_archive_flag_spec_GCJ=''
16941 link_all_deplibs_GCJ=yes
16942 if test "$GCC" = yes ; then
16943 output_verbose_link_cmd='echo'
16944 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16945 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16946 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16947 archive_expsym_cmds_GCJ='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}'
16948 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}'
16950 case $cc_basename in
16952 output_verbose_link_cmd='echo'
16953 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16954 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16955 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16956 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16957 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}'
16967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969 hardcode_shlibpath_var_GCJ=no
16976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16977 # support. Future versions do this automatically, but an explicit c++rt0.o
16978 # does not break anything, and helps significantly (at the cost of a little
16981 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16982 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16983 hardcode_direct_GCJ=yes
16984 hardcode_shlibpath_var_GCJ=no
16987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16990 hardcode_direct_GCJ=yes
16991 hardcode_minus_L_GCJ=yes
16992 hardcode_shlibpath_var_GCJ=no
16995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16996 freebsd* | kfreebsd*-gnu | dragonfly*)
16997 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17004 if test "$GCC" = yes; then
17005 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'
17007 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'
17009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator_GCJ=:
17011 hardcode_direct_GCJ=yes
17013 # hardcode_minus_L: Not really in the search PATH,
17014 # but as the default location of the library.
17015 hardcode_minus_L_GCJ=yes
17016 export_dynamic_flag_spec_GCJ='${wl}-E'
17020 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17021 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17023 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17025 if test "$with_gnu_ld" = no; then
17026 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17027 hardcode_libdir_separator_GCJ=:
17029 hardcode_direct_GCJ=yes
17030 export_dynamic_flag_spec_GCJ='${wl}-E'
17032 # hardcode_minus_L: Not really in the search PATH,
17033 # but as the default location of the library.
17034 hardcode_minus_L_GCJ=yes
17039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17042 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17048 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17060 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17064 if test "$with_gnu_ld" = no; then
17065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17066 hardcode_libdir_separator_GCJ=:
17070 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17071 hardcode_direct_GCJ=no
17072 hardcode_shlibpath_var_GCJ=no
17075 hardcode_direct_GCJ=yes
17076 export_dynamic_flag_spec_GCJ='${wl}-E'
17078 # hardcode_minus_L: Not really in the search PATH,
17079 # but as the default location of the library.
17080 hardcode_minus_L_GCJ=yes
17086 irix5* | irix6* | nonstopux*)
17087 if test "$GCC" = yes; then
17088 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'
17090 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'
17091 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17094 hardcode_libdir_separator_GCJ=:
17095 link_all_deplibs_GCJ=yes
17099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17102 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17105 hardcode_direct_GCJ=yes
17106 hardcode_shlibpath_var_GCJ=no
17110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111 hardcode_direct_GCJ=yes
17112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17113 hardcode_libdir_separator_GCJ=:
17114 hardcode_shlibpath_var_GCJ=no
17118 hardcode_direct_GCJ=yes
17119 hardcode_shlibpath_var_GCJ=no
17120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17121 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17122 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17124 export_dynamic_flag_spec_GCJ='${wl}-E'
17127 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17128 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17132 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_minus_L_GCJ=yes
17142 allow_undefined_flag_GCJ=unsupported
17143 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'
17144 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17148 if test "$GCC" = yes; then
17149 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17150 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'
17152 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17153 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'
17155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156 hardcode_libdir_separator_GCJ=:
17159 osf4* | osf5*) # as osf3* with the addition of -msym flag
17160 if test "$GCC" = yes; then
17161 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17162 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'
17163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17165 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17166 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'
17167 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~
17168 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17170 # Both c and cxx compiler support -rpath directly
17171 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17173 hardcode_libdir_separator_GCJ=:
17177 no_undefined_flag_GCJ=' -z text'
17178 if test "$GCC" = yes; then
17180 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17181 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17182 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17185 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17186 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17190 hardcode_shlibpath_var_GCJ=no
17192 solaris2.[0-5] | solaris2.[0-5].*) ;;
17194 # The compiler driver will combine linker options so we
17195 # cannot just pass the convience library names through
17196 # without $wl, iff we do not link with $LD.
17197 # Luckily, gcc supports the same syntax we need for Sun Studio.
17198 # Supported since Solaris 2.6 (maybe 2.5.1?)
17201 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17203 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17206 link_all_deplibs_GCJ=yes
17210 if test "x$host_vendor" = xsequent; then
17211 # Use $CC to link under sequent, because it throws in some extra .o
17212 # files that make .init and .fini sections work.
17213 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17215 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218 hardcode_direct_GCJ=yes
17219 hardcode_minus_L_GCJ=yes
17220 hardcode_shlibpath_var_GCJ=no
17224 case $host_vendor in
17226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17227 hardcode_direct_GCJ=yes # is this really true???
17230 ## LD is ld it makes a PLAMLIB
17231 ## CC just makes a GrossModule.
17232 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17233 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17234 hardcode_direct_GCJ=no
17237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17238 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17241 runpath_var='LD_RUN_PATH'
17242 hardcode_shlibpath_var_GCJ=no
17246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247 hardcode_shlibpath_var_GCJ=no
17248 export_dynamic_flag_spec_GCJ='-Bexport'
17252 if test -d /usr/nec; then
17253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254 hardcode_shlibpath_var_GCJ=no
17255 runpath_var=LD_RUN_PATH
17256 hardcode_runpath_var=yes
17261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17262 no_undefined_flag_GCJ='${wl}-z,text'
17263 archive_cmds_need_lc_GCJ=no
17264 hardcode_shlibpath_var_GCJ=no
17265 runpath_var='LD_RUN_PATH'
17267 if test "$GCC" = yes; then
17268 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17269 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17271 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17272 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 sysv5* | sco3.2v5* | sco5v6*)
17277 # Note: We can NOT use -z defs as we might desire, because we do not
17278 # link with -lc, and that would cause any symbols used from libc to
17279 # always be unresolved, which means just about no library would
17280 # ever link correctly. If we're not using GNU ld we use -z text
17281 # though, which does catch some bad symbols but isn't as heavy-handed
17283 no_undefined_flag_GCJ='${wl}-z,text'
17284 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17285 archive_cmds_need_lc_GCJ=no
17286 hardcode_shlibpath_var_GCJ=no
17287 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17288 hardcode_libdir_separator_GCJ=':'
17289 link_all_deplibs_GCJ=yes
17290 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17291 runpath_var='LD_RUN_PATH'
17293 if test "$GCC" = yes; then
17294 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17297 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305 hardcode_shlibpath_var_GCJ=no
17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17315 printf "%s\n" "$ld_shlibs_GCJ" >&6; }
17316 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17319 # Do we need to explicitly link libc?
17321 case "x$archive_cmds_need_lc_GCJ" in
17323 # Assume -lc should be added
17324 archive_cmds_need_lc_GCJ=yes
17326 if test "$enable_shared" = yes && test "$GCC" = yes; then
17327 case $archive_cmds_GCJ in
17329 # FIXME: we may have to deal with multi-command sequences.
17332 # Test whether the compiler implicitly links with -lc since on some
17333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17334 # to ld, don't add -lc before -lgcc.
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17336 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17341 (eval $ac_compile) 2>&5
17343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17344 test $ac_status = 0; } 2>conftest.err; then
17347 libobjs=conftest.$ac_objext
17349 wl=$lt_prog_compiler_wl_GCJ
17350 pic_flag=$lt_prog_compiler_pic_GCJ
17356 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17357 allow_undefined_flag_GCJ=
17358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17359 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; }
17364 archive_cmds_need_lc_GCJ=no
17366 archive_cmds_need_lc_GCJ=yes
17368 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17370 cat conftest.err 1>&5
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17374 printf "%s\n" "$archive_cmds_need_lc_GCJ" >&6; }
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17382 printf %s "checking dynamic linker characteristics... " >&6; }
17383 library_names_spec=
17384 libname_spec='lib$name'
17388 postuninstall_cmds=
17392 shlibpath_overrides_runpath=unknown
17394 dynamic_linker="$host_os ld.so"
17395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17396 if test "$GCC" = yes; then
17397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17399 # if the path contains ";" then we assume it to be the separator
17400 # otherwise default to the standard path separator (i.e. ":") - it is
17401 # assumed that no part of a normal pathname contains ";" but that should
17402 # okay in the real world where ";" in dirpaths is itself problematic.
17403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17410 need_lib_prefix=unknown
17411 hardcode_into_libs=no
17413 # when you set need_version to no, make sure it does not cause -set_version
17414 # flags to be left without arguments
17415 need_version=unknown
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17421 shlibpath_var=LIBPATH
17423 # AIX 3 has no versioning support, so we append a major version to the name.
17424 soname_spec='${libname}${release}${shared_ext}$major'
17431 hardcode_into_libs=yes
17432 if test "$host_cpu" = ia64; then
17433 # AIX 5 supports IA64
17434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17435 shlibpath_var=LD_LIBRARY_PATH
17437 # With GCC up to 2.95.x, collect2 would create an import file
17438 # for dependence libraries. The import file would start with
17439 # the line `#! .'. This would cause the generated library to
17440 # depend on `.', always an invalid library. This was fixed in
17441 # development snapshots of GCC prior to 3.0.
17443 aix4 | aix4.[01] | aix4.[01].*)
17444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17449 can_build_shared=no
17453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17454 # soname into executable. Probably we can add versioning support to
17455 # collect2, so additional links can be useful in future.
17456 if test "$aix_use_runtimelinking" = yes; then
17457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17458 # instead of lib<name>.a to let people know that these are not
17459 # typical AIX shared libraries.
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 # We preserve .a as extension for shared libraries through AIX4.2
17463 # and later when we are not doing run time linking.
17464 library_names_spec='${libname}${release}.a $libname.a'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LIBPATH
17472 library_names_spec='$libname.ixlibrary $libname.a'
17473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17474 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'
17478 library_names_spec='${libname}${shared_ext}'
17479 dynamic_linker="$host_os ld.so"
17480 shlibpath_var=LIBRARY_PATH
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17492 # the default ld.so.conf also contains /usr/contrib/lib and
17493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17494 # libtool to hard-code these into programs
17497 cygwin* | mingw* | pw32*)
17498 version_type=windows
17503 case $GCC,$host_os in
17504 yes,cygwin* | yes,mingw* | yes,pw32*)
17505 library_names_spec='$libname.dll.a'
17506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17507 postinstall_cmds='base_file=`basename \${file}`~
17508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17509 dldir=$destdir/`dirname \$dlpath`~
17510 test -d \$dldir || mkdir -p \$dldir~
17511 $install_prog $dir/$dlname \$dldir/$dlname~
17512 chmod a+x \$dldir/$dlname'
17513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17514 dlpath=$dir/\$dldll~
17516 shlibpath_overrides_runpath=yes
17520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17525 # MinGW DLLs use traditional 'lib' prefix
17526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17529 # It is most probably a Windows format PATH printed by
17530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17531 # path with ; separators, and with drive letters. We can handle the
17532 # drive letters (cygwin fileutils understands them), so leave them,
17533 # especially as we might pass files found there to a mingw objdump,
17534 # which wouldn't understand a cygwinified path. Ahh.
17535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17541 # pw32 DLLs use 'pw' prefix rather than 'lib'
17542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17551 dynamic_linker='Win32 ld.exe'
17552 # FIXME: first we should search . and the directory the executable is in
17556 darwin* | rhapsody*)
17557 dynamic_linker="$host_os dyld"
17558 version_type=darwin
17561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17562 soname_spec='${libname}${release}${major}$shared_ext'
17563 shlibpath_overrides_runpath=yes
17564 shlibpath_var=DYLD_LIBRARY_PATH
17565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17567 if test "$GCC" = yes; then
17568 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"`
17570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17593 soname_spec='${libname}${release}${shared_ext}$major'
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=no
17596 hardcode_into_libs=yes
17597 dynamic_linker='GNU ld.so'
17600 freebsd* | dragonfly*)
17601 # DragonFly does not have aout. When/if they implement a new
17602 # versioning mechanism, adjust this.
17603 if test -x /usr/bin/objformat; then
17604 objformat=`/usr/bin/objformat`
17607 freebsd[123]*) objformat=aout ;;
17608 *) objformat=elf ;;
17611 version_type=freebsd-$objformat
17612 case $version_type in
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17623 shlibpath_var=LD_LIBRARY_PATH
17626 shlibpath_overrides_runpath=yes
17628 freebsd3.[01]* | freebsdelf3.[01]*)
17629 shlibpath_overrides_runpath=yes
17630 hardcode_into_libs=yes
17632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17634 shlibpath_overrides_runpath=no
17635 hardcode_into_libs=yes
17637 freebsd*) # from 4.6 on
17638 shlibpath_overrides_runpath=yes
17639 hardcode_into_libs=yes
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 shlibpath_var=LD_LIBRARY_PATH
17651 hardcode_into_libs=yes
17654 hpux9* | hpux10* | hpux11*)
17655 # Give a soname corresponding to the major version so that dld.sl refuses to
17656 # link against other versions.
17663 hardcode_into_libs=yes
17664 dynamic_linker="$host_os dld.so"
17665 shlibpath_var=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 if test "X$HPUX_IA64_MODE" = X32; then
17670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17678 hardcode_into_libs=yes
17679 dynamic_linker="$host_os dld.sl"
17680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17689 dynamic_linker="$host_os dld.sl"
17690 shlibpath_var=SHLIB_PATH
17691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17697 postinstall_cmds='chmod 555 $lib'
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=no
17709 hardcode_into_libs=yes
17712 irix5* | irix6* | nonstopux*)
17714 nonstopux*) version_type=nonstopux ;;
17716 if test "$lt_cv_prog_gnu_ld" = yes; then
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17727 irix5* | nonstopux*)
17728 libsuff= shlibsuff=
17731 case $LD in # libtool.m4 will add one of these switches to LD
17732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17733 libsuff= shlibsuff= libmagic=32-bit;;
17734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17735 libsuff=32 shlibsuff=N32 libmagic=N32;;
17736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17738 *) libsuff= shlibsuff= libmagic=never-match;;
17742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17743 shlibpath_overrides_runpath=no
17744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17746 hardcode_into_libs=yes
17749 # No shared lib support for Linux oldld, aout, or coff.
17750 linux*oldld* | linux*aout* | linux*coff*)
17754 # This must be Linux ELF.
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 soname_spec='${libname}${release}${shared_ext}$major'
17761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 shlibpath_overrides_runpath=no
17764 # This implies no fast_install, which is unacceptable.
17765 # Some rework will be needed to allow for fast_install
17766 # before this can be enabled.
17767 hardcode_into_libs=yes
17769 # Append ld.so.conf contents to the search path
17770 if test -f /etc/ld.so.conf; then
17771 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17775 # We used to test for /lib/ld.so.1 and disable shared libraries on
17776 # powerpc, because MkLinux only supported shared libraries with the
17777 # GNU dynamic linker. Since this was broken with cross compilers,
17778 # most powerpc-linux boxes support dynamic linking these days and
17779 # people can always --disable-shared, the test was removed, and we
17780 # assume the GNU/Linux dynamic linker is in use.
17781 dynamic_linker='GNU/Linux ld.so'
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath=no
17792 hardcode_into_libs=yes
17793 dynamic_linker='GNU ld.so'
17800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17803 dynamic_linker='NetBSD (a.out) ld.so'
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 dynamic_linker='NetBSD ld.elf_so'
17809 shlibpath_var=LD_LIBRARY_PATH
17810 shlibpath_overrides_runpath=yes
17811 hardcode_into_libs=yes
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817 shlibpath_var=LD_LIBRARY_PATH
17818 shlibpath_overrides_runpath=yes
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17827 shlibpath_var=LD_LIBRARY_PATH
17828 shlibpath_overrides_runpath=yes
17833 sys_lib_dlsearch_path_spec="/usr/lib"
17835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17838 *) need_version=no ;;
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17842 shlibpath_var=LD_LIBRARY_PATH
17843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17845 openbsd2.[89] | openbsd2.[89].*)
17846 shlibpath_overrides_runpath=no
17849 shlibpath_overrides_runpath=yes
17853 shlibpath_overrides_runpath=yes
17858 libname_spec='$name'
17861 library_names_spec='$libname${shared_ext} $libname.a'
17862 dynamic_linker='OS/2 ld.exe'
17863 shlibpath_var=LIBPATH
17866 osf3* | osf4* | osf5*)
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17882 soname_spec='${libname}${release}${shared_ext}$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 shlibpath_overrides_runpath=yes
17885 hardcode_into_libs=yes
17886 # ldd complains unless libraries are executable
17887 postinstall_cmds='chmod +x $lib'
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=yes
17896 if test "$with_gnu_ld" = yes; then
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 shlibpath_var=LD_LIBRARY_PATH
17907 case $host_vendor in
17909 shlibpath_overrides_runpath=no
17911 export_dynamic_flag_spec='${wl}-Blargedynsym'
17912 runpath_var=LD_RUN_PATH
17920 shlibpath_overrides_runpath=no
17921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17927 if test -d /usr/nec ;then
17929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17930 soname_spec='$libname${shared_ext}.$major'
17931 shlibpath_var=LD_LIBRARY_PATH
17935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17936 version_type=freebsd-elf
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 hardcode_into_libs=yes
17943 if test "$with_gnu_ld" = yes; then
17944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17945 shlibpath_overrides_runpath=no
17947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17948 shlibpath_overrides_runpath=yes
17951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17955 sys_lib_dlsearch_path_spec='/usr/lib'
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 shlibpath_var=LD_LIBRARY_PATH
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17970 printf "%s\n" "$dynamic_linker" >&6; }
17971 test "$dynamic_linker" = no && can_build_shared=no
17973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17974 if test "$GCC" = yes; then
17975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17979 printf %s "checking how to hardcode library paths into programs... " >&6; }
17980 hardcode_action_GCJ=
17981 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17982 test -n "$runpath_var_GCJ" || \
17983 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17985 # We can hardcode non-existant directories.
17986 if test "$hardcode_direct_GCJ" != no &&
17987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17988 # have to relink, otherwise we might link with an installed library
17989 # when we should be linking with a yet-to-be-installed one
17990 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17991 test "$hardcode_minus_L_GCJ" != no; then
17992 # Linking always hardcodes the temporary library directory.
17993 hardcode_action_GCJ=relink
17995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17996 hardcode_action_GCJ=immediate
17999 # We cannot hardcode anything, or else we can only hardcode existing
18001 hardcode_action_GCJ=unsupported
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18004 printf "%s\n" "$hardcode_action_GCJ" >&6; }
18006 if test "$hardcode_action_GCJ" = relink; then
18007 # Fast installation is not supported
18008 enable_fast_install=no
18009 elif test "$shlibpath_overrides_runpath" = yes ||
18010 test "$enable_shared" = no; then
18011 # Fast installation is not necessary
18012 enable_fast_install=needless
18016 # The else clause should only fire when bootstrapping the
18017 # libtool distribution, otherwise you forgot to ship ltmain.sh
18018 # with your package, and you will get complaints that there are
18019 # no rules to generate ltmain.sh.
18020 if test -f "$ltmain"; then
18021 # See if we are running on zsh, and set the options which allow our commands through
18022 # without removal of \ escapes.
18023 if test -n "${ZSH_VERSION+set}" ; then
18024 setopt NO_GLOB_SUBST
18026 # Now quote all the things that may contain metacharacters while being
18027 # careful not to overquote the AC_SUBSTed values. We take copies of the
18028 # variables and quote the copies for generation of the libtool script.
18029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18033 deplibs_check_method reload_flag reload_cmds need_locks \
18034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18035 lt_cv_sys_global_symbol_to_c_name_address \
18036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18037 old_postinstall_cmds old_postuninstall_cmds \
18041 lt_prog_compiler_wl_GCJ \
18042 lt_prog_compiler_pic_GCJ \
18043 lt_prog_compiler_static_GCJ \
18044 lt_prog_compiler_no_builtin_flag_GCJ \
18045 export_dynamic_flag_spec_GCJ \
18046 thread_safe_flag_spec_GCJ \
18047 whole_archive_flag_spec_GCJ \
18048 enable_shared_with_static_runtimes_GCJ \
18049 old_archive_cmds_GCJ \
18050 old_archive_from_new_cmds_GCJ \
18051 predep_objects_GCJ \
18052 postdep_objects_GCJ \
18055 compiler_lib_search_path_GCJ \
18057 archive_expsym_cmds_GCJ \
18058 postinstall_cmds_GCJ \
18059 postuninstall_cmds_GCJ \
18060 old_archive_from_expsyms_cmds_GCJ \
18061 allow_undefined_flag_GCJ \
18062 no_undefined_flag_GCJ \
18063 export_symbols_cmds_GCJ \
18064 hardcode_libdir_flag_spec_GCJ \
18065 hardcode_libdir_flag_spec_ld_GCJ \
18066 hardcode_libdir_separator_GCJ \
18067 hardcode_automatic_GCJ \
18069 module_expsym_cmds_GCJ \
18070 lt_cv_prog_compiler_c_o_GCJ \
18071 exclude_expsyms_GCJ \
18072 include_expsyms_GCJ; do
18075 old_archive_cmds_GCJ | \
18076 old_archive_from_new_cmds_GCJ | \
18077 archive_cmds_GCJ | \
18078 archive_expsym_cmds_GCJ | \
18079 module_cmds_GCJ | \
18080 module_expsym_cmds_GCJ | \
18081 old_archive_from_expsyms_cmds_GCJ | \
18082 export_symbols_cmds_GCJ | \
18083 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18084 postinstall_cmds | postuninstall_cmds | \
18085 old_postinstall_cmds | old_postuninstall_cmds | \
18086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18087 # Double-quote double-evaled strings.
18088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18097 *'\$0 --fallback-echo"')
18098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18104 cat <<__EOF__ >> "$cfgfile"
18105 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18109 # Shell to use when invoking shell scripts.
18112 # Whether or not to build shared libraries.
18113 build_libtool_libs=$enable_shared
18115 # Whether or not to build static libraries.
18116 build_old_libs=$enable_static
18118 # Whether or not to add -lc for building shared libraries.
18119 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18121 # Whether or not to disallow shared libs when runtime libs are static
18122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18124 # Whether or not to optimize for fast installation.
18125 fast_install=$enable_fast_install
18128 host_alias=$host_alias
18132 # The build system.
18133 build_alias=$build_alias
18137 # An echo program that does not interpret backslashes.
18142 AR_FLAGS=$lt_AR_FLAGS
18147 # LTCC compiler flags.
18148 LTCFLAGS=$lt_LTCFLAGS
18150 # A language-specific compiler.
18151 CC=$lt_compiler_GCJ
18153 # Is the compiler the GNU C compiler?
18159 # The linker used to build libraries.
18162 # Whether we need hard or soft links.
18165 # A BSD-compatible nm program.
18168 # A symbol stripping program
18171 # Used to examine libraries when file_magic_cmd begins "file"
18172 MAGIC_CMD=$MAGIC_CMD
18174 # Used on cygwin: DLL creation program.
18177 # Used on cygwin: object dumper.
18180 # Used on cygwin: assembler.
18183 # The name of the directory that contains temporary libtool files.
18186 # How to create reloadable object files.
18187 reload_flag=$lt_reload_flag
18188 reload_cmds=$lt_reload_cmds
18190 # How to pass a linker flag through the compiler.
18191 wl=$lt_lt_prog_compiler_wl_GCJ
18193 # Object file suffix (normally "o").
18194 objext="$ac_objext"
18196 # Old archive suffix (normally "a").
18199 # Shared library suffix (normally ".so").
18200 shrext_cmds='$shrext_cmds'
18202 # Executable file suffix (normally "").
18205 # Additional compiler flags for building library objects.
18206 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18209 # What is the maximum length of a command?
18210 max_cmd_len=$lt_cv_sys_max_cmd_len
18212 # Does compiler simultaneously support -c and -o options?
18213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18215 # Must we lock files when doing compilation?
18216 need_locks=$lt_need_locks
18218 # Do we need the lib prefix for modules?
18219 need_lib_prefix=$need_lib_prefix
18221 # Do we need a version for libraries?
18222 need_version=$need_version
18224 # Whether dlopen is supported.
18225 dlopen_support=$enable_dlopen
18227 # Whether dlopen of programs is supported.
18228 dlopen_self=$enable_dlopen_self
18230 # Whether dlopen of statically linked programs is supported.
18231 dlopen_self_static=$enable_dlopen_self_static
18233 # Compiler flag to prevent dynamic linking.
18234 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18236 # Compiler flag to turn off builtin functions.
18237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18239 # Compiler flag to allow reflexive dlopens.
18240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18242 # Compiler flag to generate shared objects directly from archives.
18243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18245 # Compiler flag to generate thread-safe objects.
18246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18248 # Library versioning type.
18249 version_type=$version_type
18251 # Format of library name prefix.
18252 libname_spec=$lt_libname_spec
18254 # List of archive names. First name is the real one, the rest are links.
18255 # The last name is the one that the linker finds with -lNAME.
18256 library_names_spec=$lt_library_names_spec
18258 # The coded name of the library, if different from the real name.
18259 soname_spec=$lt_soname_spec
18261 # Commands used to build and install an old-style archive.
18263 old_archive_cmds=$lt_old_archive_cmds_GCJ
18264 old_postinstall_cmds=$lt_old_postinstall_cmds
18265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18267 # Create an old-style archive from a shared archive.
18268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18270 # Create a temporary old-style archive to link instead of a shared archive.
18271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18273 # Commands used to build and install a shared archive.
18274 archive_cmds=$lt_archive_cmds_GCJ
18275 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18276 postinstall_cmds=$lt_postinstall_cmds
18277 postuninstall_cmds=$lt_postuninstall_cmds
18279 # Commands used to build a loadable module (assumed same as above if empty)
18280 module_cmds=$lt_module_cmds_GCJ
18281 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18283 # Commands to strip libraries.
18284 old_striplib=$lt_old_striplib
18285 striplib=$lt_striplib
18287 # Dependencies to place before the objects being linked to create a
18289 predep_objects=$lt_predep_objects_GCJ
18291 # Dependencies to place after the objects being linked to create a
18293 postdep_objects=$lt_postdep_objects_GCJ
18295 # Dependencies to place before the objects being linked to create a
18297 predeps=$lt_predeps_GCJ
18299 # Dependencies to place after the objects being linked to create a
18301 postdeps=$lt_postdeps_GCJ
18303 # The library search path used internally by the compiler when linking
18304 # a shared library.
18305 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18307 # Method to check whether dependent libraries are shared objects.
18308 deplibs_check_method=$lt_deplibs_check_method
18310 # Command to use when deplibs_check_method == file_magic.
18311 file_magic_cmd=$lt_file_magic_cmd
18313 # Flag that allows shared libraries with undefined symbols to be built.
18314 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18316 # Flag that forces no undefined symbols.
18317 no_undefined_flag=$lt_no_undefined_flag_GCJ
18319 # Commands used to finish a libtool library installation in a directory.
18320 finish_cmds=$lt_finish_cmds
18322 # Same as above, but a single script fragment to be evaled but not shown.
18323 finish_eval=$lt_finish_eval
18325 # Take the output of nm and produce a listing of raw symbols and C names.
18326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18328 # Transform the output of nm in a proper C declaration
18329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18331 # Transform the output of nm in a C name address pair
18332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18334 # This is the shared library runtime path variable.
18335 runpath_var=$runpath_var
18337 # This is the shared library path variable.
18338 shlibpath_var=$shlibpath_var
18340 # Is shlibpath searched before the hard-coded library search path?
18341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18343 # How to hardcode a shared library path into an executable.
18344 hardcode_action=$hardcode_action_GCJ
18346 # Whether we should hardcode library paths into libraries.
18347 hardcode_into_libs=$hardcode_into_libs
18349 # Flag to hardcode \$libdir into a binary during linking.
18350 # This must work even if \$libdir does not exist.
18351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18353 # If ld is used when linking, flag to hardcode \$libdir into
18354 # a binary during linking. This must work even if \$libdir does
18356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18358 # Whether we need a single -rpath flag with a separated argument.
18359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18362 # resulting binary.
18363 hardcode_direct=$hardcode_direct_GCJ
18365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18366 # resulting binary.
18367 hardcode_minus_L=$hardcode_minus_L_GCJ
18369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18370 # the resulting binary.
18371 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18373 # Set to yes if building a shared library automatically hardcodes DIR into the library
18374 # and all subsequent libraries and executables linked against it.
18375 hardcode_automatic=$hardcode_automatic_GCJ
18377 # Variables whose values should be saved in libtool wrapper scripts and
18378 # restored at relink time.
18379 variables_saved_for_relink="$variables_saved_for_relink"
18381 # Whether libtool must link a program against all its dependency libraries.
18382 link_all_deplibs=$link_all_deplibs_GCJ
18384 # Compile-time system search path for libraries
18385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18387 # Run-time system search path for libraries
18388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18390 # Fix the shell variable \$srcfile for the compiler.
18391 fix_srcfile_path="$fix_srcfile_path_GCJ"
18393 # Set to yes if exported symbols are required.
18394 always_export_symbols=$always_export_symbols_GCJ
18396 # The commands to list exported symbols.
18397 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18399 # The commands to extract the exported symbol list from a shared archive.
18400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18402 # Symbols that should not be listed in the preloaded symbols.
18403 exclude_expsyms=$lt_exclude_expsyms_GCJ
18405 # Symbols that must always be exported.
18406 include_expsyms=$lt_include_expsyms_GCJ
18408 # ### END LIBTOOL TAG CONFIG: $tagname
18414 # If there is no Makefile yet, we rely on a make rule to execute
18415 # `config.status --recheck' to rerun these tests and create the
18416 # libtool script then.
18417 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18418 if test -f "$ltmain_in"; then
18419 test -f Makefile && make "$ltmain"
18425 ac_cpp='$CPP $CPPFLAGS'
18426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18440 # Source file extension for RC test sources.
18443 # Object file extension for compiled RC test sources.
18447 # Code to be used in simple compile tests
18448 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18450 # Code to be used in simple link tests
18451 lt_simple_link_test_code="$lt_simple_compile_test_code"
18453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18455 # If no C compiler was specified, use CC.
18458 # If no C compiler flags were specified, use CFLAGS.
18459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18461 # Allow CC to be a program name with arguments.
18465 # save warnings/boilerplate of simple test code
18466 ac_outfile=conftest.$ac_objext
18467 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18469 _lt_compiler_boilerplate=`cat conftest.err`
18472 ac_outfile=conftest.$ac_objext
18473 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18475 _lt_linker_boilerplate=`cat conftest.err`
18479 # Allow CC to be a program name with arguments.
18484 for cc_temp in $compiler""; do
18486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18494 lt_cv_prog_compiler_c_o_RC=yes
18496 # The else clause should only fire when bootstrapping the
18497 # libtool distribution, otherwise you forgot to ship ltmain.sh
18498 # with your package, and you will get complaints that there are
18499 # no rules to generate ltmain.sh.
18500 if test -f "$ltmain"; then
18501 # See if we are running on zsh, and set the options which allow our commands through
18502 # without removal of \ escapes.
18503 if test -n "${ZSH_VERSION+set}" ; then
18504 setopt NO_GLOB_SUBST
18506 # Now quote all the things that may contain metacharacters while being
18507 # careful not to overquote the AC_SUBSTed values. We take copies of the
18508 # variables and quote the copies for generation of the libtool script.
18509 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18511 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18512 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18513 deplibs_check_method reload_flag reload_cmds need_locks \
18514 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18515 lt_cv_sys_global_symbol_to_c_name_address \
18516 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18517 old_postinstall_cmds old_postuninstall_cmds \
18521 lt_prog_compiler_wl_RC \
18522 lt_prog_compiler_pic_RC \
18523 lt_prog_compiler_static_RC \
18524 lt_prog_compiler_no_builtin_flag_RC \
18525 export_dynamic_flag_spec_RC \
18526 thread_safe_flag_spec_RC \
18527 whole_archive_flag_spec_RC \
18528 enable_shared_with_static_runtimes_RC \
18529 old_archive_cmds_RC \
18530 old_archive_from_new_cmds_RC \
18531 predep_objects_RC \
18532 postdep_objects_RC \
18535 compiler_lib_search_path_RC \
18537 archive_expsym_cmds_RC \
18538 postinstall_cmds_RC \
18539 postuninstall_cmds_RC \
18540 old_archive_from_expsyms_cmds_RC \
18541 allow_undefined_flag_RC \
18542 no_undefined_flag_RC \
18543 export_symbols_cmds_RC \
18544 hardcode_libdir_flag_spec_RC \
18545 hardcode_libdir_flag_spec_ld_RC \
18546 hardcode_libdir_separator_RC \
18547 hardcode_automatic_RC \
18549 module_expsym_cmds_RC \
18550 lt_cv_prog_compiler_c_o_RC \
18551 exclude_expsyms_RC \
18552 include_expsyms_RC; do
18555 old_archive_cmds_RC | \
18556 old_archive_from_new_cmds_RC | \
18557 archive_cmds_RC | \
18558 archive_expsym_cmds_RC | \
18560 module_expsym_cmds_RC | \
18561 old_archive_from_expsyms_cmds_RC | \
18562 export_symbols_cmds_RC | \
18563 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18564 postinstall_cmds | postuninstall_cmds | \
18565 old_postinstall_cmds | old_postuninstall_cmds | \
18566 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18567 # Double-quote double-evaled strings.
18568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18577 *'\$0 --fallback-echo"')
18578 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18584 cat <<__EOF__ >> "$cfgfile"
18585 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18589 # Shell to use when invoking shell scripts.
18592 # Whether or not to build shared libraries.
18593 build_libtool_libs=$enable_shared
18595 # Whether or not to build static libraries.
18596 build_old_libs=$enable_static
18598 # Whether or not to add -lc for building shared libraries.
18599 build_libtool_need_lc=$archive_cmds_need_lc_RC
18601 # Whether or not to disallow shared libs when runtime libs are static
18602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18604 # Whether or not to optimize for fast installation.
18605 fast_install=$enable_fast_install
18608 host_alias=$host_alias
18612 # The build system.
18613 build_alias=$build_alias
18617 # An echo program that does not interpret backslashes.
18622 AR_FLAGS=$lt_AR_FLAGS
18627 # LTCC compiler flags.
18628 LTCFLAGS=$lt_LTCFLAGS
18630 # A language-specific compiler.
18633 # Is the compiler the GNU C compiler?
18639 # The linker used to build libraries.
18642 # Whether we need hard or soft links.
18645 # A BSD-compatible nm program.
18648 # A symbol stripping program
18651 # Used to examine libraries when file_magic_cmd begins "file"
18652 MAGIC_CMD=$MAGIC_CMD
18654 # Used on cygwin: DLL creation program.
18657 # Used on cygwin: object dumper.
18660 # Used on cygwin: assembler.
18663 # The name of the directory that contains temporary libtool files.
18666 # How to create reloadable object files.
18667 reload_flag=$lt_reload_flag
18668 reload_cmds=$lt_reload_cmds
18670 # How to pass a linker flag through the compiler.
18671 wl=$lt_lt_prog_compiler_wl_RC
18673 # Object file suffix (normally "o").
18674 objext="$ac_objext"
18676 # Old archive suffix (normally "a").
18679 # Shared library suffix (normally ".so").
18680 shrext_cmds='$shrext_cmds'
18682 # Executable file suffix (normally "").
18685 # Additional compiler flags for building library objects.
18686 pic_flag=$lt_lt_prog_compiler_pic_RC
18689 # What is the maximum length of a command?
18690 max_cmd_len=$lt_cv_sys_max_cmd_len
18692 # Does compiler simultaneously support -c and -o options?
18693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18695 # Must we lock files when doing compilation?
18696 need_locks=$lt_need_locks
18698 # Do we need the lib prefix for modules?
18699 need_lib_prefix=$need_lib_prefix
18701 # Do we need a version for libraries?
18702 need_version=$need_version
18704 # Whether dlopen is supported.
18705 dlopen_support=$enable_dlopen
18707 # Whether dlopen of programs is supported.
18708 dlopen_self=$enable_dlopen_self
18710 # Whether dlopen of statically linked programs is supported.
18711 dlopen_self_static=$enable_dlopen_self_static
18713 # Compiler flag to prevent dynamic linking.
18714 link_static_flag=$lt_lt_prog_compiler_static_RC
18716 # Compiler flag to turn off builtin functions.
18717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18719 # Compiler flag to allow reflexive dlopens.
18720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18722 # Compiler flag to generate shared objects directly from archives.
18723 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18725 # Compiler flag to generate thread-safe objects.
18726 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18728 # Library versioning type.
18729 version_type=$version_type
18731 # Format of library name prefix.
18732 libname_spec=$lt_libname_spec
18734 # List of archive names. First name is the real one, the rest are links.
18735 # The last name is the one that the linker finds with -lNAME.
18736 library_names_spec=$lt_library_names_spec
18738 # The coded name of the library, if different from the real name.
18739 soname_spec=$lt_soname_spec
18741 # Commands used to build and install an old-style archive.
18743 old_archive_cmds=$lt_old_archive_cmds_RC
18744 old_postinstall_cmds=$lt_old_postinstall_cmds
18745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18747 # Create an old-style archive from a shared archive.
18748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18750 # Create a temporary old-style archive to link instead of a shared archive.
18751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18753 # Commands used to build and install a shared archive.
18754 archive_cmds=$lt_archive_cmds_RC
18755 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18756 postinstall_cmds=$lt_postinstall_cmds
18757 postuninstall_cmds=$lt_postuninstall_cmds
18759 # Commands used to build a loadable module (assumed same as above if empty)
18760 module_cmds=$lt_module_cmds_RC
18761 module_expsym_cmds=$lt_module_expsym_cmds_RC
18763 # Commands to strip libraries.
18764 old_striplib=$lt_old_striplib
18765 striplib=$lt_striplib
18767 # Dependencies to place before the objects being linked to create a
18769 predep_objects=$lt_predep_objects_RC
18771 # Dependencies to place after the objects being linked to create a
18773 postdep_objects=$lt_postdep_objects_RC
18775 # Dependencies to place before the objects being linked to create a
18777 predeps=$lt_predeps_RC
18779 # Dependencies to place after the objects being linked to create a
18781 postdeps=$lt_postdeps_RC
18783 # The library search path used internally by the compiler when linking
18784 # a shared library.
18785 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18787 # Method to check whether dependent libraries are shared objects.
18788 deplibs_check_method=$lt_deplibs_check_method
18790 # Command to use when deplibs_check_method == file_magic.
18791 file_magic_cmd=$lt_file_magic_cmd
18793 # Flag that allows shared libraries with undefined symbols to be built.
18794 allow_undefined_flag=$lt_allow_undefined_flag_RC
18796 # Flag that forces no undefined symbols.
18797 no_undefined_flag=$lt_no_undefined_flag_RC
18799 # Commands used to finish a libtool library installation in a directory.
18800 finish_cmds=$lt_finish_cmds
18802 # Same as above, but a single script fragment to be evaled but not shown.
18803 finish_eval=$lt_finish_eval
18805 # Take the output of nm and produce a listing of raw symbols and C names.
18806 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18808 # Transform the output of nm in a proper C declaration
18809 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18811 # Transform the output of nm in a C name address pair
18812 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18814 # This is the shared library runtime path variable.
18815 runpath_var=$runpath_var
18817 # This is the shared library path variable.
18818 shlibpath_var=$shlibpath_var
18820 # Is shlibpath searched before the hard-coded library search path?
18821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18823 # How to hardcode a shared library path into an executable.
18824 hardcode_action=$hardcode_action_RC
18826 # Whether we should hardcode library paths into libraries.
18827 hardcode_into_libs=$hardcode_into_libs
18829 # Flag to hardcode \$libdir into a binary during linking.
18830 # This must work even if \$libdir does not exist.
18831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18833 # If ld is used when linking, flag to hardcode \$libdir into
18834 # a binary during linking. This must work even if \$libdir does
18836 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18838 # Whether we need a single -rpath flag with a separated argument.
18839 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18841 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18842 # resulting binary.
18843 hardcode_direct=$hardcode_direct_RC
18845 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18846 # resulting binary.
18847 hardcode_minus_L=$hardcode_minus_L_RC
18849 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18850 # the resulting binary.
18851 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18853 # Set to yes if building a shared library automatically hardcodes DIR into the library
18854 # and all subsequent libraries and executables linked against it.
18855 hardcode_automatic=$hardcode_automatic_RC
18857 # Variables whose values should be saved in libtool wrapper scripts and
18858 # restored at relink time.
18859 variables_saved_for_relink="$variables_saved_for_relink"
18861 # Whether libtool must link a program against all its dependency libraries.
18862 link_all_deplibs=$link_all_deplibs_RC
18864 # Compile-time system search path for libraries
18865 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18867 # Run-time system search path for libraries
18868 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18870 # Fix the shell variable \$srcfile for the compiler.
18871 fix_srcfile_path="$fix_srcfile_path_RC"
18873 # Set to yes if exported symbols are required.
18874 always_export_symbols=$always_export_symbols_RC
18876 # The commands to list exported symbols.
18877 export_symbols_cmds=$lt_export_symbols_cmds_RC
18879 # The commands to extract the exported symbol list from a shared archive.
18880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18882 # Symbols that should not be listed in the preloaded symbols.
18883 exclude_expsyms=$lt_exclude_expsyms_RC
18885 # Symbols that must always be exported.
18886 include_expsyms=$lt_include_expsyms_RC
18888 # ### END LIBTOOL TAG CONFIG: $tagname
18894 # If there is no Makefile yet, we rely on a make rule to execute
18895 # `config.status --recheck' to rerun these tests and create the
18896 # libtool script then.
18897 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18898 if test -f "$ltmain_in"; then
18899 test -f Makefile && make "$ltmain"
18905 ac_cpp='$CPP $CPPFLAGS'
18906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18915 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18919 # Append the new tag name to the list of available tags.
18920 if test -n "$tagname" ; then
18921 available_tags="$available_tags $tagname"
18927 # Now substitute the updated list of available tags.
18928 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18929 mv "${ofile}T" "$ofile"
18933 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18939 # This can be used to rebuild libtool when needed
18940 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18942 # Always use our own libtool.
18943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18945 # Prevent multiple expansion
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976 if test -n "$ac_tool_prefix"; then
18977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18980 printf %s "checking for $ac_word... " >&6; }
18981 if test ${ac_cv_prog_CC+y}
18983 printf %s "(cached) " >&6
18985 if test -n "$CC"; then
18986 ac_cv_prog_CC="$CC" # Let the user override the test.
18988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18989 for as_dir in $PATH
18992 case $as_dir in #(((
18995 *) as_dir=$as_dir/ ;;
18997 for ac_exec_ext in '' $ac_executable_extensions; do
18998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19010 if test -n "$CC"; then
19011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19012 printf "%s\n" "$CC" >&6; }
19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 printf "%s\n" "no" >&6; }
19020 if test -z "$ac_cv_prog_CC"; then
19022 # Extract the first word of "gcc", so it can be a program name with args.
19023 set dummy gcc; ac_word=$2
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19025 printf %s "checking for $ac_word... " >&6; }
19026 if test ${ac_cv_prog_ac_ct_CC+y}
19028 printf %s "(cached) " >&6
19030 if test -n "$ac_ct_CC"; then
19031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19037 case $as_dir in #(((
19040 *) as_dir=$as_dir/ ;;
19042 for ac_exec_ext in '' $ac_executable_extensions; do
19043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19044 ac_cv_prog_ac_ct_CC="gcc"
19045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19055 if test -n "$ac_ct_CC"; then
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19057 printf "%s\n" "$ac_ct_CC" >&6; }
19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 printf "%s\n" "no" >&6; }
19063 if test "x$ac_ct_CC" = x; then
19066 case $cross_compiling:$ac_tool_warned in
19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19070 ac_tool_warned=yes ;;
19075 CC="$ac_cv_prog_CC"
19078 if test -z "$CC"; then
19079 if test -n "$ac_tool_prefix"; then
19080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19081 set dummy ${ac_tool_prefix}cc; ac_word=$2
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 printf %s "checking for $ac_word... " >&6; }
19084 if test ${ac_cv_prog_CC+y}
19086 printf %s "(cached) " >&6
19088 if test -n "$CC"; then
19089 ac_cv_prog_CC="$CC" # Let the user override the test.
19091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19095 case $as_dir in #(((
19098 *) as_dir=$as_dir/ ;;
19100 for ac_exec_ext in '' $ac_executable_extensions; do
19101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19102 ac_cv_prog_CC="${ac_tool_prefix}cc"
19103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19113 if test -n "$CC"; then
19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19115 printf "%s\n" "$CC" >&6; }
19117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118 printf "%s\n" "no" >&6; }
19124 if test -z "$CC"; then
19125 # Extract the first word of "cc", so it can be a program name with args.
19126 set dummy cc; ac_word=$2
19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128 printf %s "checking for $ac_word... " >&6; }
19129 if test ${ac_cv_prog_CC+y}
19131 printf %s "(cached) " >&6
19133 if test -n "$CC"; then
19134 ac_cv_prog_CC="$CC" # Let the user override the test.
19136 ac_prog_rejected=no
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19141 case $as_dir in #(((
19144 *) as_dir=$as_dir/ ;;
19146 for ac_exec_ext in '' $ac_executable_extensions; do
19147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19148 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19149 ac_prog_rejected=yes
19153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19160 if test $ac_prog_rejected = yes; then
19161 # We found a bogon in the path, so make sure we never use it.
19162 set dummy $ac_cv_prog_CC
19164 if test $# != 0; then
19165 # We chose a different compiler from the bogus one.
19166 # However, it has the same basename, so the bogon will be chosen
19167 # first if we set CC to just the basename; use the full file name.
19169 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
19175 if test -n "$CC"; then
19176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19177 printf "%s\n" "$CC" >&6; }
19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 printf "%s\n" "no" >&6; }
19185 if test -z "$CC"; then
19186 if test -n "$ac_tool_prefix"; then
19187 for ac_prog in cl.exe
19189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19192 printf %s "checking for $ac_word... " >&6; }
19193 if test ${ac_cv_prog_CC+y}
19195 printf %s "(cached) " >&6
19197 if test -n "$CC"; then
19198 ac_cv_prog_CC="$CC" # Let the user override the test.
19200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19201 for as_dir in $PATH
19204 case $as_dir in #(((
19207 *) as_dir=$as_dir/ ;;
19209 for ac_exec_ext in '' $ac_executable_extensions; do
19210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19222 if test -n "$CC"; then
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19224 printf "%s\n" "$CC" >&6; }
19226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 printf "%s\n" "no" >&6; }
19231 test -n "$CC" && break
19234 if test -z "$CC"; then
19236 for ac_prog in cl.exe
19238 # Extract the first word of "$ac_prog", so it can be a program name with args.
19239 set dummy $ac_prog; ac_word=$2
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19241 printf %s "checking for $ac_word... " >&6; }
19242 if test ${ac_cv_prog_ac_ct_CC+y}
19244 printf %s "(cached) " >&6
19246 if test -n "$ac_ct_CC"; then
19247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19253 case $as_dir in #(((
19256 *) as_dir=$as_dir/ ;;
19258 for ac_exec_ext in '' $ac_executable_extensions; do
19259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19260 ac_cv_prog_ac_ct_CC="$ac_prog"
19261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19271 if test -n "$ac_ct_CC"; then
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19273 printf "%s\n" "$ac_ct_CC" >&6; }
19275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 printf "%s\n" "no" >&6; }
19280 test -n "$ac_ct_CC" && break
19283 if test "x$ac_ct_CC" = x; then
19286 case $cross_compiling:$ac_tool_warned in
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19290 ac_tool_warned=yes ;;
19297 if test -z "$CC"; then
19298 if test -n "$ac_tool_prefix"; then
19299 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
19300 set dummy ${ac_tool_prefix}clang; ac_word=$2
19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302 printf %s "checking for $ac_word... " >&6; }
19303 if test ${ac_cv_prog_CC+y}
19305 printf %s "(cached) " >&6
19307 if test -n "$CC"; then
19308 ac_cv_prog_CC="$CC" # Let the user override the test.
19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19311 for as_dir in $PATH
19314 case $as_dir in #(((
19317 *) as_dir=$as_dir/ ;;
19319 for ac_exec_ext in '' $ac_executable_extensions; do
19320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19321 ac_cv_prog_CC="${ac_tool_prefix}clang"
19322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19332 if test -n "$CC"; then
19333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19334 printf "%s\n" "$CC" >&6; }
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 printf "%s\n" "no" >&6; }
19342 if test -z "$ac_cv_prog_CC"; then
19344 # Extract the first word of "clang", so it can be a program name with args.
19345 set dummy clang; ac_word=$2
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19347 printf %s "checking for $ac_word... " >&6; }
19348 if test ${ac_cv_prog_ac_ct_CC+y}
19350 printf %s "(cached) " >&6
19352 if test -n "$ac_ct_CC"; then
19353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19359 case $as_dir in #(((
19362 *) as_dir=$as_dir/ ;;
19364 for ac_exec_ext in '' $ac_executable_extensions; do
19365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19366 ac_cv_prog_ac_ct_CC="clang"
19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19377 if test -n "$ac_ct_CC"; then
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19379 printf "%s\n" "$ac_ct_CC" >&6; }
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 printf "%s\n" "no" >&6; }
19385 if test "x$ac_ct_CC" = x; then
19388 case $cross_compiling:$ac_tool_warned in
19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19392 ac_tool_warned=yes ;;
19397 CC="$ac_cv_prog_CC"
19403 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19404 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19405 as_fn_error $? "no acceptable C compiler found in \$PATH
19406 See \`config.log' for more details" "$LINENO" 5; }
19408 # Provide some information about the compiler.
19409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19412 for ac_option in --version -v -V -qversion -version; do
19413 { { ac_try="$ac_compiler $ac_option >&5"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19419 printf "%s\n" "$ac_try_echo"; } >&5
19420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19422 if test -s conftest.err; then
19424 ... rest of stderr output deleted ...
19425 10q' conftest.err >conftest.er1
19426 cat conftest.er1 >&5
19428 rm -f conftest.er1 conftest.err
19429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }
19433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
19434 printf %s "checking whether the compiler supports GNU C... " >&6; }
19435 if test ${ac_cv_c_compiler_gnu+y}
19437 printf %s "(cached) " >&6
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19453 if ac_fn_c_try_compile "$LINENO"
19455 ac_compiler_gnu=yes
19459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19464 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
19465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467 if test $ac_compiler_gnu = yes; then
19472 ac_test_CFLAGS=${CFLAGS+y}
19473 ac_save_CFLAGS=$CFLAGS
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19475 printf %s "checking whether $CC accepts -g... " >&6; }
19476 if test ${ac_cv_prog_cc_g+y}
19478 printf %s "(cached) " >&6
19480 ac_save_c_werror_flag=$ac_c_werror_flag
19481 ac_c_werror_flag=yes
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19495 if ac_fn_c_try_compile "$LINENO"
19497 ac_cv_prog_cc_g=yes
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19511 if ac_fn_c_try_compile "$LINENO"
19515 ac_c_werror_flag=$ac_save_c_werror_flag
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19528 if ac_fn_c_try_compile "$LINENO"
19530 ac_cv_prog_cc_g=yes
19532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19537 ac_c_werror_flag=$ac_save_c_werror_flag
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19540 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
19541 if test $ac_test_CFLAGS; then
19542 CFLAGS=$ac_save_CFLAGS
19543 elif test $ac_cv_prog_cc_g = yes; then
19544 if test "$GCC" = yes; then
19550 if test "$GCC" = yes; then
19557 if test x$ac_prog_cc_stdc = xno
19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
19560 printf %s "checking for $CC option to enable C11 features... " >&6; }
19561 if test ${ac_cv_prog_cc_c11+y}
19563 printf %s "(cached) " >&6
19565 ac_cv_prog_cc_c11=no
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19569 $ac_c_conftest_c11_program
19571 for ac_arg in '' -std=gnu11
19573 CC="$ac_save_CC $ac_arg"
19574 if ac_fn_c_try_compile "$LINENO"
19576 ac_cv_prog_cc_c11=$ac_arg
19578 rm -f core conftest.err conftest.$ac_objext conftest.beam
19579 test "x$ac_cv_prog_cc_c11" != "xno" && break
19581 rm -f conftest.$ac_ext
19585 if test "x$ac_cv_prog_cc_c11" = xno
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19588 printf "%s\n" "unsupported" >&6; }
19590 if test "x$ac_cv_prog_cc_c11" = x
19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19593 printf "%s\n" "none needed" >&6; }
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
19596 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
19597 CC="$CC $ac_cv_prog_cc_c11"
19599 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
19600 ac_prog_cc_stdc=c11
19603 if test x$ac_prog_cc_stdc = xno
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
19606 printf %s "checking for $CC option to enable C99 features... " >&6; }
19607 if test ${ac_cv_prog_cc_c99+y}
19609 printf %s "(cached) " >&6
19611 ac_cv_prog_cc_c99=no
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19615 $ac_c_conftest_c99_program
19617 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
19619 CC="$ac_save_CC $ac_arg"
19620 if ac_fn_c_try_compile "$LINENO"
19622 ac_cv_prog_cc_c99=$ac_arg
19624 rm -f core conftest.err conftest.$ac_objext conftest.beam
19625 test "x$ac_cv_prog_cc_c99" != "xno" && break
19627 rm -f conftest.$ac_ext
19631 if test "x$ac_cv_prog_cc_c99" = xno
19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19634 printf "%s\n" "unsupported" >&6; }
19636 if test "x$ac_cv_prog_cc_c99" = x
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19639 printf "%s\n" "none needed" >&6; }
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19642 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
19643 CC="$CC $ac_cv_prog_cc_c99"
19645 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19646 ac_prog_cc_stdc=c99
19649 if test x$ac_prog_cc_stdc = xno
19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
19652 printf %s "checking for $CC option to enable C89 features... " >&6; }
19653 if test ${ac_cv_prog_cc_c89+y}
19655 printf %s "(cached) " >&6
19657 ac_cv_prog_cc_c89=no
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 $ac_c_conftest_c89_program
19663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19665 CC="$ac_save_CC $ac_arg"
19666 if ac_fn_c_try_compile "$LINENO"
19668 ac_cv_prog_cc_c89=$ac_arg
19670 rm -f core conftest.err conftest.$ac_objext conftest.beam
19671 test "x$ac_cv_prog_cc_c89" != "xno" && break
19673 rm -f conftest.$ac_ext
19677 if test "x$ac_cv_prog_cc_c89" = xno
19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19680 printf "%s\n" "unsupported" >&6; }
19682 if test "x$ac_cv_prog_cc_c89" = x
19684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19685 printf "%s\n" "none needed" >&6; }
19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19688 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
19689 CC="$CC $ac_cv_prog_cc_c89"
19691 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19692 ac_prog_cc_stdc=c89
19697 ac_cpp='$CPP $CPPFLAGS'
19698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19703 # Find a good install program. We prefer a C program (faster),
19704 # so one script is as good as another. But avoid the broken or
19705 # incompatible versions:
19706 # SysV /etc/install, /usr/sbin/install
19707 # SunOS /usr/etc/install
19708 # IRIX /sbin/install
19710 # AmigaOS /C/install, which installs bootblocks on floppy discs
19711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19714 # OS/2's system install, which has a completely different semantic
19715 # ./install, which can be erroneously created by make from ./install.sh.
19716 # Reject install programs that cannot install multiple files.
19717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19718 printf %s "checking for a BSD-compatible install... " >&6; }
19719 if test -z "$INSTALL"; then
19720 if test ${ac_cv_path_install+y}
19722 printf %s "(cached) " >&6
19724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19725 for as_dir in $PATH
19728 case $as_dir in #(((
19731 *) as_dir=$as_dir/ ;;
19733 # Account for fact that we put trailing slashes in our PATH walk.
19734 case $as_dir in #((
19736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19740 # OSF1 and SCO ODT 3.0 have their own names for install.
19741 # Don't use installbsd from OSF since it installs stuff as root
19743 for ac_prog in ginstall scoinst install; do
19744 for ac_exec_ext in '' $ac_executable_extensions; do
19745 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
19746 if test $ac_prog = install &&
19747 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19748 # AIX install. It has an incompatible calling convention.
19750 elif test $ac_prog = install &&
19751 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19752 # program-specific install script used by HP pwplus--don't use.
19755 rm -rf conftest.one conftest.two conftest.dir
19756 echo one > conftest.one
19757 echo two > conftest.two
19759 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
19760 test -s conftest.one && test -s conftest.two &&
19761 test -s conftest.dir/conftest.one &&
19762 test -s conftest.dir/conftest.two
19764 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
19777 rm -rf conftest.one conftest.two conftest.dir
19780 if test ${ac_cv_path_install+y}; then
19781 INSTALL=$ac_cv_path_install
19783 # As a last resort, use the slow shell script. Don't cache a
19784 # value for INSTALL within a source directory, because that will
19785 # break other packages using the cache if that directory is
19786 # removed, or if the value is a relative name.
19787 INSTALL=$ac_install_sh
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19791 printf "%s\n" "$INSTALL" >&6; }
19793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19794 # It thinks the first close brace ends the variable substitution.
19795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19802 if test "$GCC" = yes ; then
19803 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
19804 CFLAGS="$OLDCFLAGS -fexceptions"
19805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
19806 printf %s "checking whether $CC accepts -fexceptions... " >&6; }
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19818 if ac_fn_c_try_link "$LINENO"
19820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821 printf "%s\n" "yes" >&6; }
19823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 printf "%s\n" "no" >&6; }; CFLAGS="$OLDCFLAGS"
19826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19827 conftest$ac_exeext conftest.$ac_ext
19828 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
19831 # Autoupdate added the next two lines to ensure that your configure
19832 # script's behavior did not change. They are probably safe to remove.
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19835 printf %s "checking for egrep... " >&6; }
19836 if test ${ac_cv_path_EGREP+y}
19838 printf %s "(cached) " >&6
19840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19841 then ac_cv_path_EGREP="$GREP -E"
19843 if test -z "$EGREP"; then
19844 ac_path_EGREP_found=false
19845 # Loop through the user's path and test for each of PROGNAME-LIST
19846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19850 case $as_dir in #(((
19853 *) as_dir=$as_dir/ ;;
19855 for ac_prog in egrep
19857 for ac_exec_ext in '' $ac_executable_extensions; do
19858 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
19859 as_fn_executable_p "$ac_path_EGREP" || continue
19860 # Check for GNU ac_path_EGREP and select it if it is found.
19861 # Check for GNU $ac_path_EGREP
19862 case `"$ac_path_EGREP" --version 2>&1` in
19864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19867 printf %s 0123456789 >"conftest.in"
19870 cat "conftest.in" "conftest.in" >"conftest.tmp"
19871 mv "conftest.tmp" "conftest.in"
19872 cp "conftest.in" "conftest.nl"
19873 printf "%s\n" 'EGREP' >> "conftest.nl"
19874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19876 as_fn_arith $ac_count + 1 && ac_count=$as_val
19877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19878 # Best one so far, save it but keep looking for a better one
19879 ac_cv_path_EGREP="$ac_path_EGREP"
19880 ac_path_EGREP_max=$ac_count
19882 # 10*(2^10) chars as input seems more than enough
19883 test $ac_count -gt 10 && break
19885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19888 $ac_path_EGREP_found && break 3
19893 if test -z "$ac_cv_path_EGREP"; then
19894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19897 ac_cv_path_EGREP=$EGREP
19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19903 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
19904 EGREP="$ac_cv_path_EGREP"
19909 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
19910 if test "x$ac_cv_header_sys_mman_h" = xyes
19912 CFLAGS="$CFLAGS -D HAVE_MMAP"
19916 # Check whether --with-with_zlib was given.
19917 if test ${with_with_zlib+y}
19919 withval=$with_with_zlib;
19922 if test "x$with_zlib" != xno ; then
19923 for ac_header in zlib.h
19925 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19926 if test "x$ac_cv_header_zlib_h" = xyes
19928 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
19930 printf %s "checking for zlibVersion in -lz... " >&6; }
19931 if test ${ac_cv_lib_z_zlibVersion+y}
19933 printf %s "(cached) " >&6
19935 ac_check_lib_save_LIBS=$LIBS
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19940 /* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19943 char zlibVersion ();
19947 return zlibVersion ();
19952 if ac_fn_c_try_link "$LINENO"
19954 ac_cv_lib_z_zlibVersion=yes
19956 ac_cv_lib_z_zlibVersion=no
19958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19959 conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
19963 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
19964 if test "x$ac_cv_lib_z_zlibVersion" = xyes
19974 if test "x$ok_zlib" = xyes ; then
19977 printf "%s\n" "#define HAVE_ZLIB /**/" >>confdefs.h
19981 ac_fn_c_check_header_compile "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
19982 if test "x$ac_cv_header_CUnit_CUnit_h" = xyes
19985 printf "%s\n" "#define ENABLE_TESTS /**/" >>confdefs.h
19990 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_sys_sendfile_h" = xyes
19994 printf "%s\n" "#define LINUX_SENDFILE /**/" >>confdefs.h
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether your system knows about splice()" >&5
20001 printf %s "checking whether your system knows about splice()... " >&6; }
20002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003 /* end confdefs.h. */
20005 #define _GNU_SOURCE
20006 #include <unistd.h>
20013 ssize_t sent, pipesize;
20014 int fd, SplicePipe[2];
20015 pipesize = splice(fd, NULL,
20016 SplicePipe[1], NULL,
20018 SPLICE_F_MORE | SPLICE_F_MOVE|SPLICE_F_NONBLOCK);
20024 if ac_fn_c_try_compile "$LINENO"
20029 printf "%s\n" "#define LINUX_SPLICE /**/" >>confdefs.h
20031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20032 printf "%s\n" "yes" >&6; }
20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 printf "%s\n" "no" >&6; }
20042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether your system likes memcpy + HKEY" >&5
20045 printf %s "checking whether your system likes memcpy + HKEY... " >&6; }
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20049 #define _GNU_SOURCE
20052 #include <string.h>
20053 #include <unistd.h>
20054 #include <string.h>
20056 #include <sys/select.h>
20058 #include <sys/types.h>
20060 #include "lib/libcitadel.h"
20067 memcpy(foo, HKEY("foo"));
20074 if ac_fn_c_try_compile "$LINENO"
20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20079 printf "%s\n" "yes" >&6; }
20084 printf "%s\n" "#define UNDEF_MEMCPY /**/" >>confdefs.h
20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20087 printf "%s\n" "no" >&6; }
20091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20094 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
20095 if test "x$ac_cv_header_iconv_h" = xyes
20097 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
20103 # Check whether --enable-iconv was given.
20104 if test ${enable_iconv+y}
20106 enableval=$enable_iconv; ok_iconv=no
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking to see if your system supports iconv" >&5
20113 printf %s "checking Checking to see if your system supports iconv... " >&6; }
20114 if test "$cross_compiling" = yes
20116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20118 as_fn_error $? "cannot run test program while cross compiling
20119 See \`config.log' for more details" "$LINENO" 5; }
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20126 iconv_t ic = (iconv_t)(-1) ;
20127 ic = iconv_open("UTF-8", "us-ascii");
20133 if ac_fn_c_try_run "$LINENO"
20137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138 printf "%s\n" "yes" >&6; }
20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20144 printf "%s\n" "no" >&6; }
20148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20149 conftest.$ac_objext conftest.beam conftest.$ac_ext
20153 if test "$ok_iconv" = no; then
20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for an external libiconv" >&5
20155 printf %s "checking Checking for an external libiconv... " >&6; }
20156 OLD_LDFLAGS="$LDFLAGS"
20157 LDFLAGS="$LDFLAGS -liconv"
20158 if test "$cross_compiling" = yes
20160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20162 as_fn_error $? "cannot run test program while cross compiling
20163 See \`config.log' for more details" "$LINENO" 5; }
20165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h. */
20170 iconv_t ic = (iconv_t)(-1) ;
20171 ic = iconv_open("UTF-8", "us-ascii");
20176 if ac_fn_c_try_run "$LINENO"
20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20181 printf "%s\n" "yes" >&6; }
20186 LDFLAGS="$OLD_LDFLAGS"
20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 printf "%s\n" "no" >&6; }
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20193 conftest.$ac_objext conftest.beam conftest.$ac_ext
20197 if test "$ok_iconv" != "no"; then
20198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libcitadel will be built with character set conversion." >&5
20199 printf "%s\n" "libcitadel will be built with character set conversion." >&6; }
20201 printf "%s\n" "#define HAVE_ICONV /**/" >>confdefs.h
20204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libcitadel will be built without character set conversion." >&5
20205 printf "%s\n" "libcitadel will be built without character set conversion." >&6; }
20209 # Check whether --with-backtrace was given.
20210 if test ${with_backtrace+y}
20212 withval=$with_backtrace; if test "x$withval" != "xno" ; then
20213 CFLAGS="$CFLAGS -rdynamic "
20214 LDFLAGS="$LDFLAGS -rdynamic "
20215 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
20216 if test "x$ac_cv_func_backtrace" = xyes
20218 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
20230 # Check whether --with-with_zlib was given.
20231 if test ${with_with_zlib+y}
20233 withval=$with_with_zlib;
20236 if test "x$with_zlib" != xno ; then
20237 for ac_header in zlib.h
20239 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20240 if test "x$ac_cv_header_zlib_h" = xyes
20242 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
20244 printf %s "checking for zlibVersion in -lz... " >&6; }
20245 if test ${ac_cv_lib_z_zlibVersion+y}
20247 printf %s "(cached) " >&6
20249 ac_check_lib_save_LIBS=$LIBS
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 /* Override any GCC internal prototype to avoid an error.
20255 Use char because int might match the return type of a GCC
20256 builtin and then its argument prototype would still apply. */
20257 char zlibVersion ();
20261 return zlibVersion ();
20266 if ac_fn_c_try_link "$LINENO"
20268 ac_cv_lib_z_zlibVersion=yes
20270 ac_cv_lib_z_zlibVersion=no
20272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20273 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
20277 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
20278 if test "x$ac_cv_lib_z_zlibVersion" = xyes
20288 if test "x$ok_zlib" = xyes ; then
20291 printf "%s\n" "#define HAVE_ZLIB /**/" >>confdefs.h
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20299 printf %s "checking for an ANSI C-conforming const... " >&6; }
20300 if test ${ac_cv_c_const+y}
20302 printf %s "(cached) " >&6
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h. */
20311 #ifndef __cplusplus
20312 /* Ultrix mips cc rejects this sort of thing. */
20313 typedef int charset[2];
20314 const charset cs = { 0, 0 };
20315 /* SunOS 4.1.1 cc rejects this. */
20316 char const *const *pcpcc;
20318 /* NEC SVR4.0.2 mips cc rejects this. */
20319 struct point {int x, y;};
20320 static struct point const zero = {0,0};
20321 /* IBM XL C 1.02.0.0 rejects this.
20322 It does not let you subtract one const X* pointer from another in
20323 an arm of an if-expression whose if-part is not a constant
20325 const char *g = "string";
20326 pcpcc = &g + (g ? g-g : 0);
20327 /* HPUX 7.0 cc rejects these. */
20329 ppc = (char**) pcpcc;
20330 pcpcc = (char const *const *) ppc;
20331 { /* SCO 3.2v4 cc rejects this sort of thing. */
20334 char const *s = 0 ? (char *) 0 : (char const *) 0;
20339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20340 int x[] = {25, 17};
20341 const int *foo = &x[0];
20344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20345 typedef const int *iptr;
20349 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
20350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20351 struct s { int j; const int *ap[3]; } bx;
20352 struct s *b = &bx; b->j = 5;
20354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20355 const int foo = 10;
20356 if (!foo) return 0;
20358 return !cs[0] && !zero.x;
20365 if ac_fn_c_try_compile "$LINENO"
20371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20374 printf "%s\n" "$ac_cv_c_const" >&6; }
20375 if test $ac_cv_c_const = no; then
20377 printf "%s\n" "#define const /**/" >>confdefs.h
20381 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20382 if test "x$ac_cv_type_size_t" = xyes
20387 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
20391 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20392 if test "x$ac_cv_func_memmove" = xyes
20394 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
20397 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
20398 if test "x$ac_cv_func_bcopy" = xyes
20400 printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
20405 ac_config_files="$ac_config_files Makefile libcitadel.pc"
20407 ac_config_headers="$ac_config_headers sysdep.h"
20409 cat >confcache <<\_ACEOF
20410 # This file is a shell script that caches the results of configure
20411 # tests run on this system so they can be shared between configure
20412 # scripts and configure runs, see configure's option --config-cache.
20413 # It is not useful on other systems. If it contains results you don't
20414 # want to keep, you may remove or edit it.
20416 # config.status only pays attention to the cache file if you give it
20417 # the --recheck option to rerun configure.
20419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20421 # following values.
20425 # The following way of writing the cache mishandles newlines in values,
20426 # but we know of no workaround that is simple, portable, and efficient.
20427 # So, we kill variables containing newlines.
20428 # Ultrix sh set writes to stderr and can't be redirected directly,
20429 # and sets the high bit in the cache file unless we assign to the vars.
20431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20432 eval ac_val=\$$ac_var
20436 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20437 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20440 _ | IFS | as_nl) ;; #(
20441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20442 *) { eval $ac_var=; unset $ac_var;} ;;
20448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20449 *${as_nl}ac_space=\ *)
20450 # `set' does not quote correctly, so add quotes: double-quote
20451 # substitution turns \\\\ into \\, and sed turns \\ into \.
20454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20457 # `set' quotes correctly as required by POSIX, so do not add quotes.
20458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20467 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20472 if test -w "$cache_file"; then
20473 if test "x$cache_file" != "x/dev/null"; then
20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20475 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20476 if test ! -f "$cache_file" || test -h "$cache_file"; then
20477 cat confcache >"$cache_file"
20479 case $cache_file in #(
20481 mv -f confcache "$cache_file"$$ &&
20482 mv -f "$cache_file"$$ "$cache_file" ;; #(
20484 mv -f confcache "$cache_file" ;;
20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20490 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20496 # Let make expand exec_prefix.
20497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20499 DEFS=-DHAVE_CONFIG_H
20504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20505 # 1. Remove the extension, and $U if already installed.
20506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20507 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20509 # will be set to the directory where LIBOBJS objects are built.
20510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20513 LIBOBJS=$ac_libobjs
20515 LTLIBOBJS=$ac_ltlibobjs
20519 : "${CONFIG_STATUS=./config.status}"
20521 ac_clean_files_save=$ac_clean_files
20522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20524 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20528 # Generated by $as_me.
20529 # Run this file to recreate the current configuration.
20530 # Compiler output produced by configure, useful for debugging
20531 # configure, is in config.log if it exists.
20534 ac_cs_recheck=false
20537 SHELL=\${CONFIG_SHELL-$SHELL}
20540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20541 ## -------------------- ##
20542 ## M4sh Initialization. ##
20543 ## -------------------- ##
20545 # Be more Bourne compatible
20546 DUALCASE=1; export DUALCASE # for MKS sh
20548 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20553 # is contrary to our usage. Disable this feature.
20554 alias -g '${1+"$@"}'='"$@"'
20555 setopt NO_GLOB_SUBST
20557 case `(set -o) 2>/dev/null` in #(
20567 # Reset variables that may have inherited troublesome values from
20570 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20571 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20572 # side effect of setting IFS to empty, thus disabling word splitting.)
20573 # Quoting is to prevent editors from complaining about space-tab.
20583 # Ensure predictable behavior from utilities with locale-dependent output.
20589 # We cannot yet rely on "unset" to work, but we need these variables
20590 # to be unset--not just set to an empty or harmless value--now, to
20591 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20592 # also avoids known problems related to "unset" and subshell syntax
20593 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20594 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20595 do eval test \${$as_var+y} \
20596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20599 # Ensure that fds 0, 1, and 2 are open.
20600 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20601 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20602 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20604 # The user is always right.
20605 if ${PATH_SEPARATOR+false} :; then
20607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20614 # Find who we are. Look in the path if we contain no directory separator.
20617 *[\\/]* ) as_myself=$0 ;;
20618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 for as_dir in $PATH
20622 case $as_dir in #(((
20625 *) as_dir=$as_dir/ ;;
20627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20633 # We did not find ourselves, most probably we were run as `sh COMMAND'
20634 # in which case we are not to be found in the path.
20635 if test "x$as_myself" = x; then
20638 if test ! -f "$as_myself"; then
20639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20645 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20646 # ----------------------------------------
20647 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20648 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20649 # script with STATUS, using 1 if that was 0.
20652 as_status=$1; test $as_status -eq 0 && as_status=1
20654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20657 printf "%s\n" "$as_me: error: $2" >&2
20658 as_fn_exit $as_status
20663 # as_fn_set_status STATUS
20664 # -----------------------
20665 # Set $? to STATUS, without forking.
20666 as_fn_set_status ()
20669 } # as_fn_set_status
20671 # as_fn_exit STATUS
20672 # -----------------
20673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20677 as_fn_set_status $1
20683 # Portably unset VAR.
20686 { eval $1=; unset $1;}
20688 as_unset=as_fn_unset
20690 # as_fn_append VAR VALUE
20691 # ----------------------
20692 # Append the text in VALUE to the end of the definition contained in VAR. Take
20693 # advantage of any shell optimizations that allow amortized linear growth over
20694 # repeated appends, instead of the typical quadratic growth present in naive
20696 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20698 eval 'as_fn_append ()
20709 # as_fn_arith ARG...
20710 # ------------------
20711 # Perform arithmetic evaluation on the ARGs, and store the result in the
20712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20713 # must be portable across $(()) and expr.
20714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20716 eval 'as_fn_arith ()
20723 as_val=`expr "$@" || test $? -eq 1`
20728 if expr a : '\(a\)' >/dev/null 2>&1 &&
20729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20736 as_basename=basename
20741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20747 as_me=`$as_basename -- "$0" ||
20748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20749 X"$0" : 'X\(//\)$' \| \
20750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20751 printf "%s\n" X/"$0" |
20752 sed '/^.*\/\([^/][^/]*\)\/*$/{
20766 # Avoid depending upon Character Ranges.
20767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20770 as_cr_digits='0123456789'
20771 as_cr_alnum=$as_cr_Letters$as_cr_digits
20774 # Determine whether it's possible to make 'echo' print without a newline.
20775 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20776 # for compatibility with existing Makefiles.
20777 ECHO_C= ECHO_N= ECHO_T=
20778 case `echo -n x` in #(((((
20780 case `echo 'xy\c'` in
20781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20790 # For backward compatibility with old third-party macros, we provide
20791 # the shell variables $as_echo and $as_echo_n. New code should use
20792 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20793 as_echo='printf %s\n'
20794 as_echo_n='printf %s'
20796 rm -f conf$$ conf$$.exe conf$$.file
20797 if test -d conf$$.dir; then
20798 rm -f conf$$.dir/conf$$.file
20801 mkdir conf$$.dir 2>/dev/null
20803 if (echo >conf$$.file) 2>/dev/null; then
20804 if ln -s conf$$.file conf$$ 2>/dev/null; then
20806 # ... but there are two gotchas:
20807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20809 # In both cases, we have to default to `cp -pR'.
20810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20812 elif ln conf$$.file conf$$ 2>/dev/null; then
20820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20821 rmdir conf$$.dir 2>/dev/null
20826 # Create "$as_dir" as a directory, including parents if necessary.
20831 -*) as_dir=./$as_dir;;
20833 test -d "$as_dir" || eval $as_mkdir_p || {
20837 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20838 *) as_qdir=$as_dir;;
20840 as_dirs="'$as_qdir' $as_dirs"
20841 as_dir=`$as_dirname -- "$as_dir" ||
20842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20843 X"$as_dir" : 'X\(//\)[^/]' \| \
20844 X"$as_dir" : 'X\(//\)$' \| \
20845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20846 printf "%s\n" X"$as_dir" |
20847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20851 /^X\(\/\/\)[^/].*/{
20864 test -d "$as_dir" && break
20866 test -z "$as_dirs" || eval "mkdir $as_dirs"
20867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20871 if mkdir -p . 2>/dev/null; then
20872 as_mkdir_p='mkdir -p "$as_dir"'
20874 test -d ./-p && rmdir ./-p
20879 # as_fn_executable_p FILE
20880 # -----------------------
20881 # Test if FILE is an executable regular file.
20882 as_fn_executable_p ()
20884 test -f "$1" && test -x "$1"
20885 } # as_fn_executable_p
20886 as_test_x='test -x'
20887 as_executable_p=as_fn_executable_p
20889 # Sed expression to map a string onto a valid CPP name.
20890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20892 # Sed expression to map a string onto a valid variable name.
20893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20897 ## ----------------------------------- ##
20898 ## Main body of $CONFIG_STATUS script. ##
20899 ## ----------------------------------- ##
20901 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904 # Save the log message, to keep $0 and so on meaningful, and to
20905 # report actual input values of CONFIG_FILES etc. instead of their
20906 # values after options handling.
20908 This file was extended by libcitadel $as_me #define LIBCITADEL_VERSION_NUMBER 996, which was
20909 generated by GNU Autoconf 2.71. Invocation command line was
20911 CONFIG_FILES = $CONFIG_FILES
20912 CONFIG_HEADERS = $CONFIG_HEADERS
20913 CONFIG_LINKS = $CONFIG_LINKS
20914 CONFIG_COMMANDS = $CONFIG_COMMANDS
20917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20922 case $ac_config_files in *"
20923 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20926 case $ac_config_headers in *"
20927 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20932 # Files that config.status was made for.
20933 config_files="$ac_config_files"
20934 config_headers="$ac_config_headers"
20938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20940 \`$as_me' instantiates files and other configuration actions
20941 from templates according to the current configuration. Unless the files
20942 and actions are specified as TAGs, all are instantiated by default.
20944 Usage: $0 [OPTION]... [TAG]...
20946 -h, --help print this help, then exit
20947 -V, --version print version number and configuration settings, then exit
20948 --config print configuration, then exit
20949 -q, --quiet, --silent
20950 do not print progress messages
20951 -d, --debug don't remove temporary files
20952 --recheck update $as_me by reconfiguring in the same conditions
20953 --file=FILE[:TEMPLATE]
20954 instantiate the configuration file FILE
20955 --header=FILE[:TEMPLATE]
20956 instantiate the configuration header FILE
20958 Configuration files:
20961 Configuration headers:
20964 Report bugs to <http://uncensored.citadel.org>."
20967 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20968 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20970 ac_cs_config='$ac_cs_config_escaped'
20972 libcitadel config.status #define LIBCITADEL_VERSION_NUMBER 996
20973 configured by $0, generated by GNU Autoconf 2.71,
20974 with options \\"\$ac_cs_config\\"
20976 Copyright (C) 2021 Free Software Foundation, Inc.
20977 This config.status script is free software; the Free Software Foundation
20978 gives unlimited permission to copy, distribute and modify it."
20983 test -n "\$AWK" || AWK=awk
20986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987 # The default lists apply if the user does not specify any file.
20993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21010 # Handling of the options.
21011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21014 printf "%s\n" "$ac_cs_version"; exit ;;
21015 --config | --confi | --conf | --con | --co | --c )
21016 printf "%s\n" "$ac_cs_config"; exit ;;
21017 --debug | --debu | --deb | --de | --d | -d )
21019 --file | --fil | --fi | --f )
21022 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21023 '') as_fn_error $? "missing file argument" ;;
21025 as_fn_append CONFIG_FILES " '$ac_optarg'"
21026 ac_need_defaults=false;;
21027 --header | --heade | --head | --hea )
21030 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21032 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21033 ac_need_defaults=false;;
21035 # Conflict between --help and --header
21036 as_fn_error $? "ambiguous option: \`$1'
21037 Try \`$0 --help' for more information.";;
21038 --help | --hel | -h )
21039 printf "%s\n" "$ac_cs_usage"; exit ;;
21040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21044 # This is an error.
21045 -*) as_fn_error $? "unrecognized option: \`$1'
21046 Try \`$0 --help' for more information." ;;
21048 *) as_fn_append ac_config_targets " $1"
21049 ac_need_defaults=false ;;
21055 ac_configure_extra_args=
21057 if $ac_cs_silent; then
21059 ac_configure_extra_args="$ac_configure_extra_args --silent"
21063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21064 if \$ac_cs_recheck; then
21065 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21067 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21068 CONFIG_SHELL='$SHELL'
21069 export CONFIG_SHELL
21074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21079 ## Running $as_me. ##
21081 printf "%s\n" "$ac_log"
21085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21090 # Handling of arguments.
21091 for ac_config_target in $ac_config_targets
21093 case $ac_config_target in
21094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21095 "libcitadel.pc") CONFIG_FILES="$CONFIG_FILES libcitadel.pc" ;;
21096 "sysdep.h") CONFIG_HEADERS="$CONFIG_HEADERS sysdep.h" ;;
21098 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21103 # If the user did not use the arguments to specify the items to instantiate,
21104 # then the envvar interface is used. Set only those that are not.
21105 # We use the long form for the default assignment because of an extremely
21106 # bizarre bug on SunOS 4.1.3.
21107 if $ac_need_defaults; then
21108 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21109 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21112 # Have a temporary directory for convenience. Make it in the build tree
21113 # simply because there is no reason against having it here, and in addition,
21114 # creating and moving files from /tmp can sometimes cause problems.
21115 # Hook for its removal unless debugging.
21116 # Note that there is a small window in which the directory will not be cleaned:
21117 # after its creation but before its name has been assigned to `$tmp'.
21121 trap 'exit_status=$?
21122 : "${ac_tmp:=$tmp}"
21123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21125 trap 'as_fn_exit 1' 1 2 13 15
21127 # Create a (secure) tmp directory for tmp files.
21130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21134 tmp=./conf$$-$RANDOM
21135 (umask 077 && mkdir "$tmp")
21136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21139 # Set up the scripts for CONFIG_FILES section.
21140 # No need to generate them if there are no CONFIG_FILES.
21141 # This happens for instance with `./config.status config.h'.
21142 if test -n "$CONFIG_FILES"; then
21145 ac_cr=`echo X | tr X '\015'`
21146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21147 # But we know of no other shell where ac_cr would be empty at this
21148 # point, so we can use a bashism as a fallback.
21149 if test "x$ac_cr" = x; then
21150 eval ac_cr=\$\'\\r\'
21152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21156 ac_cs_awk_cr=$ac_cr
21159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21164 echo "cat >conf$$subs.awk <<_ACEOF" &&
21165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21167 } >conf$$subs.sh ||
21168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21171 for ac_last_try in false false false false false :; do
21172 . ./conf$$subs.sh ||
21173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21176 if test $ac_delim_n = $ac_delim_num; then
21178 elif $ac_last_try; then
21179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21184 rm -f conf$$subs.sh
21186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21191 s/^/S["/; s/!.*/"]=/
21201 s/\(.\{148\}\)..*/\1/
21203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21215 s/\(.\{148\}\)..*/\1/
21217 s/["\\]/\\&/g; s/^/"/; s/$/"/
21221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21226 ' <conf$$subs.awk | sed '
21231 ' >>$CONFIG_STATUS || ac_write_fail=1
21232 rm -f conf$$subs.awk
21233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21236 for (key in S) S_is_set[key] = 1
21242 nfields = split(line, field, "@")
21244 len = length(field[1])
21245 for (i = 2; i < nfields; i++) {
21247 keylen = length(key)
21248 if (S_is_set[key]) {
21250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21251 len += length(value) + length(field[++i])
21262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21273 # trailing colons and then remove the whole line if VPATH becomes empty
21274 # (actually we leave an empty line to preserve line numbers).
21275 if test "x$srcdir" = x.; then
21276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21295 fi # test -n "$CONFIG_FILES"
21297 # Set up the scripts for CONFIG_HEADERS section.
21298 # No need to generate them if there are no CONFIG_HEADERS.
21299 # This happens for instance with `./config.status Makefile'.
21300 if test -n "$CONFIG_HEADERS"; then
21301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21305 # Transform confdefs.h into an awk script `defines.awk', embedded as
21306 # here-document in config.status, that substitutes the proper values into
21307 # config.h.in to produce config.h.
21309 # Create a delimiter string that does not exist in confdefs.h, to ease
21310 # handling of long lines.
21312 for ac_last_try in false false :; do
21313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21314 if test -z "$ac_tt"; then
21316 elif $ac_last_try; then
21317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21323 # For the awk script, D is an array of macro values keyed by name,
21324 # likewise P contains macro parameters if any. Preserve backslash
21325 # newline sequences.
21327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21329 s/.\{148\}/&'"$ac_delim"'/g
21332 s/^[ ]*#[ ]*define[ ][ ]*/ /
21339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21346 D["\1"]=" \3\\\\\\n"\\/p
21348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21353 s/.\{148\}/&'"$ac_delim"'/g
21358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21363 ' <confdefs.h | sed '
21364 s/'"$ac_delim"'/"\\\
21365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21368 for (key in D) D_is_set[key] = 1
21371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21373 split(line, arg, " ")
21374 if (arg[1] == "#") {
21378 defundef = substr(arg[1], 2)
21381 split(mac1, mac2, "(") #)
21383 prefix = substr(line, 1, index(line, defundef) - 1)
21384 if (D_is_set[macro]) {
21385 # Preserve the white space surrounding the "#".
21386 print prefix "define", macro P[macro] D[macro]
21389 # Replace #undef with comments. This is necessary, for example,
21390 # in the case of _POSIX_SOURCE, which is predefined and required
21391 # on some systems where configure will not decide to define it.
21392 if (defundef == "undef") {
21393 print "/*", prefix defundef, macro, "*/"
21401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21403 fi # test -n "$CONFIG_HEADERS"
21406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
21411 :[FHLC]) ac_mode=$ac_tag; continue;;
21413 case $ac_mode$ac_tag in
21415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21416 :[FH]-) ac_tag=-:-;;
21417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21434 -) ac_f="$ac_tmp/stdin";;
21435 *) # Look for the file first in the build tree, then in the source tree
21436 # (if the path is not absolute). The absolute path cannot be DOS-style,
21437 # because $ac_f cannot contain `:'.
21441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21445 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21446 as_fn_append ac_file_inputs " '$ac_f'"
21449 # Let's still pretend it is `configure' which instantiates (i.e., don't
21450 # use $as_me), people would be surprised to read:
21451 # /* config.h. Generated by config.status. */
21452 configure_input='Generated from '`
21453 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21455 if test x"$ac_file" != x-; then
21456 configure_input="$ac_file. $configure_input"
21457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21458 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21460 # Neutralize special characters interpreted by sed in replacement strings.
21461 case $configure_input in #(
21462 *\&* | *\|* | *\\* )
21463 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21465 *) ac_sed_conf_input=$configure_input;;
21469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21475 ac_dir=`$as_dirname -- "$ac_file" ||
21476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21477 X"$ac_file" : 'X\(//\)[^/]' \| \
21478 X"$ac_file" : 'X\(//\)$' \| \
21479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21480 printf "%s\n" X"$ac_file" |
21481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21485 /^X\(\/\/\)[^/].*/{
21498 as_dir="$ac_dir"; as_fn_mkdir_p
21502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21505 # A ".." for each directory in $ac_dir_suffix.
21506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21507 case $ac_top_builddir_sub in
21508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21512 ac_abs_top_builddir=$ac_pwd
21513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21514 # for backward compatibility:
21515 ac_top_builddir=$ac_top_build_prefix
21518 .) # We are building in place.
21520 ac_top_srcdir=$ac_top_builddir_sub
21521 ac_abs_top_srcdir=$ac_pwd ;;
21522 [\\/]* | ?:[\\/]* ) # Absolute name.
21523 ac_srcdir=$srcdir$ac_dir_suffix;
21524 ac_top_srcdir=$srcdir
21525 ac_abs_top_srcdir=$srcdir ;;
21526 *) # Relative name.
21527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21528 ac_top_srcdir=$ac_top_build_prefix$srcdir
21529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21547 # If the template does not know about datarootdir, expand it.
21548 # FIXME: This hack should be removed a few years after 2.60.
21549 ac_datarootdir_hack=; ac_datarootdir_seen=
21560 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21561 *datarootdir*) ac_datarootdir_seen=yes;;
21562 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21564 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21567 ac_datarootdir_hack='
21568 s&@datadir@&$datadir&g
21569 s&@docdir@&$docdir&g
21570 s&@infodir@&$infodir&g
21571 s&@localedir@&$localedir&g
21572 s&@mandir@&$mandir&g
21573 s&\\\${datarootdir}&$datarootdir&g' ;;
21577 # Neutralize VPATH when `$srcdir' = `.'.
21578 # Shell code in configure.ac might set extrasub.
21579 # FIXME: do we really want to maintain this feature?
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 ac_sed_extra="$ac_vpsub
21584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21587 s|@configure_input@|$ac_sed_conf_input|;t t
21588 s&@top_builddir@&$ac_top_builddir_sub&;t t
21589 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21590 s&@srcdir@&$ac_srcdir&;t t
21591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21592 s&@top_srcdir@&$ac_top_srcdir&;t t
21593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21594 s&@builddir@&$ac_builddir&;t t
21595 s&@abs_builddir@&$ac_abs_builddir&;t t
21596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21597 s&@INSTALL@&$ac_INSTALL&;t t
21598 $ac_datarootdir_hack
21600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21601 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21604 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21606 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21608 which seems to be undefined. Please make sure it is defined" >&5
21609 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610 which seems to be undefined. Please make sure it is defined" >&2;}
21612 rm -f "$ac_tmp/stdin"
21614 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21615 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21623 if test x"$ac_file" != x-; then
21625 printf "%s\n" "/* $configure_input */" >&1 \
21626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21627 } >"$ac_tmp/config.h" \
21628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21629 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21631 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21634 mv "$ac_tmp/config.h" "$ac_file" \
21635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21638 printf "%s\n" "/* $configure_input */" >&1 \
21639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21640 || as_fn_error $? "could not create -" "$LINENO" 5
21652 ac_clean_files=$ac_clean_files_save
21654 test $ac_write_fail = 0 ||
21655 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21658 # configure is writing to config.log, and then calls config.status.
21659 # config.status does its own redirection, appending to config.log.
21660 # Unfortunately, on DOS this fails, as config.log is still kept open
21661 # by configure, so config.status won't be able to write to it; its
21662 # output is simply discarded. So we exec the FD to /dev/null,
21663 # effectively closing config.log, so it can be properly (re)opened and
21664 # appended to by config.status. When coming back to configure, we
21665 # need to make the FD available again.
21666 if test "$no_create" != yes; then
21668 ac_config_status_args=
21669 test "$silent" = yes &&
21670 ac_config_status_args="$ac_config_status_args --quiet"
21672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21675 # would make configure fail if this is the last instruction.
21676 $ac_cs_success || as_fn_exit 1
21678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21680 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21684 abs_srcdir="`cd $srcdir && pwd`"
21685 abs_builddir="`pwd`"
21686 if test "$abs_srcdir" != "$abs_builddir"; then
21689 echo 'zlib compression: ' $ok_zlib
21690 echo 'Character set conversion support:' $ok_iconv