2 # From configure.in Id: 03855d8ef42a83e02c2c57833127e6e5c7fdb2bf .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ldapcpplib .
6 # Report bugs to <http://www.openldap.org/its/ >.
8 # Copyright 2000-2016 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
12 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
17 # This configure script is free software; the Free Software Foundation
18 # gives unlimited permission to copy, distribute and modify it.
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
33 case `(set -o) 2>/dev/null` in #(
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61 as_echo_n='/usr/ucb/echo -n'
63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68 expr "X$arg" : "X\\(.*\\)$as_nl";
69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74 as_echo_n='sh -c $as_echo_n_body as_echo'
77 as_echo='sh -c $as_echo_body as_echo'
80 # The user is always right.
81 if test "${PATH_SEPARATOR+set}" != set; then
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
91 # We need space, tab and new line, in precisely that order. Quoting is
92 # there to prevent editors from complaining about space-tab.
93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
94 # splitting by setting IFS to empty value.)
97 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org and
238 $0: http://www.openldap.org/its/ about your system,
239 $0: including any error possibly output before this
240 $0: message. Then install a modern shell, or manually run
241 $0: the script under such a shell if you do have one."
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Unset more variables known to interfere with behavior of common tools.
250 CLICOLOR_FORCE= GREP_OPTIONS=
251 unset CLICOLOR_FORCE GREP_OPTIONS
253 ## --------------------- ##
254 ## M4sh Shell Functions. ##
255 ## --------------------- ##
258 # Portably unset VAR.
261 { eval $1=; unset $1;}
265 # as_fn_set_status STATUS
266 # -----------------------
267 # Set $? to STATUS, without forking.
275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 # Create "$as_dir" as a directory, including parents if necessary.
290 -*) as_dir=./$as_dir;;
292 test -d "$as_dir" || eval $as_mkdir_p || {
296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 as_dirs="'$as_qdir' $as_dirs"
300 as_dir=`$as_dirname -- "$as_dir" ||
301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302 X"$as_dir" : 'X\(//\)[^/]' \| \
303 X"$as_dir" : 'X\(//\)$' \| \
304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305 $as_echo X"$as_dir" |
306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
323 test -d "$as_dir" && break
325 test -z "$as_dirs" || eval "mkdir $as_dirs"
326 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 # as_fn_append VAR VALUE
331 # ----------------------
332 # Append the text in VALUE to the end of the definition contained in VAR. Take
333 # advantage of any shell optimizations that allow amortized linear growth over
334 # repeated appends, instead of the typical quadratic growth present in naive
336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337 eval 'as_fn_append ()
350 # Perform arithmetic evaluation on the ARGs, and store the result in the
351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
352 # must be portable across $(()) and expr.
353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
361 as_val=`expr "$@" || test $? -eq 1`
366 # as_fn_error ERROR [LINENO LOG_FD]
367 # ---------------------------------
368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370 # script with status $?, using 1 if that was 0.
373 as_status=$?; test $as_status -eq 0 && as_status=1
375 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 $as_echo "$as_me: error: $1" >&2
379 as_fn_exit $as_status
382 if expr a : '\(a\)' >/dev/null 2>&1 &&
383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_me=`$as_basename -- "$0" ||
402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403 X"$0" : 'X\(//\)$' \| \
404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 # Avoid depending upon Character Ranges.
421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424 as_cr_digits='0123456789'
425 as_cr_alnum=$as_cr_Letters$as_cr_digits
428 as_lineno_1=$LINENO as_lineno_1a=$LINENO
429 as_lineno_2=$LINENO as_lineno_2a=$LINENO
430 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 chmod +x "$as_me.lineno" ||
449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
462 case `echo 'xy\c'` in
463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474 rm -f conf$$.dir/conf$$.file
477 mkdir conf$$.dir 2>/dev/null
479 if (echo >conf$$.file) 2>/dev/null; then
480 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 # ... but there are two gotchas:
483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485 # In both cases, we have to default to `cp -p'.
486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 elif ln conf$$.file conf$$ 2>/dev/null; then
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
499 if mkdir -p . 2>/dev/null; then
500 as_mkdir_p='mkdir -p "$as_dir"'
502 test -d ./-p && rmdir ./-p
506 if test -x / >/dev/null 2>&1; then
509 if ls -dL / >/dev/null 2>&1; then
516 if test -d "$1"; then
522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523 ???[sx]*):;;*)false;;esac;fi
527 as_executable_p=$as_test_x
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 # Check that we are running under the correct shell.
538 SHELL=${CONFIG_SHELL-/bin/sh}
542 # Remove one level of quotation (which was required for Make).
543 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548 if test "X$1" = X--no-reexec; then
549 # Discard the --no-reexec flag, and continue.
551 elif test "X$1" = X--fallback-echo; then
552 # Avoid inline document here, it may be left over
554 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
555 # Yippee, $echo works!
558 # Restart under the correct shell.
559 exec $SHELL "$0" --no-reexec ${1+"$@"}
562 if test "X$1" = X--fallback-echo; then
563 # used as fallback echo
571 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575 if test -z "$ECHO"; then
576 if test "X${echo_test_string+set}" != Xset; then
577 # find a string as large as possible, as long as the shell can cope with it
578 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
581 echo_test_string=`eval $cmd` &&
582 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
589 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
613 if test "X$echo" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
620 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
644 echo="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 echo="$CONFIG_SHELL $0 --fallback-echo"
651 # maybe with a smaller string...
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 # Oops. We lost completely, so just stick with echo.
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
679 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 tagnames=${tagnames+${tagnames},}CXX
688 tagnames=${tagnames+${tagnames},}F77
690 test -n "$DJDIR" || exec 7<&0 </dev/null
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
710 # Identity of this package.
711 PACKAGE_NAME='ldapcpplib'
712 PACKAGE_TARNAME='ldapcpplib'
714 PACKAGE_STRING='ldapcpplib '
715 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
718 ac_unique_file="src/LDAPConnection.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
722 #ifdef HAVE_SYS_TYPES_H
723 # include <sys/types.h>
725 #ifdef HAVE_SYS_STAT_H
726 # include <sys/stat.h>
732 # ifdef HAVE_STDLIB_H
737 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742 #ifdef HAVE_STRINGS_H
743 # include <strings.h>
745 #ifdef HAVE_INTTYPES_H
746 # include <inttypes.h>
755 ac_subst_vars='LTLIBOBJS
802 OPENLDAP_CPP_API_VERSION
811 INSTALL_STRIP_PROGRAM
853 program_transform_name
866 enable_option_checking
867 enable_dependency_tracking
879 ac_precious_vars='build_alias
896 # Initialize some variables set by options.
898 ac_init_version=false
899 ac_unrecognized_opts=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name=s,x,x,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1202 -site=* | --site=* | --sit=*)
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval with_$ac_useropt=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of ldapcpplib :";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1528 --with-tags[=TAGS] include additional configurations [automatic]
1529 --with-libldap=DIR Path to the libldap library /usr/local/lib
1530 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1532 Some influential environment variables:
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CC C compiler command
1541 CFLAGS C compiler flags
1543 CXXCPP C++ preprocessor
1544 F77 Fortran 77 compiler command
1545 FFLAGS Fortran 77 compiler flags
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <http://www.openldap.org/its/ >.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 ldapcpplib configure
1614 generated by GNU Autoconf 2.65
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1620 Copyright 2000-2016 The OpenLDAP Foundation. All rights reserved.
1621 Restrictions apply, see COPYRIGHT and LICENSE files.
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1630 # ac_fn_cxx_try_compile LINENO
1631 # ----------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_cxx_try_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_cxx_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 as_fn_set_status $ac_retval
1666 } # ac_fn_cxx_try_compile
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 $as_test_x conftest$ac_exeext
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } >/dev/null && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 as_fn_set_status $ac_retval
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ## -------------------------------------------- ##
1861 ## Report this to http://www.openldap.org/its/ ##
1862 ## -------------------------------------------- ##
1864 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1978 # include <limits.h>
1980 # include <assert.h>
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
2007 if ac_fn_c_try_link "$LINENO"; then :
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 } # ac_fn_c_check_func
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } >/dev/null && {
2044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_cxx_try_cpp
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_link
2105 # ac_fn_f77_try_compile LINENO
2106 # ----------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_f77_try_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext
2112 if { { ac_try="$ac_compile"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_compile") 2>conftest.err
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_f77_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest.$ac_objext; then :
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139 as_fn_set_status $ac_retval
2141 } # ac_fn_f77_try_compile
2143 # ac_fn_f77_try_link LINENO
2144 # -------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_f77_try_link ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext conftest$ac_exeext
2150 if { { ac_try="$ac_link"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>conftest.err
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_f77_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest$ac_exeext && {
2169 test "$cross_compiling" = yes ||
2170 $as_test_x conftest$ac_exeext
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181 # interfere with the next link command; also delete a directory that is
2182 # left behind by Apple's compiler. We do this before executing the actions.
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_f77_try_link
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by ldapcpplib $as_me , which was
2193 generated by GNU Autoconf 2.65. Invocation command line was
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_must_keep_next=false
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 -* ) ac_must_keep_next=true ;;
2285 as_fn_append ac_configure_args " '$ac_arg'"
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2304 ## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##
2309 # The following way of writing the cache mishandles newlines in values,
2311 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2312 eval ac_val=\$$ac_var
2316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 _ | IFS | as_nl) ;; #(
2321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2322 *) { eval $ac_var=; unset $ac_var;} ;;
2327 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2328 *${as_nl}ac_space=\ *)
2330 "s/'\''/'\''\\\\'\'''\''/g;
2331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2342 ## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##
2347 for ac_var in $ac_subst_vars
2349 eval ac_val=\$$ac_var
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -n "$ac_subst_files"; then
2359 ## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##
2364 for ac_var in $ac_subst_files
2366 eval ac_val=\$$ac_var
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 $as_echo "$ac_var='\''$ac_val'\''"
2375 if test -s confdefs.h; then
2385 test "$ac_signal" != 0 &&
2386 $as_echo "$as_me: caught signal $ac_signal"
2387 $as_echo "$as_me: exit $exit_status"
2389 rm -f core *.core core.conftest.* &&
2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 for ac_signal in 1 2 13 15; do
2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2401 $as_echo "/* confdefs.h */" > confdefs.h
2403 # Predefined preprocessor variables.
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2434 if test -n "$CONFIG_SITE"; then
2435 ac_site_file1=$CONFIG_SITE
2436 elif test "x$prefix" != xNONE; then
2437 ac_site_file1=$prefix/share/config.site
2438 ac_site_file2=$prefix/etc/config.site
2440 ac_site_file1=$ac_default_prefix/share/config.site
2441 ac_site_file2=$ac_default_prefix/etc/config.site
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 test "x$ac_site_file" = xNONE && continue
2446 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449 sed 's/^/| /' "$ac_site_file" >&5
2454 if test -r "$cache_file"; then
2455 # Some versions of bash will fail to source /dev/null (special files
2456 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2457 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462 *) . "./$cache_file";;
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2471 # Check that the precious variables saved in the cache have kept the same
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 am__api_version='1.10'
2543 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544 for ac_t in install-sh install.sh shtool; do
2545 if test -f "$ac_dir/$ac_t"; then
2547 ac_install_sh="$ac_aux_dir/$ac_t -c"
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if test "${ac_cv_path_install+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2662 echo timestamp > conftest.file
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments. Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2669 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2670 if test "$*" = "X"; then
2672 set X `ls -t $srcdir/configure conftest.file`
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2686 test "$2" = conftest.file
2692 as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2711 # Use eval to expand $SHELL
2712 if eval "$MISSING --run true"; then
2713 am_missing_run="$MISSING --run "
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2717 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723 if test "${ac_cv_path_mkdir+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 test -z "$as_dir" && as_dir=.
2731 for ac_prog in mkdir gmkdir; do
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735 'mkdir (GNU coreutils) '* | \
2736 'mkdir (coreutils) '* | \
2737 'mkdir (fileutils) '4.1*)
2738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2748 test -d ./--version && rmdir ./--version
2749 if test "${ac_cv_path_mkdir+set}" = set; then
2750 MKDIR_P="$ac_cv_path_mkdir -p"
2752 # As a last resort, use the slow shell script. Don't cache a
2753 # value for MKDIR_P within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the value is a relative name.
2756 MKDIR_P="$ac_install_sh -d"
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2764 [\\/$]* | ?:[\\/]*) ;;
2765 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2768 for ac_prog in gawk mawk nawk awk
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_AWK+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$AWK"; then
2778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_AWK="$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$AWK"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$AWK" && break
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2815 $as_echo_n "(cached) " >&6
2817 cat >conftest.make <<\_ACEOF
2820 @echo '@@@%%%=$(MAKE)=@@@%%%'
2822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2825 eval ac_cv_prog_make_${ac_make}_set=yes;;
2827 eval ac_cv_prog_make_${ac_make}_set=no;;
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 SET_MAKE="MAKE=${MAKE-make}"
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2848 rmdir .tst 2>/dev/null
2850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2852 # is not polluted with repeated "-I."
2853 am__isrc=' -I$(srcdir)'
2854 # test to see if srcdir already configured
2855 if test -f $srcdir/config.status; then
2856 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2860 # test whether we have cygpath
2861 if test -z "$CYGPATH_W"; then
2862 if (cygpath --version) >/dev/null 2>/dev/null; then
2863 CYGPATH_W='cygpath -w'
2870 # Define the identity of the package.
2871 PACKAGE='ldapcpplib'
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE "$PACKAGE"
2880 cat >>confdefs.h <<_ACEOF
2881 #define VERSION "$VERSION"
2884 # Some tools Automake needs.
2886 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2889 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2892 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2895 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2898 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'. However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_STRIP"; then
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_ac_ct_STRIP="strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_STRIP" = x; then
2987 case $cross_compiling:$ac_tool_warned in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2996 STRIP="$ac_cv_prog_STRIP"
3000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002 # We need awk for the "check" target. The system "awk" is bad on
3004 # Always define AMTAR for backward compatibility.
3006 AMTAR=${AMTAR-"${am_missing_run}tar"}
3008 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3014 ac_config_headers="$ac_config_headers src/config.h"
3017 eval `$ac_aux_dir/version.sh`
3018 if test -z "$OL_CPP_API_RELEASE"; then
3019 as_fn_error "could not determine version" "$LINENO" 5
3022 VERSION=$OL_CPP_API_RELEASE
3023 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033 if test -n "$CCC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CXX"; then
3047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CXX"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3069 $as_echo "$CXX" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3076 test -n "$CXX" && break
3079 if test -z "$CXX"; then
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$ac_ct_CXX"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_CXX="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3113 $as_echo "$ac_ct_CXX" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$ac_ct_CXX" && break
3123 if test "x$ac_ct_CXX" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3142 for ac_option in --version -v -V -qversion; do
3143 { { ac_try="$ac_compiler $ac_option >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152 if test -s conftest.err; then
3154 ... rest of stderr output deleted ...
3155 10q' conftest.err >conftest.er1
3156 cat conftest.er1 >&5
3158 rm -f conftest.er1 conftest.err
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { { ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link_default") 2>&5
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3212 for ac_file in $ac_files ''
3214 test -f "$ac_file" || continue
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3219 # We found the default executable, but exeext='' is most
3223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 # We set ac_cv_exeext here because the later test for it is not
3228 # safe: cross compilers may not add the suffix if given an `-o'
3229 # argument, so we may need to know it at that point already.
3230 # Even if this section looks crufty: it has the advantage of
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 if test -z "$ac_file"; then :
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 { as_fn_set_status 77
3251 as_fn_error "C++ compiler cannot create executables
3252 See \`config.log' for more details." "$LINENO" 5; }; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3258 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details." "$LINENO" 5; }
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run. If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323 { { ac_try="$ac_link"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 if { ac_try='./conftest$ac_cv_exeext'
3335 { { case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_try") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; }; then
3347 if test "$cross_compiling" = maybe; then
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error "cannot run C++ compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details." "$LINENO" 5; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if test "${ac_cv_objext+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compile") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." "$LINENO" 5; }
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3449 ac_test_CXXFLAGS=${CXXFLAGS+set}
3450 ac_save_CXXFLAGS=$CXXFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3457 ac_cxx_werror_flag=yes
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3472 ac_cv_prog_cxx_g=yes
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 if ac_fn_cxx_try_compile "$LINENO"; then :
3489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3502 if ac_fn_cxx_try_compile "$LINENO"; then :
3503 ac_cv_prog_cxx_g=yes
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3514 if test "$ac_test_CXXFLAGS" = set; then
3515 CXXFLAGS=$ac_save_CXXFLAGS
3516 elif test $ac_cv_prog_cxx_g = yes; then
3517 if test "$GXX" = yes; then
3523 if test "$GXX" = yes; then
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 DEPDIR="${am__leading_dot}deps"
3536 ac_config_commands="$ac_config_commands depfiles"
3539 am_make=${MAKE-make}
3540 cat > confinc << 'END'
3545 # If we don't find an include directive, just comment out the code.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3547 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3551 # First try GNU make style include.
3552 echo "include confinc" > confmf
3553 # We grep out `Entering directory' and `Leaving directory'
3554 # messages which can occur if `w' ends up in MAKEFLAGS.
3555 # In particular we don't look at `^make:' because GNU make might
3556 # be invoked under some other name (usually "gmake"), in which
3557 # case it prints its new name instead of `make'.
3558 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3563 # Now try BSD make style include.
3564 if test "$am__include" = "#"; then
3565 echo '.include "confinc"' > confmf
3566 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3567 am__include=.include
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3575 $as_echo "$_am_result" >&6; }
3576 rm -f confinc confmf
3578 # Check whether --enable-dependency-tracking was given.
3579 if test "${enable_dependency_tracking+set}" = set; then :
3580 enableval=$enable_dependency_tracking;
3583 if test "x$enable_dependency_tracking" != xno; then
3584 am_depcomp="$ac_aux_dir/depcomp"
3587 if test "x$enable_dependency_tracking" != xno; then
3597 depcc="$CXX" am_compiler_list=
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named `D' -- because `-MD' means `put the output
3611 # Copy depcomp to subdir because otherwise we won't find it if we're
3612 # using a relative directory.
3613 cp "$am_depcomp" conftest.dir
3615 # We will build objects and dependencies in a subdirectory because
3616 # it helps to detect inapplicable dependency modes. For instance
3617 # both Tru64's cc and ICC support -MD to output dependencies as a
3618 # side effect of compilation, but ICC will put the dependencies in
3619 # the current directory while Tru64 will put them in the object
3623 am_cv_CXX_dependencies_compiler_type=none
3624 if test "$am_compiler_list" = ""; then
3625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627 for depmode in $am_compiler_list; do
3628 # Setup a source with many dependencies, because some compilers
3629 # like to wrap large dependency lists on column 80 (with \), and
3630 # we should not choose a depcomp mode which is confused by this.
3632 # We need to recreate these files for each test, as the compiler may
3633 # overwrite some of them when testing with obscure command lines.
3634 # This happens at least with the AIX C compiler.
3636 for i in 1 2 3 4 5 6; do
3637 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639 # Solaris 8's {/usr,}/bin/sh.
3640 touch sub/conftst$i.h
3642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3646 # after this tag, mechanisms are not by side-effect, so they'll
3647 # only be used when explicitly requested
3648 if test "x$enable_dependency_tracking" = xyes; then
3656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3657 # mode. It turns out that the SunPro C++ compiler does not properly
3658 # handle `-M -o', and we need to detect this.
3659 if depmode=$depmode \
3660 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3663 >/dev/null 2>conftest.err &&
3664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
3669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677 am_cv_CXX_dependencies_compiler_type=$depmode
3686 am_cv_CXX_dependencies_compiler_type=none
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCXX_TRUE=
3698 am__fastdepCXX_FALSE='#'
3700 am__fastdepCXX_TRUE='#'
3701 am__fastdepCXX_FALSE=
3705 # Check whether --enable-shared was given.
3706 if test "${enable_shared+set}" = set; then :
3707 enableval=$enable_shared; p=${PACKAGE-default}
3709 yes) enable_shared=yes ;;
3710 no) enable_shared=no ;;
3713 # Look at the argument we got. We use all the common list separators.
3714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3715 for pkg in $enableval; do
3717 if test "X$pkg" = "X$p"; then
3729 # Check whether --enable-static was given.
3730 if test "${enable_static+set}" = set; then :
3731 enableval=$enable_static; p=${PACKAGE-default}
3733 yes) enable_static=yes ;;
3734 no) enable_static=no ;;
3737 # Look at the argument we got. We use all the common list separators.
3738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3739 for pkg in $enableval; do
3741 if test "X$pkg" = "X$p"; then
3753 # Check whether --enable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then :
3755 enableval=$enable_fast_install; p=${PACKAGE-default}
3757 yes) enable_fast_install=yes ;;
3758 no) enable_fast_install=no ;;
3760 enable_fast_install=no
3761 # Look at the argument we got. We use all the common list separators.
3762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3763 for pkg in $enableval; do
3765 if test "X$pkg" = "X$p"; then
3766 enable_fast_install=yes
3773 enable_fast_install=yes
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if test "${ac_cv_build+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3786 ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3799 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3802 ac_save_IFS=$IFS; IFS='-'
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if test "${ac_cv_host+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3820 if test "x$host_alias" = x; then
3821 ac_cv_host=$ac_cv_build
3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3832 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3835 ac_save_IFS=$IFS; IFS='-'
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_CC+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3892 if test -z "$ac_cv_prog_CC"; then
3894 # Extract the first word of "gcc", so it can be a program name with args.
3895 set dummy gcc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -n "$ac_ct_CC"; then
3902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_ac_ct_CC="gcc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922 if test -n "$ac_ct_CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924 $as_echo "$ac_ct_CC" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3930 if test "x$ac_ct_CC" = x; then
3933 case $cross_compiling:$ac_tool_warned in
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3945 if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}cc; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="${ac_tool_prefix}cc"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3986 if test -z "$CC"; then
3987 # Extract the first word of "cc", so it can be a program name with args.
3988 set dummy cc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006 ac_prog_rejected=yes
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 if test $ac_prog_rejected = yes; then
4018 # We found a bogon in the path, so make sure we never use it.
4019 set dummy $ac_cv_prog_CC
4021 if test $# != 0; then
4022 # We chose a different compiler from the bogus one.
4023 # However, it has the same basename, so the bogon will be chosen
4024 # first if we set CC to just the basename; use the full file name.
4026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 for ac_prog in cl.exe
4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4083 test -n "$CC" && break
4086 if test -z "$CC"; then
4088 for ac_prog in cl.exe
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$ac_ct_CC"; then
4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_ac_ct_CC="$ac_prog"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120 $as_echo "$ac_ct_CC" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4127 test -n "$ac_ct_CC" && break
4130 if test "x$ac_ct_CC" = x; then
4133 case $cross_compiling:$ac_tool_warned in
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137 ac_tool_warned=yes ;;
4146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error "no acceptable C compiler found in \$PATH
4149 See \`config.log' for more details." "$LINENO" 5; }
4151 # Provide some information about the compiler.
4152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4155 for ac_option in --version -v -V -qversion; do
4156 { { ac_try="$ac_compiler $ac_option >&5"
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 $as_echo "$ac_try_echo"; } >&5
4163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4165 if test -s conftest.err; then
4167 ... rest of stderr output deleted ...
4168 10q' conftest.err >conftest.er1
4169 cat conftest.er1 >&5
4171 rm -f conftest.er1 conftest.err
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if test "${ac_cv_prog_cc_g+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4218 ac_save_c_werror_flag=$ac_c_werror_flag
4219 ac_c_werror_flag=yes
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4233 if ac_fn_c_try_compile "$LINENO"; then :
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_c_try_compile "$LINENO"; then :
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_c_werror_flag=$ac_save_c_werror_flag
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4275 $as_echo "$ac_cv_prog_cc_g" >&6; }
4276 if test "$ac_test_CFLAGS" = set; then
4277 CFLAGS=$ac_save_CFLAGS
4278 elif test $ac_cv_prog_cc_g = yes; then
4279 if test "$GCC" = yes; then
4285 if test "$GCC" = yes; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 ac_cv_prog_cc_c89=no
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4302 #include <sys/types.h>
4303 #include <sys/stat.h>
4304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4305 struct buf { int x; };
4306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4307 static char *e (p, i)
4313 static char *f (char * (*g) (char **, int), char **p, ...)
4318 s = g (p, va_arg (v,int));
4323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4324 function prototypes and stuff, but not '\xHH' hex character constants.
4325 These don't provoke an error unfortunately, instead are silently treated
4326 as 'x'. The following induces an error, until -std is added to get
4327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4328 array size at least. It's necessary to write '\x00'==0 to get something
4329 that's true only with -std. */
4330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4333 inside strings and character constants. */
4335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4337 int test (int i, double x);
4338 struct s1 {int (*f) (int a);};
4339 struct s2 {int (*f) (double a);};
4340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4354 CC="$ac_save_CC $ac_arg"
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_prog_cc_c89=$ac_arg
4358 rm -f core conftest.err conftest.$ac_objext
4359 test "x$ac_cv_prog_cc_c89" != "xno" && break
4361 rm -f conftest.$ac_ext
4366 case "x$ac_cv_prog_cc_c89" in
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4369 $as_echo "none needed" >&6; } ;;
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 $as_echo "unsupported" >&6; } ;;
4374 CC="$CC $ac_cv_prog_cc_c89"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4378 if test "x$ac_cv_prog_cc_c89" != xno; then :
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 depcc="$CC" am_compiler_list=
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4391 $as_echo_n "checking dependency style of $depcc... " >&6; }
4392 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4396 # We make a subdir and do the tests there. Otherwise we can end up
4397 # making bogus files that we don't know about and never remove. For
4398 # instance it was reported that on HP-UX the gcc test will end up
4399 # making a dummy file named `D' -- because `-MD' means `put the output
4402 # Copy depcomp to subdir because otherwise we won't find it if we're
4403 # using a relative directory.
4404 cp "$am_depcomp" conftest.dir
4406 # We will build objects and dependencies in a subdirectory because
4407 # it helps to detect inapplicable dependency modes. For instance
4408 # both Tru64's cc and ICC support -MD to output dependencies as a
4409 # side effect of compilation, but ICC will put the dependencies in
4410 # the current directory while Tru64 will put them in the object
4414 am_cv_CC_dependencies_compiler_type=none
4415 if test "$am_compiler_list" = ""; then
4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4418 for depmode in $am_compiler_list; do
4419 # Setup a source with many dependencies, because some compilers
4420 # like to wrap large dependency lists on column 80 (with \), and
4421 # we should not choose a depcomp mode which is confused by this.
4423 # We need to recreate these files for each test, as the compiler may
4424 # overwrite some of them when testing with obscure command lines.
4425 # This happens at least with the AIX C compiler.
4427 for i in 1 2 3 4 5 6; do
4428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430 # Solaris 8's {/usr,}/bin/sh.
4431 touch sub/conftst$i.h
4433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4437 # after this tag, mechanisms are not by side-effect, so they'll
4438 # only be used when explicitly requested
4439 if test "x$enable_dependency_tracking" = xyes; then
4447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4448 # mode. It turns out that the SunPro C++ compiler does not properly
4449 # handle `-M -o', and we need to detect this.
4450 if depmode=$depmode \
4451 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4454 >/dev/null 2>conftest.err &&
4455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459 # icc doesn't choke on unknown options, it will just issue warnings
4460 # or remarks (even with -Werror). So we grep stderr for any message
4461 # that says an option was ignored or not supported.
4462 # When given -MP, icc 7.0 and 7.1 complain thusly:
4463 # icc: Command line warning: ignoring option '-M'; no argument required
4464 # The diagnosis changed in icc 8.0:
4465 # icc: Command line remark: option '-MP' not supported
4466 if (grep 'ignoring option' conftest.err ||
4467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468 am_cv_CC_dependencies_compiler_type=$depmode
4477 am_cv_CC_dependencies_compiler_type=none
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4486 test "x$enable_dependency_tracking" != xno \
4487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489 am__fastdepCC_FALSE='#'
4491 am__fastdepCC_TRUE='#'
4492 am__fastdepCC_FALSE=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if test "${lt_cv_path_SED+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4501 # Loop through the user's path and test for sed and gsed.
4502 # Then use that list of sed's as ones to test for truncation.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for lt_ac_prog in sed gsed; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4511 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4520 # along with /bin/sed that truncates output.
4521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4522 test ! -f $lt_ac_sed && continue
4523 cat /dev/null > conftest.in
4525 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4526 # Check for GNU sed and select it if it is found.
4527 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4528 lt_cv_path_SED=$lt_ac_sed
4532 cat conftest.in conftest.in >conftest.tmp
4533 mv conftest.tmp conftest.in
4534 cp conftest.in conftest.nl
4536 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4537 cmp -s conftest.out conftest.nl || break
4538 # 10000 chars as input seems more than enough
4539 test $lt_ac_count -gt 10 && break
4540 lt_ac_count=`expr $lt_ac_count + 1`
4541 if test $lt_ac_count -gt $lt_ac_max; then
4542 lt_ac_max=$lt_ac_count
4543 lt_cv_path_SED=$lt_ac_sed
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4553 $as_echo "$SED" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if test "${ac_cv_path_GREP+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -z "$GREP"; then
4561 ac_path_GREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in grep ggrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573 # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4579 $as_echo_n 0123456789 >"conftest.in"
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'GREP' >> "conftest.nl"
4586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_GREP="$ac_path_GREP"
4592 ac_path_GREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 $ac_path_GREP_found && break 3
4605 if test -z "$ac_cv_path_GREP"; then
4606 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 ac_cv_path_GREP=$GREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if test "${ac_cv_path_EGREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624 then ac_cv_path_EGREP="$GREP -E"
4626 if test -z "$EGREP"; then
4627 ac_path_EGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in egrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639 # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4645 $as_echo_n 0123456789 >"conftest.in"
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'EGREP' >> "conftest.nl"
4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_EGREP="$ac_path_EGREP"
4658 ac_path_EGREP_max=$ac_count
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 $ac_path_EGREP_found && break 3
4671 if test -z "$ac_cv_path_EGREP"; then
4672 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 ac_cv_path_EGREP=$EGREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4686 # Check whether --with-gnu-ld was given.
4687 if test "${with_gnu_ld+set}" = set; then :
4688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4694 if test "$GCC" = yes; then
4695 # Check if gcc -print-prog-name=ld gives a path.
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697 $as_echo_n "checking for ld used by $CC... " >&6; }
4700 # gcc leaves a trailing carriage return which upsets mingw
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4706 # Accept absolute paths.
4708 re_direlt='/[^/][^/]*/\.\./'
4709 # Canonicalize the pathname of ld
4710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4714 test -z "$LD" && LD="$ac_prog"
4717 # If it fails, then pretend we aren't using GCC.
4721 # If it is relative, then search for the first ld in PATH.
4725 elif test "$with_gnu_ld" = yes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727 $as_echo_n "checking for GNU ld... " >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730 $as_echo_n "checking for non-GNU ld... " >&6; }
4732 if test "${lt_cv_path_LD+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 if test -z "$LD"; then
4736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737 for ac_dir in $PATH; do
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741 lt_cv_path_LD="$ac_dir/$ac_prog"
4742 # Check to see if the program is GNU ld. I'd rather use --version,
4743 # but apparently some variants of GNU ld only accept -v.
4744 # Break only if it was the GNU/non-GNU ld that we prefer.
4745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747 test "$with_gnu_ld" != no && break
4750 test "$with_gnu_ld" != yes && break
4757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4762 if test -n "$LD"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764 $as_echo "$LD" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776 case `$LD -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778 lt_cv_prog_gnu_ld=yes
4781 lt_cv_prog_gnu_ld=no
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787 with_gnu_ld=$lt_cv_prog_gnu_ld
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 lt_cv_ld_reload_flag='-r'
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4802 *) reload_flag=" $reload_flag" ;;
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4816 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4817 if test "${lt_cv_path_NM+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4824 lt_nm_to_check="${ac_tool_prefix}nm"
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm"
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm="$ac_dir/$lt_tmp_nm"
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4840 */dev/null* | *'Invalid file or object type'*)
4841 lt_cv_path_NM="$tmp_nm -B"
4845 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4847 lt_cv_path_NM="$tmp_nm -p"
4851 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4852 continue # so that we can try to find one that supports BSD flags
4861 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4865 $as_echo "$lt_cv_path_NM" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4869 $as_echo_n "checking whether ln -s works... " >&6; }
4871 if test "$LN_S" = "ln -s"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4876 $as_echo "no, using $LN_S" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4884 lt_cv_file_magic_cmd='$MAGIC_CMD'
4885 lt_cv_file_magic_test_file=
4886 lt_cv_deplibs_check_method='unknown'
4887 # Need to set the preceding variable on all platforms that support
4888 # interlibrary dependencies.
4889 # 'none' -- dependencies not supported.
4890 # `unknown' -- same as none, but documents that we really don't know.
4891 # 'pass_all' -- all dependencies passed with no checks.
4892 # 'test_compile' -- check by making test program.
4893 # 'file_magic [[regex]]' -- check by looking for files in library path
4894 # which responds to the $file_magic_cmd with a given extended regex.
4895 # If you have `file' or equivalent on your system and you're not sure
4896 # whether `pass_all' will *always* work, you probably want this one.
4900 lt_cv_deplibs_check_method=pass_all
4904 lt_cv_deplibs_check_method=pass_all
4908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4909 lt_cv_file_magic_cmd='/usr/bin/file -L'
4910 lt_cv_file_magic_test_file=/shlib/libc.so
4914 # func_win32_libid is a shell function defined in ltmain.sh
4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916 lt_cv_file_magic_cmd='func_win32_libid'
4920 # Base MSYS/MinGW do not provide the 'file' command needed by
4921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4922 # unless we find 'file', for example because we are cross-compiling.
4923 if ( file / ) >/dev/null 2>&1; then
4924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4928 lt_cv_file_magic_cmd='$OBJDUMP -f'
4932 darwin* | rhapsody*)
4933 lt_cv_deplibs_check_method=pass_all
4936 freebsd* | dragonfly*)
4937 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4940 # Not sure whether the presence of OpenBSD here was a mistake.
4941 # Let's accept both of them until this is cleared up.
4942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943 lt_cv_file_magic_cmd=/usr/bin/file
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 lt_cv_deplibs_check_method=pass_all
4953 lt_cv_deplibs_check_method=pass_all
4956 hpux10.20* | hpux11*)
4957 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4964 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]'
4965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4979 irix5* | irix6* | nonstopux*)
4981 *-32|*"-32 ") libmagic=32-bit;;
4982 *-n32|*"-n32 ") libmagic=N32;;
4983 *-64|*"-64 ") libmagic=64-bit;;
4984 *) libmagic=never-match;;
4986 lt_cv_deplibs_check_method=pass_all
4989 # This must be Linux ELF.
4990 linux* | k*bsd*-gnu)
4991 lt_cv_deplibs_check_method=pass_all
4995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004 lt_cv_file_magic_cmd=/usr/bin/file
5005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009 lt_cv_deplibs_check_method=unknown
5013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5020 osf3* | osf4* | osf5*)
5021 lt_cv_deplibs_check_method=pass_all
5025 lt_cv_deplibs_check_method=pass_all
5029 lt_cv_deplibs_check_method=pass_all
5033 case $host_vendor in
5035 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]'
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5039 lt_cv_deplibs_check_method=pass_all
5042 lt_cv_file_magic_cmd='/bin/file'
5043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5046 lt_cv_file_magic_cmd='/bin/file'
5047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5048 lt_cv_file_magic_test_file=/lib/libc.so
5051 lt_cv_deplibs_check_method=pass_all
5054 lt_cv_deplibs_check_method=pass_all
5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5060 lt_cv_deplibs_check_method=pass_all
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5067 file_magic_cmd=$lt_cv_file_magic_cmd
5068 deplibs_check_method=$lt_cv_deplibs_check_method
5069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5074 # If no C compiler was specified, use CC.
5077 # If no C compiler flags were specified, use CFLAGS.
5078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5080 # Allow CC to be a program name with arguments.
5084 # Check whether --enable-libtool-lock was given.
5085 if test "${enable_libtool_lock+set}" = set; then :
5086 enableval=$enable_libtool_lock;
5089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5091 # Some flags need to be propagated to the compiler or linker for good
5095 # Find out which ABI we are using.
5096 echo 'int i;' > conftest.$ac_ext
5097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098 (eval $ac_compile) 2>&5
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 case `/usr/bin/file conftest.$ac_objext` in
5114 # Find out which ABI we are using.
5115 echo '#line 5115 "configure"' > conftest.$ac_ext
5116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5117 (eval $ac_compile) 2>&5
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; then
5121 if test "$lt_cv_prog_gnu_ld" = yes; then
5122 case `/usr/bin/file conftest.$ac_objext` in
5124 LD="${LD-ld} -melf32bsmip"
5127 LD="${LD-ld} -melf32bmipn32"
5130 LD="${LD-ld} -melf64bmip"
5134 case `/usr/bin/file conftest.$ac_objext` in
5150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5151 s390*-*linux*|sparc*-*linux*)
5152 # Find out which ABI we are using.
5153 echo 'int i;' > conftest.$ac_ext
5154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5155 (eval $ac_compile) 2>&5
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }; then
5159 case `/usr/bin/file conftest.o` in
5162 x86_64-*kfreebsd*-gnu)
5163 LD="${LD-ld} -m elf_i386_fbsd"
5166 LD="${LD-ld} -m elf_i386"
5168 ppc64-*linux*|powerpc64-*linux*)
5169 LD="${LD-ld} -m elf32ppclinux"
5172 LD="${LD-ld} -m elf_s390"
5175 LD="${LD-ld} -m elf32_sparc"
5181 x86_64-*kfreebsd*-gnu)
5182 LD="${LD-ld} -m elf_x86_64_fbsd"
5185 LD="${LD-ld} -m elf_x86_64"
5187 ppc*-*linux*|powerpc*-*linux*)
5188 LD="${LD-ld} -m elf64ppc"
5191 LD="${LD-ld} -m elf64_s390"
5194 LD="${LD-ld} -m elf64_sparc"
5204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5205 SAVE_CFLAGS="$CFLAGS"
5206 CFLAGS="$CFLAGS -belf"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5209 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5229 if ac_fn_c_try_link "$LINENO"; then :
5230 lt_cv_cc_needs_belf=yes
5232 lt_cv_cc_needs_belf=no
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5247 CFLAGS="$SAVE_CFLAGS"
5251 # Find out which ABI we are using.
5252 echo 'int i;' > conftest.$ac_ext
5253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5254 (eval $ac_compile) 2>&5
5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 test $ac_status = 0; }; then
5258 case `/usr/bin/file conftest.o` in
5260 case $lt_cv_prog_gnu_ld in
5261 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5263 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5277 need_locks="$enable_libtool_lock"
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5291 if test -z "$CPP"; then
5292 if test "${ac_cv_prog_CPP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 # Double quotes because CPP needs to be expanded
5296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5299 for ac_c_preproc_warn_flag in '' yes
5301 # Use a header file that comes with gcc, so configuring glibc
5302 # with a fresh cross-compiler works.
5303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304 # <limits.h> exists even on freestanding compilers.
5305 # On the NeXT, cc -E runs the code through the compiler's parser,
5306 # not just through cpp. "Syntax error" is here to catch this case.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 # include <limits.h>
5312 # include <assert.h>
5316 if ac_fn_c_try_cpp "$LINENO"; then :
5319 # Broken: fails on valid input.
5322 rm -f conftest.err conftest.$ac_ext
5324 # OK, works on sane cases. Now check whether nonexistent headers
5325 # can be detected and how.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5331 # Broken: success on invalid input.
5334 # Passes both tests.
5338 rm -f conftest.err conftest.$ac_ext
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5358 for ac_c_preproc_warn_flag in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5369 # include <limits.h>
5371 # include <assert.h>
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5378 # Broken: fails on valid input.
5381 rm -f conftest.err conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390 # Broken: success on invalid input.
5393 # Passes both tests.
5397 rm -f conftest.err conftest.$ac_ext
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details." "$LINENO" 5; }
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5419 $as_echo_n "checking for ANSI C header files... " >&6; }
5420 if test "${ac_cv_header_stdc+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_header_stdc=yes
5441 ac_cv_header_stdc=no
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 if test $ac_cv_header_stdc = yes; then
5446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "memchr" >/dev/null 2>&1; then :
5456 ac_cv_header_stdc=no
5462 if test $ac_cv_header_stdc = yes; then
5463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "free" >/dev/null 2>&1; then :
5473 ac_cv_header_stdc=no
5479 if test $ac_cv_header_stdc = yes; then
5480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5481 if test "$cross_compiling" = yes; then :
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 #if ((' ' & 0x0FF) == 0x020)
5489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5492 # define ISLOWER(c) \
5493 (('a' <= (c) && (c) <= 'i') \
5494 || ('j' <= (c) && (c) <= 'r') \
5495 || ('s' <= (c) && (c) <= 'z'))
5496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5504 for (i = 0; i < 256; i++)
5505 if (XOR (islower (i), ISLOWER (i))
5506 || toupper (i) != TOUPPER (i))
5511 if ac_fn_c_try_run "$LINENO"; then :
5514 ac_cv_header_stdc=no
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5517 conftest.$ac_objext conftest.beam conftest.$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5523 $as_echo "$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532 inttypes.h stdint.h unistd.h
5534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5537 eval as_val=\$$as_ac_Header
5538 if test "x$as_val" = x""yes; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548 for ac_header in dlfcn.h
5550 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_DLFCN_H 1
5562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5564 (test "X$CXX" != "Xg++"))) ; then
5566 ac_cpp='$CXXCPP $CPPFLAGS'
5567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5572 if test -z "$CXXCPP"; then
5573 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5576 # Double quotes because CXXCPP needs to be expanded
5577 for CXXCPP in "$CXX -E" "/lib/cpp"
5580 for ac_cxx_preproc_warn_flag in '' yes
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 # include <limits.h>
5593 # include <assert.h>
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5600 # Broken: fails on valid input.
5603 rm -f conftest.err conftest.$ac_ext
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ac_nonexistent.h>
5611 if ac_fn_cxx_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5615 # Passes both tests.
5619 rm -f conftest.err conftest.$ac_ext
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5629 ac_cv_prog_CXXCPP=$CXXCPP
5632 CXXCPP=$ac_cv_prog_CXXCPP
5634 ac_cv_prog_CXXCPP=$CXXCPP
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5637 $as_echo "$CXXCPP" >&6; }
5639 for ac_cxx_preproc_warn_flag in '' yes
5641 # Use a header file that comes with gcc, so configuring glibc
5642 # with a fresh cross-compiler works.
5643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644 # <limits.h> exists even on freestanding compilers.
5645 # On the NeXT, cc -E runs the code through the compiler's parser,
5646 # not just through cpp. "Syntax error" is here to catch this case.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5650 # include <limits.h>
5652 # include <assert.h>
5656 if ac_fn_cxx_try_cpp "$LINENO"; then :
5659 # Broken: fails on valid input.
5662 rm -f conftest.err conftest.$ac_ext
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <ac_nonexistent.h>
5670 if ac_fn_cxx_try_cpp "$LINENO"; then :
5671 # Broken: success on invalid input.
5674 # Passes both tests.
5678 rm -f conftest.err conftest.$ac_ext
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then :
5686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5689 See \`config.log' for more details." "$LINENO" 5; }
5693 ac_cpp='$CXXCPP $CPPFLAGS'
5694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5703 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5705 if test -n "$ac_tool_prefix"; then
5706 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 pgf95 lf95 ftn
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_F77+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$F77"; then
5716 ac_cv_prog_F77="$F77" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 if test -n "$F77"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5738 $as_echo "$F77" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 test -n "$F77" && break
5748 if test -z "$F77"; then
5750 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 pgf95 lf95 ftn
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5759 if test -n "$ac_ct_F77"; then
5760 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_F77="$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5780 if test -n "$ac_ct_F77"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5782 $as_echo "$ac_ct_F77" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5789 test -n "$ac_ct_F77" && break
5792 if test "x$ac_ct_F77" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5806 # Provide some information about the compiler.
5807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5810 for ac_option in --version -v -V -qversion; do
5811 { { ac_try="$ac_compiler $ac_option >&5"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5820 if test -s conftest.err; then
5822 ... rest of stderr output deleted ...
5823 10q' conftest.err >conftest.er1
5824 cat conftest.er1 >&5
5826 rm -f conftest.er1 conftest.err
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }
5832 # If we don't use `.F' as extension, the preprocessor is not run on the
5833 # input file. (Note that this only needs to work for GNU compilers.)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5837 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 cat > conftest.$ac_ext <<_ACEOF
5849 if ac_fn_f77_try_compile "$LINENO"; then :
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5859 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5861 ac_test_FFLAGS=${FFLAGS+set}
5862 ac_save_FFLAGS=$FFLAGS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5865 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5866 if test "${ac_cv_prog_f77_g+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5870 cat > conftest.$ac_ext <<_ACEOF
5875 if ac_fn_f77_try_compile "$LINENO"; then :
5876 ac_cv_prog_f77_g=yes
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5884 $as_echo "$ac_cv_prog_f77_g" >&6; }
5885 if test "$ac_test_FFLAGS" = set; then
5886 FFLAGS=$ac_save_FFLAGS
5887 elif test $ac_cv_prog_f77_g = yes; then
5888 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5894 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5901 if test $ac_compiler_gnu = yes; then
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5914 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5979 # nice to cause kernel panics so lets avoid the loop below.
5980 # First set a reasonable default.
5981 lt_cv_sys_max_cmd_len=16384
5983 if test -x /sbin/sysconfig; then
5984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5990 lt_cv_sys_max_cmd_len=102400
5992 sysv5* | sco5v6* | sysv4.2uw2*)
5993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5994 if test -n "$kargmax"; then
5995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5997 lt_cv_sys_max_cmd_len=32768
6001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6002 if test -n "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6006 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6007 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6008 = "XX$teststring") >/dev/null 2>&1 &&
6009 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6010 lt_cv_sys_max_cmd_len=$new_result &&
6011 test $i != 17 # 1/2 MB should be enough
6014 teststring=$teststring$teststring
6017 # Add a significant safety factor because C++ compilers can tack on massive
6018 # amounts of additional arguments before passing them to the linker.
6019 # It appears as though 1/2 is a usable value.
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 if test -n $lt_cv_sys_max_cmd_len ; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032 $as_echo "none" >&6; }
6039 # Check for command to grab the raw symbol name followed by C symbol from nm.
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6042 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6046 # These are sane defaults that work on at least a few old systems.
6047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6049 # Character class describing NM global symbol codes.
6050 symcode='[BCDEGRST]'
6052 # Regexp to match symbols that can be accessed directly from C.
6053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6055 # Transform an extracted symbol line into a proper C declaration
6056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 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'"
6061 # Define system-specific variables.
6066 cygwin* | mingw* | pw32*)
6067 symcode='[ABCDGISTW]'
6069 hpux*) # Its linker distinguishes data from code symbols
6070 if test "$host_cpu" = ia64; then
6071 symcode='[ABCDEGRST]'
6073 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6074 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'"
6076 linux* | k*bsd*-gnu)
6077 if test "$host_cpu" = ia64; then
6078 symcode='[ABCDGIRSTW]'
6079 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6080 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'"
6084 symcode='[BCDEGRST]'
6087 symcode='[BCDEGQRST]'
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6106 # Handle CRLF in mingw tool chain
6110 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114 # If we're using GNU nm, then use its standard symbol codes.
6115 case `$NM -V 2>&1` in
6116 *GNU* | *'with BFD'*)
6117 symcode='[ABCDGIRSTW]' ;;
6120 # Try without a prefix undercore, then with it.
6121 for ac_symprfx in "" "_"; do
6123 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6124 symxfrm="\\1 $ac_symprfx\\2 \\2"
6126 # Write the raw and C identifiers.
6127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6129 # Check to see that the pipe works correctly.
6133 cat > conftest.$ac_ext <<EOF
6138 void nm_test_func(){}
6142 int main(){nm_test_var='a';nm_test_func();return(0);}
6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6146 (eval $ac_compile) 2>&5
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; then
6150 # Now try to grab the symbols.
6152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6153 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; } && test -s "$nlist"; then
6157 # Try sorting and uniquifying the output.
6158 if sort "$nlist" | uniq > "$nlist"T; then
6159 mv -f "$nlist"T "$nlist"
6164 # Make sure that we snagged all the symbols we need.
6165 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6166 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6167 cat <<EOF > conftest.$ac_ext
6173 # Now generate the symbol file.
6174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6176 cat <<EOF >> conftest.$ac_ext
6177 #if defined (__STDC__) && __STDC__
6178 # define lt_ptr_t void *
6180 # define lt_ptr_t char *
6184 /* The mapping between symbol names and symbols. */
6189 lt_preloaded_symbols[] =
6192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6193 cat <<\EOF >> conftest.$ac_ext
6201 # Now try linking the two files.
6202 mv conftest.$ac_objext conftstm.$ac_objext
6203 lt_save_LIBS="$LIBS"
6204 lt_save_CFLAGS="$CFLAGS"
6205 LIBS="conftstm.$ac_objext"
6206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208 (eval $ac_link) 2>&5
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6214 LIBS="$lt_save_LIBS"
6215 CFLAGS="$lt_save_CFLAGS"
6217 echo "cannot find nm_test_func in $nlist" >&5
6220 echo "cannot find nm_test_var in $nlist" >&5
6223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6226 echo "$progname: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 rm -rf conftest* conftst*
6231 # Do not use the global_symbol_pipe unless it works.
6232 if test "$pipe_works" = yes; then
6235 lt_cv_sys_global_symbol_pipe=
6241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242 lt_cv_sys_global_symbol_to_cdecl=
6244 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246 $as_echo "failed" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249 $as_echo "ok" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6253 $as_echo_n "checking for objdir... " >&6; }
6254 if test "${lt_cv_objdir+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 rm -f .libs 2>/dev/null
6258 mkdir .libs 2>/dev/null
6259 if test -d .libs; then
6262 # MS-DOS does not allow filenames that begin with a dot.
6265 rmdir .libs 2>/dev/null
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6268 $as_echo "$lt_cv_objdir" >&6; }
6269 objdir=$lt_cv_objdir
6277 # AIX sometimes has problems with the GCC collect2 program. For some
6278 # reason, if we set the COLLECT_NAMES environment variable, the problems
6279 # vanish in a puff of smoke.
6280 if test "X${COLLECT_NAMES+set}" != Xset; then
6282 export COLLECT_NAMES
6287 # Sed substitution that helps us do robust quoting. It backslashifies
6288 # metacharacters that are still active within double-quoted strings.
6289 Xsed='sed -e 1s/^X//'
6290 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6292 # Same as above, but do not quote variable references.
6293 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6295 # Sed substitution to delay expansion of an escaped shell variable in a
6296 # double_quote_subst'ed string.
6297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6299 # Sed substitution to avoid accidental globbing in evaled expressions
6300 no_glob_subst='s/\*/\\\*/g'
6306 default_ofile=libtool
6307 can_build_shared=yes
6309 # All known linkers require a `.a' archive for static linking (except MSVC,
6310 # which needs '.lib').
6312 ltmain="$ac_aux_dir/ltmain.sh"
6313 ofile="$default_ofile"
6314 with_gnu_ld="$lt_cv_prog_gnu_ld"
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ar; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_AR="${ac_tool_prefix}ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 if test -n "$AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6347 $as_echo "$AR" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test -z "$ac_cv_prog_AR"; then
6357 # Extract the first word of "ar", so it can be a program name with args.
6358 set dummy ar; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$ac_ct_AR"; then
6365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_AR="ar"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385 if test -n "$ac_ct_AR"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387 $as_echo "$ac_ct_AR" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6393 if test "x$ac_ct_AR" = x; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6416 if test -n "$RANLIB"; then
6417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 RANLIB=$ac_cv_prog_RANLIB
6437 if test -n "$RANLIB"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6439 $as_echo "$RANLIB" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6447 if test -z "$ac_cv_prog_RANLIB"; then
6448 ac_ct_RANLIB=$RANLIB
6449 # Extract the first word of "ranlib", so it can be a program name with args.
6450 set dummy ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$ac_ct_RANLIB"; then
6457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_ac_ct_RANLIB="ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6477 if test -n "$ac_ct_RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6479 $as_echo "$ac_ct_RANLIB" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6485 if test "x$ac_ct_RANLIB" = x; then
6488 case $cross_compiling:$ac_tool_warned in
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6494 RANLIB=$ac_ct_RANLIB
6497 RANLIB="$ac_cv_prog_RANLIB"
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}strip; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if test "${ac_cv_prog_STRIP+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6508 if test -n "$STRIP"; then
6509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 STRIP=$ac_cv_prog_STRIP
6529 if test -n "$STRIP"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6531 $as_echo "$STRIP" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6539 if test -z "$ac_cv_prog_STRIP"; then
6541 # Extract the first word of "strip", so it can be a program name with args.
6542 set dummy strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$ac_ct_STRIP"; then
6549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_ac_ct_STRIP="strip"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6569 if test -n "$ac_ct_STRIP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6571 $as_echo "$ac_ct_STRIP" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6577 if test "x$ac_ct_STRIP" = x; then
6580 case $cross_compiling:$ac_tool_warned in
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6589 STRIP="$ac_cv_prog_STRIP"
6594 old_CFLAGS="$CFLAGS"
6596 # Set sane defaults for various variables
6597 test -z "$AR" && AR=ar
6598 test -z "$AR_FLAGS" && AR_FLAGS=cru
6599 test -z "$AS" && AS=as
6600 test -z "$CC" && CC=cc
6601 test -z "$LTCC" && LTCC=$CC
6602 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6603 test -z "$DLLTOOL" && DLLTOOL=dlltool
6604 test -z "$LD" && LD=ld
6605 test -z "$LN_S" && LN_S="ln -s"
6606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6607 test -z "$NM" && NM=nm
6608 test -z "$SED" && SED=sed
6609 test -z "$OBJDUMP" && OBJDUMP=objdump
6610 test -z "$RANLIB" && RANLIB=:
6611 test -z "$STRIP" && STRIP=:
6612 test -z "$ac_objext" && ac_objext=o
6614 # Determine commands to create old-style static archives.
6615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6616 old_postinstall_cmds='chmod 644 $oldlib'
6617 old_postuninstall_cmds=
6619 if test -n "$RANLIB"; then
6622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6631 for cc_temp in $compiler""; do
6633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6642 # Only perform the check for file, if the check method requires it
6643 case $deplibs_check_method in
6645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6647 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6656 lt_save_MAGIC_CMD="$MAGIC_CMD"
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6659 for ac_dir in $ac_dummy; do
6661 test -z "$ac_dir" && ac_dir=.
6662 if test -f $ac_dir/${ac_tool_prefix}file; then
6663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6664 if test -n "$file_magic_test_file"; then
6665 case $deplibs_check_method in
6667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6670 $EGREP "$file_magic_regex" > /dev/null; then
6675 *** Warning: the command libtool uses to detect shared libraries,
6676 *** $file_magic_cmd, produces output that libtool cannot recognize.
6677 *** The result is that libtool may fail to recognize shared libraries
6678 *** as such. This will affect the creation of libtool libraries that
6679 *** depend on shared libraries, but programs linked with such libtool
6680 *** libraries will work regardless of this problem. Nevertheless, you
6681 *** may want to report the problem to your system manager and/or to
6682 *** bug-libtool@gnu.org
6692 MAGIC_CMD="$lt_save_MAGIC_CMD"
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if test -n "$MAGIC_CMD"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6700 $as_echo "$MAGIC_CMD" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test -z "$lt_cv_path_MAGIC_CMD"; then
6707 if test -n "$ac_tool_prefix"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6709 $as_echo_n "checking for file... " >&6; }
6710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6718 lt_save_MAGIC_CMD="$MAGIC_CMD"
6719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6721 for ac_dir in $ac_dummy; do
6723 test -z "$ac_dir" && ac_dir=.
6724 if test -f $ac_dir/file; then
6725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6726 if test -n "$file_magic_test_file"; then
6727 case $deplibs_check_method in
6729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6732 $EGREP "$file_magic_regex" > /dev/null; then
6737 *** Warning: the command libtool uses to detect shared libraries,
6738 *** $file_magic_cmd, produces output that libtool cannot recognize.
6739 *** The result is that libtool may fail to recognize shared libraries
6740 *** as such. This will affect the creation of libtool libraries that
6741 *** depend on shared libraries, but programs linked with such libtool
6742 *** libraries will work regardless of this problem. Nevertheless, you
6743 *** may want to report the problem to your system manager and/or to
6744 *** bug-libtool@gnu.org
6754 MAGIC_CMD="$lt_save_MAGIC_CMD"
6759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6760 if test -n "$MAGIC_CMD"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6762 $as_echo "$MAGIC_CMD" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_DSYMUTIL" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_NMEDIT" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6958 NMEDIT=$ac_ct_NMEDIT
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6966 $as_echo_n "checking for -single_module linker flag... " >&6; }
6967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6970 lt_cv_apple_cc_single_mod=no
6971 if test -z "${LT_MULTI_MODULE}"; then
6972 # By default we will add the -single_module flag. You can override
6973 # by either setting the environment variable LT_MULTI_MODULE
6974 # non-empty at configure time, or by adding -multi_module to the
6976 echo "int foo(void){return 1;}" > conftest.c
6977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6978 -dynamiclib ${wl}-single_module conftest.c
6979 if test -f libconftest.dylib; then
6980 lt_cv_apple_cc_single_mod=yes
6981 rm -rf libconftest.dylib*
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6993 lt_cv_ld_exported_symbols_list=no
6994 save_LDFLAGS=$LDFLAGS
6995 echo "_main" > conftest.sym
6996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 lt_cv_ld_exported_symbols_list=yes
7011 lt_cv_ld_exported_symbols_list=no
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 LDFLAGS="$save_LDFLAGS"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7021 rhapsody* | darwin1.[0123])
7022 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7024 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7026 # if running on 10.5 or later, the deployment target defaults
7027 # to the OS version, if on x86, and 10.4, the deployment
7028 # target defaults to 10.4. Don't you love it?
7029 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7030 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7039 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7040 _lt_dar_single_mod='$single_module'
7042 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7043 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7045 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7047 if test "$DSYMUTIL" != ":"; then
7048 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7059 # Check whether --enable-libtool-lock was given.
7060 if test "${enable_libtool_lock+set}" = set; then :
7061 enableval=$enable_libtool_lock;
7064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7067 # Check whether --with-pic was given.
7068 if test "${with_pic+set}" = set; then :
7069 withval=$with_pic; pic_mode="$withval"
7074 test -z "$pic_mode" && pic_mode=default
7076 # Use C for the default configuration in the libtool script
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086 # Source file extension for C test sources.
7089 # Object file extension for compiled C test sources.
7093 # Code to be used in simple compile tests
7094 lt_simple_compile_test_code="int some_variable = 0;"
7096 # Code to be used in simple link tests
7097 lt_simple_link_test_code='int main(){return(0);}'
7100 # If no C compiler was specified, use CC.
7103 # If no C compiler flags were specified, use CFLAGS.
7104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7106 # Allow CC to be a program name with arguments.
7110 # save warnings/boilerplate of simple test code
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7114 _lt_compiler_boilerplate=`cat conftest.err`
7117 ac_outfile=conftest.$ac_objext
7118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7120 _lt_linker_boilerplate=`cat conftest.err`
7125 lt_prog_compiler_no_builtin_flag=
7127 if test "$GCC" = yes; then
7128 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7136 lt_cv_prog_compiler_rtti_exceptions=no
7137 ac_outfile=conftest.$ac_objext
7138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7139 lt_compiler_flag="-fno-rtti -fno-exceptions"
7140 # Insert the option either (1) after the last *FLAGS variable, or
7141 # (2) before a word containing "conftest.", or (3) at the end.
7142 # Note that $ac_compile itself does not contain backslashes and begins
7143 # with a dollar sign (not a hyphen), so the echo should work correctly.
7144 # The option is referenced via a variable to avoid confusing sed.
7145 lt_compile=`echo "$ac_compile" | $SED \
7146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148 -e 's:$: $lt_compiler_flag:'`
7149 (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150 (eval "$lt_compile" 2>conftest.err)
7152 cat conftest.err >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 if (exit $ac_status) && test -s "$ac_outfile"; then
7155 # The compiler can only warn and ignore the option if not recognized
7156 # So say no if there are warnings other than the usual output.
7157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7160 lt_cv_prog_compiler_rtti_exceptions=yes
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7177 lt_prog_compiler_wl=
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_static=
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7184 if test "$GCC" = yes; then
7185 lt_prog_compiler_wl='-Wl,'
7186 lt_prog_compiler_static='-static'
7190 # All AIX code is PIC.
7191 if test "$host_cpu" = ia64; then
7192 # AIX 5 now supports IA64 processor
7193 lt_prog_compiler_static='-Bstatic'
7198 # FIXME: we need at least 68020 code to build shared libraries, but
7199 # adding the `-m68020' flag to GCC prevents building anything better,
7201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7205 # PIC is the default for these OSes.
7208 mingw* | cygwin* | pw32* | os2*)
7209 # This hack is so that the source file can tell whether it is being
7210 # built for inclusion in a dll (and should export symbols for example).
7211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7212 # (--disable-auto-import) libraries
7213 lt_prog_compiler_pic='-DDLL_EXPORT'
7216 darwin* | rhapsody*)
7217 # PIC is the default on this platform
7218 # Common symbols not allowed in MH_DYLIB files
7219 lt_prog_compiler_pic='-fno-common'
7223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7224 # Instead, we relocate shared libraries at runtime.
7228 # Just because we use GCC doesn't mean we suddenly get shared libraries
7229 # on systems that don't support them.
7230 lt_prog_compiler_can_build_shared=no
7235 if test -d /usr/nec; then
7236 lt_prog_compiler_pic=-Kconform_pic
7241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7248 lt_prog_compiler_pic='-fPIC'
7254 lt_prog_compiler_pic='-fPIC'
7258 # PORTME Check for flag to pass linker flags through the system compiler.
7261 lt_prog_compiler_wl='-Wl,'
7262 if test "$host_cpu" = ia64; then
7263 # AIX 5 now supports IA64 processor
7264 lt_prog_compiler_static='-Bstatic'
7266 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7270 # PIC is the default on this platform
7271 # Common symbols not allowed in MH_DYLIB files
7272 case $cc_basename in
7274 lt_prog_compiler_pic='-qnocommon'
7275 lt_prog_compiler_wl='-Wl,'
7280 mingw* | cygwin* | pw32* | os2*)
7281 # This hack is so that the source file can tell whether it is being
7282 # built for inclusion in a dll (and should export symbols for example).
7283 lt_prog_compiler_pic='-DDLL_EXPORT'
7286 hpux9* | hpux10* | hpux11*)
7287 lt_prog_compiler_wl='-Wl,'
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295 lt_prog_compiler_pic='+Z'
7298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299 lt_prog_compiler_static='${wl}-a ${wl}archive'
7302 irix5* | irix6* | nonstopux*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC (with -KPIC) is the default.
7305 lt_prog_compiler_static='-non_shared'
7309 lt_prog_compiler_pic='-KPIC'
7310 lt_prog_compiler_static='-Bstatic'
7313 linux* | k*bsd*-gnu)
7314 case $cc_basename in
7316 lt_prog_compiler_wl='-Wl,'
7317 lt_prog_compiler_pic='-KPIC'
7318 lt_prog_compiler_static='-static'
7320 pgcc* | pgf77* | pgf90* | pgf95*)
7321 # Portland Group compilers (*not* the Pentium gcc compiler,
7322 # which looks to be a dead project)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-fpic'
7325 lt_prog_compiler_static='-Bstatic'
7328 lt_prog_compiler_wl='-Wl,'
7329 # All Alpha code is PIC.
7330 lt_prog_compiler_static='-non_shared'
7333 case `$CC -V 2>&1 | sed 5q` in
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_wl='-Wl,'
7341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7342 lt_prog_compiler_pic='-KPIC'
7343 lt_prog_compiler_static='-Bstatic'
7344 lt_prog_compiler_wl=''
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7358 lt_prog_compiler_static='-non_shared'
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-Bstatic'
7364 case $cc_basename in
7366 lt_prog_compiler_wl='-Qoption ld ';;
7368 lt_prog_compiler_wl='-Wl,';;
7373 lt_prog_compiler_wl='-Qoption ld '
7374 lt_prog_compiler_pic='-PIC'
7375 lt_prog_compiler_static='-Bstatic'
7378 sysv4 | sysv4.2uw2* | sysv4.3*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7385 if test -d /usr/nec ;then
7386 lt_prog_compiler_pic='-Kconform_pic'
7387 lt_prog_compiler_static='-Bstatic'
7391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7392 lt_prog_compiler_wl='-Wl,'
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_can_build_shared=no
7403 lt_prog_compiler_pic='-pic'
7404 lt_prog_compiler_static='-Bstatic'
7408 lt_prog_compiler_can_build_shared=no
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7414 $as_echo "$lt_prog_compiler_pic" >&6; }
7417 # Check to make sure the PIC flag actually works.
7419 if test -n "$lt_prog_compiler_pic"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7426 lt_cv_prog_compiler_pic_works=no
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7430 # Insert the option either (1) after the last *FLAGS variable, or
7431 # (2) before a word containing "conftest.", or (3) at the end.
7432 # Note that $ac_compile itself does not contain backslashes and begins
7433 # with a dollar sign (not a hyphen), so the echo should work correctly.
7434 # The option is referenced via a variable to avoid confusing sed.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>conftest.err)
7442 cat conftest.err >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s "$ac_outfile"; then
7445 # The compiler can only warn and ignore the option if not recognized
7446 # So say no if there are warnings other than the usual output.
7447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450 lt_cv_prog_compiler_pic_works=yes
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7460 case $lt_prog_compiler_pic in
7462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7465 lt_prog_compiler_pic=
7466 lt_prog_compiler_can_build_shared=no
7471 # For platforms which do not support PIC, -DPIC is meaningless:
7473 lt_prog_compiler_pic=
7476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7481 # Check to make sure the static flag actually works.
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 lt_cv_prog_compiler_static_works=no
7490 save_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494 # The linker can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 if test -s conftest.err; then
7497 # Append any errors to the config.log.
7498 cat conftest.err 1>&5
7499 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if diff conftest.exp conftest.er2 >/dev/null; then
7502 lt_cv_prog_compiler_static_works=yes
7505 lt_cv_prog_compiler_static_works=yes
7509 LDFLAGS="$save_LDFLAGS"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7513 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7518 lt_prog_compiler_static=
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7527 lt_cv_prog_compiler_c_o=no
7528 $rm -r conftest 2>/dev/null
7532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7534 lt_compiler_flag="-o out/conftest2.$ac_objext"
7535 # Insert the option either (1) after the last *FLAGS variable, or
7536 # (2) before a word containing "conftest.", or (3) at the end.
7537 # Note that $ac_compile itself does not contain backslashes and begins
7538 # with a dollar sign (not a hyphen), so the echo should work correctly.
7539 lt_compile=`echo "$ac_compile" | $SED \
7540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542 -e 's:$: $lt_compiler_flag:'`
7543 (eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
7544 (eval "$lt_compile" 2>out/conftest.err)
7546 cat out/conftest.err >&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7550 # The compiler can only warn and ignore the option if not recognized
7551 # So say no if there are warnings
7552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7555 lt_cv_prog_compiler_c_o=yes
7560 # SGI C++ compiler will create directory out/ii_files/ for
7561 # template instantiation
7562 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7563 $rm out/* && rmdir out
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7573 hard_links="nottested"
7574 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7575 # do not overwrite the value of need_locks provided by the user
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7577 $as_echo_n "checking if we can lock with hard links... " >&6; }
7580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7582 ln conftest.a conftest.b 2>&5 || hard_links=no
7583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7585 $as_echo "$hard_links" >&6; }
7586 if test "$hard_links" = no; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7599 allow_undefined_flag=
7600 enable_shared_with_static_runtimes=no
7602 archive_expsym_cmds=
7603 old_archive_From_new_cmds=
7604 old_archive_from_expsyms_cmds=
7605 export_dynamic_flag_spec=
7606 whole_archive_flag_spec=
7607 thread_safe_flag_spec=
7608 hardcode_libdir_flag_spec=
7609 hardcode_libdir_flag_spec_ld=
7610 hardcode_libdir_separator=
7613 hardcode_shlibpath_var=unsupported
7614 link_all_deplibs=unknown
7615 hardcode_automatic=no
7618 always_export_symbols=no
7619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7620 # include_expsyms should be a list of space-separated symbols to be *always*
7621 # included in the symbol list
7623 # exclude_expsyms can be an extended regexp of symbols to exclude
7624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7626 # as well as any symbol that contains `d'.
7627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7629 # platforms (ab)use it in PIC code, but their linkers get confused if
7630 # the symbol is explicitly referenced. Since portable code cannot
7631 # rely on this symbol name, it's probably fine to never include it in
7632 # preloaded symbol tables.
7633 # Exclude shared library initialization/finalization symbols.
7634 extract_expsyms_cmds=
7635 # Just being paranoid about ensuring that cc_basename is set.
7636 for cc_temp in $compiler""; do
7638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7647 cygwin* | mingw* | pw32*)
7648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7649 # When not using gcc, we currently assume that we are using
7650 # Microsoft Visual C++.
7651 if test "$GCC" != yes; then
7656 # we just hope/assume this is gcc and not c89 (= MSVC++)
7665 if test "$with_gnu_ld" = yes; then
7666 # If archive_cmds runs LD, not CC, wlarc should be empty
7669 # Set some defaults for GNU ld with shared library support. These
7670 # are reset later if shared libraries are not supported. Putting them
7671 # here allows them to be overridden if necessary.
7672 runpath_var=LD_RUN_PATH
7673 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7674 export_dynamic_flag_spec='${wl}--export-dynamic'
7675 # ancient GNU ld didn't support --whole-archive et. al.
7676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7677 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7679 whole_archive_flag_spec=
7681 supports_anon_versioning=no
7682 case `$LD -v 2>/dev/null` in
7683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7686 *\ 2.11.*) ;; # other 2.11 versions
7687 *) supports_anon_versioning=yes ;;
7690 # See if GNU ld supports shared libraries.
7693 # On AIX/PPC, the GNU linker is very broken
7694 if test "$host_cpu" != ia64; then
7698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7699 *** to be unable to reliably create shared libraries on AIX.
7700 *** Therefore, libtool is disabling shared libraries support. If you
7701 *** really care for shared libraries, you may want to modify your PATH
7702 *** so that a non-GNU linker is found, and then restart.
7709 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)'
7710 hardcode_libdir_flag_spec='-L$libdir'
7711 hardcode_minus_L=yes
7713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7714 # that the semantics of dynamic libraries on AmigaOS, at least up
7715 # to version 4, is to share data among multiple programs linked
7716 # with the same dynamic library. Since this doesn't match the
7717 # behavior of shared libraries on other platforms, we can't use
7723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724 allow_undefined_flag=unsupported
7725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7726 # support --undefined. This deserves some investigation. FIXME
7727 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7733 cygwin* | mingw* | pw32*)
7734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7735 # as there is no search path for DLLs.
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 allow_undefined_flag=unsupported
7738 always_export_symbols=no
7739 enable_shared_with_static_runtimes=yes
7740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7744 # If the export-symbols file already is a .def file (1st line
7745 # is EXPORTS), use it as is; otherwise, prepend...
7746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7747 cp $export_symbols $output_objdir/$soname.def;
7749 echo EXPORTS > $output_objdir/$soname.def;
7750 cat $export_symbols >> $output_objdir/$soname.def;
7752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7760 hardcode_shlibpath_var=no
7761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762 export_dynamic_flag_spec='${wl}-E'
7763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7764 # Instead, shared libraries are loaded at an image base (0x10000000 by
7765 # default) and relocated if they conflict, which is a slow very memory
7766 # consuming and fragmenting process. To avoid this, we pick a random,
7767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7770 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'
7773 gnu* | linux* | k*bsd*-gnu)
7774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776 case $cc_basename,$host_cpu in
7777 pgcc*) # Portland Group C compiler
7778 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'
7779 tmp_addflag=' $pic_flag'
7781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7782 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'
7783 tmp_addflag=' $pic_flag -Mnomain' ;;
7784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7785 tmp_addflag=' -i_dynamic' ;;
7786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7787 tmp_addflag=' -i_dynamic -nofor_main' ;;
7788 ifc* | ifort*) # Intel Fortran compiler
7789 tmp_addflag=' -nofor_main' ;;
7791 case `$CC -V 2>&1 | sed 5q` in
7792 *Sun\ C*) # Sun C 5.9
7793 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7794 tmp_sharedflag='-G' ;;
7795 *Sun\ F*) # Sun Fortran 8.3
7796 tmp_sharedflag='-G' ;;
7798 tmp_sharedflag='-shared' ;;
7800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7802 if test $supports_anon_versioning = yes; then
7803 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7805 $echo "local: *; };" >> $output_objdir/$libname.ver~
7806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7815 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7829 *** create shared libraries on Solaris systems. Therefore, libtool
7830 *** is disabling shared libraries support. We urge you to upgrade GNU
7831 *** binutils to release 2.9.1 or newer. Another option is to modify
7832 *** your PATH or compiler configuration so that the native linker is
7833 *** used, and then restart.
7836 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7845 case `$LD -v 2>&1` in
7846 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7850 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7851 *** reliably create shared libraries on SCO systems. Therefore, libtool
7852 *** is disabling shared libraries support. We urge you to upgrade GNU
7853 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7854 *** your PATH or compiler configuration so that the native linker is
7855 *** used, and then restart.
7860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7875 hardcode_shlibpath_var=no
7879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7888 if test "$ld_shlibs" = no; then
7890 hardcode_libdir_flag_spec=
7891 export_dynamic_flag_spec=
7892 whole_archive_flag_spec=
7895 # PORTME fill in a description of your system's linker (not GNU ld)
7898 allow_undefined_flag=unsupported
7899 always_export_symbols=yes
7900 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'
7901 # Note: this linker hardcodes the directories in LIBPATH if there
7902 # are no directories specified by -L.
7903 hardcode_minus_L=yes
7904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7905 # Neither direct hardcoding nor static linking is supported with a
7907 hardcode_direct=unsupported
7912 if test "$host_cpu" = ia64; then
7913 # On IA64, the linker does run time linking by default, so we don't
7914 # have to do anything special.
7915 aix_use_runtimelinking=no
7916 exp_sym_flag='-Bexport'
7919 # If we're using GNU nm, then we don't want the "-C" option.
7920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7921 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7922 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'
7924 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'
7926 aix_use_runtimelinking=no
7928 # Test if we are trying to use run time linking or normal
7929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7930 # need to do runtime linking.
7931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7932 for ld_flag in $LDFLAGS; do
7933 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7934 aix_use_runtimelinking=yes
7941 exp_sym_flag='-bexport'
7942 no_entry_flag='-bnoentry'
7945 # When large executables or shared objects are built, AIX ld can
7946 # have problems creating the table of contents. If linking a library
7947 # or program results in "error TOC overflow" add -mminimal-toc to
7948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7953 hardcode_libdir_separator=':'
7954 link_all_deplibs=yes
7956 if test "$GCC" = yes; then
7957 case $host_os in aix4.[012]|aix4.[012].*)
7958 # We only want to do this on AIX 4.2 and lower, the check
7959 # below for broken collect2 doesn't work under 4.3+
7960 collect2name=`${CC} -print-prog-name=collect2`
7961 if test -f "$collect2name" && \
7962 strings "$collect2name" | grep resolve_lib_name >/dev/null
7964 # We have reworked collect2
7967 # We have old collect2
7968 hardcode_direct=unsupported
7969 # It fails to find uninstalled libraries when the uninstalled
7970 # path is not listed in the libpath. Setting hardcode_minus_L
7971 # to unsupported forces relinking
7972 hardcode_minus_L=yes
7973 hardcode_libdir_flag_spec='-L$libdir'
7974 hardcode_libdir_separator=
7978 shared_flag='-shared'
7979 if test "$aix_use_runtimelinking" = yes; then
7980 shared_flag="$shared_flag "'${wl}-G'
7984 if test "$host_cpu" = ia64; then
7985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7986 # chokes on -Wl,-G. The following line is correct:
7989 if test "$aix_use_runtimelinking" = yes; then
7990 shared_flag='${wl}-G'
7992 shared_flag='${wl}-bM:SRE'
7997 # It seems that -bexpall does not export symbols beginning with
7998 # underscore (_), so it is better to generate a list of symbols to export.
7999 always_export_symbols=yes
8000 if test "$aix_use_runtimelinking" = yes; then
8001 # Warning - without using the other runtime loading flags (-brtl),
8002 # -berok will link without error, but may produce a broken library.
8003 allow_undefined_flag='-berok'
8004 # Determine the default libpath from the value encoded in an empty executable.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8016 if ac_fn_c_try_link "$LINENO"; then :
8018 lt_aix_libpath_sed='
8019 /Import File Strings/,/^$/ {
8025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8026 # Check for a 64-bit object if we didn't find anything.
8027 if test -z "$aix_libpath"; then
8028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036 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"
8038 if test "$host_cpu" = ia64; then
8039 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040 allow_undefined_flag="-z nodefs"
8041 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"
8043 # Determine the default libpath from the value encoded in an empty executable.
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8055 if ac_fn_c_try_link "$LINENO"; then :
8057 lt_aix_libpath_sed='
8058 /Import File Strings/,/^$/ {
8064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8065 # Check for a 64-bit object if we didn't find anything.
8066 if test -z "$aix_libpath"; then
8067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8074 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8075 # Warning - without using the other run time loading flags,
8076 # -berok will link without error, but may produce a broken library.
8077 no_undefined_flag=' ${wl}-bernotok'
8078 allow_undefined_flag=' ${wl}-berok'
8079 # Exported symbols can be pulled into shared objects from archives
8080 whole_archive_flag_spec='$convenience'
8081 archive_cmds_need_lc=yes
8082 # This is similar to how AIX traditionally builds its shared libraries.
8083 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'
8089 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)'
8090 hardcode_libdir_flag_spec='-L$libdir'
8091 hardcode_minus_L=yes
8092 # see comment about different semantics on the GNU ld section
8097 export_dynamic_flag_spec=-rdynamic
8100 cygwin* | mingw* | pw32*)
8101 # When not using gcc, we currently assume that we are using
8102 # Microsoft Visual C++.
8103 # hardcode_libdir_flag_spec is actually meaningless, as there is
8104 # no search path for DLLs.
8105 hardcode_libdir_flag_spec=' '
8106 allow_undefined_flag=unsupported
8107 # Tell ltmain to make .lib files, not .a files.
8109 # Tell ltmain to make .dll files, not .so files.
8111 # FIXME: Setting linknames here is a bad hack.
8112 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8113 # The linker will automatically build a .lib file if we build a DLL.
8114 old_archive_From_new_cmds='true'
8115 # FIXME: Should let the user specify the lib program.
8116 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8117 fix_srcfile_path='`cygpath -w "$srcfile"`'
8118 enable_shared_with_static_runtimes=yes
8121 darwin* | rhapsody*)
8123 rhapsody* | darwin1.[012])
8124 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8127 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8130 case ${MACOSX_DEPLOYMENT_TARGET} in
8132 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8135 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8141 archive_cmds_need_lc=no
8143 hardcode_automatic=yes
8144 hardcode_shlibpath_var=unsupported
8145 whole_archive_flag_spec=''
8146 link_all_deplibs=yes
8147 if test "$GCC" = yes ; then
8148 output_verbose_link_cmd='echo'
8149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8151 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8152 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8154 case $cc_basename in
8156 output_verbose_link_cmd='echo'
8157 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8158 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8160 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8161 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}'
8171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8172 hardcode_libdir_flag_spec='-L$libdir'
8173 hardcode_shlibpath_var=no
8180 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8181 # support. Future versions do this automatically, but an explicit c++rt0.o
8182 # does not break anything, and helps significantly (at the cost of a little
8185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8186 hardcode_libdir_flag_spec='-R$libdir'
8188 hardcode_shlibpath_var=no
8191 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_minus_L=yes
8196 hardcode_shlibpath_var=no
8199 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8200 freebsd* | dragonfly*)
8201 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8202 hardcode_libdir_flag_spec='-R$libdir'
8204 hardcode_shlibpath_var=no
8208 if test "$GCC" = yes; then
8209 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'
8211 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'
8213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214 hardcode_libdir_separator=:
8217 # hardcode_minus_L: Not really in the search PATH,
8218 # but as the default location of the library.
8219 hardcode_minus_L=yes
8220 export_dynamic_flag_spec='${wl}-E'
8224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8229 if test "$with_gnu_ld" = no; then
8230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8231 hardcode_libdir_separator=:
8234 export_dynamic_flag_spec='${wl}-E'
8236 # hardcode_minus_L: Not really in the search PATH,
8237 # but as the default location of the library.
8238 hardcode_minus_L=yes
8243 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8246 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8258 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8264 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8268 if test "$with_gnu_ld" = no; then
8269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270 hardcode_libdir_separator=:
8274 hardcode_libdir_flag_spec_ld='+b $libdir'
8276 hardcode_shlibpath_var=no
8280 export_dynamic_flag_spec='${wl}-E'
8282 # hardcode_minus_L: Not really in the search PATH,
8283 # but as the default location of the library.
8284 hardcode_minus_L=yes
8290 irix5* | irix6* | nonstopux*)
8291 if test "$GCC" = yes; then
8292 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'
8294 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'
8295 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298 hardcode_libdir_separator=:
8299 link_all_deplibs=yes
8303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8306 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8308 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_shlibpath_var=no
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317 hardcode_libdir_separator=:
8318 hardcode_shlibpath_var=no
8322 if test -f /usr/libexec/ld.so; then
8324 hardcode_shlibpath_var=no
8325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8329 export_dynamic_flag_spec='${wl}-E'
8332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8334 hardcode_libdir_flag_spec='-R$libdir'
8337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8348 hardcode_libdir_flag_spec='-L$libdir'
8349 hardcode_minus_L=yes
8350 allow_undefined_flag=unsupported
8351 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'
8352 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8356 if test "$GCC" = yes; then
8357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8358 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'
8360 allow_undefined_flag=' -expect_unresolved \*'
8361 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'
8363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8364 hardcode_libdir_separator=:
8367 osf4* | osf5*) # as osf3* with the addition of -msym flag
8368 if test "$GCC" = yes; then
8369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8370 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'
8371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373 allow_undefined_flag=' -expect_unresolved \*'
8374 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'
8375 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8376 $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'
8378 # Both c and cxx compiler support -rpath directly
8379 hardcode_libdir_flag_spec='-rpath $libdir'
8381 hardcode_libdir_separator=:
8385 no_undefined_flag=' -z text'
8386 if test "$GCC" = yes; then
8388 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8390 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8397 hardcode_libdir_flag_spec='-R$libdir'
8398 hardcode_shlibpath_var=no
8400 solaris2.[0-5] | solaris2.[0-5].*) ;;
8402 # The compiler driver will combine and reorder linker options,
8403 # but understands `-z linker_flag'. GCC discards it without `$wl',
8404 # but is careful enough not to reorder.
8405 # Supported since Solaris 2.6 (maybe 2.5.1?)
8406 if test "$GCC" = yes; then
8407 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8409 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8413 link_all_deplibs=yes
8417 if test "x$host_vendor" = xsequent; then
8418 # Use $CC to link under sequent, because it throws in some extra .o
8419 # files that make .init and .fini sections work.
8420 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8424 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_minus_L=yes
8427 hardcode_shlibpath_var=no
8431 case $host_vendor in
8433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8434 hardcode_direct=yes # is this really true???
8437 ## LD is ld it makes a PLAMLIB
8438 ## CC just makes a GrossModule.
8439 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8440 reload_cmds='$CC -r -o $output$reload_objs'
8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8448 runpath_var='LD_RUN_PATH'
8449 hardcode_shlibpath_var=no
8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454 hardcode_shlibpath_var=no
8455 export_dynamic_flag_spec='-Bexport'
8459 if test -d /usr/nec; then
8460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461 hardcode_shlibpath_var=no
8462 runpath_var=LD_RUN_PATH
8463 hardcode_runpath_var=yes
8468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8469 no_undefined_flag='${wl}-z,text'
8470 archive_cmds_need_lc=no
8471 hardcode_shlibpath_var=no
8472 runpath_var='LD_RUN_PATH'
8474 if test "$GCC" = yes; then
8475 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 sysv5* | sco3.2v5* | sco5v6*)
8484 # Note: We can NOT use -z defs as we might desire, because we do not
8485 # link with -lc, and that would cause any symbols used from libc to
8486 # always be unresolved, which means just about no library would
8487 # ever link correctly. If we're not using GNU ld we use -z text
8488 # though, which does catch some bad symbols but isn't as heavy-handed
8490 no_undefined_flag='${wl}-z,text'
8491 allow_undefined_flag='${wl}-z,nodefs'
8492 archive_cmds_need_lc=no
8493 hardcode_shlibpath_var=no
8494 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8495 hardcode_libdir_separator=':'
8496 link_all_deplibs=yes
8497 export_dynamic_flag_spec='${wl}-Bexport'
8498 runpath_var='LD_RUN_PATH'
8500 if test "$GCC" = yes; then
8501 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8511 hardcode_libdir_flag_spec='-L$libdir'
8512 hardcode_shlibpath_var=no
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8522 $as_echo "$ld_shlibs" >&6; }
8523 test "$ld_shlibs" = no && can_build_shared=no
8526 # Do we need to explicitly link libc?
8528 case "x$archive_cmds_need_lc" in
8530 # Assume -lc should be added
8531 archive_cmds_need_lc=yes
8533 if test "$enable_shared" = yes && test "$GCC" = yes; then
8534 case $archive_cmds in
8536 # FIXME: we may have to deal with multi-command sequences.
8539 # Test whether the compiler implicitly links with -lc since on some
8540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8541 # to ld, don't add -lc before -lgcc.
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8548 (eval $ac_compile) 2>&5
8550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551 test $ac_status = 0; } 2>conftest.err; then
8554 libobjs=conftest.$ac_objext
8556 wl=$lt_prog_compiler_wl
8557 pic_flag=$lt_prog_compiler_pic
8563 lt_save_allow_undefined_flag=$allow_undefined_flag
8564 allow_undefined_flag=
8565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8566 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8569 test $ac_status = 0; }
8571 archive_cmds_need_lc=no
8573 archive_cmds_need_lc=yes
8575 allow_undefined_flag=$lt_save_allow_undefined_flag
8577 cat conftest.err 1>&5
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8581 $as_echo "$archive_cmds_need_lc" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8589 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8591 libname_spec='lib$name'
8599 shlibpath_overrides_runpath=unknown
8601 dynamic_linker="$host_os ld.so"
8602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8604 if test "$GCC" = yes; then
8606 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8607 *) lt_awk_arg="/^libraries:/" ;;
8609 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8610 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8611 # if the path contains ";" then we assume it to be the separator
8612 # otherwise default to the standard path separator (i.e. ":") - it is
8613 # assumed that no part of a normal pathname contains ";" but that should
8614 # okay in the real world where ";" in dirpaths is itself problematic.
8615 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8617 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8619 # Ok, now we have the path, separated by spaces, we can step through it
8620 # and add multilib dir if necessary.
8621 lt_tmp_lt_search_path_spec=
8622 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8623 for lt_sys_path in $lt_search_path_spec; do
8624 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8627 test -d "$lt_sys_path" && \
8628 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8631 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8632 BEGIN {RS=" "; FS="/|\n";} {
8635 for (lt_i = NF; lt_i > 0; lt_i--) {
8636 if ($lt_i != "" && $lt_i != ".") {
8637 if ($lt_i == "..") {
8640 if (lt_count == 0) {
8641 lt_foo="/" $lt_i lt_foo;
8648 if (lt_foo != "") { lt_freq[lt_foo]++; }
8649 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8651 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8655 need_lib_prefix=unknown
8656 hardcode_into_libs=no
8658 # when you set need_version to no, make sure it does not cause -set_version
8659 # flags to be left without arguments
8660 need_version=unknown
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8666 shlibpath_var=LIBPATH
8668 # AIX 3 has no versioning support, so we append a major version to the name.
8669 soname_spec='${libname}${release}${shared_ext}$major'
8676 hardcode_into_libs=yes
8677 if test "$host_cpu" = ia64; then
8678 # AIX 5 supports IA64
8679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8680 shlibpath_var=LD_LIBRARY_PATH
8682 # With GCC up to 2.95.x, collect2 would create an import file
8683 # for dependence libraries. The import file would start with
8684 # the line `#! .'. This would cause the generated library to
8685 # depend on `.', always an invalid library. This was fixed in
8686 # development snapshots of GCC prior to 3.0.
8688 aix4 | aix4.[01] | aix4.[01].*)
8689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8699 # soname into executable. Probably we can add versioning support to
8700 # collect2, so additional links can be useful in future.
8701 if test "$aix_use_runtimelinking" = yes; then
8702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8703 # instead of lib<name>.a to let people know that these are not
8704 # typical AIX shared libraries.
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 # We preserve .a as extension for shared libraries through AIX4.2
8708 # and later when we are not doing run time linking.
8709 library_names_spec='${libname}${release}.a $libname.a'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8712 shlibpath_var=LIBPATH
8717 library_names_spec='$libname.ixlibrary $libname.a'
8718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8719 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'
8723 library_names_spec='${libname}${shared_ext}'
8724 dynamic_linker="$host_os ld.so"
8725 shlibpath_var=LIBRARY_PATH
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732 soname_spec='${libname}${release}${shared_ext}$major'
8733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8737 # the default ld.so.conf also contains /usr/contrib/lib and
8738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8739 # libtool to hard-code these into programs
8742 cygwin* | mingw* | pw32*)
8743 version_type=windows
8748 case $GCC,$host_os in
8749 yes,cygwin* | yes,mingw* | yes,pw32*)
8750 library_names_spec='$libname.dll.a'
8751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8752 postinstall_cmds='base_file=`basename \${file}`~
8753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8754 dldir=$destdir/`dirname \$dlpath`~
8755 test -d \$dldir || mkdir -p \$dldir~
8756 $install_prog $dir/$dlname \$dldir/$dlname~
8757 chmod a+x \$dldir/$dlname'
8758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8759 dlpath=$dir/\$dldll~
8761 shlibpath_overrides_runpath=yes
8765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8770 # MinGW DLLs use traditional 'lib' prefix
8771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8773 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8774 # It is most probably a Windows format PATH printed by
8775 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8776 # path with ; separators, and with drive letters. We can handle the
8777 # drive letters (cygwin fileutils understands them), so leave them,
8778 # especially as we might pass files found there to a mingw objdump,
8779 # which wouldn't understand a cygwinified path. Ahh.
8780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8786 # pw32 DLLs use 'pw' prefix rather than 'lib'
8787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8796 dynamic_linker='Win32 ld.exe'
8797 # FIXME: first we should search . and the directory the executable is in
8801 darwin* | rhapsody*)
8802 dynamic_linker="$host_os dyld"
8806 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8807 soname_spec='${libname}${release}${major}$shared_ext'
8808 shlibpath_overrides_runpath=yes
8809 shlibpath_var=DYLD_LIBRARY_PATH
8810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 shlibpath_var=LD_LIBRARY_PATH
8829 freebsd* | dragonfly*)
8830 # DragonFly does not have aout. When/if they implement a new
8831 # versioning mechanism, adjust this.
8832 if test -x /usr/bin/objformat; then
8833 objformat=`/usr/bin/objformat`
8836 freebsd[123]*) objformat=aout ;;
8840 version_type=freebsd-$objformat
8841 case $version_type in
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8852 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes
8857 freebsd3.[01]* | freebsdelf3.[01]*)
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863 shlibpath_overrides_runpath=no
8864 hardcode_into_libs=yes
8866 *) # from 4.6 on, and DragonFly
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 hardcode_into_libs=yes
8883 hpux9* | hpux10* | hpux11*)
8884 # Give a soname corresponding to the major version so that dld.sl refuses to
8885 # link against other versions.
8892 hardcode_into_libs=yes
8893 dynamic_linker="$host_os dld.so"
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 if test "X$HPUX_IA64_MODE" = X32; then
8899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8907 hardcode_into_libs=yes
8908 dynamic_linker="$host_os dld.sl"
8909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8918 dynamic_linker="$host_os dld.sl"
8919 shlibpath_var=SHLIB_PATH
8920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926 postinstall_cmds='chmod 555 $lib'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 hardcode_into_libs=yes
8941 irix5* | irix6* | nonstopux*)
8943 nonstopux*) version_type=nonstopux ;;
8945 if test "$lt_cv_prog_gnu_ld" = yes; then
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956 irix5* | nonstopux*)
8960 case $LD in # libtool.m4 will add one of these switches to LD
8961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962 libsuff= shlibsuff= libmagic=32-bit;;
8963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964 libsuff=32 shlibsuff=N32 libmagic=N32;;
8965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967 *) libsuff= shlibsuff= libmagic=never-match;;
8971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972 shlibpath_overrides_runpath=no
8973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975 hardcode_into_libs=yes
8978 # No shared lib support for Linux oldld, aout, or coff.
8979 linux*oldld* | linux*aout* | linux*coff*)
8983 # This must be Linux ELF.
8984 linux* | k*bsd*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 # This implies no fast_install, which is unacceptable.
8994 # Some rework will be needed to allow for fast_install
8995 # before this can be enabled.
8996 hardcode_into_libs=yes
8998 # Append ld.so.conf contents to the search path
8999 if test -f /etc/ld.so.conf; then
9000 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9004 # We used to test for /lib/ld.so.1 and disable shared libraries on
9005 # powerpc, because MkLinux only supported shared libraries with the
9006 # GNU dynamic linker. Since this was broken with cross compilers,
9007 # most powerpc-linux boxes support dynamic linking these days and
9008 # people can always --disable-shared, the test was removed, and we
9009 # assume the GNU/Linux dynamic linker is in use.
9010 dynamic_linker='GNU/Linux ld.so'
9017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020 dynamic_linker='NetBSD (a.out) ld.so'
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 dynamic_linker='NetBSD ld.elf_so'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9050 sys_lib_dlsearch_path_spec="/usr/lib"
9052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9055 *) need_version=no ;;
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9062 openbsd2.[89] | openbsd2.[89].*)
9063 shlibpath_overrides_runpath=no
9066 shlibpath_overrides_runpath=yes
9070 shlibpath_overrides_runpath=yes
9075 libname_spec='$name'
9078 library_names_spec='$libname${shared_ext} $libname.a'
9079 dynamic_linker='OS/2 ld.exe'
9080 shlibpath_var=LIBPATH
9083 osf3* | osf4* | osf5*)
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=yes
9106 hardcode_into_libs=yes
9107 # ldd complains unless libraries are executable
9108 postinstall_cmds='chmod +x $lib'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes
9117 if test "$with_gnu_ld" = yes; then
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 case $host_vendor in
9130 shlibpath_overrides_runpath=no
9132 export_dynamic_flag_spec='${wl}-Blargedynsym'
9133 runpath_var=LD_RUN_PATH
9141 shlibpath_overrides_runpath=no
9142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9148 if test -d /usr/nec ;then
9150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9151 soname_spec='$libname${shared_ext}.$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9157 version_type=freebsd-elf
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 hardcode_into_libs=yes
9164 if test "$with_gnu_ld" = yes; then
9165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9166 shlibpath_overrides_runpath=no
9168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9169 shlibpath_overrides_runpath=yes
9172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9176 sys_lib_dlsearch_path_spec='/usr/lib'
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9191 $as_echo "$dynamic_linker" >&6; }
9192 test "$dynamic_linker" = no && can_build_shared=no
9194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9197 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9200 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9204 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9207 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9210 if test "$GCC" = yes; then
9211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9217 if test -n "$hardcode_libdir_flag_spec" || \
9218 test -n "$runpath_var" || \
9219 test "X$hardcode_automatic" = "Xyes" ; then
9221 # We can hardcode non-existant directories.
9222 if test "$hardcode_direct" != no &&
9223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9224 # have to relink, otherwise we might link with an installed library
9225 # when we should be linking with a yet-to-be-installed one
9226 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9227 test "$hardcode_minus_L" != no; then
9228 # Linking always hardcodes the temporary library directory.
9229 hardcode_action=relink
9231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9232 hardcode_action=immediate
9235 # We cannot hardcode anything, or else we can only hardcode existing
9237 hardcode_action=unsupported
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9240 $as_echo "$hardcode_action" >&6; }
9242 if test "$hardcode_action" = relink; then
9243 # Fast installation is not supported
9244 enable_fast_install=no
9245 elif test "$shlibpath_overrides_runpath" = yes ||
9246 test "$enable_shared" = no; then
9247 # Fast installation is not necessary
9248 enable_fast_install=needless
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9254 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9255 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9259 $as_echo "yes" >&6; }
9261 # FIXME - insert some real tests, host_os isn't really good enough
9264 if test -n "$STRIP" ; then
9265 striplib="$STRIP -x"
9266 old_striplib="$STRIP -S"
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9268 $as_echo "yes" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9281 if test "x$enable_dlopen" != xyes; then
9282 enable_dlopen=unknown
9283 enable_dlopen_self=unknown
9284 enable_dlopen_self_static=unknown
9291 lt_cv_dlopen="load_add_on"
9293 lt_cv_dlopen_self=yes
9297 lt_cv_dlopen="LoadLibrary"
9302 lt_cv_dlopen="dlopen"
9307 # if libdl is installed we need to link against it
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9309 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9313 ac_check_lib_save_LIBS=$LIBS
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9333 if ac_fn_c_try_link "$LINENO"; then :
9334 ac_cv_lib_dl_dlopen=yes
9336 ac_cv_lib_dl_dlopen=no
9338 rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340 LIBS=$ac_check_lib_save_LIBS
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9344 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9350 lt_cv_dlopen_self=yes
9357 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9358 if test "x$ac_cv_func_shl_load" = x""yes; then :
9359 lt_cv_dlopen="shl_load"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9362 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9366 ac_check_lib_save_LIBS=$LIBS
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9386 if ac_fn_c_try_link "$LINENO"; then :
9387 ac_cv_lib_dld_shl_load=yes
9389 ac_cv_lib_dld_shl_load=no
9391 rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9396 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9397 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9398 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9400 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9401 if test "x$ac_cv_func_dlopen" = x""yes; then :
9402 lt_cv_dlopen="dlopen"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9409 ac_check_lib_save_LIBS=$LIBS
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 ac_cv_lib_dl_dlopen=yes
9432 ac_cv_lib_dl_dlopen=no
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9439 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9440 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9444 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9445 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9448 ac_check_lib_save_LIBS=$LIBS
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9468 if ac_fn_c_try_link "$LINENO"; then :
9469 ac_cv_lib_svld_dlopen=yes
9471 ac_cv_lib_svld_dlopen=no
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9487 ac_check_lib_save_LIBS=$LIBS
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 ac_cv_lib_dld_dld_link=yes
9510 ac_cv_lib_dld_dld_link=no
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_lib_save_LIBS
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9517 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9518 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9540 if test "x$lt_cv_dlopen" != xno; then
9546 case $lt_cv_dlopen in
9548 save_CPPFLAGS="$CPPFLAGS"
9549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9551 save_LDFLAGS="$LDFLAGS"
9552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9555 LIBS="$lt_cv_dlopen_libs $LIBS"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9558 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9559 if test "${lt_cv_dlopen_self+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9562 if test "$cross_compiling" = yes; then :
9563 lt_cv_dlopen_self=cross
9565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9566 lt_status=$lt_dlunknown
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9578 # define LT_DLGLOBAL RTLD_GLOBAL
9581 # define LT_DLGLOBAL DL_GLOBAL
9583 # define LT_DLGLOBAL 0
9587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9588 find out it does not work in some platform. */
9589 #ifndef LT_DLLAZY_OR_NOW
9591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9594 # define LT_DLLAZY_OR_NOW DL_LAZY
9597 # define LT_DLLAZY_OR_NOW RTLD_NOW
9600 # define LT_DLLAZY_OR_NOW DL_NOW
9602 # define LT_DLLAZY_OR_NOW 0
9610 extern "C" void exit (int);
9613 void fnord() { int i=42;}
9616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9617 int status = $lt_dlunknown;
9621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9623 /* dlclose (self); */
9631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9632 (eval $ac_link) 2>&5
9634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9635 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9636 (./conftest; exit; ) >&5 2>/dev/null
9639 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9640 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9641 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9644 # compilation failed
9645 lt_cv_dlopen_self=no
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9653 $as_echo "$lt_cv_dlopen_self" >&6; }
9655 if test "x$lt_cv_dlopen_self" = xyes; then
9656 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9658 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9659 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9662 if test "$cross_compiling" = yes; then :
9663 lt_cv_dlopen_self_static=cross
9665 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9666 lt_status=$lt_dlunknown
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9668 "configure"
9669 #include "confdefs.h"
9678 # define LT_DLGLOBAL RTLD_GLOBAL
9681 # define LT_DLGLOBAL DL_GLOBAL
9683 # define LT_DLGLOBAL 0
9687 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9688 find out it does not work in some platform. */
9689 #ifndef LT_DLLAZY_OR_NOW
9691 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9694 # define LT_DLLAZY_OR_NOW DL_LAZY
9697 # define LT_DLLAZY_OR_NOW RTLD_NOW
9700 # define LT_DLLAZY_OR_NOW DL_NOW
9702 # define LT_DLLAZY_OR_NOW 0
9710 extern "C" void exit (int);
9713 void fnord() { int i=42;}
9716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9717 int status = $lt_dlunknown;
9721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9722 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9723 /* dlclose (self); */
9731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9732 (eval $ac_link) 2>&5
9734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9736 (./conftest; exit; ) >&5 2>/dev/null
9739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9741 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9744 # compilation failed
9745 lt_cv_dlopen_self_static=no
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9753 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9756 CPPFLAGS="$save_CPPFLAGS"
9757 LDFLAGS="$save_LDFLAGS"
9762 case $lt_cv_dlopen_self in
9763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9764 *) enable_dlopen_self=unknown ;;
9767 case $lt_cv_dlopen_self_static in
9768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9769 *) enable_dlopen_self_static=unknown ;;
9774 # Report which library types will actually be built
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9776 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9778 $as_echo "$can_build_shared" >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9781 $as_echo_n "checking whether to build shared libraries... " >&6; }
9782 test "$can_build_shared" = "no" && enable_shared=no
9784 # On AIX, shared libraries and static libraries use the same namespace, and
9785 # are all built from PIC.
9788 test "$enable_shared" = yes && enable_static=no
9789 if test -n "$RANLIB"; then
9790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9791 postinstall_cmds='$RANLIB $lib'
9796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9797 test "$enable_shared" = yes && enable_static=no
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9802 $as_echo "$enable_shared" >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9805 $as_echo_n "checking whether to build static libraries... " >&6; }
9806 # Make sure either enable_shared or enable_static is yes.
9807 test "$enable_shared" = yes || enable_static=yes
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9809 $as_echo "$enable_static" >&6; }
9811 # The else clause should only fire when bootstrapping the
9812 # libtool distribution, otherwise you forgot to ship ltmain.sh
9813 # with your package, and you will get complaints that there are
9814 # no rules to generate ltmain.sh.
9815 if test -f "$ltmain"; then
9816 # See if we are running on zsh, and set the options which allow our commands through
9817 # without removal of \ escapes.
9818 if test -n "${ZSH_VERSION+set}" ; then
9819 setopt NO_GLOB_SUBST
9821 # Now quote all the things that may contain metacharacters while being
9822 # careful not to overquote the AC_SUBSTed values. We take copies of the
9823 # variables and quote the copies for generation of the libtool script.
9824 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9826 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9827 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9828 deplibs_check_method reload_flag reload_cmds need_locks \
9829 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9830 lt_cv_sys_global_symbol_to_c_name_address \
9831 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9832 old_postinstall_cmds old_postuninstall_cmds \
9836 lt_prog_compiler_wl \
9837 lt_prog_compiler_pic \
9838 lt_prog_compiler_static \
9839 lt_prog_compiler_no_builtin_flag \
9840 export_dynamic_flag_spec \
9841 thread_safe_flag_spec \
9842 whole_archive_flag_spec \
9843 enable_shared_with_static_runtimes \
9845 old_archive_from_new_cmds \
9850 compiler_lib_search_path \
9851 compiler_lib_search_dirs \
9853 archive_expsym_cmds \
9855 postuninstall_cmds \
9856 old_archive_from_expsyms_cmds \
9857 allow_undefined_flag \
9859 export_symbols_cmds \
9860 hardcode_libdir_flag_spec \
9861 hardcode_libdir_flag_spec_ld \
9862 hardcode_libdir_separator \
9863 hardcode_automatic \
9865 module_expsym_cmds \
9866 lt_cv_prog_compiler_c_o \
9872 old_archive_cmds | \
9873 old_archive_from_new_cmds | \
9875 archive_expsym_cmds | \
9877 module_expsym_cmds | \
9878 old_archive_from_expsyms_cmds | \
9879 export_symbols_cmds | \
9880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9881 postinstall_cmds | postuninstall_cmds | \
9882 old_postinstall_cmds | old_postuninstall_cmds | \
9883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9884 # Double-quote double-evaled strings.
9885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9894 *'\$0 --fallback-echo"')
9895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9903 $as_echo "$as_me: creating $ofile" >&6;}
9905 cat <<__EOF__ >> "$cfgfile"
9908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9913 # Free Software Foundation, Inc.
9915 # This file is part of GNU Libtool:
9916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9918 # This program is free software; you can redistribute it and/or modify
9919 # it under the terms of the GNU General Public License as published by
9920 # the Free Software Foundation; either version 2 of the License, or
9921 # (at your option) any later version.
9923 # This program is distributed in the hope that it will be useful, but
9924 # WITHOUT ANY WARRANTY; without even the implied warranty of
9925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9926 # General Public License for more details.
9928 # You should have received a copy of the GNU General Public License
9929 # along with this program; if not, write to the Free Software
9930 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9932 # As a special exception to the GNU General Public License, if you
9933 # distribute this file as part of a program that contains a
9934 # configuration script generated by Autoconf, you may include it under
9935 # the same distribution terms that you use for the rest of that program.
9937 # A sed program that does not truncate output.
9940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9941 Xsed="$SED -e 1s/^X//"
9943 # The HP-UX ksh and POSIX shell print the target directory to stdout
9945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9947 # The names of the tagged configurations supported by this script.
9950 # ### BEGIN LIBTOOL CONFIG
9952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9954 # Shell to use when invoking shell scripts.
9957 # Whether or not to build shared libraries.
9958 build_libtool_libs=$enable_shared
9960 # Whether or not to build static libraries.
9961 build_old_libs=$enable_static
9963 # Whether or not to add -lc for building shared libraries.
9964 build_libtool_need_lc=$archive_cmds_need_lc
9966 # Whether or not to disallow shared libs when runtime libs are static
9967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9969 # Whether or not to optimize for fast installation.
9970 fast_install=$enable_fast_install
9973 host_alias=$host_alias
9978 build_alias=$build_alias
9982 # An echo program that does not interpret backslashes.
9987 AR_FLAGS=$lt_AR_FLAGS
9992 # LTCC compiler flags.
9993 LTCFLAGS=$lt_LTCFLAGS
9995 # A language-specific compiler.
9998 # Is the compiler the GNU C compiler?
10004 # The linker used to build libraries.
10007 # Whether we need hard or soft links.
10010 # A BSD-compatible nm program.
10013 # A symbol stripping program
10016 # Used to examine libraries when file_magic_cmd begins "file"
10017 MAGIC_CMD=$MAGIC_CMD
10019 # Used on cygwin: DLL creation program.
10022 # Used on cygwin: object dumper.
10025 # Used on cygwin: assembler.
10028 # The name of the directory that contains temporary libtool files.
10031 # How to create reloadable object files.
10032 reload_flag=$lt_reload_flag
10033 reload_cmds=$lt_reload_cmds
10035 # How to pass a linker flag through the compiler.
10036 wl=$lt_lt_prog_compiler_wl
10038 # Object file suffix (normally "o").
10039 objext="$ac_objext"
10041 # Old archive suffix (normally "a").
10044 # Shared library suffix (normally ".so").
10045 shrext_cmds='$shrext_cmds'
10047 # Executable file suffix (normally "").
10050 # Additional compiler flags for building library objects.
10051 pic_flag=$lt_lt_prog_compiler_pic
10054 # What is the maximum length of a command?
10055 max_cmd_len=$lt_cv_sys_max_cmd_len
10057 # Does compiler simultaneously support -c and -o options?
10058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10060 # Must we lock files when doing compilation?
10061 need_locks=$lt_need_locks
10063 # Do we need the lib prefix for modules?
10064 need_lib_prefix=$need_lib_prefix
10066 # Do we need a version for libraries?
10067 need_version=$need_version
10069 # Whether dlopen is supported.
10070 dlopen_support=$enable_dlopen
10072 # Whether dlopen of programs is supported.
10073 dlopen_self=$enable_dlopen_self
10075 # Whether dlopen of statically linked programs is supported.
10076 dlopen_self_static=$enable_dlopen_self_static
10078 # Compiler flag to prevent dynamic linking.
10079 link_static_flag=$lt_lt_prog_compiler_static
10081 # Compiler flag to turn off builtin functions.
10082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10084 # Compiler flag to allow reflexive dlopens.
10085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10087 # Compiler flag to generate shared objects directly from archives.
10088 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10090 # Compiler flag to generate thread-safe objects.
10091 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10093 # Library versioning type.
10094 version_type=$version_type
10096 # Format of library name prefix.
10097 libname_spec=$lt_libname_spec
10099 # List of archive names. First name is the real one, the rest are links.
10100 # The last name is the one that the linker finds with -lNAME.
10101 library_names_spec=$lt_library_names_spec
10103 # The coded name of the library, if different from the real name.
10104 soname_spec=$lt_soname_spec
10106 # Commands used to build and install an old-style archive.
10108 old_archive_cmds=$lt_old_archive_cmds
10109 old_postinstall_cmds=$lt_old_postinstall_cmds
10110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10112 # Create an old-style archive from a shared archive.
10113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10115 # Create a temporary old-style archive to link instead of a shared archive.
10116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10118 # Commands used to build and install a shared archive.
10119 archive_cmds=$lt_archive_cmds
10120 archive_expsym_cmds=$lt_archive_expsym_cmds
10121 postinstall_cmds=$lt_postinstall_cmds
10122 postuninstall_cmds=$lt_postuninstall_cmds
10124 # Commands used to build a loadable module (assumed same as above if empty)
10125 module_cmds=$lt_module_cmds
10126 module_expsym_cmds=$lt_module_expsym_cmds
10128 # Commands to strip libraries.
10129 old_striplib=$lt_old_striplib
10130 striplib=$lt_striplib
10132 # Dependencies to place before the objects being linked to create a
10134 predep_objects=$lt_predep_objects
10136 # Dependencies to place after the objects being linked to create a
10138 postdep_objects=$lt_postdep_objects
10140 # Dependencies to place before the objects being linked to create a
10142 predeps=$lt_predeps
10144 # Dependencies to place after the objects being linked to create a
10146 postdeps=$lt_postdeps
10148 # The directories searched by this compiler when creating a shared
10150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10152 # The library search path used internally by the compiler when linking
10153 # a shared library.
10154 compiler_lib_search_path=$lt_compiler_lib_search_path
10156 # Method to check whether dependent libraries are shared objects.
10157 deplibs_check_method=$lt_deplibs_check_method
10159 # Command to use when deplibs_check_method == file_magic.
10160 file_magic_cmd=$lt_file_magic_cmd
10162 # Flag that allows shared libraries with undefined symbols to be built.
10163 allow_undefined_flag=$lt_allow_undefined_flag
10165 # Flag that forces no undefined symbols.
10166 no_undefined_flag=$lt_no_undefined_flag
10168 # Commands used to finish a libtool library installation in a directory.
10169 finish_cmds=$lt_finish_cmds
10171 # Same as above, but a single script fragment to be evaled but not shown.
10172 finish_eval=$lt_finish_eval
10174 # Take the output of nm and produce a listing of raw symbols and C names.
10175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10177 # Transform the output of nm in a proper C declaration
10178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10180 # Transform the output of nm in a C name address pair
10181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10183 # This is the shared library runtime path variable.
10184 runpath_var=$runpath_var
10186 # This is the shared library path variable.
10187 shlibpath_var=$shlibpath_var
10189 # Is shlibpath searched before the hard-coded library search path?
10190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10192 # How to hardcode a shared library path into an executable.
10193 hardcode_action=$hardcode_action
10195 # Whether we should hardcode library paths into libraries.
10196 hardcode_into_libs=$hardcode_into_libs
10198 # Flag to hardcode \$libdir into a binary during linking.
10199 # This must work even if \$libdir does not exist.
10200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10202 # If ld is used when linking, flag to hardcode \$libdir into
10203 # a binary during linking. This must work even if \$libdir does
10205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10207 # Whether we need a single -rpath flag with a separated argument.
10208 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10211 # resulting binary.
10212 hardcode_direct=$hardcode_direct
10214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10215 # resulting binary.
10216 hardcode_minus_L=$hardcode_minus_L
10218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10219 # the resulting binary.
10220 hardcode_shlibpath_var=$hardcode_shlibpath_var
10222 # Set to yes if building a shared library automatically hardcodes DIR into the library
10223 # and all subsequent libraries and executables linked against it.
10224 hardcode_automatic=$hardcode_automatic
10226 # Variables whose values should be saved in libtool wrapper scripts and
10227 # restored at relink time.
10228 variables_saved_for_relink="$variables_saved_for_relink"
10230 # Whether libtool must link a program against all its dependency libraries.
10231 link_all_deplibs=$link_all_deplibs
10233 # Compile-time system search path for libraries
10234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10236 # Run-time system search path for libraries
10237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10239 # Fix the shell variable \$srcfile for the compiler.
10240 fix_srcfile_path=$lt_fix_srcfile_path
10242 # Set to yes if exported symbols are required.
10243 always_export_symbols=$always_export_symbols
10245 # The commands to list exported symbols.
10246 export_symbols_cmds=$lt_export_symbols_cmds
10248 # The commands to extract the exported symbol list from a shared archive.
10249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10251 # Symbols that should not be listed in the preloaded symbols.
10252 exclude_expsyms=$lt_exclude_expsyms
10254 # Symbols that must always be exported.
10255 include_expsyms=$lt_include_expsyms
10257 # ### END LIBTOOL CONFIG
10264 cat <<\EOF >> "$cfgfile"
10266 # AIX sometimes has problems with the GCC collect2 program. For some
10267 # reason, if we set the COLLECT_NAMES environment variable, the problems
10268 # vanish in a puff of smoke.
10269 if test "X${COLLECT_NAMES+set}" != Xset; then
10271 export COLLECT_NAMES
10277 # We use sed instead of cat because bash on DJGPP gets confused if
10278 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10279 # text mode, it properly converts lines to CR/LF. This bash problem
10280 # is reportedly fixed, but why not run on old versions too?
10281 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10283 mv -f "$cfgfile" "$ofile" || \
10284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10288 # If there is no Makefile yet, we rely on a make rule to execute
10289 # `config.status --recheck' to rerun these tests and create the
10290 # libtool script then.
10291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10292 if test -f "$ltmain_in"; then
10293 test -f Makefile && make "$ltmain"
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307 # Check whether --with-tags was given.
10308 if test "${with_tags+set}" = set; then :
10309 withval=$with_tags; tagnames="$withval"
10313 if test -f "$ltmain" && test -n "$tagnames"; then
10314 if test ! -f "${ofile}"; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10316 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10319 if test -z "$LTCC"; then
10320 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10321 if test -z "$LTCC"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10323 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10326 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10329 if test -z "$LTCFLAGS"; then
10330 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10333 # Extract list of available tagged configurations in $ofile.
10334 # Note that this assumes the entire list is on one line.
10335 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10338 for tagname in $tagnames; do
10340 # Check whether tagname contains only valid characters
10341 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10343 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10347 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10349 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10352 # Update the list of available tags.
10353 if test -n "$tagname"; then
10354 echo appending configuration tag \"$tagname\" to $ofile
10358 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10359 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10360 (test "X$CXX" != "Xg++"))) ; then
10362 ac_cpp='$CXXCPP $CPPFLAGS'
10363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10370 archive_cmds_need_lc_CXX=no
10371 allow_undefined_flag_CXX=
10372 always_export_symbols_CXX=no
10373 archive_expsym_cmds_CXX=
10374 export_dynamic_flag_spec_CXX=
10375 hardcode_direct_CXX=no
10376 hardcode_libdir_flag_spec_CXX=
10377 hardcode_libdir_flag_spec_ld_CXX=
10378 hardcode_libdir_separator_CXX=
10379 hardcode_minus_L_CXX=no
10380 hardcode_shlibpath_var_CXX=unsupported
10381 hardcode_automatic_CXX=no
10383 module_expsym_cmds_CXX=
10384 link_all_deplibs_CXX=unknown
10385 old_archive_cmds_CXX=$old_archive_cmds
10386 no_undefined_flag_CXX=
10387 whole_archive_flag_spec_CXX=
10388 enable_shared_with_static_runtimes_CXX=no
10390 # Dependencies to place before and after the object being linked:
10391 predep_objects_CXX=
10392 postdep_objects_CXX=
10395 compiler_lib_search_path_CXX=
10396 compiler_lib_search_dirs_CXX=
10398 # Source file extension for C++ test sources.
10401 # Object file extension for compiled C++ test sources.
10405 # Code to be used in simple compile tests
10406 lt_simple_compile_test_code="int some_variable = 0;"
10408 # Code to be used in simple link tests
10409 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10413 # If no C compiler was specified, use CC.
10416 # If no C compiler flags were specified, use CFLAGS.
10417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10419 # Allow CC to be a program name with arguments.
10423 # save warnings/boilerplate of simple test code
10424 ac_outfile=conftest.$ac_objext
10425 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10427 _lt_compiler_boilerplate=`cat conftest.err`
10430 ac_outfile=conftest.$ac_objext
10431 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10433 _lt_linker_boilerplate=`cat conftest.err`
10437 # Allow CC to be a program name with arguments.
10442 lt_save_with_gnu_ld=$with_gnu_ld
10443 lt_save_path_LD=$lt_cv_path_LD
10444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10445 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10447 $as_unset lt_cv_prog_gnu_ld
10449 if test -n "${lt_cv_path_LDCXX+set}"; then
10450 lt_cv_path_LD=$lt_cv_path_LDCXX
10452 $as_unset lt_cv_path_LD
10454 test -z "${LDCXX+set}" || LD=$LDCXX
10458 for cc_temp in $compiler""; do
10460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10469 # We don't want -fno-exception wen compiling C++ code, so set the
10470 # no_builtin_flag separately
10471 if test "$GXX" = yes; then
10472 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10474 lt_prog_compiler_no_builtin_flag_CXX=
10477 if test "$GXX" = yes; then
10478 # Set up default GNU C++ configuration
10481 # Check whether --with-gnu-ld was given.
10482 if test "${with_gnu_ld+set}" = set; then :
10483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10489 if test "$GCC" = yes; then
10490 # Check if gcc -print-prog-name=ld gives a path.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10492 $as_echo_n "checking for ld used by $CC... " >&6; }
10495 # gcc leaves a trailing carriage return which upsets mingw
10496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10501 # Accept absolute paths.
10503 re_direlt='/[^/][^/]*/\.\./'
10504 # Canonicalize the pathname of ld
10505 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10506 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10507 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10509 test -z "$LD" && LD="$ac_prog"
10512 # If it fails, then pretend we aren't using GCC.
10516 # If it is relative, then search for the first ld in PATH.
10517 with_gnu_ld=unknown
10520 elif test "$with_gnu_ld" = yes; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10522 $as_echo_n "checking for GNU ld... " >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10525 $as_echo_n "checking for non-GNU ld... " >&6; }
10527 if test "${lt_cv_path_LD+set}" = set; then :
10528 $as_echo_n "(cached) " >&6
10530 if test -z "$LD"; then
10531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10532 for ac_dir in $PATH; do
10534 test -z "$ac_dir" && ac_dir=.
10535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10536 lt_cv_path_LD="$ac_dir/$ac_prog"
10537 # Check to see if the program is GNU ld. I'd rather use --version,
10538 # but apparently some variants of GNU ld only accept -v.
10539 # Break only if it was the GNU/non-GNU ld that we prefer.
10540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10541 *GNU* | *'with BFD'*)
10542 test "$with_gnu_ld" != no && break
10545 test "$with_gnu_ld" != yes && break
10552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10556 LD="$lt_cv_path_LD"
10557 if test -n "$LD"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10559 $as_echo "$LD" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10564 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10567 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
10570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10571 case `$LD -v 2>&1 </dev/null` in
10572 *GNU* | *'with BFD'*)
10573 lt_cv_prog_gnu_ld=yes
10576 lt_cv_prog_gnu_ld=no
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10582 with_gnu_ld=$lt_cv_prog_gnu_ld
10586 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10587 # archiving commands below assume that GNU ld is being used.
10588 if test "$with_gnu_ld" = yes; then
10589 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10590 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'
10592 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10595 # If archive_cmds runs LD, not CC, wlarc should be empty
10596 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10597 # investigate it a little bit more. (MM)
10600 # ancient GNU ld didn't support --whole-archive et. al.
10601 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10602 grep 'no-whole-archive' > /dev/null; then
10603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10605 whole_archive_flag_spec_CXX=
10611 # A generic and very simple default shared library creation
10612 # command for GNU C++ for the case where it uses the native
10613 # linker, instead of GNU ld. If possible, this setting should
10614 # overridden to take advantage of the native linker features on
10615 # the platform it is being used on.
10616 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10619 # Commands to make compiler produce verbose output that lists
10620 # what "hidden" libraries, object files and flags are used when
10621 # linking a shared library.
10622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10630 # PORTME: fill in a description of your system's C++ link characteristics
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10632 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10636 # FIXME: insert proper C++ library support
10640 if test "$host_cpu" = ia64; then
10641 # On IA64, the linker does run time linking by default, so we don't
10642 # have to do anything special.
10643 aix_use_runtimelinking=no
10644 exp_sym_flag='-Bexport'
10647 aix_use_runtimelinking=no
10649 # Test if we are trying to use run time linking or normal
10650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10651 # need to do runtime linking.
10652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10653 for ld_flag in $LDFLAGS; do
10656 aix_use_runtimelinking=yes
10664 exp_sym_flag='-bexport'
10665 no_entry_flag='-bnoentry'
10668 # When large executables or shared objects are built, AIX ld can
10669 # have problems creating the table of contents. If linking a library
10670 # or program results in "error TOC overflow" add -mminimal-toc to
10671 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10672 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10674 archive_cmds_CXX=''
10675 hardcode_direct_CXX=yes
10676 hardcode_libdir_separator_CXX=':'
10677 link_all_deplibs_CXX=yes
10679 if test "$GXX" = yes; then
10680 case $host_os in aix4.[012]|aix4.[012].*)
10681 # We only want to do this on AIX 4.2 and lower, the check
10682 # below for broken collect2 doesn't work under 4.3+
10683 collect2name=`${CC} -print-prog-name=collect2`
10684 if test -f "$collect2name" && \
10685 strings "$collect2name" | grep resolve_lib_name >/dev/null
10687 # We have reworked collect2
10690 # We have old collect2
10691 hardcode_direct_CXX=unsupported
10692 # It fails to find uninstalled libraries when the uninstalled
10693 # path is not listed in the libpath. Setting hardcode_minus_L
10694 # to unsupported forces relinking
10695 hardcode_minus_L_CXX=yes
10696 hardcode_libdir_flag_spec_CXX='-L$libdir'
10697 hardcode_libdir_separator_CXX=
10701 shared_flag='-shared'
10702 if test "$aix_use_runtimelinking" = yes; then
10703 shared_flag="$shared_flag "'${wl}-G'
10707 if test "$host_cpu" = ia64; then
10708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10709 # chokes on -Wl,-G. The following line is correct:
10712 if test "$aix_use_runtimelinking" = yes; then
10713 shared_flag='${wl}-G'
10715 shared_flag='${wl}-bM:SRE'
10720 # It seems that -bexpall does not export symbols beginning with
10721 # underscore (_), so it is better to generate a list of symbols to export.
10722 always_export_symbols_CXX=yes
10723 if test "$aix_use_runtimelinking" = yes; then
10724 # Warning - without using the other runtime loading flags (-brtl),
10725 # -berok will link without error, but may produce a broken library.
10726 allow_undefined_flag_CXX='-berok'
10727 # Determine the default libpath from the value encoded in an empty executable.
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10739 if ac_fn_cxx_try_link "$LINENO"; then :
10741 lt_aix_libpath_sed='
10742 /Import File Strings/,/^$/ {
10748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749 # Check for a 64-bit object if we didn't find anything.
10750 if test -z "$aix_libpath"; then
10751 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10760 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"
10762 if test "$host_cpu" = ia64; then
10763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10764 allow_undefined_flag_CXX="-z nodefs"
10765 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"
10767 # Determine the default libpath from the value encoded in an empty executable.
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10779 if ac_fn_cxx_try_link "$LINENO"; then :
10781 lt_aix_libpath_sed='
10782 /Import File Strings/,/^$/ {
10788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 # Check for a 64-bit object if we didn't find anything.
10790 if test -z "$aix_libpath"; then
10791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10798 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10799 # Warning - without using the other run time loading flags,
10800 # -berok will link without error, but may produce a broken library.
10801 no_undefined_flag_CXX=' ${wl}-bernotok'
10802 allow_undefined_flag_CXX=' ${wl}-berok'
10803 # Exported symbols can be pulled into shared objects from archives
10804 whole_archive_flag_spec_CXX='$convenience'
10805 archive_cmds_need_lc_CXX=yes
10806 # This is similar to how AIX traditionally builds its shared libraries.
10807 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'
10813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10814 allow_undefined_flag_CXX=unsupported
10815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10816 # support --undefined. This deserves some investigation. FIXME
10817 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10824 case $cc_basename in
10826 # FIXME: insert proper C++ library support
10832 cygwin* | mingw* | pw32*)
10833 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10834 # as there is no search path for DLLs.
10835 hardcode_libdir_flag_spec_CXX='-L$libdir'
10836 allow_undefined_flag_CXX=unsupported
10837 always_export_symbols_CXX=no
10838 enable_shared_with_static_runtimes_CXX=yes
10840 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10841 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'
10842 # If the export-symbols file already is a .def file (1st line
10843 # is EXPORTS), use it as is; otherwise, prepend...
10844 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10845 cp $export_symbols $output_objdir/$soname.def;
10847 echo EXPORTS > $output_objdir/$soname.def;
10848 cat $export_symbols >> $output_objdir/$soname.def;
10850 $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'
10855 darwin* | rhapsody*)
10856 archive_cmds_need_lc_CXX=no
10857 hardcode_direct_CXX=no
10858 hardcode_automatic_CXX=yes
10859 hardcode_shlibpath_var_CXX=unsupported
10860 whole_archive_flag_spec_CXX=''
10861 link_all_deplibs_CXX=yes
10862 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10863 if test "$GXX" = yes ; then
10864 output_verbose_link_cmd='echo'
10865 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10866 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10867 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10868 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10869 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10870 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10871 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10874 case $cc_basename in
10876 output_verbose_link_cmd='echo'
10877 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10878 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10880 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10881 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}'
10891 case $cc_basename in
10893 # FIXME: insert proper C++ library support
10897 # Green Hills C++ Compiler
10898 # FIXME: insert proper C++ library support
10902 # FIXME: insert proper C++ library support
10908 # C++ shared libraries reported to be fairly broken before switch to ELF
10912 archive_cmds_need_lc_CXX=no
10914 freebsd* | dragonfly*)
10915 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10923 hardcode_libdir_separator_CXX=:
10924 export_dynamic_flag_spec_CXX='${wl}-E'
10925 hardcode_direct_CXX=yes
10926 hardcode_minus_L_CXX=yes # Not in the search PATH,
10927 # but as the default
10928 # location of the library.
10930 case $cc_basename in
10932 # FIXME: insert proper C++ library support
10936 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'
10937 # Commands to make compiler produce verbose output that lists
10938 # what "hidden" libraries, object files and flags are used when
10939 # linking a shared library.
10941 # There doesn't appear to be a way to prevent this compiler from
10942 # explicitly linking system object files so we need to strip them
10943 # from the output so that they don't get included in the library
10945 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'
10948 if test "$GXX" = yes; then
10949 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'
10951 # FIXME: insert proper C++ library support
10958 if test $with_gnu_ld = no; then
10959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10960 hardcode_libdir_separator_CXX=:
10965 export_dynamic_flag_spec_CXX='${wl}-E'
10971 hardcode_direct_CXX=no
10972 hardcode_shlibpath_var_CXX=no
10975 hardcode_direct_CXX=yes
10976 hardcode_minus_L_CXX=yes # Not in the search PATH,
10977 # but as the default
10978 # location of the library.
10982 case $cc_basename in
10984 # FIXME: insert proper C++ library support
10990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10999 # Commands to make compiler produce verbose output that lists
11000 # what "hidden" libraries, object files and flags are used when
11001 # linking a shared library.
11003 # There doesn't appear to be a way to prevent this compiler from
11004 # explicitly linking system object files so we need to strip them
11005 # from the output so that they don't get included in the library
11007 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'
11010 if test "$GXX" = yes; then
11011 if test $with_gnu_ld = no; then
11014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11020 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'
11025 # FIXME: insert proper C++ library support
11032 hardcode_direct_CXX=no
11033 hardcode_shlibpath_var_CXX=no
11034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11035 export_dynamic_flag_spec_CXX='${wl}-E'
11036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11037 # Instead, shared libraries are loaded at an image base (0x10000000 by
11038 # default) and relocated if they conflict, which is a slow very memory
11039 # consuming and fragmenting process. To avoid this, we pick a random,
11040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11042 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'
11043 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'
11046 case $cc_basename in
11049 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'
11051 # Archives containing C++ object files must be created using
11052 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11053 # necessary to make sure instantiated templates are included
11055 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11058 if test "$GXX" = yes; then
11059 if test "$with_gnu_ld" = no; then
11060 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'
11062 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'
11065 link_all_deplibs_CXX=yes
11068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11069 hardcode_libdir_separator_CXX=:
11071 linux* | k*bsd*-gnu)
11072 case $cc_basename in
11074 # Kuck and Associates, Inc. (KAI) C++ Compiler
11076 # KCC will only create a shared library if the output file
11077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11078 # to its proper name (with version) after linking.
11079 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'
11080 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'
11081 # Commands to make compiler produce verbose output that lists
11082 # what "hidden" libraries, object files and flags are used when
11083 # linking a shared library.
11085 # There doesn't appear to be a way to prevent this compiler from
11086 # explicitly linking system object files so we need to strip them
11087 # from the output so that they don't get included in the library
11089 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'
11091 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11094 # Archives containing C++ object files must be created using
11095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11096 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11101 # version 8.0 and above of icpc choke on multiply defined symbols
11102 # if we add $predep_objects and $postdep_objects, however 7.1 and
11103 # earlier do not add the objects themselves.
11104 case `$CC -V 2>&1` in
11106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107 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'
11109 *) # Version 8.0 or newer
11112 ia64*) tmp_idyn=' -i_dynamic';;
11114 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 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'
11118 archive_cmds_need_lc_CXX=no
11119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11124 # Portland Group C++ compiler
11125 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11126 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'
11128 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11130 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'
11134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135 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'
11137 runpath_var=LD_RUN_PATH
11138 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11139 hardcode_libdir_separator_CXX=:
11141 # Commands to make compiler produce verbose output that lists
11142 # what "hidden" libraries, object files and flags are used when
11143 # linking a shared library.
11145 # There doesn't appear to be a way to prevent this compiler from
11146 # explicitly linking system object files so we need to strip them
11147 # from the output so that they don't get included in the library
11149 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'
11152 case `$CC -V 2>&1 | sed 5q` in
11155 no_undefined_flag_CXX=' -zdefs'
11156 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11157 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11158 hardcode_libdir_flag_spec_CXX='-R$libdir'
11159 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11161 # Not sure whether something based on
11162 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11164 output_verbose_link_cmd='echo'
11166 # Archives containing C++ object files must be created using
11167 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11168 # necessary to make sure instantiated templates are included
11170 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11177 # FIXME: insert proper C++ library support
11181 # FIXME: insert proper C++ library support
11185 case $cc_basename in
11187 # FIXME: insert proper C++ library support
11191 # FIXME: insert proper C++ library support
11197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11198 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11200 hardcode_libdir_flag_spec_CXX='-R$libdir'
11201 hardcode_direct_CXX=yes
11202 hardcode_shlibpath_var_CXX=no
11204 # Workaround some broken pre-1.5 toolchains
11205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11208 # C++ shared libraries are fairly broken
11212 if test -f /usr/libexec/ld.so; then
11213 hardcode_direct_CXX=yes
11214 hardcode_shlibpath_var_CXX=no
11215 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11218 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11219 export_dynamic_flag_spec_CXX='${wl}-E'
11220 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11222 output_verbose_link_cmd='echo'
11228 case $cc_basename in
11230 # Kuck and Associates, Inc. (KAI) C++ Compiler
11232 # KCC will only create a shared library if the output file
11233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11234 # to its proper name (with version) after linking.
11235 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'
11237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11238 hardcode_libdir_separator_CXX=:
11240 # Archives containing C++ object files must be created using
11241 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11242 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11246 # Rational C++ 2.4.1
11247 # FIXME: insert proper C++ library support
11251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11252 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'
11254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11255 hardcode_libdir_separator_CXX=:
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11265 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'
11268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11270 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'
11272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11273 hardcode_libdir_separator_CXX=:
11275 # Commands to make compiler produce verbose output that lists
11276 # what "hidden" libraries, object files and flags are used when
11277 # linking a shared library.
11278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11281 # FIXME: insert proper C++ library support
11288 case $cc_basename in
11290 # Kuck and Associates, Inc. (KAI) C++ Compiler
11292 # KCC will only create a shared library if the output file
11293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11294 # to its proper name (with version) after linking.
11295 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'
11297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11298 hardcode_libdir_separator_CXX=:
11300 # Archives containing C++ object files must be created using
11301 # the KAI C++ compiler.
11302 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11305 # Rational C++ 2.4.1
11306 # FIXME: insert proper C++ library support
11310 allow_undefined_flag_CXX=' -expect_unresolved \*'
11311 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'
11312 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11313 echo "-hidden">> $lib.exp~
11314 $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~
11317 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11318 hardcode_libdir_separator_CXX=:
11320 # Commands to make compiler produce verbose output that lists
11321 # what "hidden" libraries, object files and flags are used when
11322 # linking a shared library.
11324 # There doesn't appear to be a way to prevent this compiler from
11325 # explicitly linking system object files so we need to strip them
11326 # from the output so that they don't get included in the library
11328 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'
11331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11332 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11333 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'
11335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11336 hardcode_libdir_separator_CXX=:
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11344 # FIXME: insert proper C++ library support
11351 # FIXME: insert proper C++ library support
11355 case $cc_basename in
11358 # FIXME: insert proper C++ library support
11363 # FIXME: insert proper C++ library support
11367 # FIXME: insert proper C++ library support
11373 case $cc_basename in
11375 # Sun C++ 4.2, 5.x and Centerline C++
11376 archive_cmds_need_lc_CXX=yes
11377 no_undefined_flag_CXX=' -zdefs'
11378 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11380 $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'
11382 hardcode_libdir_flag_spec_CXX='-R$libdir'
11383 hardcode_shlibpath_var_CXX=no
11385 solaris2.[0-5] | solaris2.[0-5].*) ;;
11387 # The compiler driver will combine and reorder linker options,
11388 # but understands `-z linker_flag'.
11389 # Supported since Solaris 2.6 (maybe 2.5.1?)
11390 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11393 link_all_deplibs_CXX=yes
11395 output_verbose_link_cmd='echo'
11397 # Archives containing C++ object files must be created using
11398 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11399 # necessary to make sure instantiated templates are included
11401 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11404 # Green Hills C++ Compiler
11405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11407 # The C++ compiler must be used to create the archive.
11408 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11411 # GNU C++ compiler with Solaris linker
11412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11413 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11414 if $CC --version | grep -v '^2\.7' > /dev/null; then
11415 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11416 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11417 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11419 # Commands to make compiler produce verbose output that lists
11420 # what "hidden" libraries, object files and flags are used when
11421 # linking a shared library.
11422 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11424 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11426 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11427 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11428 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11430 # Commands to make compiler produce verbose output that lists
11431 # what "hidden" libraries, object files and flags are used when
11432 # linking a shared library.
11433 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11436 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11438 solaris2.[0-5] | solaris2.[0-5].*) ;;
11440 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11447 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11448 no_undefined_flag_CXX='${wl}-z,text'
11449 archive_cmds_need_lc_CXX=no
11450 hardcode_shlibpath_var_CXX=no
11451 runpath_var='LD_RUN_PATH'
11453 case $cc_basename in
11455 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11459 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11460 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11464 sysv5* | sco3.2v5* | sco5v6*)
11465 # Note: We can NOT use -z defs as we might desire, because we do not
11466 # link with -lc, and that would cause any symbols used from libc to
11467 # always be unresolved, which means just about no library would
11468 # ever link correctly. If we're not using GNU ld we use -z text
11469 # though, which does catch some bad symbols but isn't as heavy-handed
11471 # For security reasons, it is highly recommended that you always
11472 # use absolute paths for naming shared libraries, and exclude the
11473 # DT_RUNPATH tag from executables and libraries. But doing so
11474 # requires that you compile everything twice, which is a pain.
11475 # So that behaviour is only enabled if SCOABSPATH is set to a
11476 # non-empty value in the environment. Most likely only useful for
11477 # creating official distributions of packages.
11478 # This is a hack until libtool officially supports absolute path
11479 # names for shared libraries.
11480 no_undefined_flag_CXX='${wl}-z,text'
11481 allow_undefined_flag_CXX='${wl}-z,nodefs'
11482 archive_cmds_need_lc_CXX=no
11483 hardcode_shlibpath_var_CXX=no
11484 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11485 hardcode_libdir_separator_CXX=':'
11486 link_all_deplibs_CXX=yes
11487 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11488 runpath_var='LD_RUN_PATH'
11490 case $cc_basename in
11492 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11493 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11496 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 case $cc_basename in
11504 # NonStop-UX NCC 3.20
11505 # FIXME: insert proper C++ library support
11509 # FIXME: insert proper C++ library support
11515 # FIXME: insert proper C++ library support
11519 # FIXME: insert proper C++ library support
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11524 $as_echo "$ld_shlibs_CXX" >&6; }
11525 test "$ld_shlibs_CXX" = no && can_build_shared=no
11530 cat > conftest.$ac_ext <<EOF
11534 Foo (void) { a = 0; }
11540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11541 (eval $ac_compile) 2>&5
11543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11544 test $ac_status = 0; }; then
11545 # Parse the compiler output and extract the necessary
11546 # objects, libraries and library flags.
11548 # Sentinel used to keep track of whether or not we are before
11549 # the conftest object file.
11550 pre_test_object_deps_done=no
11552 # The `*' in the case matches for architectures that use `case' in
11553 # $output_verbose_cmd can trigger glob expansion during the loop
11554 # eval without this substitution.
11555 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11557 for p in `eval $output_verbose_link_cmd`; do
11561 # Some compilers place space between "-{L,R}" and the path.
11562 # Remove the space.
11563 if test $p = "-L" \
11564 || test $p = "-R"; then
11571 if test "$pre_test_object_deps_done" = no; then
11574 # Internal compiler library paths should come after those
11575 # provided the user. The postdeps already come after the
11576 # user supplied libs so there is no need to process them.
11577 if test -z "$compiler_lib_search_path_CXX"; then
11578 compiler_lib_search_path_CXX="${prev}${p}"
11580 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11583 # The "-l" case would never come before the object being
11584 # linked, so don't bother handling this case.
11587 if test -z "$postdeps_CXX"; then
11588 postdeps_CXX="${prev}${p}"
11590 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11596 # This assumes that the test object file only shows up
11597 # once in the compiler output.
11598 if test "$p" = "conftest.$objext"; then
11599 pre_test_object_deps_done=yes
11603 if test "$pre_test_object_deps_done" = no; then
11604 if test -z "$predep_objects_CXX"; then
11605 predep_objects_CXX="$p"
11607 predep_objects_CXX="$predep_objects_CXX $p"
11610 if test -z "$postdep_objects_CXX"; then
11611 postdep_objects_CXX="$p"
11613 postdep_objects_CXX="$postdep_objects_CXX $p"
11618 *) ;; # Ignore the rest.
11626 echo "libtool.m4: error: problem compiling CXX test program"
11629 $rm -f confest.$objext
11631 compiler_lib_search_dirs_CXX=
11632 if test -n "$compiler_lib_search_path_CXX"; then
11633 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11636 # PORTME: override above test on systems where it is broken
11639 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11640 # hack all around it, let's just trust "g++" to DTRT.
11641 predep_objects_CXX=
11642 postdep_objects_CXX=
11647 case `$CC -V 2>&1 | sed 5q` in
11651 # The more standards-conforming stlport4 library is
11652 # incompatible with the Cstd library. Avoid specifying
11653 # it if it's in CXXFLAGS. Ignore libCrun as
11654 # -library=stlport4 depends on it.
11655 case " $CXX $CXXFLAGS " in
11656 *" -library=stlport4 "*)
11657 solaris_use_stlport4=yes
11660 if test "$solaris_use_stlport4" != yes; then
11661 postdeps_CXX='-library=Cstd -library=Crun'
11668 case $cc_basename in
11670 # The more standards-conforming stlport4 library is
11671 # incompatible with the Cstd library. Avoid specifying
11672 # it if it's in CXXFLAGS. Ignore libCrun as
11673 # -library=stlport4 depends on it.
11674 case " $CXX $CXXFLAGS " in
11675 *" -library=stlport4 "*)
11676 solaris_use_stlport4=yes
11680 # Adding this requires a known-good setup of shared libraries for
11681 # Sun compiler versions before 5.6, else PIC objects from an old
11682 # archive will be linked into the output, leading to subtle bugs.
11683 if test "$solaris_use_stlport4" != yes; then
11684 postdeps_CXX='-library=Cstd -library=Crun'
11691 case " $postdeps_CXX " in
11692 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11695 lt_prog_compiler_wl_CXX=
11696 lt_prog_compiler_pic_CXX=
11697 lt_prog_compiler_static_CXX=
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11702 # C++ specific cases for pic, static, wl, etc.
11703 if test "$GXX" = yes; then
11704 lt_prog_compiler_wl_CXX='-Wl,'
11705 lt_prog_compiler_static_CXX='-static'
11709 # All AIX code is PIC.
11710 if test "$host_cpu" = ia64; then
11711 # AIX 5 now supports IA64 processor
11712 lt_prog_compiler_static_CXX='-Bstatic'
11716 # FIXME: we need at least 68020 code to build shared libraries, but
11717 # adding the `-m68020' flag to GCC prevents building anything better,
11719 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11722 # PIC is the default for these OSes.
11724 mingw* | cygwin* | os2* | pw32*)
11725 # This hack is so that the source file can tell whether it is being
11726 # built for inclusion in a dll (and should export symbols for example).
11727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11728 # (--disable-auto-import) libraries
11729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11731 darwin* | rhapsody*)
11732 # PIC is the default on this platform
11733 # Common symbols not allowed in MH_DYLIB files
11734 lt_prog_compiler_pic_CXX='-fno-common'
11737 # DJGPP does not support shared libraries at all
11738 lt_prog_compiler_pic_CXX=
11741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11742 # Instead, we relocate shared libraries at runtime.
11745 if test -d /usr/nec; then
11746 lt_prog_compiler_pic_CXX=-Kconform_pic
11750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11751 # not for PA HP-UX.
11756 lt_prog_compiler_pic_CXX='-fPIC'
11761 lt_prog_compiler_pic_CXX='-fPIC'
11767 # All AIX code is PIC.
11768 if test "$host_cpu" = ia64; then
11769 # AIX 5 now supports IA64 processor
11770 lt_prog_compiler_static_CXX='-Bstatic'
11772 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11776 case $cc_basename in
11778 # Green Hills C++ Compiler
11779 # _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"
11784 # PIC is the default on this platform
11785 # Common symbols not allowed in MH_DYLIB files
11786 case $cc_basename in
11788 lt_prog_compiler_pic_CXX='-qnocommon'
11789 lt_prog_compiler_wl_CXX='-Wl,'
11794 case $cc_basename in
11796 lt_prog_compiler_pic_CXX='-KPIC'
11799 # Green Hills C++ Compiler
11800 lt_prog_compiler_pic_CXX='-pic'
11806 freebsd* | dragonfly*)
11807 # FreeBSD uses GNU C++
11809 hpux9* | hpux10* | hpux11*)
11810 case $cc_basename in
11812 lt_prog_compiler_wl_CXX='-Wl,'
11813 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11814 if test "$host_cpu" != ia64; then
11815 lt_prog_compiler_pic_CXX='+Z'
11819 lt_prog_compiler_wl_CXX='-Wl,'
11820 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11826 lt_prog_compiler_pic_CXX='+Z'
11835 # This is c89, which is MS Visual C++ (no shared libs)
11836 # Anyone wants to do a port?
11838 irix5* | irix6* | nonstopux*)
11839 case $cc_basename in
11841 lt_prog_compiler_wl_CXX='-Wl,'
11842 lt_prog_compiler_static_CXX='-non_shared'
11843 # CC pic flag -KPIC is the default.
11849 linux* | k*bsd*-gnu)
11850 case $cc_basename in
11853 lt_prog_compiler_wl_CXX='--backend -Wl,'
11854 lt_prog_compiler_pic_CXX='-fPIC'
11858 lt_prog_compiler_wl_CXX='-Wl,'
11859 lt_prog_compiler_pic_CXX='-KPIC'
11860 lt_prog_compiler_static_CXX='-static'
11863 # Portland Group C++ compiler.
11864 lt_prog_compiler_wl_CXX='-Wl,'
11865 lt_prog_compiler_pic_CXX='-fpic'
11866 lt_prog_compiler_static_CXX='-Bstatic'
11870 # Make sure the PIC flag is empty. It appears that all Alpha
11871 # Linux and Compaq Tru64 Unix objects are PIC.
11872 lt_prog_compiler_pic_CXX=
11873 lt_prog_compiler_static_CXX='-non_shared'
11876 case `$CC -V 2>&1 | sed 5q` in
11879 lt_prog_compiler_pic_CXX='-KPIC'
11880 lt_prog_compiler_static_CXX='-Bstatic'
11881 lt_prog_compiler_wl_CXX='-Qoption ld '
11892 case $cc_basename in
11894 lt_prog_compiler_pic_CXX='-W c,exportall'
11902 osf3* | osf4* | osf5*)
11903 case $cc_basename in
11905 lt_prog_compiler_wl_CXX='--backend -Wl,'
11908 # Rational C++ 2.4.1
11909 lt_prog_compiler_pic_CXX='-pic'
11912 # Digital/Compaq C++
11913 lt_prog_compiler_wl_CXX='-Wl,'
11914 # Make sure the PIC flag is empty. It appears that all Alpha
11915 # Linux and Compaq Tru64 Unix objects are PIC.
11916 lt_prog_compiler_pic_CXX=
11917 lt_prog_compiler_static_CXX='-non_shared'
11926 case $cc_basename in
11928 # Sun C++ 4.2, 5.x and Centerline C++
11929 lt_prog_compiler_pic_CXX='-KPIC'
11930 lt_prog_compiler_static_CXX='-Bstatic'
11931 lt_prog_compiler_wl_CXX='-Qoption ld '
11934 # Green Hills C++ Compiler
11935 lt_prog_compiler_pic_CXX='-PIC'
11942 case $cc_basename in
11945 lt_prog_compiler_pic_CXX='-pic'
11946 lt_prog_compiler_static_CXX='-Bstatic'
11950 lt_prog_compiler_pic_CXX='-pic'
11957 case $cc_basename in
11959 # NonStop-UX NCC 3.20
11960 lt_prog_compiler_pic_CXX='-KPIC'
11966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11967 case $cc_basename in
11969 lt_prog_compiler_wl_CXX='-Wl,'
11970 lt_prog_compiler_pic_CXX='-KPIC'
11971 lt_prog_compiler_static_CXX='-Bstatic'
11978 lt_prog_compiler_can_build_shared_CXX=no
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11984 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11987 # Check to make sure the PIC flag actually works.
11989 if test -n "$lt_prog_compiler_pic_CXX"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11993 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 lt_cv_prog_compiler_pic_works_CXX=no
11997 ac_outfile=conftest.$ac_objext
11998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11999 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12000 # Insert the option either (1) after the last *FLAGS variable, or
12001 # (2) before a word containing "conftest.", or (3) at the end.
12002 # Note that $ac_compile itself does not contain backslashes and begins
12003 # with a dollar sign (not a hyphen), so the echo should work correctly.
12004 # The option is referenced via a variable to avoid confusing sed.
12005 lt_compile=`echo "$ac_compile" | $SED \
12006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008 -e 's:$: $lt_compiler_flag:'`
12009 (eval echo "\"\$as_me:12009: $lt_compile\"" >&5)
12010 (eval "$lt_compile" 2>conftest.err)
12012 cat conftest.err >&5
12013 echo "$as_me:12013: \$? = $ac_status" >&5
12014 if (exit $ac_status) && test -s "$ac_outfile"; then
12015 # The compiler can only warn and ignore the option if not recognized
12016 # So say no if there are warnings other than the usual output.
12017 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12020 lt_cv_prog_compiler_pic_works_CXX=yes
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12027 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12029 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12030 case $lt_prog_compiler_pic_CXX in
12032 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12035 lt_prog_compiler_pic_CXX=
12036 lt_prog_compiler_can_build_shared_CXX=no
12041 # For platforms which do not support PIC, -DPIC is meaningless:
12043 lt_prog_compiler_pic_CXX=
12046 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12051 # Check to make sure the static flag actually works.
12053 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12056 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12059 lt_cv_prog_compiler_static_works_CXX=no
12060 save_LDFLAGS="$LDFLAGS"
12061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12064 # The linker can only warn and ignore the option if not recognized
12065 # So say no if there are warnings
12066 if test -s conftest.err; then
12067 # Append any errors to the config.log.
12068 cat conftest.err 1>&5
12069 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12071 if diff conftest.exp conftest.er2 >/dev/null; then
12072 lt_cv_prog_compiler_static_works_CXX=yes
12075 lt_cv_prog_compiler_static_works_CXX=yes
12079 LDFLAGS="$save_LDFLAGS"
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12083 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12085 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12088 lt_prog_compiler_static_CXX=
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12094 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12097 lt_cv_prog_compiler_c_o_CXX=no
12098 $rm -r conftest 2>/dev/null
12102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104 lt_compiler_flag="-o out/conftest2.$ac_objext"
12105 # Insert the option either (1) after the last *FLAGS variable, or
12106 # (2) before a word containing "conftest.", or (3) at the end.
12107 # Note that $ac_compile itself does not contain backslashes and begins
12108 # with a dollar sign (not a hyphen), so the echo should work correctly.
12109 lt_compile=`echo "$ac_compile" | $SED \
12110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12112 -e 's:$: $lt_compiler_flag:'`
12113 (eval echo "\"\$as_me:12113: $lt_compile\"" >&5)
12114 (eval "$lt_compile" 2>out/conftest.err)
12116 cat out/conftest.err >&5
12117 echo "$as_me:12117: \$? = $ac_status" >&5
12118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12120 # The compiler can only warn and ignore the option if not recognized
12121 # So say no if there are warnings
12122 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12125 lt_cv_prog_compiler_c_o_CXX=yes
12130 # SGI C++ compiler will create directory out/ii_files/ for
12131 # template instantiation
12132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12133 $rm out/* && rmdir out
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12140 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12143 hard_links="nottested"
12144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12145 # do not overwrite the value of need_locks provided by the user
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12147 $as_echo_n "checking if we can lock with hard links... " >&6; }
12150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12152 ln conftest.a conftest.b 2>&5 || hard_links=no
12153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12155 $as_echo "$hard_links" >&6; }
12156 if test "$hard_links" = no; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12171 # If we're using GNU nm, then we don't want the "-C" option.
12172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12173 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12174 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'
12176 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'
12180 export_symbols_cmds_CXX="$ltdll_cmds"
12183 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'
12186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12189 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12192 $as_echo "$ld_shlibs_CXX" >&6; }
12193 test "$ld_shlibs_CXX" = no && can_build_shared=no
12196 # Do we need to explicitly link libc?
12198 case "x$archive_cmds_need_lc_CXX" in
12200 # Assume -lc should be added
12201 archive_cmds_need_lc_CXX=yes
12203 if test "$enable_shared" = yes && test "$GCC" = yes; then
12204 case $archive_cmds_CXX in
12206 # FIXME: we may have to deal with multi-command sequences.
12209 # Test whether the compiler implicitly links with -lc since on some
12210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12211 # to ld, don't add -lc before -lgcc.
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12213 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12218 (eval $ac_compile) 2>&5
12220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221 test $ac_status = 0; } 2>conftest.err; then
12224 libobjs=conftest.$ac_objext
12226 wl=$lt_prog_compiler_wl_CXX
12227 pic_flag=$lt_prog_compiler_pic_CXX
12233 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12234 allow_undefined_flag_CXX=
12235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12236 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12239 test $ac_status = 0; }
12241 archive_cmds_need_lc_CXX=no
12243 archive_cmds_need_lc_CXX=yes
12245 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12247 cat conftest.err 1>&5
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12251 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12259 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12260 library_names_spec=
12261 libname_spec='lib$name'
12265 postuninstall_cmds=
12269 shlibpath_overrides_runpath=unknown
12271 dynamic_linker="$host_os ld.so"
12272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12274 need_lib_prefix=unknown
12275 hardcode_into_libs=no
12277 # when you set need_version to no, make sure it does not cause -set_version
12278 # flags to be left without arguments
12279 need_version=unknown
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12285 shlibpath_var=LIBPATH
12287 # AIX 3 has no versioning support, so we append a major version to the name.
12288 soname_spec='${libname}${release}${shared_ext}$major'
12295 hardcode_into_libs=yes
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 supports IA64
12298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299 shlibpath_var=LD_LIBRARY_PATH
12301 # With GCC up to 2.95.x, collect2 would create an import file
12302 # for dependence libraries. The import file would start with
12303 # the line `#! .'. This would cause the generated library to
12304 # depend on `.', always an invalid library. This was fixed in
12305 # development snapshots of GCC prior to 3.0.
12307 aix4 | aix4.[01] | aix4.[01].*)
12308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12313 can_build_shared=no
12317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318 # soname into executable. Probably we can add versioning support to
12319 # collect2, so additional links can be useful in future.
12320 if test "$aix_use_runtimelinking" = yes; then
12321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322 # instead of lib<name>.a to let people know that these are not
12323 # typical AIX shared libraries.
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 # We preserve .a as extension for shared libraries through AIX4.2
12327 # and later when we are not doing run time linking.
12328 library_names_spec='${libname}${release}.a $libname.a'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LIBPATH
12336 library_names_spec='$libname.ixlibrary $libname.a'
12337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12338 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'
12342 library_names_spec='${libname}${shared_ext}'
12343 dynamic_linker="$host_os ld.so"
12344 shlibpath_var=LIBRARY_PATH
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 soname_spec='${libname}${release}${shared_ext}$major'
12352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12356 # the default ld.so.conf also contains /usr/contrib/lib and
12357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12358 # libtool to hard-code these into programs
12361 cygwin* | mingw* | pw32*)
12362 version_type=windows
12367 case $GCC,$host_os in
12368 yes,cygwin* | yes,mingw* | yes,pw32*)
12369 library_names_spec='$libname.dll.a'
12370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12371 postinstall_cmds='base_file=`basename \${file}`~
12372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12373 dldir=$destdir/`dirname \$dlpath`~
12374 test -d \$dldir || mkdir -p \$dldir~
12375 $install_prog $dir/$dlname \$dldir/$dlname~
12376 chmod a+x \$dldir/$dlname'
12377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12378 dlpath=$dir/\$dldll~
12380 shlibpath_overrides_runpath=yes
12384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12389 # MinGW DLLs use traditional 'lib' prefix
12390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12393 # It is most probably a Windows format PATH printed by
12394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12395 # path with ; separators, and with drive letters. We can handle the
12396 # drive letters (cygwin fileutils understands them), so leave them,
12397 # especially as we might pass files found there to a mingw objdump,
12398 # which wouldn't understand a cygwinified path. Ahh.
12399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12405 # pw32 DLLs use 'pw' prefix rather than 'lib'
12406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12415 dynamic_linker='Win32 ld.exe'
12416 # FIXME: first we should search . and the directory the executable is in
12420 darwin* | rhapsody*)
12421 dynamic_linker="$host_os dyld"
12422 version_type=darwin
12425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12426 soname_spec='${libname}${release}${major}$shared_ext'
12427 shlibpath_overrides_runpath=yes
12428 shlibpath_var=DYLD_LIBRARY_PATH
12429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12439 soname_spec='${libname}${release}${shared_ext}$major'
12440 shlibpath_var=LD_LIBRARY_PATH
12447 freebsd* | dragonfly*)
12448 # DragonFly does not have aout. When/if they implement a new
12449 # versioning mechanism, adjust this.
12450 if test -x /usr/bin/objformat; then
12451 objformat=`/usr/bin/objformat`
12454 freebsd[123]*) objformat=aout ;;
12455 *) objformat=elf ;;
12458 version_type=freebsd-$objformat
12459 case $version_type in
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12470 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12475 freebsd3.[01]* | freebsdelf3.[01]*)
12476 shlibpath_overrides_runpath=yes
12477 hardcode_into_libs=yes
12479 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12480 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12481 shlibpath_overrides_runpath=no
12482 hardcode_into_libs=yes
12484 *) # from 4.6 on, and DragonFly
12485 shlibpath_overrides_runpath=yes
12486 hardcode_into_libs=yes
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 hardcode_into_libs=yes
12501 hpux9* | hpux10* | hpux11*)
12502 # Give a soname corresponding to the major version so that dld.sl refuses to
12503 # link against other versions.
12510 hardcode_into_libs=yes
12511 dynamic_linker="$host_os dld.so"
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515 soname_spec='${libname}${release}${shared_ext}$major'
12516 if test "X$HPUX_IA64_MODE" = X32; then
12517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12525 hardcode_into_libs=yes
12526 dynamic_linker="$host_os dld.sl"
12527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12536 dynamic_linker="$host_os dld.sl"
12537 shlibpath_var=SHLIB_PATH
12538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540 soname_spec='${libname}${release}${shared_ext}$major'
12543 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12544 postinstall_cmds='chmod 555 $lib'
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12559 irix5* | irix6* | nonstopux*)
12561 nonstopux*) version_type=nonstopux ;;
12563 if test "$lt_cv_prog_gnu_ld" = yes; then
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12574 irix5* | nonstopux*)
12575 libsuff= shlibsuff=
12578 case $LD in # libtool.m4 will add one of these switches to LD
12579 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12580 libsuff= shlibsuff= libmagic=32-bit;;
12581 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12582 libsuff=32 shlibsuff=N32 libmagic=N32;;
12583 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12584 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12585 *) libsuff= shlibsuff= libmagic=never-match;;
12589 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12590 shlibpath_overrides_runpath=no
12591 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12592 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12593 hardcode_into_libs=yes
12596 # No shared lib support for Linux oldld, aout, or coff.
12597 linux*oldld* | linux*aout* | linux*coff*)
12601 # This must be Linux ELF.
12602 linux* | k*bsd*-gnu)
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=no
12611 # This implies no fast_install, which is unacceptable.
12612 # Some rework will be needed to allow for fast_install
12613 # before this can be enabled.
12614 hardcode_into_libs=yes
12616 # Append ld.so.conf contents to the search path
12617 if test -f /etc/ld.so.conf; then
12618 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12619 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12622 # We used to test for /lib/ld.so.1 and disable shared libraries on
12623 # powerpc, because MkLinux only supported shared libraries with the
12624 # GNU dynamic linker. Since this was broken with cross compilers,
12625 # most powerpc-linux boxes support dynamic linking these days and
12626 # people can always --disable-shared, the test was removed, and we
12627 # assume the GNU/Linux dynamic linker is in use.
12628 dynamic_linker='GNU/Linux ld.so'
12635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12638 dynamic_linker='NetBSD (a.out) ld.so'
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12641 soname_spec='${libname}${release}${shared_ext}$major'
12642 dynamic_linker='NetBSD ld.elf_so'
12644 shlibpath_var=LD_LIBRARY_PATH
12645 shlibpath_overrides_runpath=yes
12646 hardcode_into_libs=yes
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 shlibpath_overrides_runpath=yes
12660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12661 soname_spec='${libname}${release}${shared_ext}$major'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 shlibpath_overrides_runpath=yes
12668 sys_lib_dlsearch_path_spec="/usr/lib"
12670 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12672 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12673 *) need_version=no ;;
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 openbsd2.[89] | openbsd2.[89].*)
12681 shlibpath_overrides_runpath=no
12684 shlibpath_overrides_runpath=yes
12688 shlibpath_overrides_runpath=yes
12693 libname_spec='$name'
12696 library_names_spec='$libname${shared_ext} $libname.a'
12697 dynamic_linker='OS/2 ld.exe'
12698 shlibpath_var=LIBPATH
12701 osf3* | osf4* | osf5*)
12705 soname_spec='${libname}${release}${shared_ext}$major'
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 shlibpath_var=LD_LIBRARY_PATH
12708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12724 hardcode_into_libs=yes
12725 # ldd complains unless libraries are executable
12726 postinstall_cmds='chmod +x $lib'
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=yes
12735 if test "$with_gnu_ld" = yes; then
12743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12744 soname_spec='${libname}${release}${shared_ext}$major'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 case $host_vendor in
12748 shlibpath_overrides_runpath=no
12750 export_dynamic_flag_spec='${wl}-Blargedynsym'
12751 runpath_var=LD_RUN_PATH
12759 shlibpath_overrides_runpath=no
12760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12766 if test -d /usr/nec ;then
12768 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12769 soname_spec='$libname${shared_ext}.$major'
12770 shlibpath_var=LD_LIBRARY_PATH
12774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12775 version_type=freebsd-elf
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12779 soname_spec='${libname}${release}${shared_ext}$major'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 hardcode_into_libs=yes
12782 if test "$with_gnu_ld" = yes; then
12783 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12784 shlibpath_overrides_runpath=no
12786 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12787 shlibpath_overrides_runpath=yes
12790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12794 sys_lib_dlsearch_path_spec='/usr/lib'
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 shlibpath_var=LD_LIBRARY_PATH
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12809 $as_echo "$dynamic_linker" >&6; }
12810 test "$dynamic_linker" = no && can_build_shared=no
12812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12815 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12818 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12819 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12822 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12825 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12828 if test "$GCC" = yes; then
12829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12833 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12834 hardcode_action_CXX=
12835 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12836 test -n "$runpath_var_CXX" || \
12837 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12839 # We can hardcode non-existant directories.
12840 if test "$hardcode_direct_CXX" != no &&
12841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12842 # have to relink, otherwise we might link with an installed library
12843 # when we should be linking with a yet-to-be-installed one
12844 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12845 test "$hardcode_minus_L_CXX" != no; then
12846 # Linking always hardcodes the temporary library directory.
12847 hardcode_action_CXX=relink
12849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12850 hardcode_action_CXX=immediate
12853 # We cannot hardcode anything, or else we can only hardcode existing
12855 hardcode_action_CXX=unsupported
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12858 $as_echo "$hardcode_action_CXX" >&6; }
12860 if test "$hardcode_action_CXX" = relink; then
12861 # Fast installation is not supported
12862 enable_fast_install=no
12863 elif test "$shlibpath_overrides_runpath" = yes ||
12864 test "$enable_shared" = no; then
12865 # Fast installation is not necessary
12866 enable_fast_install=needless
12870 # The else clause should only fire when bootstrapping the
12871 # libtool distribution, otherwise you forgot to ship ltmain.sh
12872 # with your package, and you will get complaints that there are
12873 # no rules to generate ltmain.sh.
12874 if test -f "$ltmain"; then
12875 # See if we are running on zsh, and set the options which allow our commands through
12876 # without removal of \ escapes.
12877 if test -n "${ZSH_VERSION+set}" ; then
12878 setopt NO_GLOB_SUBST
12880 # Now quote all the things that may contain metacharacters while being
12881 # careful not to overquote the AC_SUBSTed values. We take copies of the
12882 # variables and quote the copies for generation of the libtool script.
12883 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12885 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12886 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12887 deplibs_check_method reload_flag reload_cmds need_locks \
12888 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12889 lt_cv_sys_global_symbol_to_c_name_address \
12890 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12891 old_postinstall_cmds old_postuninstall_cmds \
12895 lt_prog_compiler_wl_CXX \
12896 lt_prog_compiler_pic_CXX \
12897 lt_prog_compiler_static_CXX \
12898 lt_prog_compiler_no_builtin_flag_CXX \
12899 export_dynamic_flag_spec_CXX \
12900 thread_safe_flag_spec_CXX \
12901 whole_archive_flag_spec_CXX \
12902 enable_shared_with_static_runtimes_CXX \
12903 old_archive_cmds_CXX \
12904 old_archive_from_new_cmds_CXX \
12905 predep_objects_CXX \
12906 postdep_objects_CXX \
12909 compiler_lib_search_path_CXX \
12910 compiler_lib_search_dirs_CXX \
12912 archive_expsym_cmds_CXX \
12913 postinstall_cmds_CXX \
12914 postuninstall_cmds_CXX \
12915 old_archive_from_expsyms_cmds_CXX \
12916 allow_undefined_flag_CXX \
12917 no_undefined_flag_CXX \
12918 export_symbols_cmds_CXX \
12919 hardcode_libdir_flag_spec_CXX \
12920 hardcode_libdir_flag_spec_ld_CXX \
12921 hardcode_libdir_separator_CXX \
12922 hardcode_automatic_CXX \
12924 module_expsym_cmds_CXX \
12925 lt_cv_prog_compiler_c_o_CXX \
12926 fix_srcfile_path_CXX \
12927 exclude_expsyms_CXX \
12928 include_expsyms_CXX; do
12931 old_archive_cmds_CXX | \
12932 old_archive_from_new_cmds_CXX | \
12933 archive_cmds_CXX | \
12934 archive_expsym_cmds_CXX | \
12935 module_cmds_CXX | \
12936 module_expsym_cmds_CXX | \
12937 old_archive_from_expsyms_cmds_CXX | \
12938 export_symbols_cmds_CXX | \
12939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12940 postinstall_cmds | postuninstall_cmds | \
12941 old_postinstall_cmds | old_postuninstall_cmds | \
12942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12943 # Double-quote double-evaled strings.
12944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12953 *'\$0 --fallback-echo"')
12954 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12960 cat <<__EOF__ >> "$cfgfile"
12961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12965 # Shell to use when invoking shell scripts.
12968 # Whether or not to build shared libraries.
12969 build_libtool_libs=$enable_shared
12971 # Whether or not to build static libraries.
12972 build_old_libs=$enable_static
12974 # Whether or not to add -lc for building shared libraries.
12975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12977 # Whether or not to disallow shared libs when runtime libs are static
12978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12980 # Whether or not to optimize for fast installation.
12981 fast_install=$enable_fast_install
12984 host_alias=$host_alias
12988 # The build system.
12989 build_alias=$build_alias
12993 # An echo program that does not interpret backslashes.
12998 AR_FLAGS=$lt_AR_FLAGS
13003 # LTCC compiler flags.
13004 LTCFLAGS=$lt_LTCFLAGS
13006 # A language-specific compiler.
13007 CC=$lt_compiler_CXX
13009 # Is the compiler the GNU C compiler?
13015 # The linker used to build libraries.
13018 # Whether we need hard or soft links.
13021 # A BSD-compatible nm program.
13024 # A symbol stripping program
13027 # Used to examine libraries when file_magic_cmd begins "file"
13028 MAGIC_CMD=$MAGIC_CMD
13030 # Used on cygwin: DLL creation program.
13033 # Used on cygwin: object dumper.
13036 # Used on cygwin: assembler.
13039 # The name of the directory that contains temporary libtool files.
13042 # How to create reloadable object files.
13043 reload_flag=$lt_reload_flag
13044 reload_cmds=$lt_reload_cmds
13046 # How to pass a linker flag through the compiler.
13047 wl=$lt_lt_prog_compiler_wl_CXX
13049 # Object file suffix (normally "o").
13050 objext="$ac_objext"
13052 # Old archive suffix (normally "a").
13055 # Shared library suffix (normally ".so").
13056 shrext_cmds='$shrext_cmds'
13058 # Executable file suffix (normally "").
13061 # Additional compiler flags for building library objects.
13062 pic_flag=$lt_lt_prog_compiler_pic_CXX
13065 # What is the maximum length of a command?
13066 max_cmd_len=$lt_cv_sys_max_cmd_len
13068 # Does compiler simultaneously support -c and -o options?
13069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13071 # Must we lock files when doing compilation?
13072 need_locks=$lt_need_locks
13074 # Do we need the lib prefix for modules?
13075 need_lib_prefix=$need_lib_prefix
13077 # Do we need a version for libraries?
13078 need_version=$need_version
13080 # Whether dlopen is supported.
13081 dlopen_support=$enable_dlopen
13083 # Whether dlopen of programs is supported.
13084 dlopen_self=$enable_dlopen_self
13086 # Whether dlopen of statically linked programs is supported.
13087 dlopen_self_static=$enable_dlopen_self_static
13089 # Compiler flag to prevent dynamic linking.
13090 link_static_flag=$lt_lt_prog_compiler_static_CXX
13092 # Compiler flag to turn off builtin functions.
13093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13095 # Compiler flag to allow reflexive dlopens.
13096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13098 # Compiler flag to generate shared objects directly from archives.
13099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13101 # Compiler flag to generate thread-safe objects.
13102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13104 # Library versioning type.
13105 version_type=$version_type
13107 # Format of library name prefix.
13108 libname_spec=$lt_libname_spec
13110 # List of archive names. First name is the real one, the rest are links.
13111 # The last name is the one that the linker finds with -lNAME.
13112 library_names_spec=$lt_library_names_spec
13114 # The coded name of the library, if different from the real name.
13115 soname_spec=$lt_soname_spec
13117 # Commands used to build and install an old-style archive.
13119 old_archive_cmds=$lt_old_archive_cmds_CXX
13120 old_postinstall_cmds=$lt_old_postinstall_cmds
13121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13123 # Create an old-style archive from a shared archive.
13124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13126 # Create a temporary old-style archive to link instead of a shared archive.
13127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13129 # Commands used to build and install a shared archive.
13130 archive_cmds=$lt_archive_cmds_CXX
13131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13132 postinstall_cmds=$lt_postinstall_cmds
13133 postuninstall_cmds=$lt_postuninstall_cmds
13135 # Commands used to build a loadable module (assumed same as above if empty)
13136 module_cmds=$lt_module_cmds_CXX
13137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13139 # Commands to strip libraries.
13140 old_striplib=$lt_old_striplib
13141 striplib=$lt_striplib
13143 # Dependencies to place before the objects being linked to create a
13145 predep_objects=$lt_predep_objects_CXX
13147 # Dependencies to place after the objects being linked to create a
13149 postdep_objects=$lt_postdep_objects_CXX
13151 # Dependencies to place before the objects being linked to create a
13153 predeps=$lt_predeps_CXX
13155 # Dependencies to place after the objects being linked to create a
13157 postdeps=$lt_postdeps_CXX
13159 # The directories searched by this compiler when creating a shared
13161 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13163 # The library search path used internally by the compiler when linking
13164 # a shared library.
13165 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13167 # Method to check whether dependent libraries are shared objects.
13168 deplibs_check_method=$lt_deplibs_check_method
13170 # Command to use when deplibs_check_method == file_magic.
13171 file_magic_cmd=$lt_file_magic_cmd
13173 # Flag that allows shared libraries with undefined symbols to be built.
13174 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13176 # Flag that forces no undefined symbols.
13177 no_undefined_flag=$lt_no_undefined_flag_CXX
13179 # Commands used to finish a libtool library installation in a directory.
13180 finish_cmds=$lt_finish_cmds
13182 # Same as above, but a single script fragment to be evaled but not shown.
13183 finish_eval=$lt_finish_eval
13185 # Take the output of nm and produce a listing of raw symbols and C names.
13186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13188 # Transform the output of nm in a proper C declaration
13189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13191 # Transform the output of nm in a C name address pair
13192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13194 # This is the shared library runtime path variable.
13195 runpath_var=$runpath_var
13197 # This is the shared library path variable.
13198 shlibpath_var=$shlibpath_var
13200 # Is shlibpath searched before the hard-coded library search path?
13201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13203 # How to hardcode a shared library path into an executable.
13204 hardcode_action=$hardcode_action_CXX
13206 # Whether we should hardcode library paths into libraries.
13207 hardcode_into_libs=$hardcode_into_libs
13209 # Flag to hardcode \$libdir into a binary during linking.
13210 # This must work even if \$libdir does not exist.
13211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13213 # If ld is used when linking, flag to hardcode \$libdir into
13214 # a binary during linking. This must work even if \$libdir does
13216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13218 # Whether we need a single -rpath flag with a separated argument.
13219 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13222 # resulting binary.
13223 hardcode_direct=$hardcode_direct_CXX
13225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13226 # resulting binary.
13227 hardcode_minus_L=$hardcode_minus_L_CXX
13229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13230 # the resulting binary.
13231 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13233 # Set to yes if building a shared library automatically hardcodes DIR into the library
13234 # and all subsequent libraries and executables linked against it.
13235 hardcode_automatic=$hardcode_automatic_CXX
13237 # Variables whose values should be saved in libtool wrapper scripts and
13238 # restored at relink time.
13239 variables_saved_for_relink="$variables_saved_for_relink"
13241 # Whether libtool must link a program against all its dependency libraries.
13242 link_all_deplibs=$link_all_deplibs_CXX
13244 # Compile-time system search path for libraries
13245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13247 # Run-time system search path for libraries
13248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13250 # Fix the shell variable \$srcfile for the compiler.
13251 fix_srcfile_path=$lt_fix_srcfile_path
13253 # Set to yes if exported symbols are required.
13254 always_export_symbols=$always_export_symbols_CXX
13256 # The commands to list exported symbols.
13257 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13259 # The commands to extract the exported symbol list from a shared archive.
13260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13262 # Symbols that should not be listed in the preloaded symbols.
13263 exclude_expsyms=$lt_exclude_expsyms_CXX
13265 # Symbols that must always be exported.
13266 include_expsyms=$lt_include_expsyms_CXX
13268 # ### END LIBTOOL TAG CONFIG: $tagname
13274 # If there is no Makefile yet, we rely on a make rule to execute
13275 # `config.status --recheck' to rerun these tests and create the
13276 # libtool script then.
13277 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13278 if test -f "$ltmain_in"; then
13279 test -f Makefile && make "$ltmain"
13285 ac_cpp='$CPP $CPPFLAGS'
13286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13294 with_gnu_ldcxx=$with_gnu_ld
13295 with_gnu_ld=$lt_save_with_gnu_ld
13296 lt_cv_path_LDCXX=$lt_cv_path_LD
13297 lt_cv_path_LD=$lt_save_path_LD
13298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13307 if test -n "$F77" && test "X$F77" != "Xno"; then
13310 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13311 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13315 archive_cmds_need_lc_F77=no
13316 allow_undefined_flag_F77=
13317 always_export_symbols_F77=no
13318 archive_expsym_cmds_F77=
13319 export_dynamic_flag_spec_F77=
13320 hardcode_direct_F77=no
13321 hardcode_libdir_flag_spec_F77=
13322 hardcode_libdir_flag_spec_ld_F77=
13323 hardcode_libdir_separator_F77=
13324 hardcode_minus_L_F77=no
13325 hardcode_automatic_F77=no
13327 module_expsym_cmds_F77=
13328 link_all_deplibs_F77=unknown
13329 old_archive_cmds_F77=$old_archive_cmds
13330 no_undefined_flag_F77=
13331 whole_archive_flag_spec_F77=
13332 enable_shared_with_static_runtimes_F77=no
13334 # Source file extension for f77 test sources.
13337 # Object file extension for compiled f77 test sources.
13341 # Code to be used in simple compile tests
13342 lt_simple_compile_test_code="\
13348 # Code to be used in simple link tests
13349 lt_simple_link_test_code="\
13354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13356 # If no C compiler was specified, use CC.
13359 # If no C compiler flags were specified, use CFLAGS.
13360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362 # Allow CC to be a program name with arguments.
13366 # save warnings/boilerplate of simple test code
13367 ac_outfile=conftest.$ac_objext
13368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13370 _lt_compiler_boilerplate=`cat conftest.err`
13373 ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_linker_boilerplate=`cat conftest.err`
13380 # Allow CC to be a program name with arguments.
13385 for cc_temp in $compiler""; do
13387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13393 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13399 $as_echo "$can_build_shared" >&6; }
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13402 $as_echo_n "checking whether to build shared libraries... " >&6; }
13403 test "$can_build_shared" = "no" && enable_shared=no
13405 # On AIX, shared libraries and static libraries use the same namespace, and
13406 # are all built from PIC.
13409 test "$enable_shared" = yes && enable_static=no
13410 if test -n "$RANLIB"; then
13411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13412 postinstall_cmds='$RANLIB $lib'
13416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13417 test "$enable_shared" = yes && enable_static=no
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13422 $as_echo "$enable_shared" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13425 $as_echo_n "checking whether to build static libraries... " >&6; }
13426 # Make sure either enable_shared or enable_static is yes.
13427 test "$enable_shared" = yes || enable_static=yes
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13429 $as_echo "$enable_static" >&6; }
13434 lt_prog_compiler_wl_F77=
13435 lt_prog_compiler_pic_F77=
13436 lt_prog_compiler_static_F77=
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13439 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13441 if test "$GCC" = yes; then
13442 lt_prog_compiler_wl_F77='-Wl,'
13443 lt_prog_compiler_static_F77='-static'
13447 # All AIX code is PIC.
13448 if test "$host_cpu" = ia64; then
13449 # AIX 5 now supports IA64 processor
13450 lt_prog_compiler_static_F77='-Bstatic'
13455 # FIXME: we need at least 68020 code to build shared libraries, but
13456 # adding the `-m68020' flag to GCC prevents building anything better,
13458 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13462 # PIC is the default for these OSes.
13465 mingw* | cygwin* | pw32* | os2*)
13466 # This hack is so that the source file can tell whether it is being
13467 # built for inclusion in a dll (and should export symbols for example).
13468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13469 # (--disable-auto-import) libraries
13470 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13473 darwin* | rhapsody*)
13474 # PIC is the default on this platform
13475 # Common symbols not allowed in MH_DYLIB files
13476 lt_prog_compiler_pic_F77='-fno-common'
13480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13481 # Instead, we relocate shared libraries at runtime.
13485 # Just because we use GCC doesn't mean we suddenly get shared libraries
13486 # on systems that don't support them.
13487 lt_prog_compiler_can_build_shared_F77=no
13492 if test -d /usr/nec; then
13493 lt_prog_compiler_pic_F77=-Kconform_pic
13498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13499 # not for PA HP-UX.
13505 lt_prog_compiler_pic_F77='-fPIC'
13511 lt_prog_compiler_pic_F77='-fPIC'
13515 # PORTME Check for flag to pass linker flags through the system compiler.
13518 lt_prog_compiler_wl_F77='-Wl,'
13519 if test "$host_cpu" = ia64; then
13520 # AIX 5 now supports IA64 processor
13521 lt_prog_compiler_static_F77='-Bstatic'
13523 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13527 # PIC is the default on this platform
13528 # Common symbols not allowed in MH_DYLIB files
13529 case $cc_basename in
13531 lt_prog_compiler_pic_F77='-qnocommon'
13532 lt_prog_compiler_wl_F77='-Wl,'
13537 mingw* | cygwin* | pw32* | os2*)
13538 # This hack is so that the source file can tell whether it is being
13539 # built for inclusion in a dll (and should export symbols for example).
13540 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13543 hpux9* | hpux10* | hpux11*)
13544 lt_prog_compiler_wl_F77='-Wl,'
13545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13546 # not for PA HP-UX.
13552 lt_prog_compiler_pic_F77='+Z'
13555 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13556 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13559 irix5* | irix6* | nonstopux*)
13560 lt_prog_compiler_wl_F77='-Wl,'
13561 # PIC (with -KPIC) is the default.
13562 lt_prog_compiler_static_F77='-non_shared'
13566 lt_prog_compiler_pic_F77='-KPIC'
13567 lt_prog_compiler_static_F77='-Bstatic'
13570 linux* | k*bsd*-gnu)
13571 case $cc_basename in
13573 lt_prog_compiler_wl_F77='-Wl,'
13574 lt_prog_compiler_pic_F77='-KPIC'
13575 lt_prog_compiler_static_F77='-static'
13577 pgcc* | pgf77* | pgf90* | pgf95*)
13578 # Portland Group compilers (*not* the Pentium gcc compiler,
13579 # which looks to be a dead project)
13580 lt_prog_compiler_wl_F77='-Wl,'
13581 lt_prog_compiler_pic_F77='-fpic'
13582 lt_prog_compiler_static_F77='-Bstatic'
13585 lt_prog_compiler_wl_F77='-Wl,'
13586 # All Alpha code is PIC.
13587 lt_prog_compiler_static_F77='-non_shared'
13590 case `$CC -V 2>&1 | sed 5q` in
13593 lt_prog_compiler_pic_F77='-KPIC'
13594 lt_prog_compiler_static_F77='-Bstatic'
13595 lt_prog_compiler_wl_F77='-Wl,'
13598 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13599 lt_prog_compiler_pic_F77='-KPIC'
13600 lt_prog_compiler_static_F77='-Bstatic'
13601 lt_prog_compiler_wl_F77=''
13608 osf3* | osf4* | osf5*)
13609 lt_prog_compiler_wl_F77='-Wl,'
13610 # All OSF/1 code is PIC.
13611 lt_prog_compiler_static_F77='-non_shared'
13615 lt_prog_compiler_static_F77='-non_shared'
13619 lt_prog_compiler_pic_F77='-KPIC'
13620 lt_prog_compiler_static_F77='-Bstatic'
13621 case $cc_basename in
13622 f77* | f90* | f95*)
13623 lt_prog_compiler_wl_F77='-Qoption ld ';;
13625 lt_prog_compiler_wl_F77='-Wl,';;
13630 lt_prog_compiler_wl_F77='-Qoption ld '
13631 lt_prog_compiler_pic_F77='-PIC'
13632 lt_prog_compiler_static_F77='-Bstatic'
13635 sysv4 | sysv4.2uw2* | sysv4.3*)
13636 lt_prog_compiler_wl_F77='-Wl,'
13637 lt_prog_compiler_pic_F77='-KPIC'
13638 lt_prog_compiler_static_F77='-Bstatic'
13642 if test -d /usr/nec ;then
13643 lt_prog_compiler_pic_F77='-Kconform_pic'
13644 lt_prog_compiler_static_F77='-Bstatic'
13648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13649 lt_prog_compiler_wl_F77='-Wl,'
13650 lt_prog_compiler_pic_F77='-KPIC'
13651 lt_prog_compiler_static_F77='-Bstatic'
13655 lt_prog_compiler_wl_F77='-Wl,'
13656 lt_prog_compiler_can_build_shared_F77=no
13660 lt_prog_compiler_pic_F77='-pic'
13661 lt_prog_compiler_static_F77='-Bstatic'
13665 lt_prog_compiler_can_build_shared_F77=no
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13671 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13674 # Check to make sure the PIC flag actually works.
13676 if test -n "$lt_prog_compiler_pic_F77"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13680 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13681 $as_echo_n "(cached) " >&6
13683 lt_cv_prog_compiler_pic_works_F77=no
13684 ac_outfile=conftest.$ac_objext
13685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13686 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13687 # Insert the option either (1) after the last *FLAGS variable, or
13688 # (2) before a word containing "conftest.", or (3) at the end.
13689 # Note that $ac_compile itself does not contain backslashes and begins
13690 # with a dollar sign (not a hyphen), so the echo should work correctly.
13691 # The option is referenced via a variable to avoid confusing sed.
13692 lt_compile=`echo "$ac_compile" | $SED \
13693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13695 -e 's:$: $lt_compiler_flag:'`
13696 (eval echo "\"\$as_me:13696: $lt_compile\"" >&5)
13697 (eval "$lt_compile" 2>conftest.err)
13699 cat conftest.err >&5
13700 echo "$as_me:13700: \$? = $ac_status" >&5
13701 if (exit $ac_status) && test -s "$ac_outfile"; then
13702 # The compiler can only warn and ignore the option if not recognized
13703 # So say no if there are warnings other than the usual output.
13704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13707 lt_cv_prog_compiler_pic_works_F77=yes
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13714 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13716 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13717 case $lt_prog_compiler_pic_F77 in
13719 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13722 lt_prog_compiler_pic_F77=
13723 lt_prog_compiler_can_build_shared_F77=no
13728 # For platforms which do not support PIC, -DPIC is meaningless:
13730 lt_prog_compiler_pic_F77=
13733 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13738 # Check to make sure the static flag actually works.
13740 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13743 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13744 $as_echo_n "(cached) " >&6
13746 lt_cv_prog_compiler_static_works_F77=no
13747 save_LDFLAGS="$LDFLAGS"
13748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13751 # The linker can only warn and ignore the option if not recognized
13752 # So say no if there are warnings
13753 if test -s conftest.err; then
13754 # Append any errors to the config.log.
13755 cat conftest.err 1>&5
13756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13758 if diff conftest.exp conftest.er2 >/dev/null; then
13759 lt_cv_prog_compiler_static_works_F77=yes
13762 lt_cv_prog_compiler_static_works_F77=yes
13766 LDFLAGS="$save_LDFLAGS"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13770 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13772 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13775 lt_prog_compiler_static_F77=
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13781 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13784 lt_cv_prog_compiler_c_o_F77=no
13785 $rm -r conftest 2>/dev/null
13789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13791 lt_compiler_flag="-o out/conftest2.$ac_objext"
13792 # Insert the option either (1) after the last *FLAGS variable, or
13793 # (2) before a word containing "conftest.", or (3) at the end.
13794 # Note that $ac_compile itself does not contain backslashes and begins
13795 # with a dollar sign (not a hyphen), so the echo should work correctly.
13796 lt_compile=`echo "$ac_compile" | $SED \
13797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13799 -e 's:$: $lt_compiler_flag:'`
13800 (eval echo "\"\$as_me:13800: $lt_compile\"" >&5)
13801 (eval "$lt_compile" 2>out/conftest.err)
13803 cat out/conftest.err >&5
13804 echo "$as_me:13804: \$? = $ac_status" >&5
13805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13807 # The compiler can only warn and ignore the option if not recognized
13808 # So say no if there are warnings
13809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13812 lt_cv_prog_compiler_c_o_F77=yes
13817 # SGI C++ compiler will create directory out/ii_files/ for
13818 # template instantiation
13819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13820 $rm out/* && rmdir out
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13827 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13830 hard_links="nottested"
13831 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13832 # do not overwrite the value of need_locks provided by the user
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13834 $as_echo_n "checking if we can lock with hard links... " >&6; }
13837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13839 ln conftest.a conftest.b 2>&5 || hard_links=no
13840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13842 $as_echo "$hard_links" >&6; }
13843 if test "$hard_links" = no; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13853 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13856 allow_undefined_flag_F77=
13857 enable_shared_with_static_runtimes_F77=no
13859 archive_expsym_cmds_F77=
13860 old_archive_From_new_cmds_F77=
13861 old_archive_from_expsyms_cmds_F77=
13862 export_dynamic_flag_spec_F77=
13863 whole_archive_flag_spec_F77=
13864 thread_safe_flag_spec_F77=
13865 hardcode_libdir_flag_spec_F77=
13866 hardcode_libdir_flag_spec_ld_F77=
13867 hardcode_libdir_separator_F77=
13868 hardcode_direct_F77=no
13869 hardcode_minus_L_F77=no
13870 hardcode_shlibpath_var_F77=unsupported
13871 link_all_deplibs_F77=unknown
13872 hardcode_automatic_F77=no
13874 module_expsym_cmds_F77=
13875 always_export_symbols_F77=no
13876 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13877 # include_expsyms should be a list of space-separated symbols to be *always*
13878 # included in the symbol list
13879 include_expsyms_F77=
13880 # exclude_expsyms can be an extended regexp of symbols to exclude
13881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13883 # as well as any symbol that contains `d'.
13884 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13886 # platforms (ab)use it in PIC code, but their linkers get confused if
13887 # the symbol is explicitly referenced. Since portable code cannot
13888 # rely on this symbol name, it's probably fine to never include it in
13889 # preloaded symbol tables.
13890 # Exclude shared library initialization/finalization symbols.
13891 extract_expsyms_cmds=
13892 # Just being paranoid about ensuring that cc_basename is set.
13893 for cc_temp in $compiler""; do
13895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13904 cygwin* | mingw* | pw32*)
13905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13906 # When not using gcc, we currently assume that we are using
13907 # Microsoft Visual C++.
13908 if test "$GCC" != yes; then
13913 # we just hope/assume this is gcc and not c89 (= MSVC++)
13922 if test "$with_gnu_ld" = yes; then
13923 # If archive_cmds runs LD, not CC, wlarc should be empty
13926 # Set some defaults for GNU ld with shared library support. These
13927 # are reset later if shared libraries are not supported. Putting them
13928 # here allows them to be overridden if necessary.
13929 runpath_var=LD_RUN_PATH
13930 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13931 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13932 # ancient GNU ld didn't support --whole-archive et. al.
13933 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13934 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13936 whole_archive_flag_spec_F77=
13938 supports_anon_versioning=no
13939 case `$LD -v 2>/dev/null` in
13940 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13941 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13942 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13943 *\ 2.11.*) ;; # other 2.11 versions
13944 *) supports_anon_versioning=yes ;;
13947 # See if GNU ld supports shared libraries.
13950 # On AIX/PPC, the GNU linker is very broken
13951 if test "$host_cpu" != ia64; then
13955 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13956 *** to be unable to reliably create shared libraries on AIX.
13957 *** Therefore, libtool is disabling shared libraries support. If you
13958 *** really care for shared libraries, you may want to modify your PATH
13959 *** so that a non-GNU linker is found, and then restart.
13966 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)'
13967 hardcode_libdir_flag_spec_F77='-L$libdir'
13968 hardcode_minus_L_F77=yes
13970 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13971 # that the semantics of dynamic libraries on AmigaOS, at least up
13972 # to version 4, is to share data among multiple programs linked
13973 # with the same dynamic library. Since this doesn't match the
13974 # behavior of shared libraries on other platforms, we can't use
13980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13981 allow_undefined_flag_F77=unsupported
13982 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13983 # support --undefined. This deserves some investigation. FIXME
13984 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 cygwin* | mingw* | pw32*)
13991 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13992 # as there is no search path for DLLs.
13993 hardcode_libdir_flag_spec_F77='-L$libdir'
13994 allow_undefined_flag_F77=unsupported
13995 always_export_symbols_F77=no
13996 enable_shared_with_static_runtimes_F77=yes
13997 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13999 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14000 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14001 # If the export-symbols file already is a .def file (1st line
14002 # is EXPORTS), use it as is; otherwise, prepend...
14003 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14004 cp $export_symbols $output_objdir/$soname.def;
14006 echo EXPORTS > $output_objdir/$soname.def;
14007 cat $export_symbols >> $output_objdir/$soname.def;
14009 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14016 hardcode_direct_F77=no
14017 hardcode_shlibpath_var_F77=no
14018 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019 export_dynamic_flag_spec_F77='${wl}-E'
14020 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14021 # Instead, shared libraries are loaded at an image base (0x10000000 by
14022 # default) and relocated if they conflict, which is a slow very memory
14023 # consuming and fragmenting process. To avoid this, we pick a random,
14024 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14025 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14026 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'
14027 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'
14030 gnu* | linux* | k*bsd*-gnu)
14031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14033 case $cc_basename,$host_cpu in
14034 pgcc*) # Portland Group C compiler
14035 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'
14036 tmp_addflag=' $pic_flag'
14038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14039 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'
14040 tmp_addflag=' $pic_flag -Mnomain' ;;
14041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14042 tmp_addflag=' -i_dynamic' ;;
14043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14044 tmp_addflag=' -i_dynamic -nofor_main' ;;
14045 ifc* | ifort*) # Intel Fortran compiler
14046 tmp_addflag=' -nofor_main' ;;
14048 case `$CC -V 2>&1 | sed 5q` in
14049 *Sun\ C*) # Sun C 5.9
14050 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14051 tmp_sharedflag='-G' ;;
14052 *Sun\ F*) # Sun Fortran 8.3
14053 tmp_sharedflag='-G' ;;
14055 tmp_sharedflag='-shared' ;;
14057 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059 if test $supports_anon_versioning = yes; then
14060 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14062 $echo "local: *; };" >> $output_objdir/$libname.ver~
14063 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14072 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14081 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14086 *** create shared libraries on Solaris systems. Therefore, libtool
14087 *** is disabling shared libraries support. We urge you to upgrade GNU
14088 *** binutils to release 2.9.1 or newer. Another option is to modify
14089 *** your PATH or compiler configuration so that the native linker is
14090 *** used, and then restart.
14093 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14094 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14095 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14102 case `$LD -v 2>&1` in
14103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14108 *** reliably create shared libraries on SCO systems. Therefore, libtool
14109 *** is disabling shared libraries support. We urge you to upgrade GNU
14110 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14111 *** your PATH or compiler configuration so that the native linker is
14112 *** used, and then restart.
14117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14118 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14119 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14120 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14129 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14131 hardcode_direct_F77=yes
14132 hardcode_shlibpath_var_F77=no
14136 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14137 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14145 if test "$ld_shlibs_F77" = no; then
14147 hardcode_libdir_flag_spec_F77=
14148 export_dynamic_flag_spec_F77=
14149 whole_archive_flag_spec_F77=
14152 # PORTME fill in a description of your system's linker (not GNU ld)
14155 allow_undefined_flag_F77=unsupported
14156 always_export_symbols_F77=yes
14157 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'
14158 # Note: this linker hardcodes the directories in LIBPATH if there
14159 # are no directories specified by -L.
14160 hardcode_minus_L_F77=yes
14161 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14162 # Neither direct hardcoding nor static linking is supported with a
14164 hardcode_direct_F77=unsupported
14169 if test "$host_cpu" = ia64; then
14170 # On IA64, the linker does run time linking by default, so we don't
14171 # have to do anything special.
14172 aix_use_runtimelinking=no
14173 exp_sym_flag='-Bexport'
14176 # If we're using GNU nm, then we don't want the "-C" option.
14177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14179 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'
14181 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'
14183 aix_use_runtimelinking=no
14185 # Test if we are trying to use run time linking or normal
14186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14187 # need to do runtime linking.
14188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14189 for ld_flag in $LDFLAGS; do
14190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14191 aix_use_runtimelinking=yes
14198 exp_sym_flag='-bexport'
14199 no_entry_flag='-bnoentry'
14202 # When large executables or shared objects are built, AIX ld can
14203 # have problems creating the table of contents. If linking a library
14204 # or program results in "error TOC overflow" add -mminimal-toc to
14205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14208 archive_cmds_F77=''
14209 hardcode_direct_F77=yes
14210 hardcode_libdir_separator_F77=':'
14211 link_all_deplibs_F77=yes
14213 if test "$GCC" = yes; then
14214 case $host_os in aix4.[012]|aix4.[012].*)
14215 # We only want to do this on AIX 4.2 and lower, the check
14216 # below for broken collect2 doesn't work under 4.3+
14217 collect2name=`${CC} -print-prog-name=collect2`
14218 if test -f "$collect2name" && \
14219 strings "$collect2name" | grep resolve_lib_name >/dev/null
14221 # We have reworked collect2
14224 # We have old collect2
14225 hardcode_direct_F77=unsupported
14226 # It fails to find uninstalled libraries when the uninstalled
14227 # path is not listed in the libpath. Setting hardcode_minus_L
14228 # to unsupported forces relinking
14229 hardcode_minus_L_F77=yes
14230 hardcode_libdir_flag_spec_F77='-L$libdir'
14231 hardcode_libdir_separator_F77=
14235 shared_flag='-shared'
14236 if test "$aix_use_runtimelinking" = yes; then
14237 shared_flag="$shared_flag "'${wl}-G'
14241 if test "$host_cpu" = ia64; then
14242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14243 # chokes on -Wl,-G. The following line is correct:
14246 if test "$aix_use_runtimelinking" = yes; then
14247 shared_flag='${wl}-G'
14249 shared_flag='${wl}-bM:SRE'
14254 # It seems that -bexpall does not export symbols beginning with
14255 # underscore (_), so it is better to generate a list of symbols to export.
14256 always_export_symbols_F77=yes
14257 if test "$aix_use_runtimelinking" = yes; then
14258 # Warning - without using the other runtime loading flags (-brtl),
14259 # -berok will link without error, but may produce a broken library.
14260 allow_undefined_flag_F77='-berok'
14261 # Determine the default libpath from the value encoded in an empty executable.
14262 cat > conftest.$ac_ext <<_ACEOF
14267 if ac_fn_f77_try_link "$LINENO"; then :
14269 lt_aix_libpath_sed='
14270 /Import File Strings/,/^$/ {
14276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277 # Check for a 64-bit object if we didn't find anything.
14278 if test -z "$aix_libpath"; then
14279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14286 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14287 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"
14289 if test "$host_cpu" = ia64; then
14290 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14291 allow_undefined_flag_F77="-z nodefs"
14292 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"
14294 # Determine the default libpath from the value encoded in an empty executable.
14295 cat > conftest.$ac_ext <<_ACEOF
14300 if ac_fn_f77_try_link "$LINENO"; then :
14302 lt_aix_libpath_sed='
14303 /Import File Strings/,/^$/ {
14309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14310 # Check for a 64-bit object if we didn't find anything.
14311 if test -z "$aix_libpath"; then
14312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14319 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14320 # Warning - without using the other run time loading flags,
14321 # -berok will link without error, but may produce a broken library.
14322 no_undefined_flag_F77=' ${wl}-bernotok'
14323 allow_undefined_flag_F77=' ${wl}-berok'
14324 # Exported symbols can be pulled into shared objects from archives
14325 whole_archive_flag_spec_F77='$convenience'
14326 archive_cmds_need_lc_F77=yes
14327 # This is similar to how AIX traditionally builds its shared libraries.
14328 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'
14334 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)'
14335 hardcode_libdir_flag_spec_F77='-L$libdir'
14336 hardcode_minus_L_F77=yes
14337 # see comment about different semantics on the GNU ld section
14342 export_dynamic_flag_spec_F77=-rdynamic
14345 cygwin* | mingw* | pw32*)
14346 # When not using gcc, we currently assume that we are using
14347 # Microsoft Visual C++.
14348 # hardcode_libdir_flag_spec is actually meaningless, as there is
14349 # no search path for DLLs.
14350 hardcode_libdir_flag_spec_F77=' '
14351 allow_undefined_flag_F77=unsupported
14352 # Tell ltmain to make .lib files, not .a files.
14354 # Tell ltmain to make .dll files, not .so files.
14356 # FIXME: Setting linknames here is a bad hack.
14357 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14358 # The linker will automatically build a .lib file if we build a DLL.
14359 old_archive_From_new_cmds_F77='true'
14360 # FIXME: Should let the user specify the lib program.
14361 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14362 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14363 enable_shared_with_static_runtimes_F77=yes
14366 darwin* | rhapsody*)
14368 rhapsody* | darwin1.[012])
14369 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14375 case ${MACOSX_DEPLOYMENT_TARGET} in
14377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14380 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14386 archive_cmds_need_lc_F77=no
14387 hardcode_direct_F77=no
14388 hardcode_automatic_F77=yes
14389 hardcode_shlibpath_var_F77=unsupported
14390 whole_archive_flag_spec_F77=''
14391 link_all_deplibs_F77=yes
14392 if test "$GCC" = yes ; then
14393 output_verbose_link_cmd='echo'
14394 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14395 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14396 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14397 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14399 case $cc_basename in
14401 output_verbose_link_cmd='echo'
14402 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14403 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14405 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14406 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}'
14416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_libdir_flag_spec_F77='-L$libdir'
14418 hardcode_shlibpath_var_F77=no
14425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14426 # support. Future versions do this automatically, but an explicit c++rt0.o
14427 # does not break anything, and helps significantly (at the cost of a little
14430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14431 hardcode_libdir_flag_spec_F77='-R$libdir'
14432 hardcode_direct_F77=yes
14433 hardcode_shlibpath_var_F77=no
14436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_direct_F77=yes
14440 hardcode_minus_L_F77=yes
14441 hardcode_shlibpath_var_F77=no
14444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14445 freebsd* | dragonfly*)
14446 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14447 hardcode_libdir_flag_spec_F77='-R$libdir'
14448 hardcode_direct_F77=yes
14449 hardcode_shlibpath_var_F77=no
14453 if test "$GCC" = yes; then
14454 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'
14456 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'
14458 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14459 hardcode_libdir_separator_F77=:
14460 hardcode_direct_F77=yes
14462 # hardcode_minus_L: Not really in the search PATH,
14463 # but as the default location of the library.
14464 hardcode_minus_L_F77=yes
14465 export_dynamic_flag_spec_F77='${wl}-E'
14469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14470 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14472 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14474 if test "$with_gnu_ld" = no; then
14475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14476 hardcode_libdir_separator_F77=:
14478 hardcode_direct_F77=yes
14479 export_dynamic_flag_spec_F77='${wl}-E'
14481 # hardcode_minus_L: Not really in the search PATH,
14482 # but as the default location of the library.
14483 hardcode_minus_L_F77=yes
14488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14491 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14494 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14497 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14513 if test "$with_gnu_ld" = no; then
14514 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14515 hardcode_libdir_separator_F77=:
14519 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14520 hardcode_direct_F77=no
14521 hardcode_shlibpath_var_F77=no
14524 hardcode_direct_F77=yes
14525 export_dynamic_flag_spec_F77='${wl}-E'
14527 # hardcode_minus_L: Not really in the search PATH,
14528 # but as the default location of the library.
14529 hardcode_minus_L_F77=yes
14535 irix5* | irix6* | nonstopux*)
14536 if test "$GCC" = yes; then
14537 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'
14539 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'
14540 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14543 hardcode_libdir_separator_F77=:
14544 link_all_deplibs_F77=yes
14548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14551 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14553 hardcode_libdir_flag_spec_F77='-R$libdir'
14554 hardcode_direct_F77=yes
14555 hardcode_shlibpath_var_F77=no
14559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560 hardcode_direct_F77=yes
14561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14562 hardcode_libdir_separator_F77=:
14563 hardcode_shlibpath_var_F77=no
14567 if test -f /usr/libexec/ld.so; then
14568 hardcode_direct_F77=yes
14569 hardcode_shlibpath_var_F77=no
14570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14571 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14572 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14573 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14574 export_dynamic_flag_spec_F77='${wl}-E'
14577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14579 hardcode_libdir_flag_spec_F77='-R$libdir'
14582 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14583 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14593 hardcode_libdir_flag_spec_F77='-L$libdir'
14594 hardcode_minus_L_F77=yes
14595 allow_undefined_flag_F77=unsupported
14596 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'
14597 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14601 if test "$GCC" = yes; then
14602 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14603 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'
14605 allow_undefined_flag_F77=' -expect_unresolved \*'
14606 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'
14608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14609 hardcode_libdir_separator_F77=:
14612 osf4* | osf5*) # as osf3* with the addition of -msym flag
14613 if test "$GCC" = yes; then
14614 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14615 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'
14616 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14618 allow_undefined_flag_F77=' -expect_unresolved \*'
14619 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'
14620 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~
14621 $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'
14623 # Both c and cxx compiler support -rpath directly
14624 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14626 hardcode_libdir_separator_F77=:
14630 no_undefined_flag_F77=' -z text'
14631 if test "$GCC" = yes; then
14633 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14634 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14635 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14638 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14642 hardcode_libdir_flag_spec_F77='-R$libdir'
14643 hardcode_shlibpath_var_F77=no
14645 solaris2.[0-5] | solaris2.[0-5].*) ;;
14647 # The compiler driver will combine and reorder linker options,
14648 # but understands `-z linker_flag'. GCC discards it without `$wl',
14649 # but is careful enough not to reorder.
14650 # Supported since Solaris 2.6 (maybe 2.5.1?)
14651 if test "$GCC" = yes; then
14652 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14654 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14658 link_all_deplibs_F77=yes
14662 if test "x$host_vendor" = xsequent; then
14663 # Use $CC to link under sequent, because it throws in some extra .o
14664 # files that make .init and .fini sections work.
14665 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14667 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14669 hardcode_libdir_flag_spec_F77='-L$libdir'
14670 hardcode_direct_F77=yes
14671 hardcode_minus_L_F77=yes
14672 hardcode_shlibpath_var_F77=no
14676 case $host_vendor in
14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_direct_F77=yes # is this really true???
14682 ## LD is ld it makes a PLAMLIB
14683 ## CC just makes a GrossModule.
14684 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14685 reload_cmds_F77='$CC -r -o $output$reload_objs'
14686 hardcode_direct_F77=no
14689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14690 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14693 runpath_var='LD_RUN_PATH'
14694 hardcode_shlibpath_var_F77=no
14698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699 hardcode_shlibpath_var_F77=no
14700 export_dynamic_flag_spec_F77='-Bexport'
14704 if test -d /usr/nec; then
14705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706 hardcode_shlibpath_var_F77=no
14707 runpath_var=LD_RUN_PATH
14708 hardcode_runpath_var=yes
14713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14714 no_undefined_flag_F77='${wl}-z,text'
14715 archive_cmds_need_lc_F77=no
14716 hardcode_shlibpath_var_F77=no
14717 runpath_var='LD_RUN_PATH'
14719 if test "$GCC" = yes; then
14720 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14728 sysv5* | sco3.2v5* | sco5v6*)
14729 # Note: We can NOT use -z defs as we might desire, because we do not
14730 # link with -lc, and that would cause any symbols used from libc to
14731 # always be unresolved, which means just about no library would
14732 # ever link correctly. If we're not using GNU ld we use -z text
14733 # though, which does catch some bad symbols but isn't as heavy-handed
14735 no_undefined_flag_F77='${wl}-z,text'
14736 allow_undefined_flag_F77='${wl}-z,nodefs'
14737 archive_cmds_need_lc_F77=no
14738 hardcode_shlibpath_var_F77=no
14739 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14740 hardcode_libdir_separator_F77=':'
14741 link_all_deplibs_F77=yes
14742 export_dynamic_flag_spec_F77='${wl}-Bexport'
14743 runpath_var='LD_RUN_PATH'
14745 if test "$GCC" = yes; then
14746 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14747 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14749 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14755 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_libdir_flag_spec_F77='-L$libdir'
14757 hardcode_shlibpath_var_F77=no
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14767 $as_echo "$ld_shlibs_F77" >&6; }
14768 test "$ld_shlibs_F77" = no && can_build_shared=no
14771 # Do we need to explicitly link libc?
14773 case "x$archive_cmds_need_lc_F77" in
14775 # Assume -lc should be added
14776 archive_cmds_need_lc_F77=yes
14778 if test "$enable_shared" = yes && test "$GCC" = yes; then
14779 case $archive_cmds_F77 in
14781 # FIXME: we may have to deal with multi-command sequences.
14784 # Test whether the compiler implicitly links with -lc since on some
14785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14786 # to ld, don't add -lc before -lgcc.
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14793 (eval $ac_compile) 2>&5
14795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796 test $ac_status = 0; } 2>conftest.err; then
14799 libobjs=conftest.$ac_objext
14801 wl=$lt_prog_compiler_wl_F77
14802 pic_flag=$lt_prog_compiler_pic_F77
14808 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14809 allow_undefined_flag_F77=
14810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14811 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814 test $ac_status = 0; }
14816 archive_cmds_need_lc_F77=no
14818 archive_cmds_need_lc_F77=yes
14820 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14822 cat conftest.err 1>&5
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14826 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14835 library_names_spec=
14836 libname_spec='lib$name'
14840 postuninstall_cmds=
14844 shlibpath_overrides_runpath=unknown
14846 dynamic_linker="$host_os ld.so"
14847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14849 need_lib_prefix=unknown
14850 hardcode_into_libs=no
14852 # when you set need_version to no, make sure it does not cause -set_version
14853 # flags to be left without arguments
14854 need_version=unknown
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14860 shlibpath_var=LIBPATH
14862 # AIX 3 has no versioning support, so we append a major version to the name.
14863 soname_spec='${libname}${release}${shared_ext}$major'
14870 hardcode_into_libs=yes
14871 if test "$host_cpu" = ia64; then
14872 # AIX 5 supports IA64
14873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14874 shlibpath_var=LD_LIBRARY_PATH
14876 # With GCC up to 2.95.x, collect2 would create an import file
14877 # for dependence libraries. The import file would start with
14878 # the line `#! .'. This would cause the generated library to
14879 # depend on `.', always an invalid library. This was fixed in
14880 # development snapshots of GCC prior to 3.0.
14882 aix4 | aix4.[01] | aix4.[01].*)
14883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14885 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14888 can_build_shared=no
14892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14893 # soname into executable. Probably we can add versioning support to
14894 # collect2, so additional links can be useful in future.
14895 if test "$aix_use_runtimelinking" = yes; then
14896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14897 # instead of lib<name>.a to let people know that these are not
14898 # typical AIX shared libraries.
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 # We preserve .a as extension for shared libraries through AIX4.2
14902 # and later when we are not doing run time linking.
14903 library_names_spec='${libname}${release}.a $libname.a'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LIBPATH
14911 library_names_spec='$libname.ixlibrary $libname.a'
14912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14913 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'
14917 library_names_spec='${libname}${shared_ext}'
14918 dynamic_linker="$host_os ld.so"
14919 shlibpath_var=LIBRARY_PATH
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14931 # the default ld.so.conf also contains /usr/contrib/lib and
14932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14933 # libtool to hard-code these into programs
14936 cygwin* | mingw* | pw32*)
14937 version_type=windows
14942 case $GCC,$host_os in
14943 yes,cygwin* | yes,mingw* | yes,pw32*)
14944 library_names_spec='$libname.dll.a'
14945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14946 postinstall_cmds='base_file=`basename \${file}`~
14947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14948 dldir=$destdir/`dirname \$dlpath`~
14949 test -d \$dldir || mkdir -p \$dldir~
14950 $install_prog $dir/$dlname \$dldir/$dlname~
14951 chmod a+x \$dldir/$dlname'
14952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14953 dlpath=$dir/\$dldll~
14955 shlibpath_overrides_runpath=yes
14959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14964 # MinGW DLLs use traditional 'lib' prefix
14965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14968 # It is most probably a Windows format PATH printed by
14969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14970 # path with ; separators, and with drive letters. We can handle the
14971 # drive letters (cygwin fileutils understands them), so leave them,
14972 # especially as we might pass files found there to a mingw objdump,
14973 # which wouldn't understand a cygwinified path. Ahh.
14974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14980 # pw32 DLLs use 'pw' prefix rather than 'lib'
14981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14990 dynamic_linker='Win32 ld.exe'
14991 # FIXME: first we should search . and the directory the executable is in
14995 darwin* | rhapsody*)
14996 dynamic_linker="$host_os dyld"
14997 version_type=darwin
15000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15001 soname_spec='${libname}${release}${major}$shared_ext'
15002 shlibpath_overrides_runpath=yes
15003 shlibpath_var=DYLD_LIBRARY_PATH
15004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15022 freebsd* | dragonfly*)
15023 # DragonFly does not have aout. When/if they implement a new
15024 # versioning mechanism, adjust this.
15025 if test -x /usr/bin/objformat; then
15026 objformat=`/usr/bin/objformat`
15029 freebsd[123]*) objformat=aout ;;
15030 *) objformat=elf ;;
15033 version_type=freebsd-$objformat
15034 case $version_type in
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15045 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=yes
15050 freebsd3.[01]* | freebsdelf3.[01]*)
15051 shlibpath_overrides_runpath=yes
15052 hardcode_into_libs=yes
15054 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15055 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15056 shlibpath_overrides_runpath=no
15057 hardcode_into_libs=yes
15059 *) # from 4.6 on, and DragonFly
15060 shlibpath_overrides_runpath=yes
15061 hardcode_into_libs=yes
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 hardcode_into_libs=yes
15076 hpux9* | hpux10* | hpux11*)
15077 # Give a soname corresponding to the major version so that dld.sl refuses to
15078 # link against other versions.
15085 hardcode_into_libs=yes
15086 dynamic_linker="$host_os dld.so"
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 if test "X$HPUX_IA64_MODE" = X32; then
15092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15100 hardcode_into_libs=yes
15101 dynamic_linker="$host_os dld.sl"
15102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15111 dynamic_linker="$host_os dld.sl"
15112 shlibpath_var=SHLIB_PATH
15113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15118 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15119 postinstall_cmds='chmod 555 $lib'
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=no
15131 hardcode_into_libs=yes
15134 irix5* | irix6* | nonstopux*)
15136 nonstopux*) version_type=nonstopux ;;
15138 if test "$lt_cv_prog_gnu_ld" = yes; then
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15149 irix5* | nonstopux*)
15150 libsuff= shlibsuff=
15153 case $LD in # libtool.m4 will add one of these switches to LD
15154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15155 libsuff= shlibsuff= libmagic=32-bit;;
15156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15157 libsuff=32 shlibsuff=N32 libmagic=N32;;
15158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15160 *) libsuff= shlibsuff= libmagic=never-match;;
15164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15165 shlibpath_overrides_runpath=no
15166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15168 hardcode_into_libs=yes
15171 # No shared lib support for Linux oldld, aout, or coff.
15172 linux*oldld* | linux*aout* | linux*coff*)
15176 # This must be Linux ELF.
15177 linux* | k*bsd*-gnu)
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=no
15186 # This implies no fast_install, which is unacceptable.
15187 # Some rework will be needed to allow for fast_install
15188 # before this can be enabled.
15189 hardcode_into_libs=yes
15191 # Append ld.so.conf contents to the search path
15192 if test -f /etc/ld.so.conf; then
15193 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15194 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15197 # We used to test for /lib/ld.so.1 and disable shared libraries on
15198 # powerpc, because MkLinux only supported shared libraries with the
15199 # GNU dynamic linker. Since this was broken with cross compilers,
15200 # most powerpc-linux boxes support dynamic linking these days and
15201 # people can always --disable-shared, the test was removed, and we
15202 # assume the GNU/Linux dynamic linker is in use.
15203 dynamic_linker='GNU/Linux ld.so'
15210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15213 dynamic_linker='NetBSD (a.out) ld.so'
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 dynamic_linker='NetBSD ld.elf_so'
15219 shlibpath_var=LD_LIBRARY_PATH
15220 shlibpath_overrides_runpath=yes
15221 hardcode_into_libs=yes
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15243 sys_lib_dlsearch_path_spec="/usr/lib"
15245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15248 *) need_version=no ;;
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15255 openbsd2.[89] | openbsd2.[89].*)
15256 shlibpath_overrides_runpath=no
15259 shlibpath_overrides_runpath=yes
15263 shlibpath_overrides_runpath=yes
15268 libname_spec='$name'
15271 library_names_spec='$libname${shared_ext} $libname.a'
15272 dynamic_linker='OS/2 ld.exe'
15273 shlibpath_var=LIBPATH
15276 osf3* | osf4* | osf5*)
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 shlibpath_overrides_runpath=yes
15299 hardcode_into_libs=yes
15300 # ldd complains unless libraries are executable
15301 postinstall_cmds='chmod +x $lib'
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 shlibpath_overrides_runpath=yes
15310 if test "$with_gnu_ld" = yes; then
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 case $host_vendor in
15323 shlibpath_overrides_runpath=no
15325 export_dynamic_flag_spec='${wl}-Blargedynsym'
15326 runpath_var=LD_RUN_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15341 if test -d /usr/nec ;then
15343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15344 soname_spec='$libname${shared_ext}.$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15350 version_type=freebsd-elf
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 hardcode_into_libs=yes
15357 if test "$with_gnu_ld" = yes; then
15358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15359 shlibpath_overrides_runpath=no
15361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15362 shlibpath_overrides_runpath=yes
15365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15369 sys_lib_dlsearch_path_spec='/usr/lib'
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 shlibpath_var=LD_LIBRARY_PATH
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15384 $as_echo "$dynamic_linker" >&6; }
15385 test "$dynamic_linker" = no && can_build_shared=no
15387 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15390 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15393 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15394 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15397 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15400 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15403 if test "$GCC" = yes; then
15404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15409 hardcode_action_F77=
15410 if test -n "$hardcode_libdir_flag_spec_F77" || \
15411 test -n "$runpath_var_F77" || \
15412 test "X$hardcode_automatic_F77" = "Xyes" ; then
15414 # We can hardcode non-existant directories.
15415 if test "$hardcode_direct_F77" != no &&
15416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15417 # have to relink, otherwise we might link with an installed library
15418 # when we should be linking with a yet-to-be-installed one
15419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15420 test "$hardcode_minus_L_F77" != no; then
15421 # Linking always hardcodes the temporary library directory.
15422 hardcode_action_F77=relink
15424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15425 hardcode_action_F77=immediate
15428 # We cannot hardcode anything, or else we can only hardcode existing
15430 hardcode_action_F77=unsupported
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15433 $as_echo "$hardcode_action_F77" >&6; }
15435 if test "$hardcode_action_F77" = relink; then
15436 # Fast installation is not supported
15437 enable_fast_install=no
15438 elif test "$shlibpath_overrides_runpath" = yes ||
15439 test "$enable_shared" = no; then
15440 # Fast installation is not necessary
15441 enable_fast_install=needless
15445 # The else clause should only fire when bootstrapping the
15446 # libtool distribution, otherwise you forgot to ship ltmain.sh
15447 # with your package, and you will get complaints that there are
15448 # no rules to generate ltmain.sh.
15449 if test -f "$ltmain"; then
15450 # See if we are running on zsh, and set the options which allow our commands through
15451 # without removal of \ escapes.
15452 if test -n "${ZSH_VERSION+set}" ; then
15453 setopt NO_GLOB_SUBST
15455 # Now quote all the things that may contain metacharacters while being
15456 # careful not to overquote the AC_SUBSTed values. We take copies of the
15457 # variables and quote the copies for generation of the libtool script.
15458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15462 deplibs_check_method reload_flag reload_cmds need_locks \
15463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15464 lt_cv_sys_global_symbol_to_c_name_address \
15465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15466 old_postinstall_cmds old_postuninstall_cmds \
15470 lt_prog_compiler_wl_F77 \
15471 lt_prog_compiler_pic_F77 \
15472 lt_prog_compiler_static_F77 \
15473 lt_prog_compiler_no_builtin_flag_F77 \
15474 export_dynamic_flag_spec_F77 \
15475 thread_safe_flag_spec_F77 \
15476 whole_archive_flag_spec_F77 \
15477 enable_shared_with_static_runtimes_F77 \
15478 old_archive_cmds_F77 \
15479 old_archive_from_new_cmds_F77 \
15480 predep_objects_F77 \
15481 postdep_objects_F77 \
15484 compiler_lib_search_path_F77 \
15485 compiler_lib_search_dirs_F77 \
15487 archive_expsym_cmds_F77 \
15488 postinstall_cmds_F77 \
15489 postuninstall_cmds_F77 \
15490 old_archive_from_expsyms_cmds_F77 \
15491 allow_undefined_flag_F77 \
15492 no_undefined_flag_F77 \
15493 export_symbols_cmds_F77 \
15494 hardcode_libdir_flag_spec_F77 \
15495 hardcode_libdir_flag_spec_ld_F77 \
15496 hardcode_libdir_separator_F77 \
15497 hardcode_automatic_F77 \
15499 module_expsym_cmds_F77 \
15500 lt_cv_prog_compiler_c_o_F77 \
15501 fix_srcfile_path_F77 \
15502 exclude_expsyms_F77 \
15503 include_expsyms_F77; do
15506 old_archive_cmds_F77 | \
15507 old_archive_from_new_cmds_F77 | \
15508 archive_cmds_F77 | \
15509 archive_expsym_cmds_F77 | \
15510 module_cmds_F77 | \
15511 module_expsym_cmds_F77 | \
15512 old_archive_from_expsyms_cmds_F77 | \
15513 export_symbols_cmds_F77 | \
15514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15515 postinstall_cmds | postuninstall_cmds | \
15516 old_postinstall_cmds | old_postuninstall_cmds | \
15517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15518 # Double-quote double-evaled strings.
15519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15528 *'\$0 --fallback-echo"')
15529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15535 cat <<__EOF__ >> "$cfgfile"
15536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15540 # Shell to use when invoking shell scripts.
15543 # Whether or not to build shared libraries.
15544 build_libtool_libs=$enable_shared
15546 # Whether or not to build static libraries.
15547 build_old_libs=$enable_static
15549 # Whether or not to add -lc for building shared libraries.
15550 build_libtool_need_lc=$archive_cmds_need_lc_F77
15552 # Whether or not to disallow shared libs when runtime libs are static
15553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15555 # Whether or not to optimize for fast installation.
15556 fast_install=$enable_fast_install
15559 host_alias=$host_alias
15563 # The build system.
15564 build_alias=$build_alias
15568 # An echo program that does not interpret backslashes.
15573 AR_FLAGS=$lt_AR_FLAGS
15578 # LTCC compiler flags.
15579 LTCFLAGS=$lt_LTCFLAGS
15581 # A language-specific compiler.
15582 CC=$lt_compiler_F77
15584 # Is the compiler the GNU C compiler?
15590 # The linker used to build libraries.
15593 # Whether we need hard or soft links.
15596 # A BSD-compatible nm program.
15599 # A symbol stripping program
15602 # Used to examine libraries when file_magic_cmd begins "file"
15603 MAGIC_CMD=$MAGIC_CMD
15605 # Used on cygwin: DLL creation program.
15608 # Used on cygwin: object dumper.
15611 # Used on cygwin: assembler.
15614 # The name of the directory that contains temporary libtool files.
15617 # How to create reloadable object files.
15618 reload_flag=$lt_reload_flag
15619 reload_cmds=$lt_reload_cmds
15621 # How to pass a linker flag through the compiler.
15622 wl=$lt_lt_prog_compiler_wl_F77
15624 # Object file suffix (normally "o").
15625 objext="$ac_objext"
15627 # Old archive suffix (normally "a").
15630 # Shared library suffix (normally ".so").
15631 shrext_cmds='$shrext_cmds'
15633 # Executable file suffix (normally "").
15636 # Additional compiler flags for building library objects.
15637 pic_flag=$lt_lt_prog_compiler_pic_F77
15640 # What is the maximum length of a command?
15641 max_cmd_len=$lt_cv_sys_max_cmd_len
15643 # Does compiler simultaneously support -c and -o options?
15644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15646 # Must we lock files when doing compilation?
15647 need_locks=$lt_need_locks
15649 # Do we need the lib prefix for modules?
15650 need_lib_prefix=$need_lib_prefix
15652 # Do we need a version for libraries?
15653 need_version=$need_version
15655 # Whether dlopen is supported.
15656 dlopen_support=$enable_dlopen
15658 # Whether dlopen of programs is supported.
15659 dlopen_self=$enable_dlopen_self
15661 # Whether dlopen of statically linked programs is supported.
15662 dlopen_self_static=$enable_dlopen_self_static
15664 # Compiler flag to prevent dynamic linking.
15665 link_static_flag=$lt_lt_prog_compiler_static_F77
15667 # Compiler flag to turn off builtin functions.
15668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15670 # Compiler flag to allow reflexive dlopens.
15671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15673 # Compiler flag to generate shared objects directly from archives.
15674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15676 # Compiler flag to generate thread-safe objects.
15677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15679 # Library versioning type.
15680 version_type=$version_type
15682 # Format of library name prefix.
15683 libname_spec=$lt_libname_spec
15685 # List of archive names. First name is the real one, the rest are links.
15686 # The last name is the one that the linker finds with -lNAME.
15687 library_names_spec=$lt_library_names_spec
15689 # The coded name of the library, if different from the real name.
15690 soname_spec=$lt_soname_spec
15692 # Commands used to build and install an old-style archive.
15694 old_archive_cmds=$lt_old_archive_cmds_F77
15695 old_postinstall_cmds=$lt_old_postinstall_cmds
15696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15698 # Create an old-style archive from a shared archive.
15699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15701 # Create a temporary old-style archive to link instead of a shared archive.
15702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15704 # Commands used to build and install a shared archive.
15705 archive_cmds=$lt_archive_cmds_F77
15706 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15707 postinstall_cmds=$lt_postinstall_cmds
15708 postuninstall_cmds=$lt_postuninstall_cmds
15710 # Commands used to build a loadable module (assumed same as above if empty)
15711 module_cmds=$lt_module_cmds_F77
15712 module_expsym_cmds=$lt_module_expsym_cmds_F77
15714 # Commands to strip libraries.
15715 old_striplib=$lt_old_striplib
15716 striplib=$lt_striplib
15718 # Dependencies to place before the objects being linked to create a
15720 predep_objects=$lt_predep_objects_F77
15722 # Dependencies to place after the objects being linked to create a
15724 postdep_objects=$lt_postdep_objects_F77
15726 # Dependencies to place before the objects being linked to create a
15728 predeps=$lt_predeps_F77
15730 # Dependencies to place after the objects being linked to create a
15732 postdeps=$lt_postdeps_F77
15734 # The directories searched by this compiler when creating a shared
15736 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15738 # The library search path used internally by the compiler when linking
15739 # a shared library.
15740 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15742 # Method to check whether dependent libraries are shared objects.
15743 deplibs_check_method=$lt_deplibs_check_method
15745 # Command to use when deplibs_check_method == file_magic.
15746 file_magic_cmd=$lt_file_magic_cmd
15748 # Flag that allows shared libraries with undefined symbols to be built.
15749 allow_undefined_flag=$lt_allow_undefined_flag_F77
15751 # Flag that forces no undefined symbols.
15752 no_undefined_flag=$lt_no_undefined_flag_F77
15754 # Commands used to finish a libtool library installation in a directory.
15755 finish_cmds=$lt_finish_cmds
15757 # Same as above, but a single script fragment to be evaled but not shown.
15758 finish_eval=$lt_finish_eval
15760 # Take the output of nm and produce a listing of raw symbols and C names.
15761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15763 # Transform the output of nm in a proper C declaration
15764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15766 # Transform the output of nm in a C name address pair
15767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15769 # This is the shared library runtime path variable.
15770 runpath_var=$runpath_var
15772 # This is the shared library path variable.
15773 shlibpath_var=$shlibpath_var
15775 # Is shlibpath searched before the hard-coded library search path?
15776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15778 # How to hardcode a shared library path into an executable.
15779 hardcode_action=$hardcode_action_F77
15781 # Whether we should hardcode library paths into libraries.
15782 hardcode_into_libs=$hardcode_into_libs
15784 # Flag to hardcode \$libdir into a binary during linking.
15785 # This must work even if \$libdir does not exist.
15786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15788 # If ld is used when linking, flag to hardcode \$libdir into
15789 # a binary during linking. This must work even if \$libdir does
15791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15793 # Whether we need a single -rpath flag with a separated argument.
15794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15797 # resulting binary.
15798 hardcode_direct=$hardcode_direct_F77
15800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15801 # resulting binary.
15802 hardcode_minus_L=$hardcode_minus_L_F77
15804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15805 # the resulting binary.
15806 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15808 # Set to yes if building a shared library automatically hardcodes DIR into the library
15809 # and all subsequent libraries and executables linked against it.
15810 hardcode_automatic=$hardcode_automatic_F77
15812 # Variables whose values should be saved in libtool wrapper scripts and
15813 # restored at relink time.
15814 variables_saved_for_relink="$variables_saved_for_relink"
15816 # Whether libtool must link a program against all its dependency libraries.
15817 link_all_deplibs=$link_all_deplibs_F77
15819 # Compile-time system search path for libraries
15820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15822 # Run-time system search path for libraries
15823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15825 # Fix the shell variable \$srcfile for the compiler.
15826 fix_srcfile_path=$lt_fix_srcfile_path
15828 # Set to yes if exported symbols are required.
15829 always_export_symbols=$always_export_symbols_F77
15831 # The commands to list exported symbols.
15832 export_symbols_cmds=$lt_export_symbols_cmds_F77
15834 # The commands to extract the exported symbol list from a shared archive.
15835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15837 # Symbols that should not be listed in the preloaded symbols.
15838 exclude_expsyms=$lt_exclude_expsyms_F77
15840 # Symbols that must always be exported.
15841 include_expsyms=$lt_include_expsyms_F77
15843 # ### END LIBTOOL TAG CONFIG: $tagname
15849 # If there is no Makefile yet, we rely on a make rule to execute
15850 # `config.status --recheck' to rerun these tests and create the
15851 # libtool script then.
15852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15853 if test -f "$ltmain_in"; then
15854 test -f Makefile && make "$ltmain"
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15873 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15876 # Source file extension for Java test sources.
15879 # Object file extension for compiled Java test sources.
15883 # Code to be used in simple compile tests
15884 lt_simple_compile_test_code="class foo {}"
15886 # Code to be used in simple link tests
15887 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15891 # If no C compiler was specified, use CC.
15894 # If no C compiler flags were specified, use CFLAGS.
15895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15897 # Allow CC to be a program name with arguments.
15901 # save warnings/boilerplate of simple test code
15902 ac_outfile=conftest.$ac_objext
15903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15905 _lt_compiler_boilerplate=`cat conftest.err`
15908 ac_outfile=conftest.$ac_objext
15909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15911 _lt_linker_boilerplate=`cat conftest.err`
15915 # Allow CC to be a program name with arguments.
15920 for cc_temp in $compiler""; do
15922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15932 archive_cmds_need_lc_GCJ=no
15934 old_archive_cmds_GCJ=$old_archive_cmds
15937 lt_prog_compiler_no_builtin_flag_GCJ=
15939 if test "$GCC" = yes; then
15940 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15944 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15946 $as_echo_n "(cached) " >&6
15948 lt_cv_prog_compiler_rtti_exceptions=no
15949 ac_outfile=conftest.$ac_objext
15950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15951 lt_compiler_flag="-fno-rtti -fno-exceptions"
15952 # Insert the option either (1) after the last *FLAGS variable, or
15953 # (2) before a word containing "conftest.", or (3) at the end.
15954 # Note that $ac_compile itself does not contain backslashes and begins
15955 # with a dollar sign (not a hyphen), so the echo should work correctly.
15956 # The option is referenced via a variable to avoid confusing sed.
15957 lt_compile=`echo "$ac_compile" | $SED \
15958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15960 -e 's:$: $lt_compiler_flag:'`
15961 (eval echo "\"\$as_me:15961: $lt_compile\"" >&5)
15962 (eval "$lt_compile" 2>conftest.err)
15964 cat conftest.err >&5
15965 echo "$as_me:15965: \$? = $ac_status" >&5
15966 if (exit $ac_status) && test -s "$ac_outfile"; then
15967 # The compiler can only warn and ignore the option if not recognized
15968 # So say no if there are warnings other than the usual output.
15969 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15972 lt_cv_prog_compiler_rtti_exceptions=yes
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15979 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15982 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15989 lt_prog_compiler_wl_GCJ=
15990 lt_prog_compiler_pic_GCJ=
15991 lt_prog_compiler_static_GCJ=
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15994 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15996 if test "$GCC" = yes; then
15997 lt_prog_compiler_wl_GCJ='-Wl,'
15998 lt_prog_compiler_static_GCJ='-static'
16002 # All AIX code is PIC.
16003 if test "$host_cpu" = ia64; then
16004 # AIX 5 now supports IA64 processor
16005 lt_prog_compiler_static_GCJ='-Bstatic'
16010 # FIXME: we need at least 68020 code to build shared libraries, but
16011 # adding the `-m68020' flag to GCC prevents building anything better,
16013 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16017 # PIC is the default for these OSes.
16020 mingw* | cygwin* | pw32* | os2*)
16021 # This hack is so that the source file can tell whether it is being
16022 # built for inclusion in a dll (and should export symbols for example).
16023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16024 # (--disable-auto-import) libraries
16028 darwin* | rhapsody*)
16029 # PIC is the default on this platform
16030 # Common symbols not allowed in MH_DYLIB files
16031 lt_prog_compiler_pic_GCJ='-fno-common'
16035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16036 # Instead, we relocate shared libraries at runtime.
16040 # Just because we use GCC doesn't mean we suddenly get shared libraries
16041 # on systems that don't support them.
16042 lt_prog_compiler_can_build_shared_GCJ=no
16047 if test -d /usr/nec; then
16048 lt_prog_compiler_pic_GCJ=-Kconform_pic
16053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16054 # not for PA HP-UX.
16060 lt_prog_compiler_pic_GCJ='-fPIC'
16066 lt_prog_compiler_pic_GCJ='-fPIC'
16070 # PORTME Check for flag to pass linker flags through the system compiler.
16073 lt_prog_compiler_wl_GCJ='-Wl,'
16074 if test "$host_cpu" = ia64; then
16075 # AIX 5 now supports IA64 processor
16076 lt_prog_compiler_static_GCJ='-Bstatic'
16078 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16082 # PIC is the default on this platform
16083 # Common symbols not allowed in MH_DYLIB files
16084 case $cc_basename in
16086 lt_prog_compiler_pic_GCJ='-qnocommon'
16087 lt_prog_compiler_wl_GCJ='-Wl,'
16092 mingw* | cygwin* | pw32* | os2*)
16093 # This hack is so that the source file can tell whether it is being
16094 # built for inclusion in a dll (and should export symbols for example).
16098 hpux9* | hpux10* | hpux11*)
16099 lt_prog_compiler_wl_GCJ='-Wl,'
16100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16101 # not for PA HP-UX.
16107 lt_prog_compiler_pic_GCJ='+Z'
16110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16111 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16114 irix5* | irix6* | nonstopux*)
16115 lt_prog_compiler_wl_GCJ='-Wl,'
16116 # PIC (with -KPIC) is the default.
16117 lt_prog_compiler_static_GCJ='-non_shared'
16121 lt_prog_compiler_pic_GCJ='-KPIC'
16122 lt_prog_compiler_static_GCJ='-Bstatic'
16125 linux* | k*bsd*-gnu)
16126 case $cc_basename in
16128 lt_prog_compiler_wl_GCJ='-Wl,'
16129 lt_prog_compiler_pic_GCJ='-KPIC'
16130 lt_prog_compiler_static_GCJ='-static'
16132 pgcc* | pgf77* | pgf90* | pgf95*)
16133 # Portland Group compilers (*not* the Pentium gcc compiler,
16134 # which looks to be a dead project)
16135 lt_prog_compiler_wl_GCJ='-Wl,'
16136 lt_prog_compiler_pic_GCJ='-fpic'
16137 lt_prog_compiler_static_GCJ='-Bstatic'
16140 lt_prog_compiler_wl_GCJ='-Wl,'
16141 # All Alpha code is PIC.
16142 lt_prog_compiler_static_GCJ='-non_shared'
16145 case `$CC -V 2>&1 | sed 5q` in
16148 lt_prog_compiler_pic_GCJ='-KPIC'
16149 lt_prog_compiler_static_GCJ='-Bstatic'
16150 lt_prog_compiler_wl_GCJ='-Wl,'
16153 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16154 lt_prog_compiler_pic_GCJ='-KPIC'
16155 lt_prog_compiler_static_GCJ='-Bstatic'
16156 lt_prog_compiler_wl_GCJ=''
16163 osf3* | osf4* | osf5*)
16164 lt_prog_compiler_wl_GCJ='-Wl,'
16165 # All OSF/1 code is PIC.
16166 lt_prog_compiler_static_GCJ='-non_shared'
16170 lt_prog_compiler_static_GCJ='-non_shared'
16174 lt_prog_compiler_pic_GCJ='-KPIC'
16175 lt_prog_compiler_static_GCJ='-Bstatic'
16176 case $cc_basename in
16177 f77* | f90* | f95*)
16178 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16180 lt_prog_compiler_wl_GCJ='-Wl,';;
16185 lt_prog_compiler_wl_GCJ='-Qoption ld '
16186 lt_prog_compiler_pic_GCJ='-PIC'
16187 lt_prog_compiler_static_GCJ='-Bstatic'
16190 sysv4 | sysv4.2uw2* | sysv4.3*)
16191 lt_prog_compiler_wl_GCJ='-Wl,'
16192 lt_prog_compiler_pic_GCJ='-KPIC'
16193 lt_prog_compiler_static_GCJ='-Bstatic'
16197 if test -d /usr/nec ;then
16198 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16204 lt_prog_compiler_wl_GCJ='-Wl,'
16205 lt_prog_compiler_pic_GCJ='-KPIC'
16206 lt_prog_compiler_static_GCJ='-Bstatic'
16210 lt_prog_compiler_wl_GCJ='-Wl,'
16211 lt_prog_compiler_can_build_shared_GCJ=no
16215 lt_prog_compiler_pic_GCJ='-pic'
16216 lt_prog_compiler_static_GCJ='-Bstatic'
16220 lt_prog_compiler_can_build_shared_GCJ=no
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16226 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16229 # Check to make sure the PIC flag actually works.
16231 if test -n "$lt_prog_compiler_pic_GCJ"; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16235 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16236 $as_echo_n "(cached) " >&6
16238 lt_cv_prog_compiler_pic_works_GCJ=no
16239 ac_outfile=conftest.$ac_objext
16240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16241 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16242 # Insert the option either (1) after the last *FLAGS variable, or
16243 # (2) before a word containing "conftest.", or (3) at the end.
16244 # Note that $ac_compile itself does not contain backslashes and begins
16245 # with a dollar sign (not a hyphen), so the echo should work correctly.
16246 # The option is referenced via a variable to avoid confusing sed.
16247 lt_compile=`echo "$ac_compile" | $SED \
16248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16250 -e 's:$: $lt_compiler_flag:'`
16251 (eval echo "\"\$as_me:16251: $lt_compile\"" >&5)
16252 (eval "$lt_compile" 2>conftest.err)
16254 cat conftest.err >&5
16255 echo "$as_me:16255: \$? = $ac_status" >&5
16256 if (exit $ac_status) && test -s "$ac_outfile"; then
16257 # The compiler can only warn and ignore the option if not recognized
16258 # So say no if there are warnings other than the usual output.
16259 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16262 lt_cv_prog_compiler_pic_works_GCJ=yes
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16269 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16271 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16272 case $lt_prog_compiler_pic_GCJ in
16274 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16277 lt_prog_compiler_pic_GCJ=
16278 lt_prog_compiler_can_build_shared_GCJ=no
16283 # For platforms which do not support PIC, -DPIC is meaningless:
16285 lt_prog_compiler_pic_GCJ=
16288 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16293 # Check to make sure the static flag actually works.
16295 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16297 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16298 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16299 $as_echo_n "(cached) " >&6
16301 lt_cv_prog_compiler_static_works_GCJ=no
16302 save_LDFLAGS="$LDFLAGS"
16303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16306 # The linker can only warn and ignore the option if not recognized
16307 # So say no if there are warnings
16308 if test -s conftest.err; then
16309 # Append any errors to the config.log.
16310 cat conftest.err 1>&5
16311 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16313 if diff conftest.exp conftest.er2 >/dev/null; then
16314 lt_cv_prog_compiler_static_works_GCJ=yes
16317 lt_cv_prog_compiler_static_works_GCJ=yes
16321 LDFLAGS="$save_LDFLAGS"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16325 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16327 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16330 lt_prog_compiler_static_GCJ=
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16335 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16336 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16339 lt_cv_prog_compiler_c_o_GCJ=no
16340 $rm -r conftest 2>/dev/null
16344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16346 lt_compiler_flag="-o out/conftest2.$ac_objext"
16347 # Insert the option either (1) after the last *FLAGS variable, or
16348 # (2) before a word containing "conftest.", or (3) at the end.
16349 # Note that $ac_compile itself does not contain backslashes and begins
16350 # with a dollar sign (not a hyphen), so the echo should work correctly.
16351 lt_compile=`echo "$ac_compile" | $SED \
16352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16354 -e 's:$: $lt_compiler_flag:'`
16355 (eval echo "\"\$as_me:16355: $lt_compile\"" >&5)
16356 (eval "$lt_compile" 2>out/conftest.err)
16358 cat out/conftest.err >&5
16359 echo "$as_me:16359: \$? = $ac_status" >&5
16360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16362 # The compiler can only warn and ignore the option if not recognized
16363 # So say no if there are warnings
16364 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16367 lt_cv_prog_compiler_c_o_GCJ=yes
16372 # SGI C++ compiler will create directory out/ii_files/ for
16373 # template instantiation
16374 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16375 $rm out/* && rmdir out
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16382 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16385 hard_links="nottested"
16386 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16387 # do not overwrite the value of need_locks provided by the user
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16389 $as_echo_n "checking if we can lock with hard links... " >&6; }
16392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16394 ln conftest.a conftest.b 2>&5 || hard_links=no
16395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16397 $as_echo "$hard_links" >&6; }
16398 if test "$hard_links" = no; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16408 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16411 allow_undefined_flag_GCJ=
16412 enable_shared_with_static_runtimes_GCJ=no
16414 archive_expsym_cmds_GCJ=
16415 old_archive_From_new_cmds_GCJ=
16416 old_archive_from_expsyms_cmds_GCJ=
16417 export_dynamic_flag_spec_GCJ=
16418 whole_archive_flag_spec_GCJ=
16419 thread_safe_flag_spec_GCJ=
16420 hardcode_libdir_flag_spec_GCJ=
16421 hardcode_libdir_flag_spec_ld_GCJ=
16422 hardcode_libdir_separator_GCJ=
16423 hardcode_direct_GCJ=no
16424 hardcode_minus_L_GCJ=no
16425 hardcode_shlibpath_var_GCJ=unsupported
16426 link_all_deplibs_GCJ=unknown
16427 hardcode_automatic_GCJ=no
16429 module_expsym_cmds_GCJ=
16430 always_export_symbols_GCJ=no
16431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16432 # include_expsyms should be a list of space-separated symbols to be *always*
16433 # included in the symbol list
16434 include_expsyms_GCJ=
16435 # exclude_expsyms can be an extended regexp of symbols to exclude
16436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16438 # as well as any symbol that contains `d'.
16439 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16441 # platforms (ab)use it in PIC code, but their linkers get confused if
16442 # the symbol is explicitly referenced. Since portable code cannot
16443 # rely on this symbol name, it's probably fine to never include it in
16444 # preloaded symbol tables.
16445 # Exclude shared library initialization/finalization symbols.
16446 extract_expsyms_cmds=
16447 # Just being paranoid about ensuring that cc_basename is set.
16448 for cc_temp in $compiler""; do
16450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16459 cygwin* | mingw* | pw32*)
16460 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16461 # When not using gcc, we currently assume that we are using
16462 # Microsoft Visual C++.
16463 if test "$GCC" != yes; then
16468 # we just hope/assume this is gcc and not c89 (= MSVC++)
16477 if test "$with_gnu_ld" = yes; then
16478 # If archive_cmds runs LD, not CC, wlarc should be empty
16481 # Set some defaults for GNU ld with shared library support. These
16482 # are reset later if shared libraries are not supported. Putting them
16483 # here allows them to be overridden if necessary.
16484 runpath_var=LD_RUN_PATH
16485 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16486 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16487 # ancient GNU ld didn't support --whole-archive et. al.
16488 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16489 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16491 whole_archive_flag_spec_GCJ=
16493 supports_anon_versioning=no
16494 case `$LD -v 2>/dev/null` in
16495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16498 *\ 2.11.*) ;; # other 2.11 versions
16499 *) supports_anon_versioning=yes ;;
16502 # See if GNU ld supports shared libraries.
16505 # On AIX/PPC, the GNU linker is very broken
16506 if test "$host_cpu" != ia64; then
16510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16511 *** to be unable to reliably create shared libraries on AIX.
16512 *** Therefore, libtool is disabling shared libraries support. If you
16513 *** really care for shared libraries, you may want to modify your PATH
16514 *** so that a non-GNU linker is found, and then restart.
16521 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)'
16522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16523 hardcode_minus_L_GCJ=yes
16525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16526 # that the semantics of dynamic libraries on AmigaOS, at least up
16527 # to version 4, is to share data among multiple programs linked
16528 # with the same dynamic library. Since this doesn't match the
16529 # behavior of shared libraries on other platforms, we can't use
16535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16536 allow_undefined_flag_GCJ=unsupported
16537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16538 # support --undefined. This deserves some investigation. FIXME
16539 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16545 cygwin* | mingw* | pw32*)
16546 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16547 # as there is no search path for DLLs.
16548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549 allow_undefined_flag_GCJ=unsupported
16550 always_export_symbols_GCJ=no
16551 enable_shared_with_static_runtimes_GCJ=yes
16552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16556 # If the export-symbols file already is a .def file (1st line
16557 # is EXPORTS), use it as is; otherwise, prepend...
16558 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16559 cp $export_symbols $output_objdir/$soname.def;
16561 echo EXPORTS > $output_objdir/$soname.def;
16562 cat $export_symbols >> $output_objdir/$soname.def;
16564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16571 hardcode_direct_GCJ=no
16572 hardcode_shlibpath_var_GCJ=no
16573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16574 export_dynamic_flag_spec_GCJ='${wl}-E'
16575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16576 # Instead, shared libraries are loaded at an image base (0x10000000 by
16577 # default) and relocated if they conflict, which is a slow very memory
16578 # consuming and fragmenting process. To avoid this, we pick a random,
16579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16581 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'
16582 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'
16585 gnu* | linux* | k*bsd*-gnu)
16586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16588 case $cc_basename,$host_cpu in
16589 pgcc*) # Portland Group C compiler
16590 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'
16591 tmp_addflag=' $pic_flag'
16593 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
16596 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16597 tmp_addflag=' -i_dynamic' ;;
16598 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16599 tmp_addflag=' -i_dynamic -nofor_main' ;;
16600 ifc* | ifort*) # Intel Fortran compiler
16601 tmp_addflag=' -nofor_main' ;;
16603 case `$CC -V 2>&1 | sed 5q` in
16604 *Sun\ C*) # Sun C 5.9
16605 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16606 tmp_sharedflag='-G' ;;
16607 *Sun\ F*) # Sun Fortran 8.3
16608 tmp_sharedflag='-G' ;;
16610 tmp_sharedflag='-shared' ;;
16612 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 if test $supports_anon_versioning = yes; then
16615 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16617 $echo "local: *; };" >> $output_objdir/$libname.ver~
16618 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16627 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16636 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16641 *** create shared libraries on Solaris systems. Therefore, libtool
16642 *** is disabling shared libraries support. We urge you to upgrade GNU
16643 *** binutils to release 2.9.1 or newer. Another option is to modify
16644 *** your PATH or compiler configuration so that the native linker is
16645 *** used, and then restart.
16648 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16650 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16657 case `$LD -v 2>&1` in
16658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16663 *** reliably create shared libraries on SCO systems. Therefore, libtool
16664 *** is disabling shared libraries support. We urge you to upgrade GNU
16665 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16666 *** your PATH or compiler configuration so that the native linker is
16667 *** used, and then restart.
16672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16675 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16684 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_direct_GCJ=yes
16687 hardcode_shlibpath_var_GCJ=no
16691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16700 if test "$ld_shlibs_GCJ" = no; then
16702 hardcode_libdir_flag_spec_GCJ=
16703 export_dynamic_flag_spec_GCJ=
16704 whole_archive_flag_spec_GCJ=
16707 # PORTME fill in a description of your system's linker (not GNU ld)
16710 allow_undefined_flag_GCJ=unsupported
16711 always_export_symbols_GCJ=yes
16712 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'
16713 # Note: this linker hardcodes the directories in LIBPATH if there
16714 # are no directories specified by -L.
16715 hardcode_minus_L_GCJ=yes
16716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16717 # Neither direct hardcoding nor static linking is supported with a
16719 hardcode_direct_GCJ=unsupported
16724 if test "$host_cpu" = ia64; then
16725 # On IA64, the linker does run time linking by default, so we don't
16726 # have to do anything special.
16727 aix_use_runtimelinking=no
16728 exp_sym_flag='-Bexport'
16731 # If we're using GNU nm, then we don't want the "-C" option.
16732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16733 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16734 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'
16736 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'
16738 aix_use_runtimelinking=no
16740 # Test if we are trying to use run time linking or normal
16741 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16742 # need to do runtime linking.
16743 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16744 for ld_flag in $LDFLAGS; do
16745 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16746 aix_use_runtimelinking=yes
16753 exp_sym_flag='-bexport'
16754 no_entry_flag='-bnoentry'
16757 # When large executables or shared objects are built, AIX ld can
16758 # have problems creating the table of contents. If linking a library
16759 # or program results in "error TOC overflow" add -mminimal-toc to
16760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16763 archive_cmds_GCJ=''
16764 hardcode_direct_GCJ=yes
16765 hardcode_libdir_separator_GCJ=':'
16766 link_all_deplibs_GCJ=yes
16768 if test "$GCC" = yes; then
16769 case $host_os in aix4.[012]|aix4.[012].*)
16770 # We only want to do this on AIX 4.2 and lower, the check
16771 # below for broken collect2 doesn't work under 4.3+
16772 collect2name=`${CC} -print-prog-name=collect2`
16773 if test -f "$collect2name" && \
16774 strings "$collect2name" | grep resolve_lib_name >/dev/null
16776 # We have reworked collect2
16779 # We have old collect2
16780 hardcode_direct_GCJ=unsupported
16781 # It fails to find uninstalled libraries when the uninstalled
16782 # path is not listed in the libpath. Setting hardcode_minus_L
16783 # to unsupported forces relinking
16784 hardcode_minus_L_GCJ=yes
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786 hardcode_libdir_separator_GCJ=
16790 shared_flag='-shared'
16791 if test "$aix_use_runtimelinking" = yes; then
16792 shared_flag="$shared_flag "'${wl}-G'
16796 if test "$host_cpu" = ia64; then
16797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16798 # chokes on -Wl,-G. The following line is correct:
16801 if test "$aix_use_runtimelinking" = yes; then
16802 shared_flag='${wl}-G'
16804 shared_flag='${wl}-bM:SRE'
16809 # It seems that -bexpall does not export symbols beginning with
16810 # underscore (_), so it is better to generate a list of symbols to export.
16811 always_export_symbols_GCJ=yes
16812 if test "$aix_use_runtimelinking" = yes; then
16813 # Warning - without using the other runtime loading flags (-brtl),
16814 # -berok will link without error, but may produce a broken library.
16815 allow_undefined_flag_GCJ='-berok'
16816 # Determine the default libpath from the value encoded in an empty executable.
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16828 if ac_fn_c_try_link "$LINENO"; then :
16830 lt_aix_libpath_sed='
16831 /Import File Strings/,/^$/ {
16837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16838 # Check for a 64-bit object if we didn't find anything.
16839 if test -z "$aix_libpath"; then
16840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16848 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"
16850 if test "$host_cpu" = ia64; then
16851 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16852 allow_undefined_flag_GCJ="-z nodefs"
16853 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"
16855 # Determine the default libpath from the value encoded in an empty executable.
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16867 if ac_fn_c_try_link "$LINENO"; then :
16869 lt_aix_libpath_sed='
16870 /Import File Strings/,/^$/ {
16876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16877 # Check for a 64-bit object if we didn't find anything.
16878 if test -z "$aix_libpath"; then
16879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16882 rm -f core conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16887 # Warning - without using the other run time loading flags,
16888 # -berok will link without error, but may produce a broken library.
16889 no_undefined_flag_GCJ=' ${wl}-bernotok'
16890 allow_undefined_flag_GCJ=' ${wl}-berok'
16891 # Exported symbols can be pulled into shared objects from archives
16892 whole_archive_flag_spec_GCJ='$convenience'
16893 archive_cmds_need_lc_GCJ=yes
16894 # This is similar to how AIX traditionally builds its shared libraries.
16895 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'
16901 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)'
16902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903 hardcode_minus_L_GCJ=yes
16904 # see comment about different semantics on the GNU ld section
16909 export_dynamic_flag_spec_GCJ=-rdynamic
16912 cygwin* | mingw* | pw32*)
16913 # When not using gcc, we currently assume that we are using
16914 # Microsoft Visual C++.
16915 # hardcode_libdir_flag_spec is actually meaningless, as there is
16916 # no search path for DLLs.
16917 hardcode_libdir_flag_spec_GCJ=' '
16918 allow_undefined_flag_GCJ=unsupported
16919 # Tell ltmain to make .lib files, not .a files.
16921 # Tell ltmain to make .dll files, not .so files.
16923 # FIXME: Setting linknames here is a bad hack.
16924 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16925 # The linker will automatically build a .lib file if we build a DLL.
16926 old_archive_From_new_cmds_GCJ='true'
16927 # FIXME: Should let the user specify the lib program.
16928 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16929 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16930 enable_shared_with_static_runtimes_GCJ=yes
16933 darwin* | rhapsody*)
16935 rhapsody* | darwin1.[012])
16936 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16939 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16940 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16942 case ${MACOSX_DEPLOYMENT_TARGET} in
16944 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16947 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16953 archive_cmds_need_lc_GCJ=no
16954 hardcode_direct_GCJ=no
16955 hardcode_automatic_GCJ=yes
16956 hardcode_shlibpath_var_GCJ=unsupported
16957 whole_archive_flag_spec_GCJ=''
16958 link_all_deplibs_GCJ=yes
16959 if test "$GCC" = yes ; then
16960 output_verbose_link_cmd='echo'
16961 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16962 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16963 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16964 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16966 case $cc_basename in
16968 output_verbose_link_cmd='echo'
16969 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16970 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16972 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16973 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}'
16983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 hardcode_shlibpath_var_GCJ=no
16992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16993 # support. Future versions do this automatically, but an explicit c++rt0.o
16994 # does not break anything, and helps significantly (at the cost of a little
16997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct_GCJ=yes
17007 hardcode_minus_L_GCJ=yes
17008 hardcode_shlibpath_var_GCJ=no
17011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17012 freebsd* | dragonfly*)
17013 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17015 hardcode_direct_GCJ=yes
17016 hardcode_shlibpath_var_GCJ=no
17020 if test "$GCC" = yes; then
17021 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'
17023 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'
17025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17026 hardcode_libdir_separator_GCJ=:
17027 hardcode_direct_GCJ=yes
17029 # hardcode_minus_L: Not really in the search PATH,
17030 # but as the default location of the library.
17031 hardcode_minus_L_GCJ=yes
17032 export_dynamic_flag_spec_GCJ='${wl}-E'
17036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17037 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17039 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17041 if test "$with_gnu_ld" = no; then
17042 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17043 hardcode_libdir_separator_GCJ=:
17045 hardcode_direct_GCJ=yes
17046 export_dynamic_flag_spec_GCJ='${wl}-E'
17048 # hardcode_minus_L: Not really in the search PATH,
17049 # but as the default location of the library.
17050 hardcode_minus_L_GCJ=yes
17055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17058 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17064 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17080 if test "$with_gnu_ld" = no; then
17081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17082 hardcode_libdir_separator_GCJ=:
17086 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17087 hardcode_direct_GCJ=no
17088 hardcode_shlibpath_var_GCJ=no
17091 hardcode_direct_GCJ=yes
17092 export_dynamic_flag_spec_GCJ='${wl}-E'
17094 # hardcode_minus_L: Not really in the search PATH,
17095 # but as the default location of the library.
17096 hardcode_minus_L_GCJ=yes
17102 irix5* | irix6* | nonstopux*)
17103 if test "$GCC" = yes; then
17104 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'
17106 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'
17107 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17110 hardcode_libdir_separator_GCJ=:
17111 link_all_deplibs_GCJ=yes
17115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17116 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17118 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121 hardcode_direct_GCJ=yes
17122 hardcode_shlibpath_var_GCJ=no
17126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17127 hardcode_direct_GCJ=yes
17128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17129 hardcode_libdir_separator_GCJ=:
17130 hardcode_shlibpath_var_GCJ=no
17134 if test -f /usr/libexec/ld.so; then
17135 hardcode_direct_GCJ=yes
17136 hardcode_shlibpath_var_GCJ=no
17137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17138 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17139 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17141 export_dynamic_flag_spec_GCJ='${wl}-E'
17144 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17145 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17146 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17149 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17150 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161 hardcode_minus_L_GCJ=yes
17162 allow_undefined_flag_GCJ=unsupported
17163 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'
17164 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17168 if test "$GCC" = yes; then
17169 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17170 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'
17172 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17173 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'
17175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17176 hardcode_libdir_separator_GCJ=:
17179 osf4* | osf5*) # as osf3* with the addition of -msym flag
17180 if test "$GCC" = yes; then
17181 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17182 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'
17183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17185 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17186 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'
17187 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~
17188 $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'
17190 # Both c and cxx compiler support -rpath directly
17191 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17193 hardcode_libdir_separator_GCJ=:
17197 no_undefined_flag_GCJ=' -z text'
17198 if test "$GCC" = yes; then
17200 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17202 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17205 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17206 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17209 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17210 hardcode_shlibpath_var_GCJ=no
17212 solaris2.[0-5] | solaris2.[0-5].*) ;;
17214 # The compiler driver will combine and reorder linker options,
17215 # but understands `-z linker_flag'. GCC discards it without `$wl',
17216 # but is careful enough not to reorder.
17217 # Supported since Solaris 2.6 (maybe 2.5.1?)
17218 if test "$GCC" = yes; then
17219 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17221 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17225 link_all_deplibs_GCJ=yes
17229 if test "x$host_vendor" = xsequent; then
17230 # Use $CC to link under sequent, because it throws in some extra .o
17231 # files that make .init and .fini sections work.
17232 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17234 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17237 hardcode_direct_GCJ=yes
17238 hardcode_minus_L_GCJ=yes
17239 hardcode_shlibpath_var_GCJ=no
17243 case $host_vendor in
17245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 hardcode_direct_GCJ=yes # is this really true???
17249 ## LD is ld it makes a PLAMLIB
17250 ## CC just makes a GrossModule.
17251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17252 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17253 hardcode_direct_GCJ=no
17256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17257 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17260 runpath_var='LD_RUN_PATH'
17261 hardcode_shlibpath_var_GCJ=no
17265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266 hardcode_shlibpath_var_GCJ=no
17267 export_dynamic_flag_spec_GCJ='-Bexport'
17271 if test -d /usr/nec; then
17272 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17273 hardcode_shlibpath_var_GCJ=no
17274 runpath_var=LD_RUN_PATH
17275 hardcode_runpath_var=yes
17280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17281 no_undefined_flag_GCJ='${wl}-z,text'
17282 archive_cmds_need_lc_GCJ=no
17283 hardcode_shlibpath_var_GCJ=no
17284 runpath_var='LD_RUN_PATH'
17286 if test "$GCC" = yes; then
17287 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17288 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17290 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17291 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 sysv5* | sco3.2v5* | sco5v6*)
17296 # Note: We can NOT use -z defs as we might desire, because we do not
17297 # link with -lc, and that would cause any symbols used from libc to
17298 # always be unresolved, which means just about no library would
17299 # ever link correctly. If we're not using GNU ld we use -z text
17300 # though, which does catch some bad symbols but isn't as heavy-handed
17302 no_undefined_flag_GCJ='${wl}-z,text'
17303 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17304 archive_cmds_need_lc_GCJ=no
17305 hardcode_shlibpath_var_GCJ=no
17306 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17307 hardcode_libdir_separator_GCJ=':'
17308 link_all_deplibs_GCJ=yes
17309 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17310 runpath_var='LD_RUN_PATH'
17312 if test "$GCC" = yes; then
17313 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17316 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324 hardcode_shlibpath_var_GCJ=no
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17334 $as_echo "$ld_shlibs_GCJ" >&6; }
17335 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17338 # Do we need to explicitly link libc?
17340 case "x$archive_cmds_need_lc_GCJ" in
17342 # Assume -lc should be added
17343 archive_cmds_need_lc_GCJ=yes
17345 if test "$enable_shared" = yes && test "$GCC" = yes; then
17346 case $archive_cmds_GCJ in
17348 # FIXME: we may have to deal with multi-command sequences.
17351 # Test whether the compiler implicitly links with -lc since on some
17352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17353 # to ld, don't add -lc before -lgcc.
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17360 (eval $ac_compile) 2>&5
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; } 2>conftest.err; then
17366 libobjs=conftest.$ac_objext
17368 wl=$lt_prog_compiler_wl_GCJ
17369 pic_flag=$lt_prog_compiler_pic_GCJ
17375 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17376 allow_undefined_flag_GCJ=
17377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17378 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17381 test $ac_status = 0; }
17383 archive_cmds_need_lc_GCJ=no
17385 archive_cmds_need_lc_GCJ=yes
17387 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17389 cat conftest.err 1>&5
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17393 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17402 library_names_spec=
17403 libname_spec='lib$name'
17407 postuninstall_cmds=
17411 shlibpath_overrides_runpath=unknown
17413 dynamic_linker="$host_os ld.so"
17414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17416 need_lib_prefix=unknown
17417 hardcode_into_libs=no
17419 # when you set need_version to no, make sure it does not cause -set_version
17420 # flags to be left without arguments
17421 need_version=unknown
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17427 shlibpath_var=LIBPATH
17429 # AIX 3 has no versioning support, so we append a major version to the name.
17430 soname_spec='${libname}${release}${shared_ext}$major'
17437 hardcode_into_libs=yes
17438 if test "$host_cpu" = ia64; then
17439 # AIX 5 supports IA64
17440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17441 shlibpath_var=LD_LIBRARY_PATH
17443 # With GCC up to 2.95.x, collect2 would create an import file
17444 # for dependence libraries. The import file would start with
17445 # the line `#! .'. This would cause the generated library to
17446 # depend on `.', always an invalid library. This was fixed in
17447 # development snapshots of GCC prior to 3.0.
17449 aix4 | aix4.[01] | aix4.[01].*)
17450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17455 can_build_shared=no
17459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17460 # soname into executable. Probably we can add versioning support to
17461 # collect2, so additional links can be useful in future.
17462 if test "$aix_use_runtimelinking" = yes; then
17463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17464 # instead of lib<name>.a to let people know that these are not
17465 # typical AIX shared libraries.
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 # We preserve .a as extension for shared libraries through AIX4.2
17469 # and later when we are not doing run time linking.
17470 library_names_spec='${libname}${release}.a $libname.a'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17473 shlibpath_var=LIBPATH
17478 library_names_spec='$libname.ixlibrary $libname.a'
17479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17480 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'
17484 library_names_spec='${libname}${shared_ext}'
17485 dynamic_linker="$host_os ld.so"
17486 shlibpath_var=LIBRARY_PATH
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17498 # the default ld.so.conf also contains /usr/contrib/lib and
17499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17500 # libtool to hard-code these into programs
17503 cygwin* | mingw* | pw32*)
17504 version_type=windows
17509 case $GCC,$host_os in
17510 yes,cygwin* | yes,mingw* | yes,pw32*)
17511 library_names_spec='$libname.dll.a'
17512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17513 postinstall_cmds='base_file=`basename \${file}`~
17514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17515 dldir=$destdir/`dirname \$dlpath`~
17516 test -d \$dldir || mkdir -p \$dldir~
17517 $install_prog $dir/$dlname \$dldir/$dlname~
17518 chmod a+x \$dldir/$dlname'
17519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17520 dlpath=$dir/\$dldll~
17522 shlibpath_overrides_runpath=yes
17526 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17531 # MinGW DLLs use traditional 'lib' prefix
17532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17534 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17535 # It is most probably a Windows format PATH printed by
17536 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17537 # path with ; separators, and with drive letters. We can handle the
17538 # drive letters (cygwin fileutils understands them), so leave them,
17539 # especially as we might pass files found there to a mingw objdump,
17540 # which wouldn't understand a cygwinified path. Ahh.
17541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17547 # pw32 DLLs use 'pw' prefix rather than 'lib'
17548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17557 dynamic_linker='Win32 ld.exe'
17558 # FIXME: first we should search . and the directory the executable is in
17562 darwin* | rhapsody*)
17563 dynamic_linker="$host_os dyld"
17564 version_type=darwin
17567 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17568 soname_spec='${libname}${release}${major}$shared_ext'
17569 shlibpath_overrides_runpath=yes
17570 shlibpath_var=DYLD_LIBRARY_PATH
17571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17581 soname_spec='${libname}${release}${shared_ext}$major'
17582 shlibpath_var=LD_LIBRARY_PATH
17589 freebsd* | dragonfly*)
17590 # DragonFly does not have aout. When/if they implement a new
17591 # versioning mechanism, adjust this.
17592 if test -x /usr/bin/objformat; then
17593 objformat=`/usr/bin/objformat`
17596 freebsd[123]*) objformat=aout ;;
17597 *) objformat=elf ;;
17600 version_type=freebsd-$objformat
17601 case $version_type in
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17612 shlibpath_var=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath=yes
17617 freebsd3.[01]* | freebsdelf3.[01]*)
17618 shlibpath_overrides_runpath=yes
17619 hardcode_into_libs=yes
17621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17623 shlibpath_overrides_runpath=no
17624 hardcode_into_libs=yes
17626 *) # from 4.6 on, and DragonFly
17627 shlibpath_overrides_runpath=yes
17628 hardcode_into_libs=yes
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 hardcode_into_libs=yes
17643 hpux9* | hpux10* | hpux11*)
17644 # Give a soname corresponding to the major version so that dld.sl refuses to
17645 # link against other versions.
17652 hardcode_into_libs=yes
17653 dynamic_linker="$host_os dld.so"
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 if test "X$HPUX_IA64_MODE" = X32; then
17659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17667 hardcode_into_libs=yes
17668 dynamic_linker="$host_os dld.sl"
17669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672 soname_spec='${libname}${release}${shared_ext}$major'
17673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17678 dynamic_linker="$host_os dld.sl"
17679 shlibpath_var=SHLIB_PATH
17680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17686 postinstall_cmds='chmod 555 $lib'
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=no
17698 hardcode_into_libs=yes
17701 irix5* | irix6* | nonstopux*)
17703 nonstopux*) version_type=nonstopux ;;
17705 if test "$lt_cv_prog_gnu_ld" = yes; then
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17716 irix5* | nonstopux*)
17717 libsuff= shlibsuff=
17720 case $LD in # libtool.m4 will add one of these switches to LD
17721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17722 libsuff= shlibsuff= libmagic=32-bit;;
17723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17724 libsuff=32 shlibsuff=N32 libmagic=N32;;
17725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17727 *) libsuff= shlibsuff= libmagic=never-match;;
17731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17732 shlibpath_overrides_runpath=no
17733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17735 hardcode_into_libs=yes
17738 # No shared lib support for Linux oldld, aout, or coff.
17739 linux*oldld* | linux*aout* | linux*coff*)
17743 # This must be Linux ELF.
17744 linux* | k*bsd*-gnu)
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=no
17753 # This implies no fast_install, which is unacceptable.
17754 # Some rework will be needed to allow for fast_install
17755 # before this can be enabled.
17756 hardcode_into_libs=yes
17758 # Append ld.so.conf contents to the search path
17759 if test -f /etc/ld.so.conf; then
17760 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17764 # We used to test for /lib/ld.so.1 and disable shared libraries on
17765 # powerpc, because MkLinux only supported shared libraries with the
17766 # GNU dynamic linker. Since this was broken with cross compilers,
17767 # most powerpc-linux boxes support dynamic linking these days and
17768 # people can always --disable-shared, the test was removed, and we
17769 # assume the GNU/Linux dynamic linker is in use.
17770 dynamic_linker='GNU/Linux ld.so'
17777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17780 dynamic_linker='NetBSD (a.out) ld.so'
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17783 soname_spec='${libname}${release}${shared_ext}$major'
17784 dynamic_linker='NetBSD ld.elf_so'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=yes
17788 hardcode_into_libs=yes
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=yes
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803 soname_spec='${libname}${release}${shared_ext}$major'
17804 shlibpath_var=LD_LIBRARY_PATH
17805 shlibpath_overrides_runpath=yes
17810 sys_lib_dlsearch_path_spec="/usr/lib"
17812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17814 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17815 *) need_version=no ;;
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17822 openbsd2.[89] | openbsd2.[89].*)
17823 shlibpath_overrides_runpath=no
17826 shlibpath_overrides_runpath=yes
17830 shlibpath_overrides_runpath=yes
17835 libname_spec='$name'
17838 library_names_spec='$libname${shared_ext} $libname.a'
17839 dynamic_linker='OS/2 ld.exe'
17840 shlibpath_var=LIBPATH
17843 osf3* | osf4* | osf5*)
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 shlibpath_var=LD_LIBRARY_PATH
17865 shlibpath_overrides_runpath=yes
17866 hardcode_into_libs=yes
17867 # ldd complains unless libraries are executable
17868 postinstall_cmds='chmod +x $lib'
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 shlibpath_overrides_runpath=yes
17877 if test "$with_gnu_ld" = yes; then
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 case $host_vendor in
17890 shlibpath_overrides_runpath=no
17892 export_dynamic_flag_spec='${wl}-Blargedynsym'
17893 runpath_var=LD_RUN_PATH
17901 shlibpath_overrides_runpath=no
17902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17908 if test -d /usr/nec ;then
17910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17911 soname_spec='$libname${shared_ext}.$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17917 version_type=freebsd-elf
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 hardcode_into_libs=yes
17924 if test "$with_gnu_ld" = yes; then
17925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17926 shlibpath_overrides_runpath=no
17928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17929 shlibpath_overrides_runpath=yes
17932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17936 sys_lib_dlsearch_path_spec='/usr/lib'
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 shlibpath_var=LD_LIBRARY_PATH
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17951 $as_echo "$dynamic_linker" >&6; }
17952 test "$dynamic_linker" = no && can_build_shared=no
17954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17957 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17960 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17964 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17970 if test "$GCC" = yes; then
17971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17975 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17976 hardcode_action_GCJ=
17977 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17978 test -n "$runpath_var_GCJ" || \
17979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17981 # We can hardcode non-existant directories.
17982 if test "$hardcode_direct_GCJ" != no &&
17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984 # have to relink, otherwise we might link with an installed library
17985 # when we should be linking with a yet-to-be-installed one
17986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17987 test "$hardcode_minus_L_GCJ" != no; then
17988 # Linking always hardcodes the temporary library directory.
17989 hardcode_action_GCJ=relink
17991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992 hardcode_action_GCJ=immediate
17995 # We cannot hardcode anything, or else we can only hardcode existing
17997 hardcode_action_GCJ=unsupported
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18000 $as_echo "$hardcode_action_GCJ" >&6; }
18002 if test "$hardcode_action_GCJ" = relink; then
18003 # Fast installation is not supported
18004 enable_fast_install=no
18005 elif test "$shlibpath_overrides_runpath" = yes ||
18006 test "$enable_shared" = no; then
18007 # Fast installation is not necessary
18008 enable_fast_install=needless
18012 # The else clause should only fire when bootstrapping the
18013 # libtool distribution, otherwise you forgot to ship ltmain.sh
18014 # with your package, and you will get complaints that there are
18015 # no rules to generate ltmain.sh.
18016 if test -f "$ltmain"; then
18017 # See if we are running on zsh, and set the options which allow our commands through
18018 # without removal of \ escapes.
18019 if test -n "${ZSH_VERSION+set}" ; then
18020 setopt NO_GLOB_SUBST
18022 # Now quote all the things that may contain metacharacters while being
18023 # careful not to overquote the AC_SUBSTed values. We take copies of the
18024 # variables and quote the copies for generation of the libtool script.
18025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029 deplibs_check_method reload_flag reload_cmds need_locks \
18030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031 lt_cv_sys_global_symbol_to_c_name_address \
18032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033 old_postinstall_cmds old_postuninstall_cmds \
18037 lt_prog_compiler_wl_GCJ \
18038 lt_prog_compiler_pic_GCJ \
18039 lt_prog_compiler_static_GCJ \
18040 lt_prog_compiler_no_builtin_flag_GCJ \
18041 export_dynamic_flag_spec_GCJ \
18042 thread_safe_flag_spec_GCJ \
18043 whole_archive_flag_spec_GCJ \
18044 enable_shared_with_static_runtimes_GCJ \
18045 old_archive_cmds_GCJ \
18046 old_archive_from_new_cmds_GCJ \
18047 predep_objects_GCJ \
18048 postdep_objects_GCJ \
18051 compiler_lib_search_path_GCJ \
18052 compiler_lib_search_dirs_GCJ \
18054 archive_expsym_cmds_GCJ \
18055 postinstall_cmds_GCJ \
18056 postuninstall_cmds_GCJ \
18057 old_archive_from_expsyms_cmds_GCJ \
18058 allow_undefined_flag_GCJ \
18059 no_undefined_flag_GCJ \
18060 export_symbols_cmds_GCJ \
18061 hardcode_libdir_flag_spec_GCJ \
18062 hardcode_libdir_flag_spec_ld_GCJ \
18063 hardcode_libdir_separator_GCJ \
18064 hardcode_automatic_GCJ \
18066 module_expsym_cmds_GCJ \
18067 lt_cv_prog_compiler_c_o_GCJ \
18068 fix_srcfile_path_GCJ \
18069 exclude_expsyms_GCJ \
18070 include_expsyms_GCJ; do
18073 old_archive_cmds_GCJ | \
18074 old_archive_from_new_cmds_GCJ | \
18075 archive_cmds_GCJ | \
18076 archive_expsym_cmds_GCJ | \
18077 module_cmds_GCJ | \
18078 module_expsym_cmds_GCJ | \
18079 old_archive_from_expsyms_cmds_GCJ | \
18080 export_symbols_cmds_GCJ | \
18081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18082 postinstall_cmds | postuninstall_cmds | \
18083 old_postinstall_cmds | old_postuninstall_cmds | \
18084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18085 # Double-quote double-evaled strings.
18086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18095 *'\$0 --fallback-echo"')
18096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18102 cat <<__EOF__ >> "$cfgfile"
18103 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18107 # Shell to use when invoking shell scripts.
18110 # Whether or not to build shared libraries.
18111 build_libtool_libs=$enable_shared
18113 # Whether or not to build static libraries.
18114 build_old_libs=$enable_static
18116 # Whether or not to add -lc for building shared libraries.
18117 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18119 # Whether or not to disallow shared libs when runtime libs are static
18120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18122 # Whether or not to optimize for fast installation.
18123 fast_install=$enable_fast_install
18126 host_alias=$host_alias
18130 # The build system.
18131 build_alias=$build_alias
18135 # An echo program that does not interpret backslashes.
18140 AR_FLAGS=$lt_AR_FLAGS
18145 # LTCC compiler flags.
18146 LTCFLAGS=$lt_LTCFLAGS
18148 # A language-specific compiler.
18149 CC=$lt_compiler_GCJ
18151 # Is the compiler the GNU C compiler?
18157 # The linker used to build libraries.
18160 # Whether we need hard or soft links.
18163 # A BSD-compatible nm program.
18166 # A symbol stripping program
18169 # Used to examine libraries when file_magic_cmd begins "file"
18170 MAGIC_CMD=$MAGIC_CMD
18172 # Used on cygwin: DLL creation program.
18175 # Used on cygwin: object dumper.
18178 # Used on cygwin: assembler.
18181 # The name of the directory that contains temporary libtool files.
18184 # How to create reloadable object files.
18185 reload_flag=$lt_reload_flag
18186 reload_cmds=$lt_reload_cmds
18188 # How to pass a linker flag through the compiler.
18189 wl=$lt_lt_prog_compiler_wl_GCJ
18191 # Object file suffix (normally "o").
18192 objext="$ac_objext"
18194 # Old archive suffix (normally "a").
18197 # Shared library suffix (normally ".so").
18198 shrext_cmds='$shrext_cmds'
18200 # Executable file suffix (normally "").
18203 # Additional compiler flags for building library objects.
18204 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18207 # What is the maximum length of a command?
18208 max_cmd_len=$lt_cv_sys_max_cmd_len
18210 # Does compiler simultaneously support -c and -o options?
18211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18213 # Must we lock files when doing compilation?
18214 need_locks=$lt_need_locks
18216 # Do we need the lib prefix for modules?
18217 need_lib_prefix=$need_lib_prefix
18219 # Do we need a version for libraries?
18220 need_version=$need_version
18222 # Whether dlopen is supported.
18223 dlopen_support=$enable_dlopen
18225 # Whether dlopen of programs is supported.
18226 dlopen_self=$enable_dlopen_self
18228 # Whether dlopen of statically linked programs is supported.
18229 dlopen_self_static=$enable_dlopen_self_static
18231 # Compiler flag to prevent dynamic linking.
18232 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18234 # Compiler flag to turn off builtin functions.
18235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18237 # Compiler flag to allow reflexive dlopens.
18238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18240 # Compiler flag to generate shared objects directly from archives.
18241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18243 # Compiler flag to generate thread-safe objects.
18244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18246 # Library versioning type.
18247 version_type=$version_type
18249 # Format of library name prefix.
18250 libname_spec=$lt_libname_spec
18252 # List of archive names. First name is the real one, the rest are links.
18253 # The last name is the one that the linker finds with -lNAME.
18254 library_names_spec=$lt_library_names_spec
18256 # The coded name of the library, if different from the real name.
18257 soname_spec=$lt_soname_spec
18259 # Commands used to build and install an old-style archive.
18261 old_archive_cmds=$lt_old_archive_cmds_GCJ
18262 old_postinstall_cmds=$lt_old_postinstall_cmds
18263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18265 # Create an old-style archive from a shared archive.
18266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18268 # Create a temporary old-style archive to link instead of a shared archive.
18269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18271 # Commands used to build and install a shared archive.
18272 archive_cmds=$lt_archive_cmds_GCJ
18273 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18274 postinstall_cmds=$lt_postinstall_cmds
18275 postuninstall_cmds=$lt_postuninstall_cmds
18277 # Commands used to build a loadable module (assumed same as above if empty)
18278 module_cmds=$lt_module_cmds_GCJ
18279 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18281 # Commands to strip libraries.
18282 old_striplib=$lt_old_striplib
18283 striplib=$lt_striplib
18285 # Dependencies to place before the objects being linked to create a
18287 predep_objects=$lt_predep_objects_GCJ
18289 # Dependencies to place after the objects being linked to create a
18291 postdep_objects=$lt_postdep_objects_GCJ
18293 # Dependencies to place before the objects being linked to create a
18295 predeps=$lt_predeps_GCJ
18297 # Dependencies to place after the objects being linked to create a
18299 postdeps=$lt_postdeps_GCJ
18301 # The directories searched by this compiler when creating a shared
18303 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18305 # The library search path used internally by the compiler when linking
18306 # a shared library.
18307 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18309 # Method to check whether dependent libraries are shared objects.
18310 deplibs_check_method=$lt_deplibs_check_method
18312 # Command to use when deplibs_check_method == file_magic.
18313 file_magic_cmd=$lt_file_magic_cmd
18315 # Flag that allows shared libraries with undefined symbols to be built.
18316 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18318 # Flag that forces no undefined symbols.
18319 no_undefined_flag=$lt_no_undefined_flag_GCJ
18321 # Commands used to finish a libtool library installation in a directory.
18322 finish_cmds=$lt_finish_cmds
18324 # Same as above, but a single script fragment to be evaled but not shown.
18325 finish_eval=$lt_finish_eval
18327 # Take the output of nm and produce a listing of raw symbols and C names.
18328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18330 # Transform the output of nm in a proper C declaration
18331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18333 # Transform the output of nm in a C name address pair
18334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18336 # This is the shared library runtime path variable.
18337 runpath_var=$runpath_var
18339 # This is the shared library path variable.
18340 shlibpath_var=$shlibpath_var
18342 # Is shlibpath searched before the hard-coded library search path?
18343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18345 # How to hardcode a shared library path into an executable.
18346 hardcode_action=$hardcode_action_GCJ
18348 # Whether we should hardcode library paths into libraries.
18349 hardcode_into_libs=$hardcode_into_libs
18351 # Flag to hardcode \$libdir into a binary during linking.
18352 # This must work even if \$libdir does not exist.
18353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18355 # If ld is used when linking, flag to hardcode \$libdir into
18356 # a binary during linking. This must work even if \$libdir does
18358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18360 # Whether we need a single -rpath flag with a separated argument.
18361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18363 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18364 # resulting binary.
18365 hardcode_direct=$hardcode_direct_GCJ
18367 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18368 # resulting binary.
18369 hardcode_minus_L=$hardcode_minus_L_GCJ
18371 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18372 # the resulting binary.
18373 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18375 # Set to yes if building a shared library automatically hardcodes DIR into the library
18376 # and all subsequent libraries and executables linked against it.
18377 hardcode_automatic=$hardcode_automatic_GCJ
18379 # Variables whose values should be saved in libtool wrapper scripts and
18380 # restored at relink time.
18381 variables_saved_for_relink="$variables_saved_for_relink"
18383 # Whether libtool must link a program against all its dependency libraries.
18384 link_all_deplibs=$link_all_deplibs_GCJ
18386 # Compile-time system search path for libraries
18387 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18389 # Run-time system search path for libraries
18390 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18392 # Fix the shell variable \$srcfile for the compiler.
18393 fix_srcfile_path=$lt_fix_srcfile_path
18395 # Set to yes if exported symbols are required.
18396 always_export_symbols=$always_export_symbols_GCJ
18398 # The commands to list exported symbols.
18399 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18401 # The commands to extract the exported symbol list from a shared archive.
18402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18404 # Symbols that should not be listed in the preloaded symbols.
18405 exclude_expsyms=$lt_exclude_expsyms_GCJ
18407 # Symbols that must always be exported.
18408 include_expsyms=$lt_include_expsyms_GCJ
18410 # ### END LIBTOOL TAG CONFIG: $tagname
18416 # If there is no Makefile yet, we rely on a make rule to execute
18417 # `config.status --recheck' to rerun these tests and create the
18418 # libtool script then.
18419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18420 if test -f "$ltmain_in"; then
18421 test -f Makefile && make "$ltmain"
18427 ac_cpp='$CPP $CPPFLAGS'
18428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442 # Source file extension for RC test sources.
18445 # Object file extension for compiled RC test sources.
18449 # Code to be used in simple compile tests
18450 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18452 # Code to be used in simple link tests
18453 lt_simple_link_test_code="$lt_simple_compile_test_code"
18455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18457 # If no C compiler was specified, use CC.
18460 # If no C compiler flags were specified, use CFLAGS.
18461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18463 # Allow CC to be a program name with arguments.
18467 # save warnings/boilerplate of simple test code
18468 ac_outfile=conftest.$ac_objext
18469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18471 _lt_compiler_boilerplate=`cat conftest.err`
18474 ac_outfile=conftest.$ac_objext
18475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18477 _lt_linker_boilerplate=`cat conftest.err`
18481 # Allow CC to be a program name with arguments.
18486 for cc_temp in $compiler""; do
18488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18496 lt_cv_prog_compiler_c_o_RC=yes
18498 # The else clause should only fire when bootstrapping the
18499 # libtool distribution, otherwise you forgot to ship ltmain.sh
18500 # with your package, and you will get complaints that there are
18501 # no rules to generate ltmain.sh.
18502 if test -f "$ltmain"; then
18503 # See if we are running on zsh, and set the options which allow our commands through
18504 # without removal of \ escapes.
18505 if test -n "${ZSH_VERSION+set}" ; then
18506 setopt NO_GLOB_SUBST
18508 # Now quote all the things that may contain metacharacters while being
18509 # careful not to overquote the AC_SUBSTed values. We take copies of the
18510 # variables and quote the copies for generation of the libtool script.
18511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18515 deplibs_check_method reload_flag reload_cmds need_locks \
18516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18517 lt_cv_sys_global_symbol_to_c_name_address \
18518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18519 old_postinstall_cmds old_postuninstall_cmds \
18523 lt_prog_compiler_wl_RC \
18524 lt_prog_compiler_pic_RC \
18525 lt_prog_compiler_static_RC \
18526 lt_prog_compiler_no_builtin_flag_RC \
18527 export_dynamic_flag_spec_RC \
18528 thread_safe_flag_spec_RC \
18529 whole_archive_flag_spec_RC \
18530 enable_shared_with_static_runtimes_RC \
18531 old_archive_cmds_RC \
18532 old_archive_from_new_cmds_RC \
18533 predep_objects_RC \
18534 postdep_objects_RC \
18537 compiler_lib_search_path_RC \
18538 compiler_lib_search_dirs_RC \
18540 archive_expsym_cmds_RC \
18541 postinstall_cmds_RC \
18542 postuninstall_cmds_RC \
18543 old_archive_from_expsyms_cmds_RC \
18544 allow_undefined_flag_RC \
18545 no_undefined_flag_RC \
18546 export_symbols_cmds_RC \
18547 hardcode_libdir_flag_spec_RC \
18548 hardcode_libdir_flag_spec_ld_RC \
18549 hardcode_libdir_separator_RC \
18550 hardcode_automatic_RC \
18552 module_expsym_cmds_RC \
18553 lt_cv_prog_compiler_c_o_RC \
18554 fix_srcfile_path_RC \
18555 exclude_expsyms_RC \
18556 include_expsyms_RC; do
18559 old_archive_cmds_RC | \
18560 old_archive_from_new_cmds_RC | \
18561 archive_cmds_RC | \
18562 archive_expsym_cmds_RC | \
18564 module_expsym_cmds_RC | \
18565 old_archive_from_expsyms_cmds_RC | \
18566 export_symbols_cmds_RC | \
18567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18568 postinstall_cmds | postuninstall_cmds | \
18569 old_postinstall_cmds | old_postuninstall_cmds | \
18570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18571 # Double-quote double-evaled strings.
18572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18581 *'\$0 --fallback-echo"')
18582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18588 cat <<__EOF__ >> "$cfgfile"
18589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18593 # Shell to use when invoking shell scripts.
18596 # Whether or not to build shared libraries.
18597 build_libtool_libs=$enable_shared
18599 # Whether or not to build static libraries.
18600 build_old_libs=$enable_static
18602 # Whether or not to add -lc for building shared libraries.
18603 build_libtool_need_lc=$archive_cmds_need_lc_RC
18605 # Whether or not to disallow shared libs when runtime libs are static
18606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18608 # Whether or not to optimize for fast installation.
18609 fast_install=$enable_fast_install
18612 host_alias=$host_alias
18616 # The build system.
18617 build_alias=$build_alias
18621 # An echo program that does not interpret backslashes.
18626 AR_FLAGS=$lt_AR_FLAGS
18631 # LTCC compiler flags.
18632 LTCFLAGS=$lt_LTCFLAGS
18634 # A language-specific compiler.
18637 # Is the compiler the GNU C compiler?
18643 # The linker used to build libraries.
18646 # Whether we need hard or soft links.
18649 # A BSD-compatible nm program.
18652 # A symbol stripping program
18655 # Used to examine libraries when file_magic_cmd begins "file"
18656 MAGIC_CMD=$MAGIC_CMD
18658 # Used on cygwin: DLL creation program.
18661 # Used on cygwin: object dumper.
18664 # Used on cygwin: assembler.
18667 # The name of the directory that contains temporary libtool files.
18670 # How to create reloadable object files.
18671 reload_flag=$lt_reload_flag
18672 reload_cmds=$lt_reload_cmds
18674 # How to pass a linker flag through the compiler.
18675 wl=$lt_lt_prog_compiler_wl_RC
18677 # Object file suffix (normally "o").
18678 objext="$ac_objext"
18680 # Old archive suffix (normally "a").
18683 # Shared library suffix (normally ".so").
18684 shrext_cmds='$shrext_cmds'
18686 # Executable file suffix (normally "").
18689 # Additional compiler flags for building library objects.
18690 pic_flag=$lt_lt_prog_compiler_pic_RC
18693 # What is the maximum length of a command?
18694 max_cmd_len=$lt_cv_sys_max_cmd_len
18696 # Does compiler simultaneously support -c and -o options?
18697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18699 # Must we lock files when doing compilation?
18700 need_locks=$lt_need_locks
18702 # Do we need the lib prefix for modules?
18703 need_lib_prefix=$need_lib_prefix
18705 # Do we need a version for libraries?
18706 need_version=$need_version
18708 # Whether dlopen is supported.
18709 dlopen_support=$enable_dlopen
18711 # Whether dlopen of programs is supported.
18712 dlopen_self=$enable_dlopen_self
18714 # Whether dlopen of statically linked programs is supported.
18715 dlopen_self_static=$enable_dlopen_self_static
18717 # Compiler flag to prevent dynamic linking.
18718 link_static_flag=$lt_lt_prog_compiler_static_RC
18720 # Compiler flag to turn off builtin functions.
18721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18723 # Compiler flag to allow reflexive dlopens.
18724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18726 # Compiler flag to generate shared objects directly from archives.
18727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18729 # Compiler flag to generate thread-safe objects.
18730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18732 # Library versioning type.
18733 version_type=$version_type
18735 # Format of library name prefix.
18736 libname_spec=$lt_libname_spec
18738 # List of archive names. First name is the real one, the rest are links.
18739 # The last name is the one that the linker finds with -lNAME.
18740 library_names_spec=$lt_library_names_spec
18742 # The coded name of the library, if different from the real name.
18743 soname_spec=$lt_soname_spec
18745 # Commands used to build and install an old-style archive.
18747 old_archive_cmds=$lt_old_archive_cmds_RC
18748 old_postinstall_cmds=$lt_old_postinstall_cmds
18749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18751 # Create an old-style archive from a shared archive.
18752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18754 # Create a temporary old-style archive to link instead of a shared archive.
18755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18757 # Commands used to build and install a shared archive.
18758 archive_cmds=$lt_archive_cmds_RC
18759 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18760 postinstall_cmds=$lt_postinstall_cmds
18761 postuninstall_cmds=$lt_postuninstall_cmds
18763 # Commands used to build a loadable module (assumed same as above if empty)
18764 module_cmds=$lt_module_cmds_RC
18765 module_expsym_cmds=$lt_module_expsym_cmds_RC
18767 # Commands to strip libraries.
18768 old_striplib=$lt_old_striplib
18769 striplib=$lt_striplib
18771 # Dependencies to place before the objects being linked to create a
18773 predep_objects=$lt_predep_objects_RC
18775 # Dependencies to place after the objects being linked to create a
18777 postdep_objects=$lt_postdep_objects_RC
18779 # Dependencies to place before the objects being linked to create a
18781 predeps=$lt_predeps_RC
18783 # Dependencies to place after the objects being linked to create a
18785 postdeps=$lt_postdeps_RC
18787 # The directories searched by this compiler when creating a shared
18789 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18791 # The library search path used internally by the compiler when linking
18792 # a shared library.
18793 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18795 # Method to check whether dependent libraries are shared objects.
18796 deplibs_check_method=$lt_deplibs_check_method
18798 # Command to use when deplibs_check_method == file_magic.
18799 file_magic_cmd=$lt_file_magic_cmd
18801 # Flag that allows shared libraries with undefined symbols to be built.
18802 allow_undefined_flag=$lt_allow_undefined_flag_RC
18804 # Flag that forces no undefined symbols.
18805 no_undefined_flag=$lt_no_undefined_flag_RC
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18810 # Same as above, but a single script fragment to be evaled but not shown.
18811 finish_eval=$lt_finish_eval
18813 # Take the output of nm and produce a listing of raw symbols and C names.
18814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816 # Transform the output of nm in a proper C declaration
18817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819 # Transform the output of nm in a C name address pair
18820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822 # This is the shared library runtime path variable.
18823 runpath_var=$runpath_var
18825 # This is the shared library path variable.
18826 shlibpath_var=$shlibpath_var
18828 # Is shlibpath searched before the hard-coded library search path?
18829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831 # How to hardcode a shared library path into an executable.
18832 hardcode_action=$hardcode_action_RC
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18837 # Flag to hardcode \$libdir into a binary during linking.
18838 # This must work even if \$libdir does not exist.
18839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18841 # If ld is used when linking, flag to hardcode \$libdir into
18842 # a binary during linking. This must work even if \$libdir does
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18846 # Whether we need a single -rpath flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_direct=$hardcode_direct_RC
18853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L_RC
18857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858 # the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18861 # Set to yes if building a shared library automatically hardcodes DIR into the library
18862 # and all subsequent libraries and executables linked against it.
18863 hardcode_automatic=$hardcode_automatic_RC
18865 # Variables whose values should be saved in libtool wrapper scripts and
18866 # restored at relink time.
18867 variables_saved_for_relink="$variables_saved_for_relink"
18869 # Whether libtool must link a program against all its dependency libraries.
18870 link_all_deplibs=$link_all_deplibs_RC
18872 # Compile-time system search path for libraries
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875 # Run-time system search path for libraries
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878 # Fix the shell variable \$srcfile for the compiler.
18879 fix_srcfile_path=$lt_fix_srcfile_path
18881 # Set to yes if exported symbols are required.
18882 always_export_symbols=$always_export_symbols_RC
18884 # The commands to list exported symbols.
18885 export_symbols_cmds=$lt_export_symbols_cmds_RC
18887 # The commands to extract the exported symbol list from a shared archive.
18888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890 # Symbols that should not be listed in the preloaded symbols.
18891 exclude_expsyms=$lt_exclude_expsyms_RC
18893 # Symbols that must always be exported.
18894 include_expsyms=$lt_include_expsyms_RC
18896 # ### END LIBTOOL TAG CONFIG: $tagname
18902 # If there is no Makefile yet, we rely on a make rule to execute
18903 # `config.status --recheck' to rerun these tests and create the
18904 # libtool script then.
18905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906 if test -f "$ltmain_in"; then
18907 test -f Makefile && make "$ltmain"
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
18927 # Append the new tag name to the list of available tags.
18928 if test -n "$tagname" ; then
18929 available_tags="$available_tags $tagname"
18935 # Now substitute the updated list of available tags.
18936 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18937 mv "${ofile}T" "$ofile"
18941 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
18947 # This can be used to rebuild libtool when needed
18948 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18950 # Always use our own libtool.
18951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18953 # Prevent multiple expansion
18974 # Check whether --enable-debug was given.
18975 if test "${enable_debug+set}" = set; then :
18976 enableval=$enable_debug;
18977 CXXFLAGS="-g -O0 -Wall"
18979 $as_echo "#define WITH_DEBUG /**/" >>confdefs.h
18986 # Check whether --with-libldap was given.
18987 if test "${with_libldap+set}" = set; then :
18988 withval=$with_libldap;
18989 LIBS="-L$with_libldap $LIBS "
18993 LIBS="-L/usr/local/lib $LIBS "
19000 # Check whether --with-ldap-includes was given.
19001 if test "${with_ldap_includes+set}" = set; then :
19002 withval=$with_ldap_includes;
19003 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19007 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
19013 $as_echo_n "checking for main in -lresolv... " >&6; }
19014 if test "${ac_cv_lib_resolv_main+set}" = set; then :
19015 $as_echo_n "(cached) " >&6
19017 ac_check_lib_save_LIBS=$LIBS
19018 LIBS="-lresolv $LIBS"
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19031 if ac_fn_c_try_link "$LINENO"; then :
19032 ac_cv_lib_resolv_main=yes
19034 ac_cv_lib_resolv_main=no
19036 rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
19041 $as_echo "$ac_cv_lib_resolv_main" >&6; }
19042 if test "x$ac_cv_lib_resolv_main" = x""yes; then :
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBRESOLV 1
19047 LIBS="-lresolv $LIBS"
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5
19052 $as_echo_n "checking for ber_strdup in -llber... " >&6; }
19053 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then :
19054 $as_echo_n "(cached) " >&6
19056 ac_check_lib_save_LIBS=$LIBS
19057 LIBS="-llber $LIBS"
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19061 /* Override any GCC internal prototype to avoid an error.
19062 Use char because int might match the return type of a GCC
19063 builtin and then its argument prototype would still apply. */
19067 char ber_strdup ();
19071 return ber_strdup ();
19076 if ac_fn_c_try_link "$LINENO"; then :
19077 ac_cv_lib_lber_ber_strdup=yes
19079 ac_cv_lib_lber_ber_strdup=no
19081 rm -f core conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5
19086 $as_echo "$ac_cv_lib_lber_ber_strdup" >&6; }
19087 if test "x$ac_cv_lib_lber_ber_strdup" = x""yes; then :
19093 echo " didn't find ber_strdup in liblber !";
19094 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19095 echo " or try the --with-libldap option.";
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5
19101 $as_echo_n "checking for ldap_add_ext in -lldap... " >&6; }
19102 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19105 ac_check_lib_save_LIBS=$LIBS
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19118 char ldap_add_ext ();
19122 return ldap_add_ext ();
19127 if ac_fn_c_try_link "$LINENO"; then :
19128 ac_cv_lib_ldap_ldap_add_ext=yes
19130 ac_cv_lib_ldap_ldap_add_ext=no
19132 rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19137 $as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; }
19138 if test "x$ac_cv_lib_ldap_ldap_add_ext" = x""yes; then :
19144 echo " didn't find ldap_add_ext in libldap !";
19145 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19146 echo " or try the --with-libldap option.";
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19152 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19153 if test "${ac_cv_header_time+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19158 #include <sys/types.h>
19159 #include <sys/time.h>
19165 if ((struct tm *) 0)
19171 if ac_fn_c_try_compile "$LINENO"; then :
19172 ac_cv_header_time=yes
19174 ac_cv_header_time=no
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19179 $as_echo "$ac_cv_header_time" >&6; }
19180 if test $ac_cv_header_time = yes; then
19182 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19186 for ac_header in termios.h ldap.h
19188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19190 eval as_val=\$$as_ac_Header
19191 if test "x$as_val" = x""yes; then :
19192 cat >>confdefs.h <<_ACEOF
19193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19206 $EGREP "ldap_add_ext" >/dev/null 2>&1; then :
19212 echo " didn't find ldap_add_ext in ldap.h!";
19213 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19214 echo " or try --with-ldap-includes option.";
19220 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
19221 if test "x$ac_cv_header_lber_h" = x""yes; then :
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232 $EGREP "ber_strdup" >/dev/null 2>&1; then :
19238 echo " didn't find ber_strdup in lber.h!";
19239 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19240 echo " or try --with-ldap-includes option.";
19249 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19251 cat >confcache <<\_ACEOF
19252 # This file is a shell script that caches the results of configure
19253 # tests run on this system so they can be shared between configure
19254 # scripts and configure runs, see configure's option --config-cache.
19255 # It is not useful on other systems. If it contains results you don't
19256 # want to keep, you may remove or edit it.
19258 # config.status only pays attention to the cache file if you give it
19259 # the --recheck option to rerun configure.
19261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19263 # following values.
19267 # The following way of writing the cache mishandles newlines in values,
19268 # but we know of no workaround that is simple, portable, and efficient.
19269 # So, we kill variables containing newlines.
19270 # Ultrix sh set writes to stderr and can't be redirected directly,
19271 # and sets the high bit in the cache file unless we assign to the vars.
19273 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19274 eval ac_val=\$$ac_var
19278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19282 _ | IFS | as_nl) ;; #(
19283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19284 *) { eval $ac_var=; unset $ac_var;} ;;
19290 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19291 *${as_nl}ac_space=\ *)
19292 # `set' does not quote correctly, so add quotes: double-quote
19293 # substitution turns \\\\ into \\, and sed turns \\ into \.
19296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19299 # `set' quotes correctly as required by POSIX, so do not add quotes.
19300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19311 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19314 if test -w "$cache_file"; then
19315 test "x$cache_file" != "x/dev/null" &&
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19317 $as_echo "$as_me: updating cache $cache_file" >&6;}
19318 cat confcache >$cache_file
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19321 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19327 # Let make expand exec_prefix.
19328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19330 DEFS=-DHAVE_CONFIG_H
19334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19335 # 1. Remove the extension, and $U if already installed.
19336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19339 # will be set to the directory where LIBOBJS objects are built.
19340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19343 LIBOBJS=$ac_libobjs
19345 LTLIBOBJS=$ac_ltlibobjs
19348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19349 as_fn_error "conditional \"AMDEP\" was never defined.
19350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19352 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19353 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19356 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19357 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19361 : ${CONFIG_STATUS=./config.status}
19363 ac_clean_files_save=$ac_clean_files
19364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19370 # Generated by $as_me.
19371 # Run this file to recreate the current configuration.
19372 # Compiler output produced by configure, useful for debugging
19373 # configure, is in config.log if it exists.
19376 ac_cs_recheck=false
19379 SHELL=\${CONFIG_SHELL-$SHELL}
19382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19383 ## -------------------- ##
19384 ## M4sh Initialization. ##
19385 ## -------------------- ##
19387 # Be more Bourne compatible
19388 DUALCASE=1; export DUALCASE # for MKS sh
19389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19392 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19393 # is contrary to our usage. Disable this feature.
19394 alias -g '${1+"$@"}'='"$@"'
19395 setopt NO_GLOB_SUBST
19397 case `(set -o) 2>/dev/null` in #(
19409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19413 # Prefer a ksh shell builtin over an external printf program on Solaris,
19414 # but without wasting forks for bash or zsh.
19415 if test -z "$BASH_VERSION$ZSH_VERSION" \
19416 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19417 as_echo='print -r --'
19418 as_echo_n='print -rn --'
19419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19420 as_echo='printf %s\n'
19421 as_echo_n='printf %s'
19423 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19424 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19425 as_echo_n='/usr/ucb/echo -n'
19427 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19428 as_echo_n_body='eval
19432 expr "X$arg" : "X\\(.*\\)$as_nl";
19433 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19435 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19437 export as_echo_n_body
19438 as_echo_n='sh -c $as_echo_n_body as_echo'
19440 export as_echo_body
19441 as_echo='sh -c $as_echo_body as_echo'
19444 # The user is always right.
19445 if test "${PATH_SEPARATOR+set}" != set; then
19447 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19448 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19455 # We need space, tab and new line, in precisely that order. Quoting is
19456 # there to prevent editors from complaining about space-tab.
19457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19458 # splitting by setting IFS to empty value.)
19461 # Find who we are. Look in the path if we contain no directory separator.
19463 *[\\/]* ) as_myself=$0 ;;
19464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 for as_dir in $PATH
19468 test -z "$as_dir" && as_dir=.
19469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19475 # We did not find ourselves, most probably we were run as `sh COMMAND'
19476 # in which case we are not to be found in the path.
19477 if test "x$as_myself" = x; then
19480 if test ! -f "$as_myself"; then
19481 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19485 # Unset variables that we do not need and which cause bugs (e.g. in
19486 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19487 # suppresses any "Segmentation fault" message there. '((' could
19488 # trigger a bug in pdksh 5.2.14.
19489 for as_var in BASH_ENV ENV MAIL MAILPATH
19490 do eval test x\${$as_var+set} = xset \
19491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19507 # as_fn_error ERROR [LINENO LOG_FD]
19508 # ---------------------------------
19509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19511 # script with status $?, using 1 if that was 0.
19514 as_status=$?; test $as_status -eq 0 && as_status=1
19516 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19517 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19519 $as_echo "$as_me: error: $1" >&2
19520 as_fn_exit $as_status
19524 # as_fn_set_status STATUS
19525 # -----------------------
19526 # Set $? to STATUS, without forking.
19527 as_fn_set_status ()
19530 } # as_fn_set_status
19532 # as_fn_exit STATUS
19533 # -----------------
19534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19538 as_fn_set_status $1
19544 # Portably unset VAR.
19547 { eval $1=; unset $1;}
19549 as_unset=as_fn_unset
19550 # as_fn_append VAR VALUE
19551 # ----------------------
19552 # Append the text in VALUE to the end of the definition contained in VAR. Take
19553 # advantage of any shell optimizations that allow amortized linear growth over
19554 # repeated appends, instead of the typical quadratic growth present in naive
19556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19557 eval 'as_fn_append ()
19568 # as_fn_arith ARG...
19569 # ------------------
19570 # Perform arithmetic evaluation on the ARGs, and store the result in the
19571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19572 # must be portable across $(()) and expr.
19573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19574 eval 'as_fn_arith ()
19581 as_val=`expr "$@" || test $? -eq 1`
19586 if expr a : '\(a\)' >/dev/null 2>&1 &&
19587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19594 as_basename=basename
19599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19605 as_me=`$as_basename -- "$0" ||
19606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19607 X"$0" : 'X\(//\)$' \| \
19608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19610 sed '/^.*\/\([^/][^/]*\)\/*$/{
19624 # Avoid depending upon Character Ranges.
19625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19628 as_cr_digits='0123456789'
19629 as_cr_alnum=$as_cr_Letters$as_cr_digits
19631 ECHO_C= ECHO_N= ECHO_T=
19632 case `echo -n x` in #(((((
19634 case `echo 'xy\c'` in
19635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19637 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19644 rm -f conf$$ conf$$.exe conf$$.file
19645 if test -d conf$$.dir; then
19646 rm -f conf$$.dir/conf$$.file
19649 mkdir conf$$.dir 2>/dev/null
19651 if (echo >conf$$.file) 2>/dev/null; then
19652 if ln -s conf$$.file conf$$ 2>/dev/null; then
19654 # ... but there are two gotchas:
19655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19657 # In both cases, we have to default to `cp -p'.
19658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19660 elif ln conf$$.file conf$$ 2>/dev/null; then
19668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19669 rmdir conf$$.dir 2>/dev/null
19674 # Create "$as_dir" as a directory, including parents if necessary.
19679 -*) as_dir=./$as_dir;;
19681 test -d "$as_dir" || eval $as_mkdir_p || {
19685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19686 *) as_qdir=$as_dir;;
19688 as_dirs="'$as_qdir' $as_dirs"
19689 as_dir=`$as_dirname -- "$as_dir" ||
19690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19691 X"$as_dir" : 'X\(//\)[^/]' \| \
19692 X"$as_dir" : 'X\(//\)$' \| \
19693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19694 $as_echo X"$as_dir" |
19695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19699 /^X\(\/\/\)[^/].*/{
19712 test -d "$as_dir" && break
19714 test -z "$as_dirs" || eval "mkdir $as_dirs"
19715 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19719 if mkdir -p . 2>/dev/null; then
19720 as_mkdir_p='mkdir -p "$as_dir"'
19722 test -d ./-p && rmdir ./-p
19726 if test -x / >/dev/null 2>&1; then
19727 as_test_x='test -x'
19729 if ls -dL / >/dev/null 2>&1; then
19736 if test -d "$1"; then
19742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19743 ???[sx]*):;;*)false;;esac;fi
19747 as_executable_p=$as_test_x
19749 # Sed expression to map a string onto a valid CPP name.
19750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19752 # Sed expression to map a string onto a valid variable name.
19753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19757 ## ----------------------------------- ##
19758 ## Main body of $CONFIG_STATUS script. ##
19759 ## ----------------------------------- ##
19761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19764 # Save the log message, to keep $0 and so on meaningful, and to
19765 # report actual input values of CONFIG_FILES etc. instead of their
19766 # values after options handling.
19768 This file was extended by ldapcpplib $as_me , which was
19769 generated by GNU Autoconf 2.65. Invocation command line was
19771 CONFIG_FILES = $CONFIG_FILES
19772 CONFIG_HEADERS = $CONFIG_HEADERS
19773 CONFIG_LINKS = $CONFIG_LINKS
19774 CONFIG_COMMANDS = $CONFIG_COMMANDS
19777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19782 case $ac_config_files in *"
19783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19786 case $ac_config_headers in *"
19787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 # Files that config.status was made for.
19793 config_files="$ac_config_files"
19794 config_headers="$ac_config_headers"
19795 config_commands="$ac_config_commands"
19799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19801 \`$as_me' instantiates files and other configuration actions
19802 from templates according to the current configuration. Unless the files
19803 and actions are specified as TAGs, all are instantiated by default.
19805 Usage: $0 [OPTION]... [TAG]...
19807 -h, --help print this help, then exit
19808 -V, --version print version number and configuration settings, then exit
19809 --config print configuration, then exit
19810 -q, --quiet, --silent
19811 do not print progress messages
19812 -d, --debug don't remove temporary files
19813 --recheck update $as_me by reconfiguring in the same conditions
19814 --file=FILE[:TEMPLATE]
19815 instantiate the configuration file FILE
19816 --header=FILE[:TEMPLATE]
19817 instantiate the configuration header FILE
19819 Configuration files:
19822 Configuration headers:
19825 Configuration commands:
19828 Report bugs to <http://www.openldap.org/its/ >."
19831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19834 ldapcpplib config.status
19835 configured by $0, generated by GNU Autoconf 2.65,
19836 with options \\"\$ac_cs_config\\"
19838 Copyright (C) 2009 Free Software Foundation, Inc.
19839 This config.status script is free software; the Free Software Foundation
19840 gives unlimited permission to copy, distribute and modify it."
19847 test -n "\$AWK" || AWK=awk
19850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19851 # The default lists apply if the user does not specify any file.
19857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19858 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19869 # Handling of the options.
19870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19873 $as_echo "$ac_cs_version"; exit ;;
19874 --config | --confi | --conf | --con | --co | --c )
19875 $as_echo "$ac_cs_config"; exit ;;
19876 --debug | --debu | --deb | --de | --d | -d )
19878 --file | --fil | --fi | --f )
19881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19883 as_fn_append CONFIG_FILES " '$ac_optarg'"
19884 ac_need_defaults=false;;
19885 --header | --heade | --head | --hea )
19888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19891 ac_need_defaults=false;;
19893 # Conflict between --help and --header
19894 as_fn_error "ambiguous option: \`$1'
19895 Try \`$0 --help' for more information.";;
19896 --help | --hel | -h )
19897 $as_echo "$ac_cs_usage"; exit ;;
19898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19902 # This is an error.
19903 -*) as_fn_error "unrecognized option: \`$1'
19904 Try \`$0 --help' for more information." ;;
19906 *) as_fn_append ac_config_targets " $1"
19907 ac_need_defaults=false ;;
19913 ac_configure_extra_args=
19915 if $ac_cs_silent; then
19917 ac_configure_extra_args="$ac_configure_extra_args --silent"
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922 if \$ac_cs_recheck; then
19923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19926 CONFIG_SHELL='$SHELL'
19927 export CONFIG_SHELL
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19937 ## Running $as_me. ##
19943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 # Handling of arguments.
19954 for ac_config_target in $ac_config_targets
19956 case $ac_config_target in
19957 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19958 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19960 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19961 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19963 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19968 # If the user did not use the arguments to specify the items to instantiate,
19969 # then the envvar interface is used. Set only those that are not.
19970 # We use the long form for the default assignment because of an extremely
19971 # bizarre bug on SunOS 4.1.3.
19972 if $ac_need_defaults; then
19973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19978 # Have a temporary directory for convenience. Make it in the build tree
19979 # simply because there is no reason against having it here, and in addition,
19980 # creating and moving files from /tmp can sometimes cause problems.
19981 # Hook for its removal unless debugging.
19982 # Note that there is a small window in which the directory will not be cleaned:
19983 # after its creation but before its name has been assigned to `$tmp'.
19987 trap 'exit_status=$?
19988 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19990 trap 'as_fn_exit 1' 1 2 13 15
19992 # Create a (secure) tmp directory for tmp files.
19995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19996 test -n "$tmp" && test -d "$tmp"
19999 tmp=./conf$$-$RANDOM
20000 (umask 077 && mkdir "$tmp")
20001 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20003 # Set up the scripts for CONFIG_FILES section.
20004 # No need to generate them if there are no CONFIG_FILES.
20005 # This happens for instance with `./config.status config.h'.
20006 if test -n "$CONFIG_FILES"; then
20009 ac_cr=`echo X | tr X '\015'`
20010 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20011 # But we know of no other shell where ac_cr would be empty at this
20012 # point, so we can use a bashism as a fallback.
20013 if test "x$ac_cr" = x; then
20014 eval ac_cr=\$\'\\r\'
20016 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20017 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20020 ac_cs_awk_cr=$ac_cr
20023 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20028 echo "cat >conf$$subs.awk <<_ACEOF" &&
20029 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20031 } >conf$$subs.sh ||
20032 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20033 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20035 for ac_last_try in false false false false false :; do
20036 . ./conf$$subs.sh ||
20037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20039 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20040 if test $ac_delim_n = $ac_delim_num; then
20042 elif $ac_last_try; then
20043 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20048 rm -f conf$$subs.sh
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20055 s/^/S["/; s/!.*/"]=/
20065 s/\(.\{148\}\)..*/\1/
20067 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20079 s/\(.\{148\}\)..*/\1/
20081 s/["\\]/\\&/g; s/^/"/; s/$/"/
20085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20090 ' <conf$$subs.awk | sed '
20095 ' >>$CONFIG_STATUS || ac_write_fail=1
20096 rm -f conf$$subs.awk
20097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20100 for (key in S) S_is_set[key] = 1
20106 nfields = split(line, field, "@")
20108 len = length(field[1])
20109 for (i = 2; i < nfields; i++) {
20111 keylen = length(key)
20112 if (S_is_set[key]) {
20114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20115 len += length(value) + length(field[++i])
20126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20127 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20128 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20131 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20132 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20137 # trailing colons and then remove the whole line if VPATH becomes empty
20138 # (actually we leave an empty line to preserve line numbers).
20139 if test "x$srcdir" = x.; then
20140 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20141 s/:*\$(srcdir):*/:/
20142 s/:*\${srcdir}:*/:/
20144 s/^\([^=]*=[ ]*\):*/\1/
20150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20151 fi # test -n "$CONFIG_FILES"
20153 # Set up the scripts for CONFIG_HEADERS section.
20154 # No need to generate them if there are no CONFIG_HEADERS.
20155 # This happens for instance with `./config.status Makefile'.
20156 if test -n "$CONFIG_HEADERS"; then
20157 cat >"$tmp/defines.awk" <<\_ACAWK ||
20161 # Transform confdefs.h into an awk script `defines.awk', embedded as
20162 # here-document in config.status, that substitutes the proper values into
20163 # config.h.in to produce config.h.
20165 # Create a delimiter string that does not exist in confdefs.h, to ease
20166 # handling of long lines.
20168 for ac_last_try in false false :; do
20169 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20170 if test -z "$ac_t"; then
20172 elif $ac_last_try; then
20173 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20179 # For the awk script, D is an array of macro values keyed by name,
20180 # likewise P contains macro parameters if any. Preserve backslash
20181 # newline sequences.
20183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20185 s/.\{148\}/&'"$ac_delim"'/g
20188 s/^[ ]*#[ ]*define[ ][ ]*/ /
20195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20202 D["\1"]=" \3\\\\\\n"\\/p
20204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20209 s/.\{148\}/&'"$ac_delim"'/g
20214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20219 ' <confdefs.h | sed '
20220 s/'"$ac_delim"'/"\\\
20221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20224 for (key in D) D_is_set[key] = 1
20227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20229 split(line, arg, " ")
20230 if (arg[1] == "#") {
20234 defundef = substr(arg[1], 2)
20237 split(mac1, mac2, "(") #)
20239 prefix = substr(line, 1, index(line, defundef) - 1)
20240 if (D_is_set[macro]) {
20241 # Preserve the white space surrounding the "#".
20242 print prefix "define", macro P[macro] D[macro]
20245 # Replace #undef with comments. This is necessary, for example,
20246 # in the case of _POSIX_SOURCE, which is predefined and required
20247 # on some systems where configure will not decide to define it.
20248 if (defundef == "undef") {
20249 print "/*", prefix defundef, macro, "*/"
20257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20259 fi # test -n "$CONFIG_HEADERS"
20262 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20267 :[FHLC]) ac_mode=$ac_tag; continue;;
20269 case $ac_mode$ac_tag in
20271 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20272 :[FH]-) ac_tag=-:-;;
20273 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20290 -) ac_f="$tmp/stdin";;
20291 *) # Look for the file first in the build tree, then in the source tree
20292 # (if the path is not absolute). The absolute path cannot be DOS-style,
20293 # because $ac_f cannot contain `:'.
20297 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20299 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20301 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20302 as_fn_append ac_file_inputs " '$ac_f'"
20305 # Let's still pretend it is `configure' which instantiates (i.e., don't
20306 # use $as_me), people would be surprised to read:
20307 # /* config.h. Generated by config.status. */
20308 configure_input='Generated from '`
20309 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20311 if test x"$ac_file" != x-; then
20312 configure_input="$ac_file. $configure_input"
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20314 $as_echo "$as_me: creating $ac_file" >&6;}
20316 # Neutralize special characters interpreted by sed in replacement strings.
20317 case $configure_input in #(
20318 *\&* | *\|* | *\\* )
20319 ac_sed_conf_input=`$as_echo "$configure_input" |
20320 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20321 *) ac_sed_conf_input=$configure_input;;
20325 *:-:* | *:-) cat >"$tmp/stdin" \
20326 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20331 ac_dir=`$as_dirname -- "$ac_file" ||
20332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20333 X"$ac_file" : 'X\(//\)[^/]' \| \
20334 X"$ac_file" : 'X\(//\)$' \| \
20335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20336 $as_echo X"$ac_file" |
20337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20341 /^X\(\/\/\)[^/].*/{
20354 as_dir="$ac_dir"; as_fn_mkdir_p
20358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20361 # A ".." for each directory in $ac_dir_suffix.
20362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20363 case $ac_top_builddir_sub in
20364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20368 ac_abs_top_builddir=$ac_pwd
20369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20370 # for backward compatibility:
20371 ac_top_builddir=$ac_top_build_prefix
20374 .) # We are building in place.
20376 ac_top_srcdir=$ac_top_builddir_sub
20377 ac_abs_top_srcdir=$ac_pwd ;;
20378 [\\/]* | ?:[\\/]* ) # Absolute name.
20379 ac_srcdir=$srcdir$ac_dir_suffix;
20380 ac_top_srcdir=$srcdir
20381 ac_abs_top_srcdir=$srcdir ;;
20382 *) # Relative name.
20383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20384 ac_top_srcdir=$ac_top_build_prefix$srcdir
20385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20397 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20398 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20400 ac_MKDIR_P=$MKDIR_P
20402 [\\/$]* | ?:[\\/]* ) ;;
20403 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20408 # If the template does not know about datarootdir, expand it.
20409 # FIXME: This hack should be removed a few years after 2.60.
20410 ac_datarootdir_hack=; ac_datarootdir_seen=
20421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20422 *datarootdir*) ac_datarootdir_seen=yes;;
20423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20428 ac_datarootdir_hack='
20429 s&@datadir@&$datadir&g
20430 s&@docdir@&$docdir&g
20431 s&@infodir@&$infodir&g
20432 s&@localedir@&$localedir&g
20433 s&@mandir@&$mandir&g
20434 s&\\\${datarootdir}&$datarootdir&g' ;;
20438 # Neutralize VPATH when `$srcdir' = `.'.
20439 # Shell code in configure.ac might set extrasub.
20440 # FIXME: do we really want to maintain this feature?
20441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20442 ac_sed_extra="$ac_vpsub
20445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20448 s|@configure_input@|$ac_sed_conf_input|;t t
20449 s&@top_builddir@&$ac_top_builddir_sub&;t t
20450 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20451 s&@srcdir@&$ac_srcdir&;t t
20452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20453 s&@top_srcdir@&$ac_top_srcdir&;t t
20454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20455 s&@builddir@&$ac_builddir&;t t
20456 s&@abs_builddir@&$ac_abs_builddir&;t t
20457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20458 s&@INSTALL@&$ac_INSTALL&;t t
20459 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20460 $ac_datarootdir_hack
20462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20463 || as_fn_error "could not create $ac_file" "$LINENO" 5
20465 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20466 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20467 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20469 which seems to be undefined. Please make sure it is defined." >&5
20470 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20471 which seems to be undefined. Please make sure it is defined." >&2;}
20475 -) cat "$tmp/out" && rm -f "$tmp/out";;
20476 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20478 || as_fn_error "could not create $ac_file" "$LINENO" 5
20484 if test x"$ac_file" != x-; then
20486 $as_echo "/* $configure_input */" \
20487 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20488 } >"$tmp/config.h" \
20489 || as_fn_error "could not create $ac_file" "$LINENO" 5
20490 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20492 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20495 mv "$tmp/config.h" "$ac_file" \
20496 || as_fn_error "could not create $ac_file" "$LINENO" 5
20499 $as_echo "/* $configure_input */" \
20500 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20501 || as_fn_error "could not create -" "$LINENO" 5
20503 # Compute "$ac_file"'s index in $config_headers.
20506 for _am_header in $config_headers :; do
20507 case $_am_header in
20508 $_am_arg | $_am_arg:* )
20511 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20514 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20515 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20516 X"$_am_arg" : 'X\(//\)[^/]' \| \
20517 X"$_am_arg" : 'X\(//\)$' \| \
20518 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20519 $as_echo X"$_am_arg" |
20520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20524 /^X\(\/\/\)[^/].*/{
20536 s/.*/./; q'`/stamp-h$_am_stamp_count
20539 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20540 $as_echo "$as_me: executing $ac_file commands" >&6;}
20545 case $ac_file$ac_mode in
20546 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20547 # Strip MF so we end up with the name of the file.
20548 mf=`echo "$mf" | sed -e 's/:.*$//'`
20549 # Check whether this is an Automake generated Makefile or not.
20550 # We used to match only the files named `Makefile.in', but
20551 # some people rename them; so instead we look at the file content.
20552 # Grep'ing the first line is not enough: some people post-process
20553 # each Makefile.in and add a new line on top of each file to say so.
20554 # Grep'ing the whole file is not good either: AIX grep has a line
20555 # limit of 2048, but all sed's we know have understand at least 4000.
20556 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20557 dirpart=`$as_dirname -- "$mf" ||
20558 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559 X"$mf" : 'X\(//\)[^/]' \| \
20560 X"$mf" : 'X\(//\)$' \| \
20561 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567 /^X\(\/\/\)[^/].*/{
20583 # Extract the definition of DEPDIR, am__include, and am__quote
20584 # from the Makefile without running `make'.
20585 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20586 test -z "$DEPDIR" && continue
20587 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20588 test -z "am__include" && continue
20589 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20590 # When using ansi2knr, U may be empty or an underscore; expand it
20591 U=`sed -n 's/^U = //p' < "$mf"`
20592 # Find all dependency output files, they are included files with
20593 # $(DEPDIR) in their names. We invoke sed twice because it is the
20594 # simplest approach to changing $(DEPDIR) to its actual value in the
20596 for file in `sed -n "
20597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20599 # Make sure the directory exists.
20600 test -f "$dirpart/$file" && continue
20601 fdir=`$as_dirname -- "$file" ||
20602 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20603 X"$file" : 'X\(//\)[^/]' \| \
20604 X"$file" : 'X\(//\)$' \| \
20605 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20606 $as_echo X"$file" |
20607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20611 /^X\(\/\/\)[^/].*/{
20624 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20625 # echo "creating $dirpart/$file"
20626 echo '# dummy' > "$dirpart/$file"
20637 ac_clean_files=$ac_clean_files_save
20639 test $ac_write_fail = 0 ||
20640 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20643 # configure is writing to config.log, and then calls config.status.
20644 # config.status does its own redirection, appending to config.log.
20645 # Unfortunately, on DOS this fails, as config.log is still kept open
20646 # by configure, so config.status won't be able to write to it; its
20647 # output is simply discarded. So we exec the FD to /dev/null,
20648 # effectively closing config.log, so it can be properly (re)opened and
20649 # appended to by config.status. When coming back to configure, we
20650 # need to make the FD available again.
20651 if test "$no_create" != yes; then
20653 ac_config_status_args=
20654 test "$silent" = yes &&
20655 ac_config_status_args="$ac_config_status_args --quiet"
20657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20660 # would make configure fail if this is the last instruction.
20661 $ac_cs_success || as_fn_exit $?
20663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}