2 # From configure.ac Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for ijs 0.35.
6 # Report bugs to <inkjet-list@linuxprinting.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: inkjet-list@linuxprinting.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
551 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $echo works!
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
572 if test -z "$ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
578 echo_test_string="`eval $cmd`" &&
579 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
587 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
588 test "X$echo_testing_string" = "X$echo_test_string"; then
591 # The Solaris, AIX, and Digital Unix default echo programs unquote
592 # backslashes. This makes it impossible to quote backslashes using
593 # echo "$something" | sed 's/\\/\\\\/g'
595 # So, first we look for a working echo in the user's PATH.
597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598 for dir in $PATH /usr/ucb; do
600 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603 test "X$echo_testing_string" = "X$echo_test_string"; then
610 if test "X$echo" = Xecho; then
611 # We didn't find a better echo, so look for alternatives.
612 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # This shell has a builtin print -r that does the trick.
617 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
618 test "X$CONFIG_SHELL" != X/bin/ksh; then
619 # If we have ksh, try running configure again with it.
620 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621 export ORIGINAL_CONFIG_SHELL
622 CONFIG_SHELL=/bin/ksh
624 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634 test "X$echo_testing_string" = 'X\t' &&
635 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639 SHELL="$CONFIG_SHELL"
641 echo="$CONFIG_SHELL $0 --fallback-echo"
642 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643 test "X$echo_testing_string" = 'X\t' &&
644 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 echo="$CONFIG_SHELL $0 --fallback-echo"
648 # maybe with a smaller string...
651 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 if test "$prev" != 'sed 50q "$0"'; then
660 echo_test_string=`eval $prev`
661 export echo_test_string
662 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664 # Oops. We lost completely, so just stick with echo.
673 # Copy echo and quote the copy suitably for passing to libtool from
674 # the Makefile, instead of quoting the original, which is used later.
676 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 tagnames=${tagnames+${tagnames},}CXX
685 tagnames=${tagnames+${tagnames},}F77
687 test -n "$DJDIR" || exec 7<&0 </dev/null
691 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
692 # so uname gets run too.
693 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698 ac_default_prefix=/usr/local
700 ac_config_libobj_dir=.
707 # Identity of this package.
709 PACKAGE_TARNAME='ijs'
710 PACKAGE_VERSION='0.35'
711 PACKAGE_STRING='ijs 0.35'
712 PACKAGE_BUGREPORT='inkjet-list@linuxprinting.org'
715 ac_unique_file="ijs.c"
716 # Factoring default headers for most tests.
717 ac_includes_default="\
719 #ifdef HAVE_SYS_TYPES_H
720 # include <sys/types.h>
722 #ifdef HAVE_SYS_STAT_H
723 # include <sys/stat.h>
729 # ifdef HAVE_STDLIB_H
734 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
739 #ifdef HAVE_STRINGS_H
740 # include <strings.h>
742 #ifdef HAVE_INTTYPES_H
743 # include <inttypes.h>
752 ac_subst_vars='LTLIBOBJS
761 SYSDEPS_WINDOWS_FALSE
811 IJS_CURRENT_INTERFACE
816 INSTALL_STRIP_PROGRAM
857 program_transform_name
870 enable_option_checking
874 enable_dependency_tracking
880 ac_precious_vars='build_alias
897 # Initialize some variables set by options.
899 ac_init_version=false
900 ac_unrecognized_opts=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 # Accept the important Cygnus configure options, so we can diagnose typos.
964 case $ac_dashdash$ac_option in
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
986 cache_file=config.cache ;;
988 -datadir | --datadir | --datadi | --datad)
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval enable_$ac_useropt=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1204 -site=* | --site=* | --sit=*)
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1244 eval with_$ac_useropt=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1260 eval with_$ac_useropt=no ;;
1263 # Obsolete; use --with-x.
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1331 # Be sure to have absolute directory names.
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used" >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1437 \`configure' configures ijs 0.35 to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/ijs]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of ijs 0.35:";;
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-shared[=PKGS] build shared libraries [default=no]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-dependency-tracking Speeds up one-time builds
1520 --enable-dependency-tracking Do not reject slow dependency extractors
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-pic try to use only PIC/non-PIC objects [default=use
1529 --with-tags[=TAGS] include additional configurations [automatic]
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1543 F77 Fortran 77 compiler command
1544 FFLAGS Fortran 77 compiler flags
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to <inkjet-list@linuxprinting.org>.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1613 generated by GNU Autoconf 2.67
1615 Copyright (C) 2010 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 $as_test_x conftest$ac_exeext
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_link
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1752 ac_fn_c_check_header_mongrel ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if eval "test \"\${$3+set}\"" = set; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval "test \"\${$3+set}\"" = set; then :
1759 $as_echo_n "(cached) " >&6
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1765 # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 ac_header_compiler=yes
1776 ac_header_compiler=no
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790 ac_header_preproc=yes
1792 ac_header_preproc=no
1794 rm -f conftest.err conftest.i conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1798 # So? What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ( $as_echo "## -------------------------------------------- ##
1818 ## Report this to inkjet-list@linuxprinting.org ##
1819 ## -------------------------------------------- ##"
1820 ) | sed "s/^/$as_me: WARNING: /" >&2
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval "test \"\${$3+set}\"" = set; then :
1826 $as_echo_n "(cached) " >&6
1828 eval "$3=\$ac_header_compiler"
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_c_check_header_mongrel
1838 # ac_fn_c_try_run LINENO
1839 # ----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841 # that executables *can* be run.
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_link"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>&5
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856 { { case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_try") 2>&5
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; }; }; then :
1868 $as_echo "$as_me: program exited with status $ac_status" >&5
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=$ac_status
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 as_fn_set_status $ac_retval
1880 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists and can be compiled using the include files in
1883 # INCLUDES, setting the cache variable VAR accordingly.
1884 ac_fn_c_check_header_compile ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval "test \"\${$3+set}\"" = set; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1897 if ac_fn_c_try_compile "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 } # ac_fn_c_check_header_compile
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval "test \"\${$3+set}\"" = set; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926 #define $2 innocuous_$2
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1934 # include <limits.h>
1936 # include <assert.h>
1941 /* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined __stub_$2 || defined __stub___$2
1963 if ac_fn_c_try_link "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_func
1978 # ac_fn_cxx_try_compile LINENO
1979 # ----------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext
1985 if { { ac_try="$ac_compile"
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_compile") 2>conftest.err
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest.$ac_objext; then :
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_cxx_try_compile
2016 # ac_fn_cxx_try_cpp LINENO
2017 # ------------------------
2018 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_cpp ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_cpp conftest.$ac_ext"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } > conftest.i && {
2038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2039 test ! -s conftest.err
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_cxx_try_cpp
2053 # ac_fn_cxx_try_link LINENO
2054 # -------------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_link ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 rm -f conftest.$ac_objext conftest$ac_exeext
2060 if { { ac_try="$ac_link"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_link") 2>conftest.err
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && {
2076 test -z "$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2078 } && test -s conftest$ac_exeext && {
2079 test "$cross_compiling" = yes ||
2080 $as_test_x conftest$ac_exeext
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2090 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2091 # interfere with the next link command; also delete a directory that is
2092 # left behind by Apple's compiler. We do this before executing the actions.
2093 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 as_fn_set_status $ac_retval
2097 } # ac_fn_cxx_try_link
2099 # ac_fn_cxx_check_func LINENO FUNC VAR
2100 # ------------------------------------
2101 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2102 ac_fn_cxx_check_func ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval "test \"\${$3+set}\"" = set; then :
2108 $as_echo_n "(cached) " >&6
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2114 #define $2 innocuous_$2
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $2 (); below.
2118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119 <limits.h> exists even on freestanding compilers. */
2122 # include <limits.h>
2124 # include <assert.h>
2129 /* Override any GCC internal prototype to avoid an error.
2130 Use char because int might match the return type of a GCC
2131 builtin and then its argument prototype would still apply. */
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined __stub_$2 || defined __stub___$2
2151 if ac_fn_cxx_try_link "$LINENO"; then :
2156 rm -f core conftest.err conftest.$ac_objext \
2157 conftest$ac_exeext conftest.$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164 } # ac_fn_cxx_check_func
2166 # ac_fn_f77_try_compile LINENO
2167 # ----------------------------
2168 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_f77_try_compile ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 rm -f conftest.$ac_objext
2173 if { { ac_try="$ac_compile"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_compile") 2>conftest.err
2182 if test -s conftest.err; then
2183 grep -v '^ *+' conftest.err >conftest.er1
2184 cat conftest.er1 >&5
2185 mv -f conftest.er1 conftest.err
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && {
2189 test -z "$ac_f77_werror_flag" ||
2190 test ! -s conftest.err
2191 } && test -s conftest.$ac_objext; then :
2194 $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200 as_fn_set_status $ac_retval
2202 } # ac_fn_f77_try_compile
2204 # ac_fn_f77_try_link LINENO
2205 # -------------------------
2206 # Try to link conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_f77_try_link ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 rm -f conftest.$ac_objext conftest$ac_exeext
2211 if { { ac_try="$ac_link"
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_link") 2>conftest.err
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } && {
2227 test -z "$ac_f77_werror_flag" ||
2228 test ! -s conftest.err
2229 } && test -s conftest$ac_exeext && {
2230 test "$cross_compiling" = yes ||
2231 $as_test_x conftest$ac_exeext
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2240 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2241 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2242 # interfere with the next link command; also delete a directory that is
2243 # left behind by Apple's compiler. We do this before executing the actions.
2244 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 as_fn_set_status $ac_retval
2248 } # ac_fn_f77_try_link
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by ijs $as_me 0.35, which was
2254 generated by GNU Autoconf 2.67. Invocation command line was
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_must_keep_next=false
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 -* ) ac_must_keep_next=true ;;
2346 as_fn_append ac_configure_args " '$ac_arg'"
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2364 $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2368 # The following way of writing the cache mishandles newlines in values,
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 $as_echo "$ac_var='\''$ac_val'\''"
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_URL "$PACKAGE_URL"
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2487 if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in #((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5 ; }
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 # Check that the precious variables saved in the cache have kept the same
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 IJS_MINOR_VERSION=35
2612 IJS_CURRENT_INTERFACE=1
2623 am__api_version="1.6"
2625 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2626 if test -f "$ac_dir/install-sh"; then
2628 ac_install_sh="$ac_aux_dir/install-sh -c"
2630 elif test -f "$ac_dir/install.sh"; then
2632 ac_install_sh="$ac_aux_dir/install.sh -c"
2634 elif test -f "$ac_dir/shtool"; then
2636 ac_install_sh="$ac_aux_dir/shtool install -c"
2640 if test -z "$ac_aux_dir"; then
2641 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2644 # These three variables are undocumented and unsupported,
2645 # and are intended to be withdrawn in a future Autoconf release.
2646 # They can cause serious problems if a builder's source tree is in a directory
2647 # whose full name contains unusual characters.
2648 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2649 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2650 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2653 # Find a good install program. We prefer a C program (faster),
2654 # so one script is as good as another. But avoid the broken or
2655 # incompatible versions:
2656 # SysV /etc/install, /usr/sbin/install
2657 # SunOS /usr/etc/install
2658 # IRIX /sbin/install
2660 # AmigaOS /C/install, which installs bootblocks on floppy discs
2661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664 # OS/2's system install, which has a completely different semantic
2665 # ./install, which can be erroneously created by make from ./install.sh.
2666 # Reject install programs that cannot install multiple files.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2668 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2669 if test -z "$INSTALL"; then
2670 if test "${ac_cv_path_install+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 # Account for people who put trailing slashes in PATH elements.
2679 case $as_dir/ in #((
2680 ./ | .// | /[cC]/* | \
2681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2685 # OSF1 and SCO ODT 3.0 have their own names for install.
2686 # Don't use installbsd from OSF since it installs stuff as root
2688 for ac_prog in ginstall scoinst install; do
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2691 if test $ac_prog = install &&
2692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693 # AIX install. It has an incompatible calling convention.
2695 elif test $ac_prog = install &&
2696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697 # program-specific install script used by HP pwplus--don't use.
2700 rm -rf conftest.one conftest.two conftest.dir
2701 echo one > conftest.one
2702 echo two > conftest.two
2704 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2705 test -s conftest.one && test -s conftest.two &&
2706 test -s conftest.dir/conftest.one &&
2707 test -s conftest.dir/conftest.two
2709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2722 rm -rf conftest.one conftest.two conftest.dir
2725 if test "${ac_cv_path_install+set}" = set; then
2726 INSTALL=$ac_cv_path_install
2728 # As a last resort, use the slow shell script. Don't cache a
2729 # value for INSTALL within a source directory, because that will
2730 # break other packages using the cache if that directory is
2731 # removed, or if the value is a relative name.
2732 INSTALL=$ac_install_sh
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2736 $as_echo "$INSTALL" >&6; }
2738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2739 # It thinks the first close brace ends the variable substitution.
2740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2747 $as_echo_n "checking whether build environment is sane... " >&6; }
2750 echo timestamp > conftest.file
2751 # Do `set' in a subshell so we don't clobber the current shell's
2752 # arguments. Must try -L first in case configure is actually a
2753 # symlink; some systems play weird games with the mod time of symlinks
2754 # (eg FreeBSD returns the mod time of the symlink's containing
2757 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2758 if test "$*" = "X"; then
2760 set X `ls -t $srcdir/configure conftest.file`
2763 if test "$*" != "X $srcdir/configure conftest.file" \
2764 && test "$*" != "X conftest.file $srcdir/configure"; then
2766 # If neither matched, then we have a broken ls. This can happen
2767 # if, for instance, CONFIG_SHELL is bash and it inherits a
2768 # broken ls alias from the environment. This has actually
2769 # happened. Such a system could not be considered "sane".
2770 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2771 alias in your environment" "$LINENO" 5
2774 test "$2" = conftest.file
2780 as_fn_error $? "newly created file is older than distributed files!
2781 Check your system clock" "$LINENO" 5
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785 test "$program_prefix" != NONE &&
2786 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2787 # Use a double $ so make ignores it.
2788 test "$program_suffix" != NONE &&
2789 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2790 # Double any \ or $.
2791 # By default was `s,x,x', remove it if useless.
2792 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2793 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2796 # expand $ac_aux_dir to an absolute path
2797 am_aux_dir=`cd $ac_aux_dir && pwd`
2799 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2800 # Use eval to expand $SHELL
2801 if eval "$MISSING --run true"; then
2802 am_missing_run="$MISSING --run "
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2806 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2809 for ac_prog in gawk mawk nawk awk
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_AWK+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_AWK="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$AWK"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$AWK" && break
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2856 $as_echo_n "(cached) " >&6
2858 cat >conftest.make <<\_ACEOF
2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 SET_MAKE="MAKE=${MAKE-make}"
2882 # test to see if srcdir already configured
2883 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2884 test -f $srcdir/config.status; then
2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2888 # Define the identity of the package.
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE "$PACKAGE"
2898 cat >>confdefs.h <<_ACEOF
2899 #define VERSION "$VERSION"
2902 # Some tools Automake needs.
2904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2919 AMTAR=${AMTAR-"${am_missing_run}tar"}
2921 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2923 # Installed binaries are usually stripped using `strip' when the user
2924 # run `make install-strip'. However `strip' might not be the right
2925 # tool to use in cross-compilation environments, therefore Automake
2926 # will honor the `STRIP' environment variable to overrule this program.
2927 if test "$cross_compiling" != no; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}strip; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_STRIP+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$STRIP"; then
2937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 STRIP=$ac_cv_prog_STRIP
2957 if test -n "$STRIP"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2959 $as_echo "$STRIP" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$ac_cv_prog_STRIP"; then
2969 # Extract the first word of "strip", so it can be a program name with args.
2970 set dummy strip; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_STRIP="strip"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997 if test -n "$ac_ct_STRIP"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2999 $as_echo "$ac_ct_STRIP" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3005 if test "x$ac_ct_STRIP" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3017 STRIP="$ac_cv_prog_STRIP"
3021 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3023 # We need awk for the "check" target. The system "awk" is bad on
3038 LT_RELEASE=$IJS_MAJOR_VERSION.$IJS_MINOR_VERSION
3039 LT_CURRENT=$IJS_CURRENT_INTERFACE
3040 LT_REVISION=$IJS_INTERFACE_AGE
3041 LT_AGE=$IJS_BINARY_AGE
3048 # Check whether --enable-shared was given.
3049 if test "${enable_shared+set}" = set; then :
3050 enableval=$enable_shared; p=${PACKAGE-default}
3052 yes) enable_shared=yes ;;
3053 no) enable_shared=no ;;
3056 # Look at the argument we got. We use all the common list separators.
3057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3058 for pkg in $enableval; do
3060 if test "X$pkg" = "X$p"; then
3073 # Check whether --enable-static was given.
3074 if test "${enable_static+set}" = set; then :
3075 enableval=$enable_static; p=${PACKAGE-default}
3077 yes) enable_static=yes ;;
3078 no) enable_static=no ;;
3081 # Look at the argument we got. We use all the common list separators.
3082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3083 for pkg in $enableval; do
3085 if test "X$pkg" = "X$p"; then
3097 # Check whether --enable-fast-install was given.
3098 if test "${enable_fast_install+set}" = set; then :
3099 enableval=$enable_fast_install; p=${PACKAGE-default}
3101 yes) enable_fast_install=yes ;;
3102 no) enable_fast_install=no ;;
3104 enable_fast_install=no
3105 # Look at the argument we got. We use all the common list separators.
3106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3107 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_fast_install=yes
3117 enable_fast_install=yes
3121 # Make sure we can run config.sub.
3122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3123 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3126 $as_echo_n "checking build system type... " >&6; }
3127 if test "${ac_cv_build+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3130 ac_build_alias=$build_alias
3131 test "x$ac_build_alias" = x &&
3132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3133 test "x$ac_build_alias" = x &&
3134 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3136 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3140 $as_echo "$ac_cv_build" >&6; }
3141 case $ac_cv_build in
3143 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3146 ac_save_IFS=$IFS; IFS='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3160 $as_echo_n "checking host system type... " >&6; }
3161 if test "${ac_cv_host+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 if test "x$host_alias" = x; then
3165 ac_cv_host=$ac_cv_build
3167 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3173 $as_echo "$ac_cv_host" >&6; }
3176 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3179 ac_save_IFS=$IFS; IFS='-'
3185 # Remember, the first character of IFS is used to create $*,
3186 # except with old shells:
3189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3192 rm -f .deps 2>/dev/null
3193 mkdir .deps 2>/dev/null
3194 if test -d .deps; then
3197 # MS-DOS does not allow filenames that begin with a dot.
3200 rmdir .deps 2>/dev/null
3203 ac_config_commands="$ac_config_commands depfiles"
3206 am_make=${MAKE-make}
3207 cat > confinc << 'END'
3211 # If we don't find an include directive, just comment out the code.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3217 # First try GNU make style include.
3218 echo "include confinc" > confmf
3219 # We grep out `Entering directory' and `Leaving directory'
3220 # messages which can occur if `w' ends up in MAKEFLAGS.
3221 # In particular we don't look at `^make:' because GNU make might
3222 # be invoked under some other name (usually "gmake"), in which
3223 # case it prints its new name instead of `make'.
3224 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3229 # Now try BSD make style include.
3230 if test "$am__include" = "#"; then
3231 echo '.include "confinc"' > confmf
3232 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3233 am__include=.include
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3241 $as_echo "$_am_result" >&6; }
3242 rm -f confinc confmf
3244 # Check whether --enable-dependency-tracking was given.
3245 if test "${enable_dependency_tracking+set}" = set; then :
3246 enableval=$enable_dependency_tracking;
3249 if test "x$enable_dependency_tracking" != xno; then
3250 am_depcomp="$ac_aux_dir/depcomp"
3255 if test "x$enable_dependency_tracking" != xno; then
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$ac_cv_prog_CC"; then
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3362 if test -z "$CC"; then
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="${ac_tool_prefix}cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3403 if test -z "$CC"; then
3404 # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423 ac_prog_rejected=yes
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test $ac_prog_rejected = yes; then
3435 # We found a bogon in the path, so make sure we never use it.
3436 set dummy $ac_cv_prog_CC
3438 if test $# != 0; then
3439 # We chose a different compiler from the bogus one.
3440 # However, it has the same basename, so the bogon will be chosen
3441 # first if we set CC to just the basename; use the full file name.
3443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$CC" && break
3503 if test -z "$CC"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_ac_ct_CC="$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$ac_ct_CC" && break
3547 if test "x$ac_ct_CC" = x; then
3550 case $cross_compiling:$ac_tool_warned in
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3572 for ac_option in --version -v -V -qversion; do
3573 { { ac_try="$ac_compiler $ac_option >&5"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582 if test -s conftest.err; then
3584 ... rest of stderr output deleted ...
3585 10q' conftest.err >conftest.er1
3586 cat conftest.er1 >&5
3588 rm -f conftest.er1 conftest.err
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613 # The possible output files:
3614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3617 for ac_file in $ac_files
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 if { { ac_try="$ac_link_default"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link_default") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3642 for ac_file in $ac_files ''
3644 test -f "$ac_file" || continue
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3649 # We found the default executable, but exeext='' is most
3653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 # We set ac_cv_exeext here because the later test for it is not
3658 # safe: cross compilers may not add the suffix if given an `-o'
3659 # argument, so we may need to know it at that point already.
3660 # Even if this section looks crufty: it has the advantage of
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3672 if test -z "$ac_file"; then :
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error 77 "C compiler cannot create executables
3681 See \`config.log' for more details" "$LINENO" 5 ; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details" "$LINENO" 5 ; }
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3739 FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run. If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752 { { ac_try="$ac_link"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 if { ac_try='./conftest$ac_cv_exeext'
3764 { { case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_try") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; }; then
3776 if test "$cross_compiling" = maybe; then
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if test "${ac_cv_objext+set}" = set; then :
3795 $as_echo_n "(cached) " >&6
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compile") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 for ac_file in conftest.o conftest.obj conftest.*; do
3821 test -f "$ac_file" || continue;
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5 ; }
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3862 if ac_fn_c_try_compile "$LINENO"; then :
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if test "${ac_cv_prog_cc_g+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_c_werror_flag=$ac_save_c_werror_flag
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3931 if ac_fn_c_try_compile "$LINENO"; then :
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3952 if test "$GCC" = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_cv_prog_cc_c89=no
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3969 #include <sys/types.h>
3970 #include <sys/stat.h>
3971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3972 struct buf { int x; };
3973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974 static char *e (p, i)
3980 static char *f (char * (*g) (char **, int), char **p, ...)
3985 s = g (p, va_arg (v,int));
3990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3991 function prototypes and stuff, but not '\xHH' hex character constants.
3992 These don't provoke an error unfortunately, instead are silently treated
3993 as 'x'. The following induces an error, until -std is added to get
3994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3995 array size at least. It's necessary to write '\x00'==0 to get something
3996 that's true only with -std. */
3997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000 inside strings and character constants. */
4002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004 int test (int i, double x);
4005 struct s1 {int (*f) (int a);};
4006 struct s2 {int (*f) (double a);};
4007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c89=$ac_arg
4025 rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c89" != "xno" && break
4028 rm -f conftest.$ac_ext
4033 case "x$ac_cv_prog_cc_c89" in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4041 CC="$CC $ac_cv_prog_cc_c89"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4045 if test "x$ac_cv_prog_cc_c89" != xno; then :
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 depcc="$CC" am_compiler_list=
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4058 $as_echo_n "checking dependency style of $depcc... " >&6; }
4059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4063 # We make a subdir and do the tests there. Otherwise we can end up
4064 # making bogus files that we don't know about and never remove. For
4065 # instance it was reported that on HP-UX the gcc test will end up
4066 # making a dummy file named `D' -- because `-MD' means `put the output
4069 # Copy depcomp to subdir because otherwise we won't find it if we're
4070 # using a relative directory.
4071 cp "$am_depcomp" conftest.dir
4074 am_cv_CC_dependencies_compiler_type=none
4075 if test "$am_compiler_list" = ""; then
4076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078 for depmode in $am_compiler_list; do
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4082 echo '#include "conftest.h"' > conftest.c
4083 echo 'int i;' > conftest.h
4084 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4088 # after this tag, mechanisms are not by side-effect, so they'll
4089 # only be used when explicitly requested
4090 if test "x$enable_dependency_tracking" = xyes; then
4098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4099 # mode. It turns out that the SunPro C++ compiler does not properly
4100 # handle `-M -o', and we need to detect this.
4101 if depmode=$depmode \
4102 source=conftest.c object=conftest.o \
4103 depfile=conftest.Po tmpdepfile=conftest.TPo \
4104 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4105 grep conftest.h conftest.Po > /dev/null 2>&1 &&
4106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4107 am_cv_CC_dependencies_compiler_type=$depmode
4115 am_cv_CC_dependencies_compiler_type=none
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126 if test "${lt_cv_path_SED+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 # Loop through the user's path and test for sed and gsed.
4130 # Then use that list of sed's as ones to test for truncation.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for lt_ac_prog in sed gsed; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4139 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4146 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4147 # along with /bin/sed that truncates output.
4148 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4149 test ! -f $lt_ac_sed && break
4150 cat /dev/null > conftest.in
4152 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4153 # Check for GNU sed and select it if it is found.
4154 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4155 lt_cv_path_SED=$lt_ac_sed
4159 cat conftest.in conftest.in >conftest.tmp
4160 mv conftest.tmp conftest.in
4161 cp conftest.in conftest.nl
4163 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4164 cmp -s conftest.out conftest.nl || break
4165 # 10000 chars as input seems more than enough
4166 test $lt_ac_count -gt 10 && break
4167 lt_ac_count=`expr $lt_ac_count + 1`
4168 if test $lt_ac_count -gt $lt_ac_max; then
4169 lt_ac_max=$lt_ac_count
4170 lt_cv_path_SED=$lt_ac_sed
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4179 $as_echo "$SED" >&6; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4183 if test "${ac_cv_path_GREP+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -z "$GREP"; then
4187 ac_path_GREP_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in grep ggrep; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4197 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4198 # Check for GNU ac_path_GREP and select it if it is found.
4199 # Check for GNU $ac_path_GREP
4200 case `"$ac_path_GREP" --version 2>&1` in
4202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4205 $as_echo_n 0123456789 >"conftest.in"
4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4209 mv "conftest.tmp" "conftest.in"
4210 cp "conftest.in" "conftest.nl"
4211 $as_echo 'GREP' >> "conftest.nl"
4212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214 as_fn_arith $ac_count + 1 && ac_count=$as_val
4215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4216 # Best one so far, save it but keep looking for a better one
4217 ac_cv_path_GREP="$ac_path_GREP"
4218 ac_path_GREP_max=$ac_count
4220 # 10*(2^10) chars as input seems more than enough
4221 test $ac_count -gt 10 && break
4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4226 $ac_path_GREP_found && break 3
4231 if test -z "$ac_cv_path_GREP"; then
4232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4235 ac_cv_path_GREP=$GREP
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4240 $as_echo "$ac_cv_path_GREP" >&6; }
4241 GREP="$ac_cv_path_GREP"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4245 $as_echo_n "checking for egrep... " >&6; }
4246 if test "${ac_cv_path_EGREP+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250 then ac_cv_path_EGREP="$GREP -E"
4252 if test -z "$EGREP"; then
4253 ac_path_EGREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in egrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4263 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4264 # Check for GNU ac_path_EGREP and select it if it is found.
4265 # Check for GNU $ac_path_EGREP
4266 case `"$ac_path_EGREP" --version 2>&1` in
4268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4271 $as_echo_n 0123456789 >"conftest.in"
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'EGREP' >> "conftest.nl"
4278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_EGREP="$ac_path_EGREP"
4284 ac_path_EGREP_max=$ac_count
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 $ac_path_EGREP_found && break 3
4297 if test -z "$ac_cv_path_EGREP"; then
4298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301 ac_cv_path_EGREP=$EGREP
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4307 $as_echo "$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4312 # Check whether --with-gnu-ld was given.
4313 if test "${with_gnu_ld+set}" = set; then :
4314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4320 if test "$GCC" = yes; then
4321 # Check if gcc -print-prog-name=ld gives a path.
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4323 $as_echo_n "checking for ld used by $CC... " >&6; }
4326 # gcc leaves a trailing carriage return which upsets mingw
4327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4332 # Accept absolute paths.
4334 re_direlt='/[^/][^/]*/\.\./'
4335 # Canonicalize the pathname of ld
4336 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4337 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4338 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4340 test -z "$LD" && LD="$ac_prog"
4343 # If it fails, then pretend we aren't using GCC.
4347 # If it is relative, then search for the first ld in PATH.
4351 elif test "$with_gnu_ld" = yes; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4353 $as_echo_n "checking for GNU ld... " >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4356 $as_echo_n "checking for non-GNU ld... " >&6; }
4358 if test "${lt_cv_path_LD+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -z "$LD"; then
4362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4363 for ac_dir in $PATH; do
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4367 lt_cv_path_LD="$ac_dir/$ac_prog"
4368 # Check to see if the program is GNU ld. I'd rather use --version,
4369 # but apparently some GNU ld's only accept -v.
4370 # Break only if it was the GNU/non-GNU ld that we prefer.
4371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4372 *GNU* | *'with BFD'*)
4373 test "$with_gnu_ld" != no && break
4376 test "$with_gnu_ld" != yes && break
4383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4388 if test -n "$LD"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4390 $as_echo "$LD" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4395 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4402 case `$LD -v 2>&1 </dev/null` in
4403 *GNU* | *'with BFD'*)
4404 lt_cv_prog_gnu_ld=yes
4407 lt_cv_prog_gnu_ld=no
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4413 with_gnu_ld=$lt_cv_prog_gnu_ld
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4417 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4418 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 lt_cv_ld_reload_flag='-r'
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4424 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4425 reload_flag=$lt_cv_ld_reload_flag
4426 case $reload_flag in
4428 *) reload_flag=" $reload_flag" ;;
4430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4433 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4434 if test "${lt_cv_path_NM+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$NM"; then
4438 # Let the user override the test.
4441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4442 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4444 test -z "$ac_dir" && ac_dir=.
4445 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4447 # Check to see if the nm accepts a BSD-compat flag.
4448 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4449 # nm: unknown option "B" ignored
4450 # Tru64's nm complains that /dev/null is an invalid object file
4451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4452 */dev/null* | *'Invalid file or object type'*)
4453 lt_cv_path_NM="$tmp_nm -B"
4457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4459 lt_cv_path_NM="$tmp_nm -p"
4463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4464 continue # so that we can try to find one that supports BSD flags
4471 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4475 $as_echo "$lt_cv_path_NM" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4479 $as_echo_n "checking whether ln -s works... " >&6; }
4481 if test "$LN_S" = "ln -s"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4486 $as_echo "no, using $LN_S" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4490 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4491 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4494 lt_cv_file_magic_cmd='$MAGIC_CMD'
4495 lt_cv_file_magic_test_file=
4496 lt_cv_deplibs_check_method='unknown'
4497 # Need to set the preceding variable on all platforms that support
4498 # interlibrary dependencies.
4499 # 'none' -- dependencies not supported.
4500 # `unknown' -- same as none, but documents that we really don't know.
4501 # 'pass_all' -- all dependencies passed with no checks.
4502 # 'test_compile' -- check by making test program.
4503 # 'file_magic [[regex]]' -- check by looking for files in library path
4504 # which responds to the $file_magic_cmd with a given extended regex.
4505 # If you have `file' or equivalent on your system and you're not sure
4506 # whether `pass_all' will *always* work, you probably want this one.
4510 lt_cv_deplibs_check_method=pass_all
4514 lt_cv_deplibs_check_method=pass_all
4518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4519 lt_cv_file_magic_cmd='/usr/bin/file -L'
4520 lt_cv_file_magic_test_file=/shlib/libc.so
4524 # win32_libid is a shell function defined in ltmain.sh
4525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4526 lt_cv_file_magic_cmd='win32_libid'
4530 # Base MSYS/MinGW do not provide the 'file' command needed by
4531 # win32_libid shell function, so use a weaker test based on 'objdump'.
4532 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4533 lt_cv_file_magic_cmd='$OBJDUMP -f'
4536 darwin* | rhapsody*)
4537 lt_cv_deplibs_check_method=pass_all
4540 freebsd* | kfreebsd*-gnu)
4541 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4544 # Not sure whether the presence of OpenBSD here was a mistake.
4545 # Let's accept both of them until this is cleared up.
4546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4547 lt_cv_file_magic_cmd=/usr/bin/file
4548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4552 lt_cv_deplibs_check_method=pass_all
4557 lt_cv_deplibs_check_method=pass_all
4560 hpux10.20* | hpux11*)
4561 lt_cv_file_magic_cmd=/usr/bin/file
4564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4568 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]'
4569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4573 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4578 irix5* | irix6* | nonstopux*)
4580 *-32|*"-32 ") libmagic=32-bit;;
4581 *-n32|*"-n32 ") libmagic=N32;;
4582 *-64|*"-64 ") libmagic=64-bit;;
4583 *) libmagic=never-match;;
4585 lt_cv_deplibs_check_method=pass_all
4588 # This must be Linux ELF.
4590 lt_cv_deplibs_check_method=pass_all
4593 netbsd* | knetbsd*-gnu)
4594 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4603 lt_cv_file_magic_cmd=/usr/bin/file
4604 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4608 lt_cv_deplibs_check_method=unknown
4612 lt_cv_file_magic_cmd=/usr/bin/file
4613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4617 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4621 osf3* | osf4* | osf5*)
4622 lt_cv_deplibs_check_method=pass_all
4626 lt_cv_deplibs_check_method=pass_all
4630 lt_cv_deplibs_check_method=pass_all
4633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4634 case $host_vendor in
4636 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]'
4637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4640 lt_cv_deplibs_check_method=pass_all
4643 lt_cv_file_magic_cmd='/bin/file'
4644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4647 lt_cv_file_magic_cmd='/bin/file'
4648 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4649 lt_cv_file_magic_test_file=/lib/libc.so
4652 lt_cv_deplibs_check_method=pass_all
4657 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4658 lt_cv_deplibs_check_method=pass_all
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4664 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4665 file_magic_cmd=$lt_cv_file_magic_cmd
4666 deplibs_check_method=$lt_cv_deplibs_check_method
4667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4672 # If no C compiler was specified, use CC.
4675 # Allow CC to be a program name with arguments.
4679 # Check whether --enable-libtool-lock was given.
4680 if test "${enable_libtool_lock+set}" = set; then :
4681 enableval=$enable_libtool_lock;
4684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4686 # Some flags need to be propagated to the compiler or linker for good
4690 # Find out which ABI we are using.
4691 echo 'int i;' > conftest.$ac_ext
4692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4693 (eval $ac_compile) 2>&5
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; then
4697 case `/usr/bin/file conftest.$ac_objext` in
4709 # Find out which ABI we are using.
4710 echo '#line 4710 "configure"' > conftest.$ac_ext
4711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4712 (eval $ac_compile) 2>&5
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then
4716 if test "$lt_cv_prog_gnu_ld" = yes; then
4717 case `/usr/bin/file conftest.$ac_objext` in
4719 LD="${LD-ld} -melf32bsmip"
4722 LD="${LD-ld} -melf32bmipn32"
4725 LD="${LD-ld} -melf64bmip"
4729 case `/usr/bin/file conftest.$ac_objext` in
4745 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4746 # Find out which ABI we are using.
4747 echo 'int i;' > conftest.$ac_ext
4748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4749 (eval $ac_compile) 2>&5
4751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }; then
4753 case "`/usr/bin/file conftest.o`" in
4757 LD="${LD-ld} -m elf_i386"
4759 ppc64-*linux*|powerpc64-*linux*)
4760 LD="${LD-ld} -m elf32ppclinux"
4763 LD="${LD-ld} -m elf_s390"
4766 LD="${LD-ld} -m elf32_sparc"
4773 LD="${LD-ld} -m elf_x86_64"
4775 ppc*-*linux*|powerpc*-*linux*)
4776 LD="${LD-ld} -m elf64ppc"
4779 LD="${LD-ld} -m elf64_s390"
4782 LD="${LD-ld} -m elf64_sparc"
4792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4793 SAVE_CFLAGS="$CFLAGS"
4794 CFLAGS="$CFLAGS -belf"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4797 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_c_try_link "$LINENO"; then :
4818 lt_cv_cc_needs_belf=yes
4820 lt_cv_cc_needs_belf=no
4822 rm -f core conftest.err conftest.$ac_objext \
4823 conftest$ac_exeext conftest.$ac_ext
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4835 CFLAGS="$SAVE_CFLAGS"
4841 need_locks="$enable_libtool_lock"
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4863 for ac_c_preproc_warn_flag in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4874 # include <limits.h>
4876 # include <assert.h>
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4883 # Broken: fails on valid input.
4886 rm -f conftest.err conftest.i conftest.$ac_ext
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895 # Broken: success on invalid input.
4898 # Passes both tests.
4902 rm -f conftest.err conftest.i conftest.$ac_ext
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.i conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4922 for ac_c_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4933 # include <limits.h>
4935 # include <assert.h>
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4942 # Broken: fails on valid input.
4945 rm -f conftest.err conftest.i conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4957 # Passes both tests.
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.i conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details" "$LINENO" 5 ; }
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4983 $as_echo_n "checking for ANSI C header files... " >&6; }
4984 if test "${ac_cv_header_stdc+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_header_stdc=yes
5005 ac_cv_header_stdc=no
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 if test $ac_cv_header_stdc = yes; then
5010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "memchr" >/dev/null 2>&1; then :
5020 ac_cv_header_stdc=no
5026 if test $ac_cv_header_stdc = yes; then
5027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 $EGREP "free" >/dev/null 2>&1; then :
5037 ac_cv_header_stdc=no
5043 if test $ac_cv_header_stdc = yes; then
5044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5045 if test "$cross_compiling" = yes; then :
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5052 #if ((' ' & 0x0FF) == 0x020)
5053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5056 # define ISLOWER(c) \
5057 (('a' <= (c) && (c) <= 'i') \
5058 || ('j' <= (c) && (c) <= 'r') \
5059 || ('s' <= (c) && (c) <= 'z'))
5060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5068 for (i = 0; i < 256; i++)
5069 if (XOR (islower (i), ISLOWER (i))
5070 || toupper (i) != TOUPPER (i))
5075 if ac_fn_c_try_run "$LINENO"; then :
5078 ac_cv_header_stdc=no
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5081 conftest.$ac_objext conftest.beam conftest.$ac_ext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5087 $as_echo "$ac_cv_header_stdc" >&6; }
5088 if test $ac_cv_header_stdc = yes; then
5090 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5102 cat >>confdefs.h <<_ACEOF
5103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 for ac_header in dlfcn.h
5113 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5114 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5115 cat >>confdefs.h <<_ACEOF
5116 #define HAVE_DLFCN_H 1
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128 if test -z "$CXX"; then
5129 if test -n "$CCC"; then
5132 if test -n "$ac_tool_prefix"; then
5133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_CXX+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$CXX"; then
5143 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 if test -n "$CXX"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5165 $as_echo "$CXX" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 test -n "$CXX" && break
5175 if test -z "$CXX"; then
5177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5179 # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$ac_ct_CXX"; then
5187 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_CXX="$ac_prog"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5207 if test -n "$ac_ct_CXX"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5209 $as_echo "$ac_ct_CXX" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5216 test -n "$ac_ct_CXX" && break
5219 if test "x$ac_ct_CXX" = x; then
5222 case $cross_compiling:$ac_tool_warned in
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5234 # Provide some information about the compiler.
5235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5238 for ac_option in --version -v -V -qversion; do
5239 { { ac_try="$ac_compiler $ac_option >&5"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5245 $as_echo "$ac_try_echo"; } >&5
5246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5248 if test -s conftest.err; then
5250 ... rest of stderr output deleted ...
5251 10q' conftest.err >conftest.er1
5252 cat conftest.er1 >&5
5254 rm -f conftest.er1 conftest.err
5255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5278 if ac_fn_cxx_try_compile "$LINENO"; then :
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5289 if test $ac_compiler_gnu = yes; then
5294 ac_test_CXXFLAGS=${CXXFLAGS+set}
5295 ac_save_CXXFLAGS=$CXXFLAGS
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5298 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5302 ac_cxx_werror_flag=yes
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_cv_prog_cxx_g=yes
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5331 if ac_fn_cxx_try_compile "$LINENO"; then :
5334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5347 if ac_fn_cxx_try_compile "$LINENO"; then :
5348 ac_cv_prog_cxx_g=yes
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5359 if test "$ac_test_CXXFLAGS" = set; then
5360 CXXFLAGS=$ac_save_CXXFLAGS
5361 elif test $ac_cv_prog_cxx_g = yes; then
5362 if test "$GXX" = yes; then
5368 if test "$GXX" = yes; then
5375 ac_cpp='$CXXCPP $CPPFLAGS'
5376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5380 depcc="$CXX" am_compiler_list=
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5383 $as_echo_n "checking dependency style of $depcc... " >&6; }
5384 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5388 # We make a subdir and do the tests there. Otherwise we can end up
5389 # making bogus files that we don't know about and never remove. For
5390 # instance it was reported that on HP-UX the gcc test will end up
5391 # making a dummy file named `D' -- because `-MD' means `put the output
5394 # Copy depcomp to subdir because otherwise we won't find it if we're
5395 # using a relative directory.
5396 cp "$am_depcomp" conftest.dir
5399 am_cv_CXX_dependencies_compiler_type=none
5400 if test "$am_compiler_list" = ""; then
5401 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5403 for depmode in $am_compiler_list; do
5404 # We need to recreate these files for each test, as the compiler may
5405 # overwrite some of them when testing with obscure command lines.
5406 # This happens at least with the AIX C compiler.
5407 echo '#include "conftest.h"' > conftest.c
5408 echo 'int i;' > conftest.h
5409 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5413 # after this tag, mechanisms are not by side-effect, so they'll
5414 # only be used when explicitly requested
5415 if test "x$enable_dependency_tracking" = xyes; then
5423 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5424 # mode. It turns out that the SunPro C++ compiler does not properly
5425 # handle `-M -o', and we need to detect this.
5426 if depmode=$depmode \
5427 source=conftest.c object=conftest.o \
5428 depfile=conftest.Po tmpdepfile=conftest.TPo \
5429 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5430 grep conftest.h conftest.Po > /dev/null 2>&1 &&
5431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5432 am_cv_CXX_dependencies_compiler_type=$depmode
5440 am_cv_CXX_dependencies_compiler_type=none
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5445 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5446 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5450 ac_cpp='$CXXCPP $CPPFLAGS'
5451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5455 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5456 if test -z "$CXXCPP"; then
5457 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5460 # Double quotes because CXXCPP needs to be expanded
5461 for CXXCPP in "$CXX -E" "/lib/cpp"
5464 for ac_cxx_preproc_warn_flag in '' yes
5466 # Use a header file that comes with gcc, so configuring glibc
5467 # with a fresh cross-compiler works.
5468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469 # <limits.h> exists even on freestanding compilers.
5470 # On the NeXT, cc -E runs the code through the compiler's parser,
5471 # not just through cpp. "Syntax error" is here to catch this case.
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5475 # include <limits.h>
5477 # include <assert.h>
5481 if ac_fn_cxx_try_cpp "$LINENO"; then :
5484 # Broken: fails on valid input.
5487 rm -f conftest.err conftest.i conftest.$ac_ext
5489 # OK, works on sane cases. Now check whether nonexistent headers
5490 # can be detected and how.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include <ac_nonexistent.h>
5495 if ac_fn_cxx_try_cpp "$LINENO"; then :
5496 # Broken: success on invalid input.
5499 # Passes both tests.
5503 rm -f conftest.err conftest.i conftest.$ac_ext
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.i conftest.err conftest.$ac_ext
5508 if $ac_preproc_ok; then :
5513 ac_cv_prog_CXXCPP=$CXXCPP
5516 CXXCPP=$ac_cv_prog_CXXCPP
5518 ac_cv_prog_CXXCPP=$CXXCPP
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5521 $as_echo "$CXXCPP" >&6; }
5523 for ac_cxx_preproc_warn_flag in '' yes
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 # include <limits.h>
5536 # include <assert.h>
5540 if ac_fn_cxx_try_cpp "$LINENO"; then :
5543 # Broken: fails on valid input.
5546 rm -f conftest.err conftest.i conftest.$ac_ext
5548 # OK, works on sane cases. Now check whether nonexistent headers
5549 # can be detected and how.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <ac_nonexistent.h>
5554 if ac_fn_cxx_try_cpp "$LINENO"; then :
5555 # Broken: success on invalid input.
5558 # Passes both tests.
5562 rm -f conftest.err conftest.i conftest.$ac_ext
5565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566 rm -f conftest.i conftest.err conftest.$ac_ext
5567 if $ac_preproc_ok; then :
5570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5572 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5573 See \`config.log' for more details" "$LINENO" 5 ; }
5577 ac_cpp='$CXXCPP $CPPFLAGS'
5578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_F77+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 if test -n "$F77"; then
5598 ac_cv_prog_F77="$F77" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 if test -n "$F77"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5620 $as_echo "$F77" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5627 test -n "$F77" && break
5630 if test -z "$F77"; then
5632 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5641 if test -n "$ac_ct_F77"; then
5642 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_ac_ct_F77="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5662 if test -n "$ac_ct_F77"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5664 $as_echo "$ac_ct_F77" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5671 test -n "$ac_ct_F77" && break
5674 if test "x$ac_ct_F77" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5688 # Provide some information about the compiler.
5689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5692 for ac_option in --version -v -V -qversion; do
5693 { { ac_try="$ac_compiler $ac_option >&5"
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5699 $as_echo "$ac_try_echo"; } >&5
5700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5702 if test -s conftest.err; then
5704 ... rest of stderr output deleted ...
5705 10q' conftest.err >conftest.er1
5706 cat conftest.er1 >&5
5708 rm -f conftest.er1 conftest.err
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }
5714 # If we don't use `.F' as extension, the preprocessor is not run on the
5715 # input file. (Note that this only needs to work for GNU compilers.)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5719 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5720 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 cat > conftest.$ac_ext <<_ACEOF
5731 if ac_fn_f77_try_compile "$LINENO"; then :
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5741 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5743 ac_test_FFLAGS=${FFLAGS+set}
5744 ac_save_FFLAGS=$FFLAGS
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5747 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5748 if test "${ac_cv_prog_f77_g+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5752 cat > conftest.$ac_ext <<_ACEOF
5757 if ac_fn_f77_try_compile "$LINENO"; then :
5758 ac_cv_prog_f77_g=yes
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5766 $as_echo "$ac_cv_prog_f77_g" >&6; }
5767 if test "$ac_test_FFLAGS" = set; then
5768 FFLAGS=$ac_save_FFLAGS
5769 elif test $ac_cv_prog_f77_g = yes; then
5770 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5776 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5783 if test $ac_compiler_gnu = yes; then
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5798 # find the maximum length of command line arguments
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5800 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5801 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5809 # On DJGPP, this test can blow up pretty badly due to problems in libc
5810 # (any single argument exceeding 2000 bytes causes a buffer overrun
5811 # during glob expansion). Even if it were fixed, the result of this
5812 # check would be larger than it should be.
5813 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5817 # Under GNU Hurd, this test is not required because there is
5818 # no limit to the length of command line arguments.
5819 # Libtool will interpret -1 as no limit whatsoever
5820 lt_cv_sys_max_cmd_len=-1;
5824 # On Win9x/ME, this test blows up -- it succeeds, but takes
5825 # about 5 minutes as the teststring grows exponentially.
5826 # Worse, since 9x/ME are not pre-emptively multitasking,
5827 # you end up with a "frozen" computer, even though with patience
5828 # the test eventually succeeds (with a max line length of 256k).
5829 # Instead, let's just punt: use the minimum linelength reported by
5830 # all of the supported platforms: 8192 (on NT/2K/XP).
5831 lt_cv_sys_max_cmd_len=8192;
5835 # On AmigaOS with pdksh, this test takes hours, literally.
5836 # So we just punt and use a minimum line length of 8192.
5837 lt_cv_sys_max_cmd_len=8192;
5841 # If test is not a shell built-in, we'll probably end up computing a
5842 # maximum length that is only half of the actual maximum length, but
5844 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5845 = "XX$testring") >/dev/null 2>&1 &&
5846 new_result=`expr "X$testring" : ".*" 2>&1` &&
5847 lt_cv_sys_max_cmd_len=$new_result &&
5848 test $i != 17 # 1/2 MB should be enough
5851 testring=$testring$testring
5854 # Add a significant safety factor because C++ compilers can tack on massive
5855 # amounts of additional arguments before passing them to the linker.
5856 # It appears as though 1/2 is a usable value.
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5863 if test -n $lt_cv_sys_max_cmd_len ; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5865 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5868 $as_echo "none" >&6; }
5874 # Check for command to grab the raw symbol name followed by C symbol from nm.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5876 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5877 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5881 # These are sane defaults that work on at least a few old systems.
5882 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5884 # Character class describing NM global symbol codes.
5885 symcode='[BCDEGRST]'
5887 # Regexp to match symbols that can be accessed directly from C.
5888 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5890 # Transform the above into a raw symbol and a C symbol.
5891 symxfrm='\1 \2\3 \3'
5893 # Transform an extracted symbol line into a proper C declaration
5894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5896 # Transform an extracted symbol line into symbol name and symbol address
5897 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'"
5899 # Define system-specific variables.
5904 cygwin* | mingw* | pw32*)
5905 symcode='[ABCDGISTW]'
5907 hpux*) # Its linker distinguishes data from code symbols
5908 if test "$host_cpu" = ia64; then
5909 symcode='[ABCDEGRST]'
5911 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5912 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'"
5915 symcode='[BCDEGRST]'
5918 symcode='[BCDEGQRST]'
5928 # Handle CRLF in mingw tool chain
5932 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5936 # If we're using GNU nm, then use its standard symbol codes.
5937 case `$NM -V 2>&1` in
5938 *GNU* | *'with BFD'*)
5939 symcode='[ABCDGIRSTW]' ;;
5942 # Try without a prefix undercore, then with it.
5943 for ac_symprfx in "" "_"; do
5945 # Write the raw and C identifiers.
5946 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5948 # Check to see that the pipe works correctly.
5952 cat > conftest.$ac_ext <<EOF
5957 void nm_test_func(){}
5961 int main(){nm_test_var='a';nm_test_func();return(0);}
5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5965 (eval $ac_compile) 2>&5
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; }; then
5969 # Now try to grab the symbols.
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; } && test -s "$nlist"; then
5976 # Try sorting and uniquifying the output.
5977 if sort "$nlist" | uniq > "$nlist"T; then
5978 mv -f "$nlist"T "$nlist"
5983 # Make sure that we snagged all the symbols we need.
5984 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986 cat <<EOF > conftest.$ac_ext
5992 # Now generate the symbol file.
5993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5995 cat <<EOF >> conftest.$ac_ext
5996 #if defined (__STDC__) && __STDC__
5997 # define lt_ptr_t void *
5999 # define lt_ptr_t char *
6003 /* The mapping between symbol names and symbols. */
6008 lt_preloaded_symbols[] =
6011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012 cat <<\EOF >> conftest.$ac_ext
6020 # Now try linking the two files.
6021 mv conftest.$ac_objext conftstm.$ac_objext
6022 lt_save_LIBS="$LIBS"
6023 lt_save_CFLAGS="$CFLAGS"
6024 LIBS="conftstm.$ac_objext"
6025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6027 (eval $ac_link) 2>&5
6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6033 LIBS="$lt_save_LIBS"
6034 CFLAGS="$lt_save_CFLAGS"
6036 echo "cannot find nm_test_func in $nlist" >&5
6039 echo "cannot find nm_test_var in $nlist" >&5
6042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6045 echo "$progname: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 rm -f conftest* conftst*
6050 # Do not use the global_symbol_pipe unless it works.
6051 if test "$pipe_works" = yes; then
6054 lt_cv_sys_global_symbol_pipe=
6060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061 lt_cv_sys_global_symbol_to_cdecl=
6063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6065 $as_echo "failed" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6068 $as_echo "ok" >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6072 $as_echo_n "checking for objdir... " >&6; }
6073 if test "${lt_cv_objdir+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 rm -f .libs 2>/dev/null
6077 mkdir .libs 2>/dev/null
6078 if test -d .libs; then
6081 # MS-DOS does not allow filenames that begin with a dot.
6084 rmdir .libs 2>/dev/null
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6087 $as_echo "$lt_cv_objdir" >&6; }
6088 objdir=$lt_cv_objdir
6096 # AIX sometimes has problems with the GCC collect2 program. For some
6097 # reason, if we set the COLLECT_NAMES environment variable, the problems
6098 # vanish in a puff of smoke.
6099 if test "X${COLLECT_NAMES+set}" != Xset; then
6101 export COLLECT_NAMES
6106 # Sed substitution that helps us do robust quoting. It backslashifies
6107 # metacharacters that are still active within double-quoted strings.
6108 Xsed='sed -e s/^X//'
6109 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6118 # Sed substitution to avoid accidental globbing in evaled expressions
6119 no_glob_subst='s/\*/\\\*/g'
6125 default_ofile=libtool
6126 can_build_shared=yes
6128 # All known linkers require a `.a' archive for static linking (except M$VC,
6129 # which needs '.lib').
6131 ltmain="$ac_aux_dir/ltmain.sh"
6132 ofile="$default_ofile"
6133 with_gnu_ld="$lt_cv_prog_gnu_ld"
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_prog_AR+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_AR="${ac_tool_prefix}ar"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 if test -n "$AR"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6166 $as_echo "$AR" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6174 if test -z "$ac_cv_prog_AR"; then
6176 # Extract the first word of "ar", so it can be a program name with args.
6177 set dummy ar; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6183 if test -n "$ac_ct_AR"; then
6184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_AR="ar"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204 if test -n "$ac_ct_AR"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6206 $as_echo "$ac_ct_AR" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6212 if test "x$ac_ct_AR" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6235 if test -n "$RANLIB"; then
6236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 RANLIB=$ac_cv_prog_RANLIB
6256 if test -n "$RANLIB"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6258 $as_echo "$RANLIB" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6266 if test -z "$ac_cv_prog_RANLIB"; then
6267 ac_ct_RANLIB=$RANLIB
6268 # Extract the first word of "ranlib", so it can be a program name with args.
6269 set dummy ranlib; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -n "$ac_ct_RANLIB"; then
6276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_ac_ct_RANLIB="ranlib"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6296 if test -n "$ac_ct_RANLIB"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6298 $as_echo "$ac_ct_RANLIB" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6304 if test "x$ac_ct_RANLIB" = x; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6313 RANLIB=$ac_ct_RANLIB
6316 RANLIB="$ac_cv_prog_RANLIB"
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}strip; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_STRIP+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$STRIP"; then
6328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 STRIP=$ac_cv_prog_STRIP
6348 if test -n "$STRIP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6350 $as_echo "$STRIP" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_STRIP"; then
6360 # Extract the first word of "strip", so it can be a program name with args.
6361 set dummy strip; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6367 if test -n "$ac_ct_STRIP"; then
6368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_ac_ct_STRIP="strip"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6388 if test -n "$ac_ct_STRIP"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6390 $as_echo "$ac_ct_STRIP" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_STRIP" = x; then
6399 case $cross_compiling:$ac_tool_warned in
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6408 STRIP="$ac_cv_prog_STRIP"
6413 old_CFLAGS="$CFLAGS"
6415 # Set sane defaults for various variables
6416 test -z "$AR" && AR=ar
6417 test -z "$AR_FLAGS" && AR_FLAGS=cru
6418 test -z "$AS" && AS=as
6419 test -z "$CC" && CC=cc
6420 test -z "$LTCC" && LTCC=$CC
6421 test -z "$DLLTOOL" && DLLTOOL=dlltool
6422 test -z "$LD" && LD=ld
6423 test -z "$LN_S" && LN_S="ln -s"
6424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6425 test -z "$NM" && NM=nm
6426 test -z "$SED" && SED=sed
6427 test -z "$OBJDUMP" && OBJDUMP=objdump
6428 test -z "$RANLIB" && RANLIB=:
6429 test -z "$STRIP" && STRIP=:
6430 test -z "$ac_objext" && ac_objext=o
6432 # Determine commands to create old-style static archives.
6433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6434 old_postinstall_cmds='chmod 644 $oldlib'
6435 old_postuninstall_cmds=
6437 if test -n "$RANLIB"; then
6440 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6443 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6449 # Only perform the check for file, if the check method requires it
6450 case $deplibs_check_method in
6452 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6455 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6463 lt_save_MAGIC_CMD="$MAGIC_CMD"
6464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6466 for ac_dir in $ac_dummy; do
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/${ac_tool_prefix}file; then
6470 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6471 if test -n "$file_magic_test_file"; then
6472 case $deplibs_check_method in
6474 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6477 $EGREP "$file_magic_regex" > /dev/null; then
6482 *** Warning: the command libtool uses to detect shared libraries,
6483 *** $file_magic_cmd, produces output that libtool cannot recognize.
6484 *** The result is that libtool may fail to recognize shared libraries
6485 *** as such. This will affect the creation of libtool libraries that
6486 *** depend on shared libraries, but programs linked with such libtool
6487 *** libraries will work regardless of this problem. Nevertheless, you
6488 *** may want to report the problem to your system manager and/or to
6489 *** bug-libtool@gnu.org
6499 MAGIC_CMD="$lt_save_MAGIC_CMD"
6504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505 if test -n "$MAGIC_CMD"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6507 $as_echo "$MAGIC_CMD" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test -z "$lt_cv_path_MAGIC_CMD"; then
6514 if test -n "$ac_tool_prefix"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6516 $as_echo_n "checking for file... " >&6; }
6517 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6522 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6525 lt_save_MAGIC_CMD="$MAGIC_CMD"
6526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6527 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6528 for ac_dir in $ac_dummy; do
6530 test -z "$ac_dir" && ac_dir=.
6531 if test -f $ac_dir/file; then
6532 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6533 if test -n "$file_magic_test_file"; then
6534 case $deplibs_check_method in
6536 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6539 $EGREP "$file_magic_regex" > /dev/null; then
6544 *** Warning: the command libtool uses to detect shared libraries,
6545 *** $file_magic_cmd, produces output that libtool cannot recognize.
6546 *** The result is that libtool may fail to recognize shared libraries
6547 *** as such. This will affect the creation of libtool libraries that
6548 *** depend on shared libraries, but programs linked with such libtool
6549 *** libraries will work regardless of this problem. Nevertheless, you
6550 *** may want to report the problem to your system manager and/or to
6551 *** bug-libtool@gnu.org
6561 MAGIC_CMD="$lt_save_MAGIC_CMD"
6566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567 if test -n "$MAGIC_CMD"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6569 $as_echo "$MAGIC_CMD" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6587 # Check whether --enable-libtool-lock was given.
6588 if test "${enable_libtool_lock+set}" = set; then :
6589 enableval=$enable_libtool_lock;
6592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6595 # Check whether --with-pic was given.
6596 if test "${with_pic+set}" = set; then :
6597 withval=$with_pic; pic_mode="$withval"
6602 test -z "$pic_mode" && pic_mode=default
6604 # Use C for the default configuration in the libtool script
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614 # Source file extension for C test sources.
6617 # Object file extension for compiled C test sources.
6621 # Code to be used in simple compile tests
6622 lt_simple_compile_test_code="int some_variable = 0;\n"
6624 # Code to be used in simple link tests
6625 lt_simple_link_test_code='int main(){return(0);}\n'
6628 # If no C compiler was specified, use CC.
6631 # Allow CC to be a program name with arguments.
6636 # Check for any special shared library compilation flags.
6639 if test "$GCC" = no; then
6642 lt_prog_cc_shlib='-belf'
6646 if test -n "$lt_prog_cc_shlib"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6648 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6649 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6652 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6653 lt_cv_prog_cc_can_build_shared=no
6659 # Check to make sure the static flag actually works.
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6662 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6663 if test "${lt_prog_compiler_static_works+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
6666 lt_prog_compiler_static_works=no
6667 save_LDFLAGS="$LDFLAGS"
6668 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6669 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6671 # The compiler can only warn and ignore the option if not recognized
6672 # So say no if there are warnings
6673 if test -s conftest.err; then
6674 # Append any errors to the config.log.
6675 cat conftest.err 1>&5
6677 lt_prog_compiler_static_works=yes
6681 LDFLAGS="$save_LDFLAGS"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6685 $as_echo "$lt_prog_compiler_static_works" >&6; }
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6690 lt_prog_compiler_static=
6696 lt_prog_compiler_no_builtin_flag=
6698 if test "$GCC" = yes; then
6699 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6707 lt_cv_prog_compiler_rtti_exceptions=no
6708 ac_outfile=conftest.$ac_objext
6709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6710 lt_compiler_flag="-fno-rtti -fno-exceptions"
6711 # Insert the option either (1) after the last *FLAGS variable, or
6712 # (2) before a word containing "conftest.", or (3) at the end.
6713 # Note that $ac_compile itself does not contain backslashes and begins
6714 # with a dollar sign (not a hyphen), so the echo should work correctly.
6715 # The option is referenced via a variable to avoid confusing sed.
6716 lt_compile=`echo "$ac_compile" | $SED \
6717 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6719 -e 's:$: $lt_compiler_flag:'`
6720 (eval echo "\"\$as_me:6720: $lt_compile\"" >&5)
6721 (eval "$lt_compile" 2>conftest.err)
6723 cat conftest.err >&5
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 if (exit $ac_status) && test -s "$ac_outfile"; then
6726 # The compiler can only warn and ignore the option if not recognized
6727 # So say no if there are warnings
6728 if test ! -s conftest.err; then
6729 lt_cv_prog_compiler_rtti_exceptions=yes
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6736 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6739 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6746 lt_prog_compiler_wl=
6747 lt_prog_compiler_pic=
6748 lt_prog_compiler_static=
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6751 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6753 if test "$GCC" = yes; then
6754 lt_prog_compiler_wl='-Wl,'
6755 lt_prog_compiler_static='-static'
6759 # All AIX code is PIC.
6760 if test "$host_cpu" = ia64; then
6761 # AIX 5 now supports IA64 processor
6762 lt_prog_compiler_static='-Bstatic'
6767 # FIXME: we need at least 68020 code to build shared libraries, but
6768 # adding the `-m68020' flag to GCC prevents building anything better,
6770 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6773 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6774 # PIC is the default for these OSes.
6777 mingw* | pw32* | os2*)
6778 # This hack is so that the source file can tell whether it is being
6779 # built for inclusion in a dll (and should export symbols for example).
6780 lt_prog_compiler_pic='-DDLL_EXPORT'
6783 darwin* | rhapsody*)
6784 # PIC is the default on this platform
6785 # Common symbols not allowed in MH_DYLIB files
6786 lt_prog_compiler_pic='-fno-common'
6790 # Just because we use GCC doesn't mean we suddenly get shared libraries
6791 # on systems that don't support them.
6792 lt_prog_compiler_can_build_shared=no
6797 if test -d /usr/nec; then
6798 lt_prog_compiler_pic=-Kconform_pic
6803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6810 lt_prog_compiler_pic='-fPIC'
6816 lt_prog_compiler_pic='-fPIC'
6820 # PORTME Check for flag to pass linker flags through the system compiler.
6823 lt_prog_compiler_wl='-Wl,'
6824 if test "$host_cpu" = ia64; then
6825 # AIX 5 now supports IA64 processor
6826 lt_prog_compiler_static='-Bstatic'
6828 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6832 mingw* | pw32* | os2*)
6833 # This hack is so that the source file can tell whether it is being
6834 # built for inclusion in a dll (and should export symbols for example).
6835 lt_prog_compiler_pic='-DDLL_EXPORT'
6838 hpux9* | hpux10* | hpux11*)
6839 lt_prog_compiler_wl='-Wl,'
6840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6847 lt_prog_compiler_pic='+Z'
6850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6851 lt_prog_compiler_static='${wl}-a ${wl}archive'
6854 irix5* | irix6* | nonstopux*)
6855 lt_prog_compiler_wl='-Wl,'
6856 # PIC (with -KPIC) is the default.
6857 lt_prog_compiler_static='-non_shared'
6861 lt_prog_compiler_pic='-KPIC'
6862 lt_prog_compiler_static='-Bstatic'
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_pic='-KPIC'
6870 lt_prog_compiler_static='-static'
6873 lt_prog_compiler_wl='-Wl,'
6874 # All Alpha code is PIC.
6875 lt_prog_compiler_static='-non_shared'
6880 osf3* | osf4* | osf5*)
6881 lt_prog_compiler_wl='-Wl,'
6882 # All OSF/1 code is PIC.
6883 lt_prog_compiler_static='-non_shared'
6887 lt_prog_compiler_pic='-Kpic'
6888 lt_prog_compiler_static='-dn'
6892 lt_prog_compiler_wl='-Wl,'
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6898 lt_prog_compiler_wl='-Qoption ld '
6899 lt_prog_compiler_pic='-PIC'
6900 lt_prog_compiler_static='-Bstatic'
6903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6904 lt_prog_compiler_wl='-Wl,'
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6910 if test -d /usr/nec ;then
6911 lt_prog_compiler_pic='-Kconform_pic'
6912 lt_prog_compiler_static='-Bstatic'
6917 lt_prog_compiler_pic='-pic'
6918 lt_prog_compiler_static='-Bstatic'
6922 lt_prog_compiler_can_build_shared=no
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6928 $as_echo "$lt_prog_compiler_pic" >&6; }
6931 # Check to make sure the PIC flag actually works.
6933 if test -n "$lt_prog_compiler_pic"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6937 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6940 lt_prog_compiler_pic_works=no
6941 ac_outfile=conftest.$ac_objext
6942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6944 # Insert the option either (1) after the last *FLAGS variable, or
6945 # (2) before a word containing "conftest.", or (3) at the end.
6946 # Note that $ac_compile itself does not contain backslashes and begins
6947 # with a dollar sign (not a hyphen), so the echo should work correctly.
6948 # The option is referenced via a variable to avoid confusing sed.
6949 lt_compile=`echo "$ac_compile" | $SED \
6950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6952 -e 's:$: $lt_compiler_flag:'`
6953 (eval echo "\"\$as_me:6953: $lt_compile\"" >&5)
6954 (eval "$lt_compile" 2>conftest.err)
6956 cat conftest.err >&5
6957 echo "$as_me:6957: \$? = $ac_status" >&5
6958 if (exit $ac_status) && test -s "$ac_outfile"; then
6959 # The compiler can only warn and ignore the option if not recognized
6960 # So say no if there are warnings
6961 if test ! -s conftest.err; then
6962 lt_prog_compiler_pic_works=yes
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6969 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6971 if test x"$lt_prog_compiler_pic_works" = xyes; then
6972 case $lt_prog_compiler_pic in
6974 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6977 lt_prog_compiler_pic=
6978 lt_prog_compiler_can_build_shared=no
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6985 lt_prog_compiler_pic=
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6997 lt_cv_prog_compiler_c_o=no
6998 $rm -r conftest 2>/dev/null
7002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7004 lt_compiler_flag="-o out/conftest2.$ac_objext"
7005 # Insert the option either (1) after the last *FLAGS variable, or
7006 # (2) before a word containing "conftest.", or (3) at the end.
7007 # Note that $ac_compile itself does not contain backslashes and begins
7008 # with a dollar sign (not a hyphen), so the echo should work correctly.
7009 lt_compile=`echo "$ac_compile" | $SED \
7010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7012 -e 's:$: $lt_compiler_flag:'`
7013 (eval echo "\"\$as_me:7013: $lt_compile\"" >&5)
7014 (eval "$lt_compile" 2>out/conftest.err)
7016 cat out/conftest.err >&5
7017 echo "$as_me:7017: \$? = $ac_status" >&5
7018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7020 # The compiler can only warn and ignore the option if not recognized
7021 # So say no if there are warnings
7022 if test ! -s out/conftest.err; then
7023 lt_cv_prog_compiler_c_o=yes
7028 # SGI C++ compiler will create directory out/ii_files/ for
7029 # template instantiation
7030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7031 $rm out/* && rmdir out
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7041 hard_links="nottested"
7042 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7043 # do not overwrite the value of need_locks provided by the user
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7045 $as_echo_n "checking if we can lock with hard links... " >&6; }
7048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7050 ln conftest.a conftest.b 2>&5 || hard_links=no
7051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7053 $as_echo "$hard_links" >&6; }
7054 if test "$hard_links" = no; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7056 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7067 allow_undefined_flag=
7068 enable_shared_with_static_runtimes=no
7070 archive_expsym_cmds=
7071 old_archive_From_new_cmds=
7072 old_archive_from_expsyms_cmds=
7073 export_dynamic_flag_spec=
7074 whole_archive_flag_spec=
7075 thread_safe_flag_spec=
7076 hardcode_libdir_flag_spec=
7077 hardcode_libdir_flag_spec_ld=
7078 hardcode_libdir_separator=
7081 hardcode_shlibpath_var=unsupported
7082 link_all_deplibs=unknown
7083 hardcode_automatic=no
7086 always_export_symbols=no
7087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7088 # include_expsyms should be a list of space-separated symbols to be *always*
7089 # included in the symbol list
7091 # exclude_expsyms can be an extended regexp of symbols to exclude
7092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7094 # as well as any symbol that contains `d'.
7095 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7097 # platforms (ab)use it in PIC code, but their linkers get confused if
7098 # the symbol is explicitly referenced. Since portable code cannot
7099 # rely on this symbol name, it's probably fine to never include it in
7100 # preloaded symbol tables.
7101 extract_expsyms_cmds=
7104 cygwin* | mingw* | pw32*)
7105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7106 # When not using gcc, we currently assume that we are using
7107 # Microsoft Visual C++.
7108 if test "$GCC" != yes; then
7118 if test "$with_gnu_ld" = yes; then
7119 # If archive_cmds runs LD, not CC, wlarc should be empty
7122 # See if GNU ld supports shared libraries.
7124 aix3* | aix4* | aix5*)
7125 # On AIX/PPC, the GNU linker is very broken
7126 if test "$host_cpu" != ia64; then
7130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7131 *** to be unable to reliably create shared libraries on AIX.
7132 *** Therefore, libtool is disabling shared libraries support. If you
7133 *** really care for shared libraries, you may want to modify your PATH
7134 *** so that a non-GNU linker is found, and then restart.
7141 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)'
7142 hardcode_libdir_flag_spec='-L$libdir'
7143 hardcode_minus_L=yes
7145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7146 # that the semantics of dynamic libraries on AmigaOS, at least up
7147 # to version 4, is to share data among multiple programs linked
7148 # with the same dynamic library. Since this doesn't match the
7149 # behavior of shared libraries on other platforms, we can't use
7155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7156 allow_undefined_flag=unsupported
7157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7158 # support --undefined. This deserves some investigation. FIXME
7159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7165 cygwin* | mingw* | pw32*)
7166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7167 # as there is no search path for DLLs.
7168 hardcode_libdir_flag_spec='-L$libdir'
7169 allow_undefined_flag=unsupported
7170 always_export_symbols=no
7171 enable_shared_with_static_runtimes=yes
7172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7176 # If the export-symbols file already is a .def file (1st line
7177 # is EXPORTS), use it as is; otherwise, prepend...
7178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7179 cp $export_symbols $output_objdir/$soname.def;
7181 echo EXPORTS > $output_objdir/$soname.def;
7182 cat $export_symbols >> $output_objdir/$soname.def;
7184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7190 netbsd* | knetbsd*-gnu)
7191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7192 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7206 *** create shared libraries on Solaris systems. Therefore, libtool
7207 *** is disabling shared libraries support. We urge you to upgrade GNU
7208 *** binutils to release 2.9.1 or newer. Another option is to modify
7209 *** your PATH or compiler configuration so that the native linker is
7210 *** used, and then restart.
7213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7222 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225 hardcode_shlibpath_var=no
7229 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7230 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7231 archive_cmds="$tmp_archive_cmds"
7232 supports_anon_versioning=no
7233 case `$LD -v 2>/dev/null` in
7234 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7237 *\ 2.11.*) ;; # other 2.11 versions
7238 *) supports_anon_versioning=yes ;;
7240 if test $supports_anon_versioning = yes; then
7241 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7243 $echo "local: *; };" >> $output_objdir/$libname.ver~
7244 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7246 archive_expsym_cmds="$tmp_archive_cmds"
7254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7263 if test "$ld_shlibs" = yes; then
7264 runpath_var=LD_RUN_PATH
7265 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7266 export_dynamic_flag_spec='${wl}--export-dynamic'
7267 # ancient GNU ld didn't support --whole-archive et. al.
7268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7271 whole_archive_flag_spec=
7275 # PORTME fill in a description of your system's linker (not GNU ld)
7278 allow_undefined_flag=unsupported
7279 always_export_symbols=yes
7280 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'
7281 # Note: this linker hardcodes the directories in LIBPATH if there
7282 # are no directories specified by -L.
7283 hardcode_minus_L=yes
7284 if test "$GCC" = yes && test -z "$link_static_flag"; then
7285 # Neither direct hardcoding nor static linking is supported with a
7287 hardcode_direct=unsupported
7292 if test "$host_cpu" = ia64; then
7293 # On IA64, the linker does run time linking by default, so we don't
7294 # have to do anything special.
7295 aix_use_runtimelinking=no
7296 exp_sym_flag='-Bexport'
7299 # If we're using GNU nm, then we don't want the "-C" option.
7300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7302 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'
7304 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'
7306 aix_use_runtimelinking=no
7308 # Test if we are trying to use run time linking or normal
7309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7310 # need to do runtime linking.
7311 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7312 for ld_flag in $LDFLAGS; do
7313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7314 aix_use_runtimelinking=yes
7320 exp_sym_flag='-bexport'
7321 no_entry_flag='-bnoentry'
7324 # When large executables or shared objects are built, AIX ld can
7325 # have problems creating the table of contents. If linking a library
7326 # or program results in "error TOC overflow" add -mminimal-toc to
7327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7332 hardcode_libdir_separator=':'
7333 link_all_deplibs=yes
7335 if test "$GCC" = yes; then
7336 case $host_os in aix4.012|aix4.012.*)
7337 # We only want to do this on AIX 4.2 and lower, the check
7338 # below for broken collect2 doesn't work under 4.3+
7339 collect2name=`${CC} -print-prog-name=collect2`
7340 if test -f "$collect2name" && \
7341 strings "$collect2name" | grep resolve_lib_name >/dev/null
7343 # We have reworked collect2
7346 # We have old collect2
7347 hardcode_direct=unsupported
7348 # It fails to find uninstalled libraries when the uninstalled
7349 # path is not listed in the libpath. Setting hardcode_minus_L
7350 # to unsupported forces relinking
7351 hardcode_minus_L=yes
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 hardcode_libdir_separator=
7356 shared_flag='-shared'
7359 if test "$host_cpu" = ia64; then
7360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7361 # chokes on -Wl,-G. The following line is correct:
7364 if test "$aix_use_runtimelinking" = yes; then
7365 shared_flag='${wl}-G'
7367 shared_flag='${wl}-bM:SRE'
7372 # It seems that -bexpall does not export symbols beginning with
7373 # underscore (_), so it is better to generate a list of symbols to export.
7374 always_export_symbols=yes
7375 if test "$aix_use_runtimelinking" = yes; then
7376 # Warning - without using the other runtime loading flags (-brtl),
7377 # -berok will link without error, but may produce a broken library.
7378 allow_undefined_flag='-berok'
7379 # Determine the default libpath from the value encoded in an empty executable.
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_link "$LINENO"; then :
7393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7395 # Check for a 64-bit object if we didn't find anything.
7396 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7399 rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
7401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7404 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7406 if test "$host_cpu" = ia64; then
7407 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7408 allow_undefined_flag="-z nodefs"
7409 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7411 # Determine the default libpath from the value encoded in an empty executable.
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7423 if ac_fn_c_try_link "$LINENO"; then :
7425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7427 # Check for a 64-bit object if we didn't find anything.
7428 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7431 rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7436 # Warning - without using the other run time loading flags,
7437 # -berok will link without error, but may produce a broken library.
7438 no_undefined_flag=' ${wl}-bernotok'
7439 allow_undefined_flag=' ${wl}-berok'
7440 # -bexpall does not export symbols beginning with underscore (_)
7441 always_export_symbols=yes
7442 # Exported symbols can be pulled into shared objects from archives
7443 whole_archive_flag_spec=' '
7444 archive_cmds_need_lc=yes
7445 # This is similar to how AIX traditionally builds it's shared libraries.
7446 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7452 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)'
7453 hardcode_libdir_flag_spec='-L$libdir'
7454 hardcode_minus_L=yes
7455 # see comment about different semantics on the GNU ld section
7460 export_dynamic_flag_spec=-rdynamic
7463 cygwin* | mingw* | pw32*)
7464 # When not using gcc, we currently assume that we are using
7465 # Microsoft Visual C++.
7466 # hardcode_libdir_flag_spec is actually meaningless, as there is
7467 # no search path for DLLs.
7468 hardcode_libdir_flag_spec=' '
7469 allow_undefined_flag=unsupported
7470 # Tell ltmain to make .lib files, not .a files.
7472 # Tell ltmain to make .dll files, not .so files.
7474 # FIXME: Setting linknames here is a bad hack.
7475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7476 # The linker will automatically build a .lib file if we build a DLL.
7477 old_archive_From_new_cmds='true'
7478 # FIXME: Should let the user specify the lib program.
7479 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7480 fix_srcfile_path='`cygpath -w "$srcfile"`'
7481 enable_shared_with_static_runtimes=yes
7484 darwin* | rhapsody*)
7485 if test "$GXX" = yes ; then
7486 archive_cmds_need_lc=no
7488 rhapsody* | darwin1.[012])
7489 allow_undefined_flag='-undefined suppress'
7492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7493 allow_undefined_flag='-flat_namespace -undefined suppress'
7495 case ${MACOSX_DEPLOYMENT_TARGET} in
7497 allow_undefined_flag='-flat_namespace -undefined suppress'
7500 allow_undefined_flag='-undefined dynamic_lookup'
7506 lt_int_apple_cc_single_mod=no
7507 output_verbose_link_cmd='echo'
7508 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7509 lt_int_apple_cc_single_mod=yes
7511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7512 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7514 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7516 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7518 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7519 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7521 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7523 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}'
7525 hardcode_automatic=yes
7526 hardcode_shlibpath_var=unsupported
7527 whole_archive_flag_spec='-all_load $convenience'
7528 link_all_deplibs=yes
7535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7536 hardcode_libdir_flag_spec='-L$libdir'
7537 hardcode_shlibpath_var=no
7544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7545 # support. Future versions do this automatically, but an explicit c++rt0.o
7546 # does not break anything, and helps significantly (at the cost of a little
7549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7550 hardcode_libdir_flag_spec='-R$libdir'
7552 hardcode_shlibpath_var=no
7555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7559 hardcode_minus_L=yes
7560 hardcode_shlibpath_var=no
7563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7564 freebsd* | kfreebsd*-gnu)
7565 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7566 hardcode_libdir_flag_spec='-R$libdir'
7568 hardcode_shlibpath_var=no
7572 if test "$GCC" = yes; then
7573 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'
7575 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'
7577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7578 hardcode_libdir_separator=:
7581 # hardcode_minus_L: Not really in the search PATH,
7582 # but as the default location of the library.
7583 hardcode_minus_L=yes
7584 export_dynamic_flag_spec='${wl}-E'
7588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7600 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7607 if test "$with_gnu_ld" = no; then
7610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7611 hardcode_libdir_flag_spec_ld='+b $libdir'
7612 hardcode_libdir_separator=:
7614 hardcode_shlibpath_var=no
7617 hardcode_libdir_flag_spec='-L$libdir'
7619 hardcode_shlibpath_var=no
7621 # hardcode_minus_L: Not really in the search PATH,
7622 # but as the default location of the library.
7623 hardcode_minus_L=yes
7626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7627 hardcode_libdir_separator=:
7629 export_dynamic_flag_spec='${wl}-E'
7631 # hardcode_minus_L: Not really in the search PATH,
7632 # but as the default location of the library.
7633 hardcode_minus_L=yes
7639 irix5* | irix6* | nonstopux*)
7640 if test "$GCC" = yes; then
7641 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'
7643 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'
7644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7647 hardcode_libdir_separator=:
7648 link_all_deplibs=yes
7651 netbsd* | knetbsd*-gnu)
7652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7657 hardcode_libdir_flag_spec='-R$libdir'
7659 hardcode_shlibpath_var=no
7663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7666 hardcode_libdir_separator=:
7667 hardcode_shlibpath_var=no
7672 hardcode_shlibpath_var=no
7673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7676 export_dynamic_flag_spec='${wl}-E'
7679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_libdir_flag_spec='-R$libdir'
7684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7692 hardcode_libdir_flag_spec='-L$libdir'
7693 hardcode_minus_L=yes
7694 allow_undefined_flag=unsupported
7695 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'
7696 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7700 if test "$GCC" = yes; then
7701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7702 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'
7704 allow_undefined_flag=' -expect_unresolved \*'
7705 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'
7707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7708 hardcode_libdir_separator=:
7711 osf4* | osf5*) # as osf3* with the addition of -msym flag
7712 if test "$GCC" = yes; then
7713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7714 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'
7715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7717 allow_undefined_flag=' -expect_unresolved \*'
7718 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'
7719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7722 # Both c and cxx compiler support -rpath directly
7723 hardcode_libdir_flag_spec='-rpath $libdir'
7725 hardcode_libdir_separator=:
7729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7730 hardcode_shlibpath_var=no
7731 export_dynamic_flag_spec='${wl}-Bexport'
7732 runpath_var=LD_RUN_PATH
7733 hardcode_runpath_var=yes
7737 no_undefined_flag=' -z text'
7738 if test "$GCC" = yes; then
7739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7747 hardcode_libdir_flag_spec='-R$libdir'
7748 hardcode_shlibpath_var=no
7750 solaris2.[0-5] | solaris2.[0-5].*) ;;
7751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7754 link_all_deplibs=yes
7758 if test "x$host_vendor" = xsequent; then
7759 # Use $CC to link under sequent, because it throws in some extra .o
7760 # files that make .init and .fini sections work.
7761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7765 hardcode_libdir_flag_spec='-L$libdir'
7767 hardcode_minus_L=yes
7768 hardcode_shlibpath_var=no
7772 case $host_vendor in
7774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_direct=yes # is this really true???
7778 ## LD is ld it makes a PLAMLIB
7779 ## CC just makes a GrossModule.
7780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7781 reload_cmds='$CC -r -o $output$reload_objs'
7785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7789 runpath_var='LD_RUN_PATH'
7790 hardcode_shlibpath_var=no
7794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7795 hardcode_shlibpath_var=no
7796 export_dynamic_flag_spec='-Bexport'
7800 if test -d /usr/nec; then
7801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7802 hardcode_shlibpath_var=no
7803 runpath_var=LD_RUN_PATH
7804 hardcode_runpath_var=yes
7810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_shlibpath_var=no
7814 hardcode_runpath_var=yes
7815 runpath_var=LD_RUN_PATH
7818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7819 no_undefined_flag='${wl}-z ${wl}text'
7820 if test "$GCC" = yes; then
7821 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7823 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7825 runpath_var='LD_RUN_PATH'
7826 hardcode_shlibpath_var=no
7830 no_undefined_flag=' -z text'
7831 # $CC -shared without GNU ld will not create a library from C++
7832 # object files and a static libstdc++, better avoid it by now
7833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7836 hardcode_libdir_flag_spec=
7837 hardcode_shlibpath_var=no
7838 runpath_var='LD_RUN_PATH'
7842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843 hardcode_libdir_flag_spec='-L$libdir'
7844 hardcode_shlibpath_var=no
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7854 $as_echo "$ld_shlibs" >&6; }
7855 test "$ld_shlibs" = no && can_build_shared=no
7857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7858 if test "$GCC" = yes; then
7859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7863 # Do we need to explicitly link libc?
7865 case "x$archive_cmds_need_lc" in
7867 # Assume -lc should be added
7868 archive_cmds_need_lc=yes
7870 if test "$enable_shared" = yes && test "$GCC" = yes; then
7871 case $archive_cmds in
7873 # FIXME: we may have to deal with multi-command sequences.
7876 # Test whether the compiler implicitly links with -lc since on some
7877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7878 # to ld, don't add -lc before -lgcc.
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885 (eval $ac_compile) 2>&5
7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888 test $ac_status = 0; } 2>conftest.err; then
7891 libobjs=conftest.$ac_objext
7893 wl=$lt_prog_compiler_wl
7899 lt_save_allow_undefined_flag=$allow_undefined_flag
7900 allow_undefined_flag=
7901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7902 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; }
7907 archive_cmds_need_lc=no
7909 archive_cmds_need_lc=yes
7911 allow_undefined_flag=$lt_save_allow_undefined_flag
7913 cat conftest.err 1>&5
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7917 $as_echo "$archive_cmds_need_lc" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7925 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7927 libname_spec='lib$name'
7935 shlibpath_overrides_runpath=unknown
7937 dynamic_linker="$host_os ld.so"
7938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7939 if test "$GCC" = yes; then
7940 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7941 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7942 # if the path contains ";" then we assume it to be the separator
7943 # otherwise default to the standard path separator (i.e. ":") - it is
7944 # assumed that no part of a normal pathname contains ";" but that should
7945 # okay in the real world where ";" in dirpaths is itself problematic.
7946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7953 need_lib_prefix=unknown
7954 hardcode_into_libs=no
7956 # when you set need_version to no, make sure it does not cause -set_version
7957 # flags to be left without arguments
7958 need_version=unknown
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7964 shlibpath_var=LIBPATH
7966 # AIX 3 has no versioning support, so we append a major version to the name.
7967 soname_spec='${libname}${release}${shared_ext}$major'
7974 hardcode_into_libs=yes
7975 if test "$host_cpu" = ia64; then
7976 # AIX 5 supports IA64
7977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7978 shlibpath_var=LD_LIBRARY_PATH
7980 # With GCC up to 2.95.x, collect2 would create an import file
7981 # for dependence libraries. The import file would start with
7982 # the line `#! .'. This would cause the generated library to
7983 # depend on `.', always an invalid library. This was fixed in
7984 # development snapshots of GCC prior to 3.0.
7986 aix4 | aix4.[01] | aix4.[01].*)
7987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7989 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7997 # soname into executable. Probably we can add versioning support to
7998 # collect2, so additional links can be useful in future.
7999 if test "$aix_use_runtimelinking" = yes; then
8000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8001 # instead of lib<name>.a to let people know that these are not
8002 # typical AIX shared libraries.
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8005 # We preserve .a as extension for shared libraries through AIX4.2
8006 # and later when we are not doing run time linking.
8007 library_names_spec='${libname}${release}.a $libname.a'
8008 soname_spec='${libname}${release}${shared_ext}$major'
8010 shlibpath_var=LIBPATH
8015 library_names_spec='$libname.ixlibrary $libname.a'
8016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8017 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'
8021 library_names_spec='${libname}${shared_ext}'
8022 dynamic_linker="$host_os ld.so"
8023 shlibpath_var=LIBRARY_PATH
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8035 # the default ld.so.conf also contains /usr/contrib/lib and
8036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8037 # libtool to hard-code these into programs
8040 cygwin* | mingw* | pw32*)
8041 version_type=windows
8046 case $GCC,$host_os in
8047 yes,cygwin* | yes,mingw* | yes,pw32*)
8048 library_names_spec='$libname.dll.a'
8049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8050 postinstall_cmds='base_file=`basename \${file}`~
8051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8052 dldir=$destdir/`dirname \$dlpath`~
8053 test -d \$dldir || mkdir -p \$dldir~
8054 $install_prog $dir/$dlname \$dldir/$dlname'
8055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8056 dlpath=$dir/\$dldll~
8058 shlibpath_overrides_runpath=yes
8062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8064 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8067 # MinGW DLLs use traditional 'lib' prefix
8068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8069 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8070 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8071 # It is most probably a Windows format PATH printed by
8072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8073 # path with ; separators, and with drive letters. We can handle the
8074 # drive letters (cygwin fileutils understands them), so leave them,
8075 # especially as we might pass files found there to a mingw objdump,
8076 # which wouldn't understand a cygwinified path. Ahh.
8077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8083 # pw32 DLLs use 'pw' prefix rather than 'lib'
8084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8093 dynamic_linker='Win32 ld.exe'
8094 # FIXME: first we should search . and the directory the executable is in
8098 darwin* | rhapsody*)
8099 dynamic_linker="$host_os dyld"
8103 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8104 soname_spec='${libname}${release}${major}$shared_ext'
8105 shlibpath_overrides_runpath=yes
8106 shlibpath_var=DYLD_LIBRARY_PATH
8107 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8109 if test "$GCC" = yes; then
8110 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8112 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LD_LIBRARY_PATH
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 shlibpath_var=LD_LIBRARY_PATH
8137 shlibpath_overrides_runpath=no
8138 hardcode_into_libs=yes
8139 dynamic_linker='GNU ld.so'
8143 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8144 version_type=freebsd-$objformat
8145 case $version_type in
8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8156 shlibpath_var=LD_LIBRARY_PATH
8159 shlibpath_overrides_runpath=yes
8161 freebsd3.01* | freebsdelf3.01*)
8162 shlibpath_overrides_runpath=yes
8163 hardcode_into_libs=yes
8166 shlibpath_overrides_runpath=no
8167 hardcode_into_libs=yes
8176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8177 soname_spec='${libname}${release}${shared_ext}$major'
8178 shlibpath_var=LD_LIBRARY_PATH
8179 hardcode_into_libs=yes
8182 hpux9* | hpux10* | hpux11*)
8183 # Give a soname corresponding to the major version so that dld.sl refuses to
8184 # link against other versions.
8191 hardcode_into_libs=yes
8192 dynamic_linker="$host_os dld.so"
8193 shlibpath_var=LD_LIBRARY_PATH
8194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196 soname_spec='${libname}${release}${shared_ext}$major'
8197 if test "X$HPUX_IA64_MODE" = X32; then
8198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8206 hardcode_into_libs=yes
8207 dynamic_linker="$host_os dld.sl"
8208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211 soname_spec='${libname}${release}${shared_ext}$major'
8212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8217 dynamic_linker="$host_os dld.sl"
8218 shlibpath_var=SHLIB_PATH
8219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8224 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8225 postinstall_cmds='chmod 555 $lib'
8228 irix5* | irix6* | nonstopux*)
8230 nonstopux*) version_type=nonstopux ;;
8232 if test "$lt_cv_prog_gnu_ld" = yes; then
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8243 irix5* | nonstopux*)
8247 case $LD in # libtool.m4 will add one of these switches to LD
8248 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8249 libsuff= shlibsuff= libmagic=32-bit;;
8250 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8251 libsuff=32 shlibsuff=N32 libmagic=N32;;
8252 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8253 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8254 *) libsuff= shlibsuff= libmagic=never-match;;
8258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8259 shlibpath_overrides_runpath=no
8260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8262 hardcode_into_libs=yes
8265 # No shared lib support for Linux oldld, aout, or coff.
8266 linux*oldld* | linux*aout* | linux*coff*)
8270 # This must be Linux ELF.
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276 soname_spec='${libname}${release}${shared_ext}$major'
8277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=no
8280 # This implies no fast_install, which is unacceptable.
8281 # Some rework will be needed to allow for fast_install
8282 # before this can be enabled.
8283 hardcode_into_libs=yes
8285 # Append ld.so.conf contents to the search path
8286 if test -f /etc/ld.so.conf; then
8287 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8288 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8291 # We used to test for /lib/ld.so.1 and disable shared libraries on
8292 # powerpc, because MkLinux only supported shared libraries with the
8293 # GNU dynamic linker. Since this was broken with cross compilers,
8294 # most powerpc-linux boxes support dynamic linking these days and
8295 # people can always --disable-shared, the test was removed, and we
8296 # assume the GNU/Linux dynamic linker is in use.
8297 dynamic_linker='GNU/Linux ld.so'
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 shlibpath_var=LD_LIBRARY_PATH
8307 shlibpath_overrides_runpath=no
8308 hardcode_into_libs=yes
8309 dynamic_linker='GNU ld.so'
8316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8319 dynamic_linker='NetBSD (a.out) ld.so'
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8322 soname_spec='${libname}${release}${shared_ext}$major'
8323 dynamic_linker='NetBSD ld.elf_so'
8325 shlibpath_var=LD_LIBRARY_PATH
8326 shlibpath_overrides_runpath=yes
8327 hardcode_into_libs=yes
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 shlibpath_overrides_runpath=yes
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 shlibpath_var=LD_LIBRARY_PATH
8344 shlibpath_overrides_runpath=yes
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8356 openbsd2.[89] | openbsd2.[89].*)
8357 shlibpath_overrides_runpath=no
8360 shlibpath_overrides_runpath=yes
8364 shlibpath_overrides_runpath=yes
8369 libname_spec='$name'
8372 library_names_spec='$libname${shared_ext} $libname.a'
8373 dynamic_linker='OS/2 ld.exe'
8374 shlibpath_var=LIBPATH
8377 osf3* | osf4* | osf5*)
8381 soname_spec='${libname}${release}${shared_ext}$major'
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383 shlibpath_var=LD_LIBRARY_PATH
8384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8390 soname_spec='${libname}${release}${shared_ext}$major'
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 shlibpath_var=LD_LIBRARY_PATH
8399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8400 soname_spec='${libname}${release}${shared_ext}$major'
8401 shlibpath_var=LD_LIBRARY_PATH
8402 shlibpath_overrides_runpath=yes
8403 hardcode_into_libs=yes
8404 # ldd complains unless libraries are executable
8405 postinstall_cmds='chmod +x $lib'
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=yes
8414 if test "$with_gnu_ld" = yes; then
8420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8423 soname_spec='${libname}${release}${shared_ext}$major'
8424 shlibpath_var=LD_LIBRARY_PATH
8425 case $host_vendor in
8427 shlibpath_overrides_runpath=no
8429 export_dynamic_flag_spec='${wl}-Blargedynsym'
8430 runpath_var=LD_RUN_PATH
8438 shlibpath_overrides_runpath=no
8439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8445 if test -d /usr/nec ;then
8447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8448 soname_spec='$libname${shared_ext}.$major'
8449 shlibpath_var=LD_LIBRARY_PATH
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8465 $as_echo "$dynamic_linker" >&6; }
8466 test "$dynamic_linker" = no && can_build_shared=no
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8471 if test -n "$hardcode_libdir_flag_spec" || \
8472 test -n "$runpath_var " || \
8473 test "X$hardcode_automatic"="Xyes" ; then
8475 # We can hardcode non-existant directories.
8476 if test "$hardcode_direct" != no &&
8477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8478 # have to relink, otherwise we might link with an installed library
8479 # when we should be linking with a yet-to-be-installed one
8480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8481 test "$hardcode_minus_L" != no; then
8482 # Linking always hardcodes the temporary library directory.
8483 hardcode_action=relink
8485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8486 hardcode_action=immediate
8489 # We cannot hardcode anything, or else we can only hardcode existing
8491 hardcode_action=unsupported
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8494 $as_echo "$hardcode_action" >&6; }
8496 if test "$hardcode_action" = relink; then
8497 # Fast installation is not supported
8498 enable_fast_install=no
8499 elif test "$shlibpath_overrides_runpath" = yes ||
8500 test "$enable_shared" = no; then
8501 # Fast installation is not necessary
8502 enable_fast_install=needless
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8508 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8515 # FIXME - insert some real tests, host_os isn't really good enough
8518 if test -n "$STRIP" ; then
8519 striplib="$STRIP -x"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8521 $as_echo "yes" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8534 if test "x$enable_dlopen" != xyes; then
8535 enable_dlopen=unknown
8536 enable_dlopen_self=unknown
8537 enable_dlopen_self_static=unknown
8544 lt_cv_dlopen="load_add_on"
8546 lt_cv_dlopen_self=yes
8550 lt_cv_dlopen="LoadLibrary"
8555 lt_cv_dlopen="dlopen"
8560 # if libdl is installed we need to link against it
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 ac_check_lib_save_LIBS=$LIBS
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8571 /* Override any GCC internal prototype to avoid an error.
8572 Use char because int might match the return type of a GCC
8573 builtin and then its argument prototype would still apply. */
8586 if ac_fn_c_try_link "$LINENO"; then :
8587 ac_cv_lib_dl_dlopen=yes
8589 ac_cv_lib_dl_dlopen=no
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8597 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8603 lt_cv_dlopen_self=yes
8610 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8611 if test "x$ac_cv_func_shl_load" = x""yes; then :
8612 lt_cv_dlopen="shl_load"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8615 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8616 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8619 ac_check_lib_save_LIBS=$LIBS
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8624 /* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
8639 if ac_fn_c_try_link "$LINENO"; then :
8640 ac_cv_lib_dld_shl_load=yes
8642 ac_cv_lib_dld_shl_load=no
8644 rm -f core conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8649 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8650 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8651 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8653 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8654 if test "x$ac_cv_func_dlopen" = x""yes; then :
8655 lt_cv_dlopen="dlopen"
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8662 ac_check_lib_save_LIBS=$LIBS
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8667 /* Override any GCC internal prototype to avoid an error.
8668 Use char because int might match the return type of a GCC
8669 builtin and then its argument prototype would still apply. */
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 ac_cv_lib_dl_dlopen=yes
8685 ac_cv_lib_dl_dlopen=no
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 LIBS=$ac_check_lib_save_LIBS
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8693 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8697 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8698 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8701 ac_check_lib_save_LIBS=$LIBS
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 ac_cv_lib_svld_dlopen=yes
8724 ac_cv_lib_svld_dlopen=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8731 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8732 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8736 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8737 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8740 ac_check_lib_save_LIBS=$LIBS
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 ac_cv_lib_dld_dld_link=yes
8763 ac_cv_lib_dld_dld_link=no
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8771 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8772 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8793 if test "x$lt_cv_dlopen" != xno; then
8799 case $lt_cv_dlopen in
8801 save_CPPFLAGS="$CPPFLAGS"
8802 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8804 save_LDFLAGS="$LDFLAGS"
8805 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8808 LIBS="$lt_cv_dlopen_libs $LIBS"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8811 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8812 if test "${lt_cv_dlopen_self+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8815 if test "$cross_compiling" = yes; then :
8816 lt_cv_dlopen_self=cross
8818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8819 lt_status=$lt_dlunknown
8820 cat > conftest.$ac_ext <<EOF
8821 #line 8821 "configure"
8822 #include "confdefs.h"
8831 # define LT_DLGLOBAL RTLD_GLOBAL
8834 # define LT_DLGLOBAL DL_GLOBAL
8836 # define LT_DLGLOBAL 0
8840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8841 find out it does not work in some platform. */
8842 #ifndef LT_DLLAZY_OR_NOW
8844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8847 # define LT_DLLAZY_OR_NOW DL_LAZY
8850 # define LT_DLLAZY_OR_NOW RTLD_NOW
8853 # define LT_DLLAZY_OR_NOW DL_NOW
8855 # define LT_DLLAZY_OR_NOW 0
8863 extern "C" void exit (int);
8866 void fnord() { int i=42;}
8869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8870 int status = $lt_dlunknown;
8874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8875 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8876 /* dlclose (self); */
8882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8883 (eval $ac_link) 2>&5
8885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8886 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8887 (./conftest; exit; ) 2>/dev/null
8890 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8891 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8892 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8895 # compilation failed
8896 lt_cv_dlopen_self=no
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8904 $as_echo "$lt_cv_dlopen_self" >&6; }
8906 if test "x$lt_cv_dlopen_self" = xyes; then
8907 LDFLAGS="$LDFLAGS $link_static_flag"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8909 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8910 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8913 if test "$cross_compiling" = yes; then :
8914 lt_cv_dlopen_self_static=cross
8916 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8917 lt_status=$lt_dlunknown
8918 cat > conftest.$ac_ext <<EOF
8919 #line 8919 "configure"
8920 #include "confdefs.h"
8929 # define LT_DLGLOBAL RTLD_GLOBAL
8932 # define LT_DLGLOBAL DL_GLOBAL
8934 # define LT_DLGLOBAL 0
8938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8939 find out it does not work in some platform. */
8940 #ifndef LT_DLLAZY_OR_NOW
8942 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8945 # define LT_DLLAZY_OR_NOW DL_LAZY
8948 # define LT_DLLAZY_OR_NOW RTLD_NOW
8951 # define LT_DLLAZY_OR_NOW DL_NOW
8953 # define LT_DLLAZY_OR_NOW 0
8961 extern "C" void exit (int);
8964 void fnord() { int i=42;}
8967 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8968 int status = $lt_dlunknown;
8972 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8973 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8974 /* dlclose (self); */
8980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8981 (eval $ac_link) 2>&5
8983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8984 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8985 (./conftest; exit; ) 2>/dev/null
8988 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8989 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8990 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8993 # compilation failed
8994 lt_cv_dlopen_self_static=no
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9002 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9005 CPPFLAGS="$save_CPPFLAGS"
9006 LDFLAGS="$save_LDFLAGS"
9011 case $lt_cv_dlopen_self in
9012 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9013 *) enable_dlopen_self=unknown ;;
9016 case $lt_cv_dlopen_self_static in
9017 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9018 *) enable_dlopen_self_static=unknown ;;
9023 # Report which librarie types wil actually be built
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9027 $as_echo "$can_build_shared" >&6; }
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9030 $as_echo_n "checking whether to build shared libraries... " >&6; }
9031 test "$can_build_shared" = "no" && enable_shared=no
9033 # On AIX, shared libraries and static libraries use the same namespace, and
9034 # are all built from PIC.
9037 test "$enable_shared" = yes && enable_static=no
9038 if test -n "$RANLIB"; then
9039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9040 postinstall_cmds='$RANLIB $lib'
9045 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9046 test "$enable_shared" = yes && enable_static=no
9049 darwin* | rhapsody*)
9050 if test "$GCC" = yes; then
9051 archive_cmds_need_lc=no
9053 rhapsody* | darwin1.[012])
9054 allow_undefined_flag='-undefined suppress'
9057 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9058 allow_undefined_flag='-flat_namespace -undefined suppress'
9060 case ${MACOSX_DEPLOYMENT_TARGET} in
9062 allow_undefined_flag='-flat_namespace -undefined suppress'
9065 allow_undefined_flag='-undefined dynamic_lookup'
9071 output_verbose_link_cmd='echo'
9072 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9073 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9075 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9076 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}'
9078 hardcode_automatic=yes
9079 hardcode_shlibpath_var=unsupported
9080 whole_archive_flag_spec='-all_load $convenience'
9081 link_all_deplibs=yes
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9088 $as_echo "$enable_shared" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9091 $as_echo_n "checking whether to build static libraries... " >&6; }
9092 # Make sure either enable_shared or enable_static is yes.
9093 test "$enable_shared" = yes || enable_static=yes
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9095 $as_echo "$enable_static" >&6; }
9097 # The else clause should only fire when bootstrapping the
9098 # libtool distribution, otherwise you forgot to ship ltmain.sh
9099 # with your package, and you will get complaints that there are
9100 # no rules to generate ltmain.sh.
9101 if test -f "$ltmain"; then
9102 # See if we are running on zsh, and set the options which allow our commands through
9103 # without removal of \ escapes.
9104 if test -n "${ZSH_VERSION+set}" ; then
9105 setopt NO_GLOB_SUBST
9107 # Now quote all the things that may contain metacharacters while being
9108 # careful not to overquote the AC_SUBSTed values. We take copies of the
9109 # variables and quote the copies for generation of the libtool script.
9110 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9112 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9113 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9114 deplibs_check_method reload_flag reload_cmds need_locks \
9115 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9116 lt_cv_sys_global_symbol_to_c_name_address \
9117 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9118 old_postinstall_cmds old_postuninstall_cmds \
9122 lt_prog_compiler_wl \
9123 lt_prog_compiler_pic \
9124 lt_prog_compiler_static \
9125 lt_prog_compiler_no_builtin_flag \
9126 export_dynamic_flag_spec \
9127 thread_safe_flag_spec \
9128 whole_archive_flag_spec \
9129 enable_shared_with_static_runtimes \
9131 old_archive_from_new_cmds \
9136 compiler_lib_search_path \
9138 archive_expsym_cmds \
9140 postuninstall_cmds \
9141 old_archive_from_expsyms_cmds \
9142 allow_undefined_flag \
9144 export_symbols_cmds \
9145 hardcode_libdir_flag_spec \
9146 hardcode_libdir_flag_spec_ld \
9147 hardcode_libdir_separator \
9148 hardcode_automatic \
9150 module_expsym_cmds \
9151 lt_cv_prog_compiler_c_o \
9156 old_archive_cmds | \
9157 old_archive_from_new_cmds | \
9159 archive_expsym_cmds | \
9161 module_expsym_cmds | \
9162 old_archive_from_expsyms_cmds | \
9163 export_symbols_cmds | \
9164 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9165 postinstall_cmds | postuninstall_cmds | \
9166 old_postinstall_cmds | old_postuninstall_cmds | \
9167 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9168 # Double-quote double-evaled strings.
9169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9178 *'\$0 --fallback-echo"')
9179 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9184 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9187 $as_echo "$as_me: creating $ofile" >&6;}
9189 cat <<__EOF__ >> "$cfgfile"
9192 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9193 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9196 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9197 # Free Software Foundation, Inc.
9199 # This file is part of GNU Libtool:
9200 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9202 # This program is free software; you can redistribute it and/or modify
9203 # it under the terms of the GNU General Public License as published by
9204 # the Free Software Foundation; either version 2 of the License, or
9205 # (at your option) any later version.
9207 # This program is distributed in the hope that it will be useful, but
9208 # WITHOUT ANY WARRANTY; without even the implied warranty of
9209 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9210 # General Public License for more details.
9212 # You should have received a copy of the GNU General Public License
9213 # along with this program; if not, write to the Free Software
9214 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9216 # As a special exception to the GNU General Public License, if you
9217 # distribute this file as part of a program that contains a
9218 # configuration script generated by Autoconf, you may include it under
9219 # the same distribution terms that you use for the rest of that program.
9221 # A sed program that does not truncate output.
9224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9225 Xsed="$SED -e s/^X//"
9227 # The HP-UX ksh and POSIX shell print the target directory to stdout
9229 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9231 # The names of the tagged configurations supported by this script.
9234 # ### BEGIN LIBTOOL CONFIG
9236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9238 # Shell to use when invoking shell scripts.
9241 # Whether or not to build shared libraries.
9242 build_libtool_libs=$enable_shared
9244 # Whether or not to build static libraries.
9245 build_old_libs=$enable_static
9247 # Whether or not to add -lc for building shared libraries.
9248 build_libtool_need_lc=$archive_cmds_need_lc
9250 # Whether or not to disallow shared libs when runtime libs are static
9251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9253 # Whether or not to optimize for fast installation.
9254 fast_install=$enable_fast_install
9257 host_alias=$host_alias
9260 # An echo program that does not interpret backslashes.
9265 AR_FLAGS=$lt_AR_FLAGS
9270 # A language-specific compiler.
9273 # Is the compiler the GNU C compiler?
9279 # The linker used to build libraries.
9282 # Whether we need hard or soft links.
9285 # A BSD-compatible nm program.
9288 # A symbol stripping program
9291 # Used to examine libraries when file_magic_cmd begins "file"
9292 MAGIC_CMD=$MAGIC_CMD
9294 # Used on cygwin: DLL creation program.
9297 # Used on cygwin: object dumper.
9300 # Used on cygwin: assembler.
9303 # The name of the directory that contains temporary libtool files.
9306 # How to create reloadable object files.
9307 reload_flag=$lt_reload_flag
9308 reload_cmds=$lt_reload_cmds
9310 # How to pass a linker flag through the compiler.
9311 wl=$lt_lt_prog_compiler_wl
9313 # Object file suffix (normally "o").
9316 # Old archive suffix (normally "a").
9319 # Shared library suffix (normally ".so").
9322 # Executable file suffix (normally "").
9325 # Additional compiler flags for building library objects.
9326 pic_flag=$lt_lt_prog_compiler_pic
9329 # What is the maximum length of a command?
9330 max_cmd_len=$lt_cv_sys_max_cmd_len
9332 # Does compiler simultaneously support -c and -o options?
9333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9335 # Must we lock files when doing compilation ?
9336 need_locks=$lt_need_locks
9338 # Do we need the lib prefix for modules?
9339 need_lib_prefix=$need_lib_prefix
9341 # Do we need a version for libraries?
9342 need_version=$need_version
9344 # Whether dlopen is supported.
9345 dlopen_support=$enable_dlopen
9347 # Whether dlopen of programs is supported.
9348 dlopen_self=$enable_dlopen_self
9350 # Whether dlopen of statically linked programs is supported.
9351 dlopen_self_static=$enable_dlopen_self_static
9353 # Compiler flag to prevent dynamic linking.
9354 link_static_flag=$lt_lt_prog_compiler_static
9356 # Compiler flag to turn off builtin functions.
9357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9359 # Compiler flag to allow reflexive dlopens.
9360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9362 # Compiler flag to generate shared objects directly from archives.
9363 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9365 # Compiler flag to generate thread-safe objects.
9366 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9368 # Library versioning type.
9369 version_type=$version_type
9371 # Format of library name prefix.
9372 libname_spec=$lt_libname_spec
9374 # List of archive names. First name is the real one, the rest are links.
9375 # The last name is the one that the linker finds with -lNAME.
9376 library_names_spec=$lt_library_names_spec
9378 # The coded name of the library, if different from the real name.
9379 soname_spec=$lt_soname_spec
9381 # Commands used to build and install an old-style archive.
9383 old_archive_cmds=$lt_old_archive_cmds
9384 old_postinstall_cmds=$lt_old_postinstall_cmds
9385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9387 # Create an old-style archive from a shared archive.
9388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9390 # Create a temporary old-style archive to link instead of a shared archive.
9391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9393 # Commands used to build and install a shared archive.
9394 archive_cmds=$lt_archive_cmds
9395 archive_expsym_cmds=$lt_archive_expsym_cmds
9396 postinstall_cmds=$lt_postinstall_cmds
9397 postuninstall_cmds=$lt_postuninstall_cmds
9399 # Commands used to build a loadable module (assumed same as above if empty)
9400 module_cmds=$lt_module_cmds
9401 module_expsym_cmds=$lt_module_expsym_cmds
9403 # Commands to strip libraries.
9404 old_striplib=$lt_old_striplib
9405 striplib=$lt_striplib
9407 # Dependencies to place before the objects being linked to create a
9409 predep_objects=$lt_predep_objects
9411 # Dependencies to place after the objects being linked to create a
9413 postdep_objects=$lt_postdep_objects
9415 # Dependencies to place before the objects being linked to create a
9419 # Dependencies to place after the objects being linked to create a
9421 postdeps=$lt_postdeps
9423 # The library search path used internally by the compiler when linking
9425 compiler_lib_search_path=$lt_compiler_lib_search_path
9427 # Method to check whether dependent libraries are shared objects.
9428 deplibs_check_method=$lt_deplibs_check_method
9430 # Command to use when deplibs_check_method == file_magic.
9431 file_magic_cmd=$lt_file_magic_cmd
9433 # Flag that allows shared libraries with undefined symbols to be built.
9434 allow_undefined_flag=$lt_allow_undefined_flag
9436 # Flag that forces no undefined symbols.
9437 no_undefined_flag=$lt_no_undefined_flag
9439 # Commands used to finish a libtool library installation in a directory.
9440 finish_cmds=$lt_finish_cmds
9442 # Same as above, but a single script fragment to be evaled but not shown.
9443 finish_eval=$lt_finish_eval
9445 # Take the output of nm and produce a listing of raw symbols and C names.
9446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9448 # Transform the output of nm in a proper C declaration
9449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9451 # Transform the output of nm in a C name address pair
9452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9454 # This is the shared library runtime path variable.
9455 runpath_var=$runpath_var
9457 # This is the shared library path variable.
9458 shlibpath_var=$shlibpath_var
9460 # Is shlibpath searched before the hard-coded library search path?
9461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9463 # How to hardcode a shared library path into an executable.
9464 hardcode_action=$hardcode_action
9466 # Whether we should hardcode library paths into libraries.
9467 hardcode_into_libs=$hardcode_into_libs
9469 # Flag to hardcode \$libdir into a binary during linking.
9470 # This must work even if \$libdir does not exist.
9471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9473 # If ld is used when linking, flag to hardcode \$libdir into
9474 # a binary during linking. This must work even if \$libdir does
9476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9478 # Whether we need a single -rpath flag with a separated argument.
9479 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9483 hardcode_direct=$hardcode_direct
9485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9487 hardcode_minus_L=$hardcode_minus_L
9489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9490 # the resulting binary.
9491 hardcode_shlibpath_var=$hardcode_shlibpath_var
9493 # Set to yes if building a shared library automatically hardcodes DIR into the library
9494 # and all subsequent libraries and executables linked against it.
9495 hardcode_automatic=$hardcode_automatic
9497 # Variables whose values should be saved in libtool wrapper scripts and
9498 # restored at relink time.
9499 variables_saved_for_relink="$variables_saved_for_relink"
9501 # Whether libtool must link a program against all its dependency libraries.
9502 link_all_deplibs=$link_all_deplibs
9504 # Compile-time system search path for libraries
9505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9507 # Run-time system search path for libraries
9508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9510 # Fix the shell variable \$srcfile for the compiler.
9511 fix_srcfile_path="$fix_srcfile_path"
9513 # Set to yes if exported symbols are required.
9514 always_export_symbols=$always_export_symbols
9516 # The commands to list exported symbols.
9517 export_symbols_cmds=$lt_export_symbols_cmds
9519 # The commands to extract the exported symbol list from a shared archive.
9520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9522 # Symbols that should not be listed in the preloaded symbols.
9523 exclude_expsyms=$lt_exclude_expsyms
9525 # Symbols that must always be exported.
9526 include_expsyms=$lt_include_expsyms
9528 # ### END LIBTOOL CONFIG
9535 cat <<\EOF >> "$cfgfile"
9537 # AIX sometimes has problems with the GCC collect2 program. For some
9538 # reason, if we set the COLLECT_NAMES environment variable, the problems
9539 # vanish in a puff of smoke.
9540 if test "X${COLLECT_NAMES+set}" != Xset; then
9542 export COLLECT_NAMES
9548 # We use sed instead of cat because bash on DJGPP gets confused if
9549 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9550 # text mode, it properly converts lines to CR/LF. This bash problem
9551 # is reportedly fixed, but why not run on old versions too?
9552 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9554 mv -f "$cfgfile" "$ofile" || \
9555 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9559 # If there is no Makefile yet, we rely on a make rule to execute
9560 # `config.status --recheck' to rerun these tests and create the
9561 # libtool script then.
9562 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9563 if test -f "$ltmain_in"; then
9564 test -f Makefile && make "$ltmain"
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9578 # Check whether --with-tags was given.
9579 if test "${with_tags+set}" = set; then :
9580 withval=$with_tags; tagnames="$withval"
9584 if test -f "$ltmain" && test -n "$tagnames"; then
9585 if test ! -f "${ofile}"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9587 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9590 if test -z "$LTCC"; then
9591 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9592 if test -z "$LTCC"; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9594 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9597 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9601 # Extract list of available tagged configurations in $ofile.
9602 # Note that this assumes the entire list is on one line.
9603 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9606 for tagname in $tagnames; do
9608 # Check whether tagname contains only valid characters
9609 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9611 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9615 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9617 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9620 # Update the list of available tags.
9621 if test -n "$tagname"; then
9622 echo appending configuration tag \"$tagname\" to $ofile
9626 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9628 ac_cpp='$CXXCPP $CPPFLAGS'
9629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636 archive_cmds_need_lc_CXX=no
9637 allow_undefined_flag_CXX=
9638 always_export_symbols_CXX=no
9639 archive_expsym_cmds_CXX=
9640 export_dynamic_flag_spec_CXX=
9641 hardcode_direct_CXX=no
9642 hardcode_libdir_flag_spec_CXX=
9643 hardcode_libdir_flag_spec_ld_CXX=
9644 hardcode_libdir_separator_CXX=
9645 hardcode_minus_L_CXX=no
9646 hardcode_automatic_CXX=no
9648 module_expsym_cmds_CXX=
9649 link_all_deplibs_CXX=unknown
9650 old_archive_cmds_CXX=$old_archive_cmds
9651 no_undefined_flag_CXX=
9652 whole_archive_flag_spec_CXX=
9653 enable_shared_with_static_runtimes_CXX=no
9655 # Dependencies to place before and after the object being linked:
9657 postdep_objects_CXX=
9660 compiler_lib_search_path_CXX=
9662 # Source file extension for C++ test sources.
9665 # Object file extension for compiled C++ test sources.
9669 # Code to be used in simple compile tests
9670 lt_simple_compile_test_code="int some_variable = 0;\n"
9672 # Code to be used in simple link tests
9673 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9677 # If no C compiler was specified, use CC.
9680 # Allow CC to be a program name with arguments.
9684 # Allow CC to be a program name with arguments.
9689 lt_save_with_gnu_ld=$with_gnu_ld
9690 lt_save_path_LD=$lt_cv_path_LD
9691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9692 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9694 unset lt_cv_prog_gnu_ld
9696 if test -n "${lt_cv_path_LDCXX+set}"; then
9697 lt_cv_path_LD=$lt_cv_path_LDCXX
9701 test -z "${LDCXX+set}" || LD=$LDCXX
9705 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9707 # We don't want -fno-exception wen compiling C++ code, so set the
9708 # no_builtin_flag separately
9709 if test "$GXX" = yes; then
9710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9712 lt_prog_compiler_no_builtin_flag_CXX=
9715 if test "$GXX" = yes; then
9716 # Set up default GNU C++ configuration
9719 # Check whether --with-gnu-ld was given.
9720 if test "${with_gnu_ld+set}" = set; then :
9721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9727 if test "$GCC" = yes; then
9728 # Check if gcc -print-prog-name=ld gives a path.
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9730 $as_echo_n "checking for ld used by $CC... " >&6; }
9733 # gcc leaves a trailing carriage return which upsets mingw
9734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9739 # Accept absolute paths.
9741 re_direlt='/[^/][^/]*/\.\./'
9742 # Canonicalize the pathname of ld
9743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9747 test -z "$LD" && LD="$ac_prog"
9750 # If it fails, then pretend we aren't using GCC.
9754 # If it is relative, then search for the first ld in PATH.
9758 elif test "$with_gnu_ld" = yes; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9760 $as_echo_n "checking for GNU ld... " >&6; }
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9763 $as_echo_n "checking for non-GNU ld... " >&6; }
9765 if test "${lt_cv_path_LD+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 if test -z "$LD"; then
9769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9770 for ac_dir in $PATH; do
9772 test -z "$ac_dir" && ac_dir=.
9773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9774 lt_cv_path_LD="$ac_dir/$ac_prog"
9775 # Check to see if the program is GNU ld. I'd rather use --version,
9776 # but apparently some GNU ld's only accept -v.
9777 # Break only if it was the GNU/non-GNU ld that we prefer.
9778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9779 *GNU* | *'with BFD'*)
9780 test "$with_gnu_ld" != no && break
9783 test "$with_gnu_ld" != yes && break
9790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9795 if test -n "$LD"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9797 $as_echo "$LD" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9802 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9809 case `$LD -v 2>&1 </dev/null` in
9810 *GNU* | *'with BFD'*)
9811 lt_cv_prog_gnu_ld=yes
9814 lt_cv_prog_gnu_ld=no
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9820 with_gnu_ld=$lt_cv_prog_gnu_ld
9824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9825 # archiving commands below assume that GNU ld is being used.
9826 if test "$with_gnu_ld" = yes; then
9827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 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'
9830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9833 # If archive_cmds runs LD, not CC, wlarc should be empty
9834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9835 # investigate it a little bit more. (MM)
9838 # ancient GNU ld didn't support --whole-archive et. al.
9839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9840 grep 'no-whole-archive' > /dev/null; then
9841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9843 whole_archive_flag_spec_CXX=
9849 # A generic and very simple default shared library creation
9850 # command for GNU C++ for the case where it uses the native
9851 # linker, instead of GNU ld. If possible, this setting should
9852 # overridden to take advantage of the native linker features on
9853 # the platform it is being used on.
9854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9857 # Commands to make compiler produce verbose output that lists
9858 # what "hidden" libraries, object files and flags are used when
9859 # linking a shared library.
9860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9868 # PORTME: fill in a description of your system's C++ link characteristics
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9874 # FIXME: insert proper C++ library support
9878 if test "$host_cpu" = ia64; then
9879 # On IA64, the linker does run time linking by default, so we don't
9880 # have to do anything special.
9881 aix_use_runtimelinking=no
9882 exp_sym_flag='-Bexport'
9885 aix_use_runtimelinking=no
9887 # Test if we are trying to use run time linking or normal
9888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9889 # need to do runtime linking.
9890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9891 for ld_flag in $LDFLAGS; do
9894 aix_use_runtimelinking=yes
9901 exp_sym_flag='-bexport'
9902 no_entry_flag='-bnoentry'
9905 # When large executables or shared objects are built, AIX ld can
9906 # have problems creating the table of contents. If linking a library
9907 # or program results in "error TOC overflow" add -mminimal-toc to
9908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9912 hardcode_direct_CXX=yes
9913 hardcode_libdir_separator_CXX=':'
9914 link_all_deplibs_CXX=yes
9916 if test "$GXX" = yes; then
9917 case $host_os in aix4.012|aix4.012.*)
9918 # We only want to do this on AIX 4.2 and lower, the check
9919 # below for broken collect2 doesn't work under 4.3+
9920 collect2name=`${CC} -print-prog-name=collect2`
9921 if test -f "$collect2name" && \
9922 strings "$collect2name" | grep resolve_lib_name >/dev/null
9924 # We have reworked collect2
9925 hardcode_direct_CXX=yes
9927 # We have old collect2
9928 hardcode_direct_CXX=unsupported
9929 # It fails to find uninstalled libraries when the uninstalled
9930 # path is not listed in the libpath. Setting hardcode_minus_L
9931 # to unsupported forces relinking
9932 hardcode_minus_L_CXX=yes
9933 hardcode_libdir_flag_spec_CXX='-L$libdir'
9934 hardcode_libdir_separator_CXX=
9937 shared_flag='-shared'
9940 if test "$host_cpu" = ia64; then
9941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9942 # chokes on -Wl,-G. The following line is correct:
9945 if test "$aix_use_runtimelinking" = yes; then
9946 shared_flag='${wl}-G'
9948 shared_flag='${wl}-bM:SRE'
9953 # It seems that -bexpall does not export symbols beginning with
9954 # underscore (_), so it is better to generate a list of symbols to export.
9955 always_export_symbols_CXX=yes
9956 if test "$aix_use_runtimelinking" = yes; then
9957 # Warning - without using the other runtime loading flags (-brtl),
9958 # -berok will link without error, but may produce a broken library.
9959 allow_undefined_flag_CXX='-berok'
9960 # Determine the default libpath from the value encoded in an empty executable.
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9972 if ac_fn_cxx_try_link "$LINENO"; then :
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976 # Check for a 64-bit object if we didn't find anything.
9977 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9986 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9988 if test "$host_cpu" = ia64; then
9989 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9990 allow_undefined_flag_CXX="-z nodefs"
9991 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9993 # Determine the default libpath from the value encoded in an empty executable.
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
10005 if ac_fn_cxx_try_link "$LINENO"; then :
10007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10009 # Check for a 64-bit object if we didn't find anything.
10010 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10018 # Warning - without using the other run time loading flags,
10019 # -berok will link without error, but may produce a broken library.
10020 no_undefined_flag_CXX=' ${wl}-bernotok'
10021 allow_undefined_flag_CXX=' ${wl}-berok'
10022 # -bexpall does not export symbols beginning with underscore (_)
10023 always_export_symbols_CXX=yes
10024 # Exported symbols can be pulled into shared objects from archives
10025 whole_archive_flag_spec_CXX=' '
10026 archive_cmds_need_lc_CXX=yes
10027 # This is similar to how AIX traditionally builds it's shared libraries.
10028 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10033 case $cc_basename in
10035 # FIXME: insert proper C++ library support
10041 cygwin* | mingw* | pw32*)
10042 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10043 # as there is no search path for DLLs.
10044 hardcode_libdir_flag_spec_CXX='-L$libdir'
10045 allow_undefined_flag_CXX=unsupported
10046 always_export_symbols_CXX=no
10047 enable_shared_with_static_runtimes_CXX=yes
10049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10051 # If the export-symbols file already is a .def file (1st line
10052 # is EXPORTS), use it as is; otherwise, prepend...
10053 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10054 cp $export_symbols $output_objdir/$soname.def;
10056 echo EXPORTS > $output_objdir/$soname.def;
10057 cat $export_symbols >> $output_objdir/$soname.def;
10059 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10065 darwin* | rhapsody*)
10066 if test "$GXX" = yes; then
10067 archive_cmds_need_lc_CXX=no
10069 rhapsody* | darwin1.[012])
10070 allow_undefined_flag_CXX='-undefined suppress'
10073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10074 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076 case ${MACOSX_DEPLOYMENT_TARGET} in
10078 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10081 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10087 lt_int_apple_cc_single_mod=no
10088 output_verbose_link_cmd='echo'
10089 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10090 lt_int_apple_cc_single_mod=yes
10092 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10093 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10095 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10097 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10100 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10101 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10103 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10105 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}'
10106 hardcode_direct_CXX=no
10107 hardcode_automatic_CXX=yes
10108 hardcode_shlibpath_var_CXX=unsupported
10109 whole_archive_flag_spec_CXX='-all_load $convenience'
10110 link_all_deplibs_CXX=yes
10117 case $cc_basename in
10119 # FIXME: insert proper C++ library support
10123 # Green Hills C++ Compiler
10124 # FIXME: insert proper C++ library support
10128 # FIXME: insert proper C++ library support
10134 # C++ shared libraries reported to be fairly broken before switch to ELF
10138 archive_cmds_need_lc_CXX=no
10140 freebsd* | kfreebsd*-gnu)
10141 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10148 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10149 hardcode_libdir_separator_CXX=:
10150 export_dynamic_flag_spec_CXX='${wl}-E'
10151 hardcode_direct_CXX=yes
10152 hardcode_minus_L_CXX=yes # Not in the search PATH,
10153 # but as the default
10154 # location of the library.
10156 case $cc_basename in
10158 # FIXME: insert proper C++ library support
10162 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'
10163 # Commands to make compiler produce verbose output that lists
10164 # what "hidden" libraries, object files and flags are used when
10165 # linking a shared library.
10167 # There doesn't appear to be a way to prevent this compiler from
10168 # explicitly linking system object files so we need to strip them
10169 # from the output so that they don't get included in the library
10171 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10174 if test "$GXX" = yes; then
10175 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'
10177 # FIXME: insert proper C++ library support
10184 if test $with_gnu_ld = no; then
10185 case "$host_cpu" in
10187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10188 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10189 hardcode_libdir_separator_CXX=:
10192 hardcode_libdir_flag_spec_CXX='-L$libdir'
10195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10196 hardcode_libdir_separator_CXX=:
10197 export_dynamic_flag_spec_CXX='${wl}-E'
10201 case "$host_cpu" in
10203 hardcode_direct_CXX=no
10204 hardcode_shlibpath_var_CXX=no
10207 hardcode_direct_CXX=no
10208 hardcode_shlibpath_var_CXX=no
10209 hardcode_minus_L_CXX=yes # Not in the search PATH,
10210 # but as the default
10211 # location of the library.
10214 hardcode_direct_CXX=yes
10215 hardcode_minus_L_CXX=yes # Not in the search PATH,
10216 # but as the default
10217 # location of the library.
10221 case $cc_basename in
10223 # FIXME: insert proper C++ library support
10227 case "$host_cpu" in
10229 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10232 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10235 # Commands to make compiler produce verbose output that lists
10236 # what "hidden" libraries, object files and flags are used when
10237 # linking a shared library.
10239 # There doesn't appear to be a way to prevent this compiler from
10240 # explicitly linking system object files so we need to strip them
10241 # from the output so that they don't get included in the library
10243 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'
10246 if test "$GXX" = yes; then
10247 if test $with_gnu_ld = no; then
10248 case "$host_cpu" in
10250 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10253 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'
10258 # FIXME: insert proper C++ library support
10265 case $cc_basename in
10268 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10270 # Archives containing C++ object files must be created using
10271 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10272 # necessary to make sure instantiated templates are included
10274 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10277 if test "$GXX" = yes; then
10278 if test "$with_gnu_ld" = no; then
10279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10281 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'
10284 link_all_deplibs_CXX=yes
10287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10288 hardcode_libdir_separator_CXX=:
10291 case $cc_basename in
10293 # Kuck and Associates, Inc. (KAI) C++ Compiler
10295 # KCC will only create a shared library if the output file
10296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10297 # to its proper name (with version) after linking.
10298 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'
10299 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'
10300 # Commands to make compiler produce verbose output that lists
10301 # what "hidden" libraries, object files and flags are used when
10302 # linking a shared library.
10304 # There doesn't appear to be a way to prevent this compiler from
10305 # explicitly linking system object files so we need to strip them
10306 # from the output so that they don't get included in the library
10308 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'
10310 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10313 # Archives containing C++ object files must be created using
10314 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10315 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10320 archive_cmds_need_lc_CXX=no
10321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10322 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'
10323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10325 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330 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'
10332 runpath_var=LD_RUN_PATH
10333 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10334 hardcode_libdir_separator_CXX=:
10336 # Commands to make compiler produce verbose output that lists
10337 # what "hidden" libraries, object files and flags are used when
10338 # linking a shared library.
10340 # There doesn't appear to be a way to prevent this compiler from
10341 # explicitly linking system object files so we need to strip them
10342 # from the output so that they don't get included in the library
10344 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'
10349 # FIXME: insert proper C++ library support
10353 # FIXME: insert proper C++ library support
10357 case $cc_basename in
10359 # FIXME: insert proper C++ library support
10363 # FIXME: insert proper C++ library support
10368 netbsd* | knetbsd*-gnu)
10369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10370 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10372 hardcode_libdir_flag_spec_CXX='-R$libdir'
10373 hardcode_direct_CXX=yes
10374 hardcode_shlibpath_var_CXX=no
10376 # Workaround some broken pre-1.5 toolchains
10377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10380 case $cc_basename in
10382 # Kuck and Associates, Inc. (KAI) C++ Compiler
10384 # KCC will only create a shared library if the output file
10385 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10386 # to its proper name (with version) after linking.
10387 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'
10389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10390 hardcode_libdir_separator_CXX=:
10392 # Archives containing C++ object files must be created using
10393 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10394 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10398 # Rational C++ 2.4.1
10399 # FIXME: insert proper C++ library support
10403 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10404 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10406 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10407 hardcode_libdir_separator_CXX=:
10409 # Commands to make compiler produce verbose output that lists
10410 # what "hidden" libraries, object files and flags are used when
10411 # linking a shared library.
10413 # There doesn't appear to be a way to prevent this compiler from
10414 # explicitly linking system object files so we need to strip them
10415 # from the output so that they don't get included in the library
10417 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'
10420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10422 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10425 hardcode_libdir_separator_CXX=:
10427 # Commands to make compiler produce verbose output that lists
10428 # what "hidden" libraries, object files and flags are used when
10429 # linking a shared library.
10430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10433 # FIXME: insert proper C++ library support
10440 case $cc_basename in
10442 # Kuck and Associates, Inc. (KAI) C++ Compiler
10444 # KCC will only create a shared library if the output file
10445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10446 # to its proper name (with version) after linking.
10447 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'
10449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10450 hardcode_libdir_separator_CXX=:
10452 # Archives containing C++ object files must be created using
10453 # the KAI C++ compiler.
10454 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10457 # Rational C++ 2.4.1
10458 # FIXME: insert proper C++ library support
10462 allow_undefined_flag_CXX=' -expect_unresolved \*'
10463 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10464 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10465 echo "-hidden">> $lib.exp~
10466 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10470 hardcode_libdir_separator_CXX=:
10472 # Commands to make compiler produce verbose output that lists
10473 # what "hidden" libraries, object files and flags are used when
10474 # linking a shared library.
10476 # There doesn't appear to be a way to prevent this compiler from
10477 # explicitly linking system object files so we need to strip them
10478 # from the output so that they don't get included in the library
10480 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'
10483 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10484 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10485 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10488 hardcode_libdir_separator_CXX=:
10490 # Commands to make compiler produce verbose output that lists
10491 # what "hidden" libraries, object files and flags are used when
10492 # linking a shared library.
10493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10496 # FIXME: insert proper C++ library support
10503 # FIXME: insert proper C++ library support
10507 archive_cmds_need_lc_CXX=no
10508 case $cc_basename in
10510 # FIXME: insert proper C++ library support
10514 # FIXME: insert proper C++ library support
10520 case $cc_basename in
10523 # FIXME: insert proper C++ library support
10528 # FIXME: insert proper C++ library support
10532 # FIXME: insert proper C++ library support
10538 case $cc_basename in
10540 # Sun C++ 4.2, 5.x and Centerline C++
10541 no_undefined_flag_CXX=' -zdefs'
10542 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10544 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10546 hardcode_libdir_flag_spec_CXX='-R$libdir'
10547 hardcode_shlibpath_var_CXX=no
10549 solaris2.0-5 | solaris2.0-5.*) ;;
10551 # The C++ compiler is used as linker so we must use $wl
10552 # flag to pass the commands to the underlying system
10554 # Supported since Solaris 2.6 (maybe 2.5.1?)
10555 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10558 link_all_deplibs_CXX=yes
10560 # Commands to make compiler produce verbose output that lists
10561 # what "hidden" libraries, object files and flags are used when
10562 # linking a shared library.
10564 # There doesn't appear to be a way to prevent this compiler from
10565 # explicitly linking system object files so we need to strip them
10566 # from the output so that they don't get included in the library
10568 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10570 # Archives containing C++ object files must be created using
10571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10572 # necessary to make sure instantiated templates are included
10574 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10577 # Green Hills C++ Compiler
10578 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10580 # The C++ compiler must be used to create the archive.
10581 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10584 # GNU C++ compiler with Solaris linker
10585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10586 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10587 if $CC --version | grep -v '^2\.7' > /dev/null; then
10588 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10589 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10590 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10592 # Commands to make compiler produce verbose output that lists
10593 # what "hidden" libraries, object files and flags are used when
10594 # linking a shared library.
10595 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10597 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10599 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10600 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10601 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10603 # Commands to make compiler produce verbose output that lists
10604 # what "hidden" libraries, object files and flags are used when
10605 # linking a shared library.
10606 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10609 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10614 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10615 archive_cmds_need_lc_CXX=no
10618 case $cc_basename in
10620 # NonStop-UX NCC 3.20
10621 # FIXME: insert proper C++ library support
10625 # FIXME: insert proper C++ library support
10631 # FIXME: insert proper C++ library support
10635 # FIXME: insert proper C++ library support
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10640 $as_echo "$ld_shlibs_CXX" >&6; }
10641 test "$ld_shlibs_CXX" = no && can_build_shared=no
10647 cat > conftest.$ac_ext <<EOF
10651 Foo (void) { a = 0; }
10657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10658 (eval $ac_compile) 2>&5
10660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10661 test $ac_status = 0; }; then
10662 # Parse the compiler output and extract the necessary
10663 # objects, libraries and library flags.
10665 # Sentinel used to keep track of whether or not we are before
10666 # the conftest object file.
10667 pre_test_object_deps_done=no
10669 # The `*' in the case matches for architectures that use `case' in
10670 # $output_verbose_cmd can trigger glob expansion during the loop
10671 # eval without this substitution.
10672 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10674 for p in `eval $output_verbose_link_cmd`; do
10678 # Some compilers place space between "-{L,R}" and the path.
10679 # Remove the space.
10680 if test $p = "-L" \
10681 || test $p = "-R"; then
10688 if test "$pre_test_object_deps_done" = no; then
10691 # Internal compiler library paths should come after those
10692 # provided the user. The postdeps already come after the
10693 # user supplied libs so there is no need to process them.
10694 if test -z "$compiler_lib_search_path_CXX"; then
10695 compiler_lib_search_path_CXX="${prev}${p}"
10697 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10700 # The "-l" case would never come before the object being
10701 # linked, so don't bother handling this case.
10704 if test -z "$postdeps_CXX"; then
10705 postdeps_CXX="${prev}${p}"
10707 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10713 # This assumes that the test object file only shows up
10714 # once in the compiler output.
10715 if test "$p" = "conftest.$objext"; then
10716 pre_test_object_deps_done=yes
10720 if test "$pre_test_object_deps_done" = no; then
10721 if test -z "$predep_objects_CXX"; then
10722 predep_objects_CXX="$p"
10724 predep_objects_CXX="$predep_objects_CXX $p"
10727 if test -z "$postdep_objects_CXX"; then
10728 postdep_objects_CXX="$p"
10730 postdep_objects_CXX="$postdep_objects_CXX $p"
10735 *) ;; # Ignore the rest.
10743 echo "libtool.m4: error: problem compiling CXX test program"
10746 $rm -f confest.$objext
10748 case " $postdeps_CXX " in
10749 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10752 lt_prog_compiler_wl_CXX=
10753 lt_prog_compiler_pic_CXX=
10754 lt_prog_compiler_static_CXX=
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10757 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10759 # C++ specific cases for pic, static, wl, etc.
10760 if test "$GXX" = yes; then
10761 lt_prog_compiler_wl_CXX='-Wl,'
10762 lt_prog_compiler_static_CXX='-static'
10766 # All AIX code is PIC.
10767 if test "$host_cpu" = ia64; then
10768 # AIX 5 now supports IA64 processor
10769 lt_prog_compiler_static_CXX='-Bstatic'
10773 # FIXME: we need at least 68020 code to build shared libraries, but
10774 # adding the `-m68020' flag to GCC prevents building anything better,
10776 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10779 # PIC is the default for these OSes.
10781 mingw* | os2* | pw32*)
10782 # This hack is so that the source file can tell whether it is being
10783 # built for inclusion in a dll (and should export symbols for example).
10784 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10786 darwin* | rhapsody*)
10787 # PIC is the default on this platform
10788 # Common symbols not allowed in MH_DYLIB files
10789 lt_prog_compiler_pic_CXX='-fno-common'
10792 # DJGPP does not support shared libraries at all
10793 lt_prog_compiler_pic_CXX=
10796 if test -d /usr/nec; then
10797 lt_prog_compiler_pic_CXX=-Kconform_pic
10801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10802 # not for PA HP-UX.
10803 case "$host_cpu" in
10807 lt_prog_compiler_pic_CXX='-fPIC'
10812 lt_prog_compiler_pic_CXX='-fPIC'
10818 # All AIX code is PIC.
10819 if test "$host_cpu" = ia64; then
10820 # AIX 5 now supports IA64 processor
10821 lt_prog_compiler_static_CXX='-Bstatic'
10823 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10827 case $cc_basename in
10829 # Green Hills C++ Compiler
10830 # _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"
10835 case $cc_basename in
10837 lt_prog_compiler_pic_CXX='-KPIC'
10840 # Green Hills C++ Compiler
10841 lt_prog_compiler_pic_CXX='-pic'
10847 freebsd* | kfreebsd*-gnu)
10848 # FreeBSD uses GNU C++
10850 hpux9* | hpux10* | hpux11*)
10851 case $cc_basename in
10853 lt_prog_compiler_wl_CXX='-Wl,'
10854 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10855 if test "$host_cpu" != ia64; then
10856 lt_prog_compiler_pic_CXX='+Z'
10860 lt_prog_compiler_wl_CXX='-Wl,'
10861 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10862 case "$host_cpu" in
10867 lt_prog_compiler_pic_CXX='+Z'
10875 irix5* | irix6* | nonstopux*)
10876 case $cc_basename in
10878 lt_prog_compiler_wl_CXX='-Wl,'
10879 lt_prog_compiler_static_CXX='-non_shared'
10880 # CC pic flag -KPIC is the default.
10887 case $cc_basename in
10890 lt_prog_compiler_wl_CXX='--backend -Wl,'
10891 lt_prog_compiler_pic_CXX='-fPIC'
10895 lt_prog_compiler_wl_CXX='-Wl,'
10896 lt_prog_compiler_pic_CXX='-KPIC'
10897 lt_prog_compiler_static_CXX='-static'
10901 # Make sure the PIC flag is empty. It appears that all Alpha
10902 # Linux and Compaq Tru64 Unix objects are PIC.
10903 lt_prog_compiler_pic_CXX=
10904 lt_prog_compiler_static_CXX='-non_shared'
10915 case $cc_basename in
10917 lt_prog_compiler_pic_CXX='-W c,exportall'
10923 netbsd* | knetbsd*-gnu)
10925 osf3* | osf4* | osf5*)
10926 case $cc_basename in
10928 lt_prog_compiler_wl_CXX='--backend -Wl,'
10931 # Rational C++ 2.4.1
10932 lt_prog_compiler_pic_CXX='-pic'
10935 # Digital/Compaq C++
10936 lt_prog_compiler_wl_CXX='-Wl,'
10937 # Make sure the PIC flag is empty. It appears that all Alpha
10938 # Linux and Compaq Tru64 Unix objects are PIC.
10939 lt_prog_compiler_pic_CXX=
10940 lt_prog_compiler_static_CXX='-non_shared'
10949 case $cc_basename in
10951 lt_prog_compiler_pic_CXX='-fPIC'
10958 case $cc_basename in
10960 # Sun C++ 4.2, 5.x and Centerline C++
10961 lt_prog_compiler_pic_CXX='-KPIC'
10962 lt_prog_compiler_static_CXX='-Bstatic'
10963 lt_prog_compiler_wl_CXX='-Qoption ld '
10966 # Green Hills C++ Compiler
10967 lt_prog_compiler_pic_CXX='-PIC'
10974 case $cc_basename in
10977 lt_prog_compiler_pic_CXX='-pic'
10978 lt_prog_compiler_static_CXX='-Bstatic'
10982 lt_prog_compiler_pic_CXX='-pic'
10989 case $cc_basename in
10991 # NonStop-UX NCC 3.20
10992 lt_prog_compiler_pic_CXX='-KPIC'
11003 lt_prog_compiler_can_build_shared_CXX=no
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11009 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11012 # Check to make sure the PIC flag actually works.
11014 if test -n "$lt_prog_compiler_pic_CXX"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11017 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11018 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 lt_prog_compiler_pic_works_CXX=no
11022 ac_outfile=conftest.$ac_objext
11023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11024 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11025 # Insert the option either (1) after the last *FLAGS variable, or
11026 # (2) before a word containing "conftest.", or (3) at the end.
11027 # Note that $ac_compile itself does not contain backslashes and begins
11028 # with a dollar sign (not a hyphen), so the echo should work correctly.
11029 # The option is referenced via a variable to avoid confusing sed.
11030 lt_compile=`echo "$ac_compile" | $SED \
11031 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11033 -e 's:$: $lt_compiler_flag:'`
11034 (eval echo "\"\$as_me:11034: $lt_compile\"" >&5)
11035 (eval "$lt_compile" 2>conftest.err)
11037 cat conftest.err >&5
11038 echo "$as_me:11038: \$? = $ac_status" >&5
11039 if (exit $ac_status) && test -s "$ac_outfile"; then
11040 # The compiler can only warn and ignore the option if not recognized
11041 # So say no if there are warnings
11042 if test ! -s conftest.err; then
11043 lt_prog_compiler_pic_works_CXX=yes
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11050 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11052 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11053 case $lt_prog_compiler_pic_CXX in
11055 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11058 lt_prog_compiler_pic_CXX=
11059 lt_prog_compiler_can_build_shared_CXX=no
11064 # For platforms which do not support PIC, -DPIC is meaningless:
11066 lt_prog_compiler_pic_CXX=
11069 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11075 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 lt_cv_prog_compiler_c_o_CXX=no
11079 $rm -r conftest 2>/dev/null
11083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11085 lt_compiler_flag="-o out/conftest2.$ac_objext"
11086 # Insert the option either (1) after the last *FLAGS variable, or
11087 # (2) before a word containing "conftest.", or (3) at the end.
11088 # Note that $ac_compile itself does not contain backslashes and begins
11089 # with a dollar sign (not a hyphen), so the echo should work correctly.
11090 lt_compile=`echo "$ac_compile" | $SED \
11091 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093 -e 's:$: $lt_compiler_flag:'`
11094 (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
11095 (eval "$lt_compile" 2>out/conftest.err)
11097 cat out/conftest.err >&5
11098 echo "$as_me:11098: \$? = $ac_status" >&5
11099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11101 # The compiler can only warn and ignore the option if not recognized
11102 # So say no if there are warnings
11103 if test ! -s out/conftest.err; then
11104 lt_cv_prog_compiler_c_o_CXX=yes
11109 # SGI C++ compiler will create directory out/ii_files/ for
11110 # template instantiation
11111 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11112 $rm out/* && rmdir out
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11119 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11122 hard_links="nottested"
11123 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11124 # do not overwrite the value of need_locks provided by the user
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11126 $as_echo_n "checking if we can lock with hard links... " >&6; }
11129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11131 ln conftest.a conftest.b 2>&5 || hard_links=no
11132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11134 $as_echo "$hard_links" >&6; }
11135 if test "$hard_links" = no; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11150 # If we're using GNU nm, then we don't want the "-C" option.
11151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11153 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'
11155 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'
11159 export_symbols_cmds_CXX="$ltdll_cmds"
11162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11170 $as_echo "$ld_shlibs_CXX" >&6; }
11171 test "$ld_shlibs_CXX" = no && can_build_shared=no
11173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174 if test "$GCC" = yes; then
11175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11179 # Do we need to explicitly link libc?
11181 case "x$archive_cmds_need_lc_CXX" in
11183 # Assume -lc should be added
11184 archive_cmds_need_lc_CXX=yes
11186 if test "$enable_shared" = yes && test "$GCC" = yes; then
11187 case $archive_cmds_CXX in
11189 # FIXME: we may have to deal with multi-command sequences.
11192 # Test whether the compiler implicitly links with -lc since on some
11193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194 # to ld, don't add -lc before -lgcc.
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11201 (eval $ac_compile) 2>&5
11203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204 test $ac_status = 0; } 2>conftest.err; then
11207 libobjs=conftest.$ac_objext
11209 wl=$lt_prog_compiler_wl_CXX
11215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216 allow_undefined_flag_CXX=
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11218 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; }
11223 archive_cmds_need_lc_CXX=no
11225 archive_cmds_need_lc_CXX=yes
11227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11229 cat conftest.err 1>&5
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11233 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11241 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11242 library_names_spec=
11243 libname_spec='lib$name'
11247 postuninstall_cmds=
11251 shlibpath_overrides_runpath=unknown
11253 dynamic_linker="$host_os ld.so"
11254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255 if test "$GCC" = yes; then
11256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11257 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11258 # if the path contains ";" then we assume it to be the separator
11259 # otherwise default to the standard path separator (i.e. ":") - it is
11260 # assumed that no part of a normal pathname contains ";" but that should
11261 # okay in the real world where ";" in dirpaths is itself problematic.
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11269 need_lib_prefix=unknown
11270 hardcode_into_libs=no
11272 # when you set need_version to no, make sure it does not cause -set_version
11273 # flags to be left without arguments
11274 need_version=unknown
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280 shlibpath_var=LIBPATH
11282 # AIX 3 has no versioning support, so we append a major version to the name.
11283 soname_spec='${libname}${release}${shared_ext}$major'
11290 hardcode_into_libs=yes
11291 if test "$host_cpu" = ia64; then
11292 # AIX 5 supports IA64
11293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11296 # With GCC up to 2.95.x, collect2 would create an import file
11297 # for dependence libraries. The import file would start with
11298 # the line `#! .'. This would cause the generated library to
11299 # depend on `.', always an invalid library. This was fixed in
11300 # development snapshots of GCC prior to 3.0.
11302 aix4 | aix4.[01] | aix4.[01].*)
11303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11308 can_build_shared=no
11312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313 # soname into executable. Probably we can add versioning support to
11314 # collect2, so additional links can be useful in future.
11315 if test "$aix_use_runtimelinking" = yes; then
11316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317 # instead of lib<name>.a to let people know that these are not
11318 # typical AIX shared libraries.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 # We preserve .a as extension for shared libraries through AIX4.2
11322 # and later when we are not doing run time linking.
11323 library_names_spec='${libname}${release}.a $libname.a'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LIBPATH
11331 library_names_spec='$libname.ixlibrary $libname.a'
11332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333 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'
11337 library_names_spec='${libname}${shared_ext}'
11338 dynamic_linker="$host_os ld.so"
11339 shlibpath_var=LIBRARY_PATH
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351 # the default ld.so.conf also contains /usr/contrib/lib and
11352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353 # libtool to hard-code these into programs
11356 cygwin* | mingw* | pw32*)
11357 version_type=windows
11362 case $GCC,$host_os in
11363 yes,cygwin* | yes,mingw* | yes,pw32*)
11364 library_names_spec='$libname.dll.a'
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \${file}`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11374 shlibpath_overrides_runpath=yes
11378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11383 # MinGW DLLs use traditional 'lib' prefix
11384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11387 # It is most probably a Windows format PATH printed by
11388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11389 # path with ; separators, and with drive letters. We can handle the
11390 # drive letters (cygwin fileutils understands them), so leave them,
11391 # especially as we might pass files found there to a mingw objdump,
11392 # which wouldn't understand a cygwinified path. Ahh.
11393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11399 # pw32 DLLs use 'pw' prefix rather than 'lib'
11400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11409 dynamic_linker='Win32 ld.exe'
11410 # FIXME: first we should search . and the directory the executable is in
11414 darwin* | rhapsody*)
11415 dynamic_linker="$host_os dyld"
11416 version_type=darwin
11419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420 soname_spec='${libname}${release}${major}$shared_ext'
11421 shlibpath_overrides_runpath=yes
11422 shlibpath_var=DYLD_LIBRARY_PATH
11423 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11425 if test "$GCC" = yes; then
11426 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11454 hardcode_into_libs=yes
11455 dynamic_linker='GNU ld.so'
11459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11460 version_type=freebsd-$objformat
11461 case $version_type in
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11472 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11477 freebsd3.01* | freebsdelf3.01*)
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 hardcode_into_libs=yes
11498 hpux9* | hpux10* | hpux11*)
11499 # Give a soname corresponding to the major version so that dld.sl refuses to
11500 # link against other versions.
11504 case "$host_cpu" in
11507 hardcode_into_libs=yes
11508 dynamic_linker="$host_os dld.so"
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 if test "X$HPUX_IA64_MODE" = X32; then
11514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11522 hardcode_into_libs=yes
11523 dynamic_linker="$host_os dld.sl"
11524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533 dynamic_linker="$host_os dld.sl"
11534 shlibpath_var=SHLIB_PATH
11535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11541 postinstall_cmds='chmod 555 $lib'
11544 irix5* | irix6* | nonstopux*)
11546 nonstopux*) version_type=nonstopux ;;
11548 if test "$lt_cv_prog_gnu_ld" = yes; then
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 irix5* | nonstopux*)
11560 libsuff= shlibsuff=
11563 case $LD in # libtool.m4 will add one of these switches to LD
11564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565 libsuff= shlibsuff= libmagic=32-bit;;
11566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567 libsuff=32 shlibsuff=N32 libmagic=N32;;
11568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570 *) libsuff= shlibsuff= libmagic=never-match;;
11574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11578 hardcode_into_libs=yes
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11586 # This must be Linux ELF.
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=no
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11601 # Append ld.so.conf contents to the search path
11602 if test -f /etc/ld.so.conf; then
11603 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11607 # We used to test for /lib/ld.so.1 and disable shared libraries on
11608 # powerpc, because MkLinux only supported shared libraries with the
11609 # GNU dynamic linker. Since this was broken with cross compilers,
11610 # most powerpc-linux boxes support dynamic linking these days and
11611 # people can always --disable-shared, the test was removed, and we
11612 # assume the GNU/Linux dynamic linker is in use.
11613 dynamic_linker='GNU/Linux ld.so'
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 dynamic_linker='GNU ld.so'
11632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635 dynamic_linker='NetBSD (a.out) ld.so'
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 dynamic_linker='NetBSD ld.elf_so'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11672 openbsd2.[89] | openbsd2.[89].*)
11673 shlibpath_overrides_runpath=no
11676 shlibpath_overrides_runpath=yes
11680 shlibpath_overrides_runpath=yes
11685 libname_spec='$name'
11688 library_names_spec='$libname${shared_ext} $libname.a'
11689 dynamic_linker='OS/2 ld.exe'
11690 shlibpath_var=LIBPATH
11693 osf3* | osf4* | osf5*)
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 shlibpath_var=LD_LIBRARY_PATH
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 # ldd complains unless libraries are executable
11721 postinstall_cmds='chmod +x $lib'
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 if test "$with_gnu_ld" = yes; then
11736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 case $host_vendor in
11743 shlibpath_overrides_runpath=no
11745 export_dynamic_flag_spec='${wl}-Blargedynsym'
11746 runpath_var=LD_RUN_PATH
11754 shlibpath_overrides_runpath=no
11755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11761 if test -d /usr/nec ;then
11763 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11764 soname_spec='$libname${shared_ext}.$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11781 $as_echo "$dynamic_linker" >&6; }
11782 test "$dynamic_linker" = no && can_build_shared=no
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11786 hardcode_action_CXX=
11787 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11788 test -n "$runpath_var CXX" || \
11789 test "X$hardcode_automatic_CXX"="Xyes" ; then
11791 # We can hardcode non-existant directories.
11792 if test "$hardcode_direct_CXX" != no &&
11793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794 # have to relink, otherwise we might link with an installed library
11795 # when we should be linking with a yet-to-be-installed one
11796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11797 test "$hardcode_minus_L_CXX" != no; then
11798 # Linking always hardcodes the temporary library directory.
11799 hardcode_action_CXX=relink
11801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802 hardcode_action_CXX=immediate
11805 # We cannot hardcode anything, or else we can only hardcode existing
11807 hardcode_action_CXX=unsupported
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11810 $as_echo "$hardcode_action_CXX" >&6; }
11812 if test "$hardcode_action_CXX" = relink; then
11813 # Fast installation is not supported
11814 enable_fast_install=no
11815 elif test "$shlibpath_overrides_runpath" = yes ||
11816 test "$enable_shared" = no; then
11817 # Fast installation is not necessary
11818 enable_fast_install=needless
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11824 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11825 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11826 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11827 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829 $as_echo "yes" >&6; }
11831 # FIXME - insert some real tests, host_os isn't really good enough
11834 if test -n "$STRIP" ; then
11835 striplib="$STRIP -x"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11850 if test "x$enable_dlopen" != xyes; then
11851 enable_dlopen=unknown
11852 enable_dlopen_self=unknown
11853 enable_dlopen_self_static=unknown
11860 lt_cv_dlopen="load_add_on"
11862 lt_cv_dlopen_self=yes
11866 lt_cv_dlopen="LoadLibrary"
11871 lt_cv_dlopen="dlopen"
11876 # if libdl is installed we need to link against it
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11882 ac_check_lib_save_LIBS=$LIBS
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11902 if ac_fn_cxx_try_link "$LINENO"; then :
11903 ac_cv_lib_dl_dlopen=yes
11905 ac_cv_lib_dl_dlopen=no
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11913 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 lt_cv_dlopen="dyld"
11919 lt_cv_dlopen_self=yes
11926 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11927 if test "x$ac_cv_func_shl_load" = x""yes; then :
11928 lt_cv_dlopen="shl_load"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11931 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11932 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11935 ac_check_lib_save_LIBS=$LIBS
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11950 return shl_load ();
11955 if ac_fn_cxx_try_link "$LINENO"; then :
11956 ac_cv_lib_dld_shl_load=yes
11958 ac_cv_lib_dld_shl_load=no
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11965 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11966 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11967 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11969 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11970 if test "x$ac_cv_func_dlopen" = x""yes; then :
11971 lt_cv_dlopen="dlopen"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
11978 ac_check_lib_save_LIBS=$LIBS
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11998 if ac_fn_cxx_try_link "$LINENO"; then :
11999 ac_cv_lib_dl_dlopen=yes
12001 ac_cv_lib_dl_dlopen=no
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12009 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12013 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12014 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-lsvld $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12037 if ac_fn_cxx_try_link "$LINENO"; then :
12038 ac_cv_lib_svld_dlopen=yes
12040 ac_cv_lib_svld_dlopen=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12047 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12048 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12052 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12053 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12056 ac_check_lib_save_LIBS=$LIBS
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12071 return dld_link ();
12076 if ac_fn_cxx_try_link "$LINENO"; then :
12077 ac_cv_lib_dld_dld_link=yes
12079 ac_cv_lib_dld_dld_link=no
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12086 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12087 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12109 if test "x$lt_cv_dlopen" != xno; then
12115 case $lt_cv_dlopen in
12117 save_CPPFLAGS="$CPPFLAGS"
12118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12120 save_LDFLAGS="$LDFLAGS"
12121 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124 LIBS="$lt_cv_dlopen_libs $LIBS"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12127 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12128 if test "${lt_cv_dlopen_self+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12131 if test "$cross_compiling" = yes; then :
12132 lt_cv_dlopen_self=cross
12134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135 lt_status=$lt_dlunknown
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12147 # define LT_DLGLOBAL RTLD_GLOBAL
12150 # define LT_DLGLOBAL DL_GLOBAL
12152 # define LT_DLGLOBAL 0
12156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157 find out it does not work in some platform. */
12158 #ifndef LT_DLLAZY_OR_NOW
12160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12163 # define LT_DLLAZY_OR_NOW DL_LAZY
12166 # define LT_DLLAZY_OR_NOW RTLD_NOW
12169 # define LT_DLLAZY_OR_NOW DL_NOW
12171 # define LT_DLLAZY_OR_NOW 0
12179 extern "C" void exit (int);
12182 void fnord() { int i=42;}
12185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186 int status = $lt_dlunknown;
12190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12192 /* dlclose (self); */
12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199 (eval $ac_link) 2>&5
12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12203 (./conftest; exit; ) 2>/dev/null
12205 case x$lt_status in
12206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12211 # compilation failed
12212 lt_cv_dlopen_self=no
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12220 $as_echo "$lt_cv_dlopen_self" >&6; }
12222 if test "x$lt_cv_dlopen_self" = xyes; then
12223 LDFLAGS="$LDFLAGS $link_static_flag"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12226 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self_static=cross
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12245 # define LT_DLGLOBAL RTLD_GLOBAL
12248 # define LT_DLGLOBAL DL_GLOBAL
12250 # define LT_DLGLOBAL 0
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12261 # define LT_DLLAZY_OR_NOW DL_LAZY
12264 # define LT_DLLAZY_OR_NOW RTLD_NOW
12267 # define LT_DLLAZY_OR_NOW DL_NOW
12269 # define LT_DLLAZY_OR_NOW 0
12277 extern "C" void exit (int);
12280 void fnord() { int i=42;}
12283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284 int status = $lt_dlunknown;
12288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12290 /* dlclose (self); */
12296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12297 (eval $ac_link) 2>&5
12299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12301 (./conftest; exit; ) 2>/dev/null
12303 case x$lt_status in
12304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12306 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12309 # compilation failed
12310 lt_cv_dlopen_self_static=no
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12321 CPPFLAGS="$save_CPPFLAGS"
12322 LDFLAGS="$save_LDFLAGS"
12327 case $lt_cv_dlopen_self in
12328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12329 *) enable_dlopen_self=unknown ;;
12332 case $lt_cv_dlopen_self_static in
12333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12334 *) enable_dlopen_self_static=unknown ;;
12339 # The else clause should only fire when bootstrapping the
12340 # libtool distribution, otherwise you forgot to ship ltmain.sh
12341 # with your package, and you will get complaints that there are
12342 # no rules to generate ltmain.sh.
12343 if test -f "$ltmain"; then
12344 # See if we are running on zsh, and set the options which allow our commands through
12345 # without removal of \ escapes.
12346 if test -n "${ZSH_VERSION+set}" ; then
12347 setopt NO_GLOB_SUBST
12349 # Now quote all the things that may contain metacharacters while being
12350 # careful not to overquote the AC_SUBSTed values. We take copies of the
12351 # variables and quote the copies for generation of the libtool script.
12352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12356 deplibs_check_method reload_flag reload_cmds need_locks \
12357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12358 lt_cv_sys_global_symbol_to_c_name_address \
12359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12360 old_postinstall_cmds old_postuninstall_cmds \
12364 lt_prog_compiler_wl_CXX \
12365 lt_prog_compiler_pic_CXX \
12366 lt_prog_compiler_static_CXX \
12367 lt_prog_compiler_no_builtin_flag_CXX \
12368 export_dynamic_flag_spec_CXX \
12369 thread_safe_flag_spec_CXX \
12370 whole_archive_flag_spec_CXX \
12371 enable_shared_with_static_runtimes_CXX \
12372 old_archive_cmds_CXX \
12373 old_archive_from_new_cmds_CXX \
12374 predep_objects_CXX \
12375 postdep_objects_CXX \
12378 compiler_lib_search_path_CXX \
12380 archive_expsym_cmds_CXX \
12381 postinstall_cmds_CXX \
12382 postuninstall_cmds_CXX \
12383 old_archive_from_expsyms_cmds_CXX \
12384 allow_undefined_flag_CXX \
12385 no_undefined_flag_CXX \
12386 export_symbols_cmds_CXX \
12387 hardcode_libdir_flag_spec_CXX \
12388 hardcode_libdir_flag_spec_ld_CXX \
12389 hardcode_libdir_separator_CXX \
12390 hardcode_automatic_CXX \
12392 module_expsym_cmds_CXX \
12393 lt_cv_prog_compiler_c_o_CXX \
12394 exclude_expsyms_CXX \
12395 include_expsyms_CXX; do
12398 old_archive_cmds_CXX | \
12399 old_archive_from_new_cmds_CXX | \
12400 archive_cmds_CXX | \
12401 archive_expsym_cmds_CXX | \
12402 module_cmds_CXX | \
12403 module_expsym_cmds_CXX | \
12404 old_archive_from_expsyms_cmds_CXX | \
12405 export_symbols_cmds_CXX | \
12406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12407 postinstall_cmds | postuninstall_cmds | \
12408 old_postinstall_cmds | old_postuninstall_cmds | \
12409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12410 # Double-quote double-evaled strings.
12411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12420 *'\$0 --fallback-echo"')
12421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12427 cat <<__EOF__ >> "$cfgfile"
12428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12432 # Shell to use when invoking shell scripts.
12435 # Whether or not to build shared libraries.
12436 build_libtool_libs=$enable_shared
12438 # Whether or not to build static libraries.
12439 build_old_libs=$enable_static
12441 # Whether or not to add -lc for building shared libraries.
12442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12444 # Whether or not to disallow shared libs when runtime libs are static
12445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12447 # Whether or not to optimize for fast installation.
12448 fast_install=$enable_fast_install
12451 host_alias=$host_alias
12454 # An echo program that does not interpret backslashes.
12459 AR_FLAGS=$lt_AR_FLAGS
12464 # A language-specific compiler.
12465 CC=$lt_compiler_CXX
12467 # Is the compiler the GNU C compiler?
12473 # The linker used to build libraries.
12476 # Whether we need hard or soft links.
12479 # A BSD-compatible nm program.
12482 # A symbol stripping program
12485 # Used to examine libraries when file_magic_cmd begins "file"
12486 MAGIC_CMD=$MAGIC_CMD
12488 # Used on cygwin: DLL creation program.
12491 # Used on cygwin: object dumper.
12494 # Used on cygwin: assembler.
12497 # The name of the directory that contains temporary libtool files.
12500 # How to create reloadable object files.
12501 reload_flag=$lt_reload_flag
12502 reload_cmds=$lt_reload_cmds
12504 # How to pass a linker flag through the compiler.
12505 wl=$lt_lt_prog_compiler_wl_CXX
12507 # Object file suffix (normally "o").
12508 objext="$ac_objext"
12510 # Old archive suffix (normally "a").
12513 # Shared library suffix (normally ".so").
12516 # Executable file suffix (normally "").
12519 # Additional compiler flags for building library objects.
12520 pic_flag=$lt_lt_prog_compiler_pic_CXX
12523 # What is the maximum length of a command?
12524 max_cmd_len=$lt_cv_sys_max_cmd_len
12526 # Does compiler simultaneously support -c and -o options?
12527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12529 # Must we lock files when doing compilation ?
12530 need_locks=$lt_need_locks
12532 # Do we need the lib prefix for modules?
12533 need_lib_prefix=$need_lib_prefix
12535 # Do we need a version for libraries?
12536 need_version=$need_version
12538 # Whether dlopen is supported.
12539 dlopen_support=$enable_dlopen
12541 # Whether dlopen of programs is supported.
12542 dlopen_self=$enable_dlopen_self
12544 # Whether dlopen of statically linked programs is supported.
12545 dlopen_self_static=$enable_dlopen_self_static
12547 # Compiler flag to prevent dynamic linking.
12548 link_static_flag=$lt_lt_prog_compiler_static_CXX
12550 # Compiler flag to turn off builtin functions.
12551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12553 # Compiler flag to allow reflexive dlopens.
12554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12556 # Compiler flag to generate shared objects directly from archives.
12557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12559 # Compiler flag to generate thread-safe objects.
12560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12562 # Library versioning type.
12563 version_type=$version_type
12565 # Format of library name prefix.
12566 libname_spec=$lt_libname_spec
12568 # List of archive names. First name is the real one, the rest are links.
12569 # The last name is the one that the linker finds with -lNAME.
12570 library_names_spec=$lt_library_names_spec
12572 # The coded name of the library, if different from the real name.
12573 soname_spec=$lt_soname_spec
12575 # Commands used to build and install an old-style archive.
12577 old_archive_cmds=$lt_old_archive_cmds_CXX
12578 old_postinstall_cmds=$lt_old_postinstall_cmds
12579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12581 # Create an old-style archive from a shared archive.
12582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12584 # Create a temporary old-style archive to link instead of a shared archive.
12585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12587 # Commands used to build and install a shared archive.
12588 archive_cmds=$lt_archive_cmds_CXX
12589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12590 postinstall_cmds=$lt_postinstall_cmds
12591 postuninstall_cmds=$lt_postuninstall_cmds
12593 # Commands used to build a loadable module (assumed same as above if empty)
12594 module_cmds=$lt_module_cmds_CXX
12595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12597 # Commands to strip libraries.
12598 old_striplib=$lt_old_striplib
12599 striplib=$lt_striplib
12601 # Dependencies to place before the objects being linked to create a
12603 predep_objects=$lt_predep_objects_CXX
12605 # Dependencies to place after the objects being linked to create a
12607 postdep_objects=$lt_postdep_objects_CXX
12609 # Dependencies to place before the objects being linked to create a
12611 predeps=$lt_predeps_CXX
12613 # Dependencies to place after the objects being linked to create a
12615 postdeps=$lt_postdeps_CXX
12617 # The library search path used internally by the compiler when linking
12618 # a shared library.
12619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12621 # Method to check whether dependent libraries are shared objects.
12622 deplibs_check_method=$lt_deplibs_check_method
12624 # Command to use when deplibs_check_method == file_magic.
12625 file_magic_cmd=$lt_file_magic_cmd
12627 # Flag that allows shared libraries with undefined symbols to be built.
12628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12630 # Flag that forces no undefined symbols.
12631 no_undefined_flag=$lt_no_undefined_flag_CXX
12633 # Commands used to finish a libtool library installation in a directory.
12634 finish_cmds=$lt_finish_cmds
12636 # Same as above, but a single script fragment to be evaled but not shown.
12637 finish_eval=$lt_finish_eval
12639 # Take the output of nm and produce a listing of raw symbols and C names.
12640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12642 # Transform the output of nm in a proper C declaration
12643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12645 # Transform the output of nm in a C name address pair
12646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12648 # This is the shared library runtime path variable.
12649 runpath_var=$runpath_var
12651 # This is the shared library path variable.
12652 shlibpath_var=$shlibpath_var
12654 # Is shlibpath searched before the hard-coded library search path?
12655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12657 # How to hardcode a shared library path into an executable.
12658 hardcode_action=$hardcode_action_CXX
12660 # Whether we should hardcode library paths into libraries.
12661 hardcode_into_libs=$hardcode_into_libs
12663 # Flag to hardcode \$libdir into a binary during linking.
12664 # This must work even if \$libdir does not exist.
12665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12667 # If ld is used when linking, flag to hardcode \$libdir into
12668 # a binary during linking. This must work even if \$libdir does
12670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12672 # Whether we need a single -rpath flag with a separated argument.
12673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12676 # resulting binary.
12677 hardcode_direct=$hardcode_direct_CXX
12679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12680 # resulting binary.
12681 hardcode_minus_L=$hardcode_minus_L_CXX
12683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12684 # the resulting binary.
12685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12687 # Set to yes if building a shared library automatically hardcodes DIR into the library
12688 # and all subsequent libraries and executables linked against it.
12689 hardcode_automatic=$hardcode_automatic_CXX
12691 # Variables whose values should be saved in libtool wrapper scripts and
12692 # restored at relink time.
12693 variables_saved_for_relink="$variables_saved_for_relink"
12695 # Whether libtool must link a program against all its dependency libraries.
12696 link_all_deplibs=$link_all_deplibs_CXX
12698 # Compile-time system search path for libraries
12699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12701 # Run-time system search path for libraries
12702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12704 # Fix the shell variable \$srcfile for the compiler.
12705 fix_srcfile_path="$fix_srcfile_path_CXX"
12707 # Set to yes if exported symbols are required.
12708 always_export_symbols=$always_export_symbols_CXX
12710 # The commands to list exported symbols.
12711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12713 # The commands to extract the exported symbol list from a shared archive.
12714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12716 # Symbols that should not be listed in the preloaded symbols.
12717 exclude_expsyms=$lt_exclude_expsyms_CXX
12719 # Symbols that must always be exported.
12720 include_expsyms=$lt_include_expsyms_CXX
12722 # ### END LIBTOOL TAG CONFIG: $tagname
12728 # If there is no Makefile yet, we rely on a make rule to execute
12729 # `config.status --recheck' to rerun these tests and create the
12730 # libtool script then.
12731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12732 if test -f "$ltmain_in"; then
12733 test -f Makefile && make "$ltmain"
12739 ac_cpp='$CPP $CPPFLAGS'
12740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748 with_gnu_ldcxx=$with_gnu_ld
12749 with_gnu_ld=$lt_save_with_gnu_ld
12750 lt_cv_path_LDCXX=$lt_cv_path_LD
12751 lt_cv_path_LD=$lt_save_path_LD
12752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12761 if test -n "$F77" && test "X$F77" != "Xno"; then
12764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12769 archive_cmds_need_lc_F77=no
12770 allow_undefined_flag_F77=
12771 always_export_symbols_F77=no
12772 archive_expsym_cmds_F77=
12773 export_dynamic_flag_spec_F77=
12774 hardcode_direct_F77=no
12775 hardcode_libdir_flag_spec_F77=
12776 hardcode_libdir_flag_spec_ld_F77=
12777 hardcode_libdir_separator_F77=
12778 hardcode_minus_L_F77=no
12779 hardcode_automatic_F77=no
12781 module_expsym_cmds_F77=
12782 link_all_deplibs_F77=unknown
12783 old_archive_cmds_F77=$old_archive_cmds
12784 no_undefined_flag_F77=
12785 whole_archive_flag_spec_F77=
12786 enable_shared_with_static_runtimes_F77=no
12788 # Source file extension for f77 test sources.
12791 # Object file extension for compiled f77 test sources.
12795 # Code to be used in simple compile tests
12796 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12798 # Code to be used in simple link tests
12799 lt_simple_link_test_code=" program t\n end\n"
12801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12803 # If no C compiler was specified, use CC.
12806 # Allow CC to be a program name with arguments.
12810 # Allow CC to be a program name with arguments.
12815 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12820 $as_echo "$can_build_shared" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12823 $as_echo_n "checking whether to build shared libraries... " >&6; }
12824 test "$can_build_shared" = "no" && enable_shared=no
12826 # On AIX, shared libraries and static libraries use the same namespace, and
12827 # are all built from PIC.
12830 test "$enable_shared" = yes && enable_static=no
12831 if test -n "$RANLIB"; then
12832 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12833 postinstall_cmds='$RANLIB $lib'
12837 test "$enable_shared" = yes && enable_static=no
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12841 $as_echo "$enable_shared" >&6; }
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12844 $as_echo_n "checking whether to build static libraries... " >&6; }
12845 # Make sure either enable_shared or enable_static is yes.
12846 test "$enable_shared" = yes || enable_static=yes
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12848 $as_echo "$enable_static" >&6; }
12850 test "$ld_shlibs_F77" = no && can_build_shared=no
12855 lt_prog_compiler_wl_F77=
12856 lt_prog_compiler_pic_F77=
12857 lt_prog_compiler_static_F77=
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12860 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12862 if test "$GCC" = yes; then
12863 lt_prog_compiler_wl_F77='-Wl,'
12864 lt_prog_compiler_static_F77='-static'
12868 # All AIX code is PIC.
12869 if test "$host_cpu" = ia64; then
12870 # AIX 5 now supports IA64 processor
12871 lt_prog_compiler_static_F77='-Bstatic'
12876 # FIXME: we need at least 68020 code to build shared libraries, but
12877 # adding the `-m68020' flag to GCC prevents building anything better,
12879 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12882 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12883 # PIC is the default for these OSes.
12886 mingw* | pw32* | os2*)
12887 # This hack is so that the source file can tell whether it is being
12888 # built for inclusion in a dll (and should export symbols for example).
12889 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12892 darwin* | rhapsody*)
12893 # PIC is the default on this platform
12894 # Common symbols not allowed in MH_DYLIB files
12895 lt_prog_compiler_pic_F77='-fno-common'
12899 # Just because we use GCC doesn't mean we suddenly get shared libraries
12900 # on systems that don't support them.
12901 lt_prog_compiler_can_build_shared_F77=no
12906 if test -d /usr/nec; then
12907 lt_prog_compiler_pic_F77=-Kconform_pic
12912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12913 # not for PA HP-UX.
12914 case "$host_cpu" in
12919 lt_prog_compiler_pic_F77='-fPIC'
12925 lt_prog_compiler_pic_F77='-fPIC'
12929 # PORTME Check for flag to pass linker flags through the system compiler.
12932 lt_prog_compiler_wl_F77='-Wl,'
12933 if test "$host_cpu" = ia64; then
12934 # AIX 5 now supports IA64 processor
12935 lt_prog_compiler_static_F77='-Bstatic'
12937 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12941 mingw* | pw32* | os2*)
12942 # This hack is so that the source file can tell whether it is being
12943 # built for inclusion in a dll (and should export symbols for example).
12944 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12947 hpux9* | hpux10* | hpux11*)
12948 lt_prog_compiler_wl_F77='-Wl,'
12949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12950 # not for PA HP-UX.
12951 case "$host_cpu" in
12956 lt_prog_compiler_pic_F77='+Z'
12959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12960 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12963 irix5* | irix6* | nonstopux*)
12964 lt_prog_compiler_wl_F77='-Wl,'
12965 # PIC (with -KPIC) is the default.
12966 lt_prog_compiler_static_F77='-non_shared'
12970 lt_prog_compiler_pic_F77='-KPIC'
12971 lt_prog_compiler_static_F77='-Bstatic'
12977 lt_prog_compiler_wl_F77='-Wl,'
12978 lt_prog_compiler_pic_F77='-KPIC'
12979 lt_prog_compiler_static_F77='-static'
12982 lt_prog_compiler_wl_F77='-Wl,'
12983 # All Alpha code is PIC.
12984 lt_prog_compiler_static_F77='-non_shared'
12989 osf3* | osf4* | osf5*)
12990 lt_prog_compiler_wl_F77='-Wl,'
12991 # All OSF/1 code is PIC.
12992 lt_prog_compiler_static_F77='-non_shared'
12996 lt_prog_compiler_pic_F77='-Kpic'
12997 lt_prog_compiler_static_F77='-dn'
13001 lt_prog_compiler_wl_F77='-Wl,'
13002 lt_prog_compiler_pic_F77='-KPIC'
13003 lt_prog_compiler_static_F77='-Bstatic'
13007 lt_prog_compiler_wl_F77='-Qoption ld '
13008 lt_prog_compiler_pic_F77='-PIC'
13009 lt_prog_compiler_static_F77='-Bstatic'
13012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13013 lt_prog_compiler_wl_F77='-Wl,'
13014 lt_prog_compiler_pic_F77='-KPIC'
13015 lt_prog_compiler_static_F77='-Bstatic'
13019 if test -d /usr/nec ;then
13020 lt_prog_compiler_pic_F77='-Kconform_pic'
13021 lt_prog_compiler_static_F77='-Bstatic'
13026 lt_prog_compiler_pic_F77='-pic'
13027 lt_prog_compiler_static_F77='-Bstatic'
13031 lt_prog_compiler_can_build_shared_F77=no
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13037 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13040 # Check to make sure the PIC flag actually works.
13042 if test -n "$lt_prog_compiler_pic_F77"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13045 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13046 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13049 lt_prog_compiler_pic_works_F77=no
13050 ac_outfile=conftest.$ac_objext
13051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13052 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13053 # Insert the option either (1) after the last *FLAGS variable, or
13054 # (2) before a word containing "conftest.", or (3) at the end.
13055 # Note that $ac_compile itself does not contain backslashes and begins
13056 # with a dollar sign (not a hyphen), so the echo should work correctly.
13057 # The option is referenced via a variable to avoid confusing sed.
13058 lt_compile=`echo "$ac_compile" | $SED \
13059 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13061 -e 's:$: $lt_compiler_flag:'`
13062 (eval echo "\"\$as_me:13062: $lt_compile\"" >&5)
13063 (eval "$lt_compile" 2>conftest.err)
13065 cat conftest.err >&5
13066 echo "$as_me:13066: \$? = $ac_status" >&5
13067 if (exit $ac_status) && test -s "$ac_outfile"; then
13068 # The compiler can only warn and ignore the option if not recognized
13069 # So say no if there are warnings
13070 if test ! -s conftest.err; then
13071 lt_prog_compiler_pic_works_F77=yes
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13078 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13080 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13081 case $lt_prog_compiler_pic_F77 in
13083 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13086 lt_prog_compiler_pic_F77=
13087 lt_prog_compiler_can_build_shared_F77=no
13092 # For platforms which do not support PIC, -DPIC is meaningless:
13094 lt_prog_compiler_pic_F77=
13097 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13103 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13106 lt_cv_prog_compiler_c_o_F77=no
13107 $rm -r conftest 2>/dev/null
13111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13113 lt_compiler_flag="-o out/conftest2.$ac_objext"
13114 # Insert the option either (1) after the last *FLAGS variable, or
13115 # (2) before a word containing "conftest.", or (3) at the end.
13116 # Note that $ac_compile itself does not contain backslashes and begins
13117 # with a dollar sign (not a hyphen), so the echo should work correctly.
13118 lt_compile=`echo "$ac_compile" | $SED \
13119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13121 -e 's:$: $lt_compiler_flag:'`
13122 (eval echo "\"\$as_me:13122: $lt_compile\"" >&5)
13123 (eval "$lt_compile" 2>out/conftest.err)
13125 cat out/conftest.err >&5
13126 echo "$as_me:13126: \$? = $ac_status" >&5
13127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13129 # The compiler can only warn and ignore the option if not recognized
13130 # So say no if there are warnings
13131 if test ! -s out/conftest.err; then
13132 lt_cv_prog_compiler_c_o_F77=yes
13137 # SGI C++ compiler will create directory out/ii_files/ for
13138 # template instantiation
13139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13140 $rm out/* && rmdir out
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13147 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13150 hard_links="nottested"
13151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13152 # do not overwrite the value of need_locks provided by the user
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13154 $as_echo_n "checking if we can lock with hard links... " >&6; }
13157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13159 ln conftest.a conftest.b 2>&5 || hard_links=no
13160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13162 $as_echo "$hard_links" >&6; }
13163 if test "$hard_links" = no; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13165 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13176 allow_undefined_flag_F77=
13177 enable_shared_with_static_runtimes_F77=no
13179 archive_expsym_cmds_F77=
13180 old_archive_From_new_cmds_F77=
13181 old_archive_from_expsyms_cmds_F77=
13182 export_dynamic_flag_spec_F77=
13183 whole_archive_flag_spec_F77=
13184 thread_safe_flag_spec_F77=
13185 hardcode_libdir_flag_spec_F77=
13186 hardcode_libdir_flag_spec_ld_F77=
13187 hardcode_libdir_separator_F77=
13188 hardcode_direct_F77=no
13189 hardcode_minus_L_F77=no
13190 hardcode_shlibpath_var_F77=unsupported
13191 link_all_deplibs_F77=unknown
13192 hardcode_automatic_F77=no
13194 module_expsym_cmds_F77=
13195 always_export_symbols_F77=no
13196 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13197 # include_expsyms should be a list of space-separated symbols to be *always*
13198 # included in the symbol list
13199 include_expsyms_F77=
13200 # exclude_expsyms can be an extended regexp of symbols to exclude
13201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13203 # as well as any symbol that contains `d'.
13204 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13206 # platforms (ab)use it in PIC code, but their linkers get confused if
13207 # the symbol is explicitly referenced. Since portable code cannot
13208 # rely on this symbol name, it's probably fine to never include it in
13209 # preloaded symbol tables.
13210 extract_expsyms_cmds=
13213 cygwin* | mingw* | pw32*)
13214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13215 # When not using gcc, we currently assume that we are using
13216 # Microsoft Visual C++.
13217 if test "$GCC" != yes; then
13227 if test "$with_gnu_ld" = yes; then
13228 # If archive_cmds runs LD, not CC, wlarc should be empty
13231 # See if GNU ld supports shared libraries.
13233 aix3* | aix4* | aix5*)
13234 # On AIX/PPC, the GNU linker is very broken
13235 if test "$host_cpu" != ia64; then
13239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13240 *** to be unable to reliably create shared libraries on AIX.
13241 *** Therefore, libtool is disabling shared libraries support. If you
13242 *** really care for shared libraries, you may want to modify your PATH
13243 *** so that a non-GNU linker is found, and then restart.
13250 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)'
13251 hardcode_libdir_flag_spec_F77='-L$libdir'
13252 hardcode_minus_L_F77=yes
13254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13255 # that the semantics of dynamic libraries on AmigaOS, at least up
13256 # to version 4, is to share data among multiple programs linked
13257 # with the same dynamic library. Since this doesn't match the
13258 # behavior of shared libraries on other platforms, we can't use
13264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265 allow_undefined_flag_F77=unsupported
13266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13267 # support --undefined. This deserves some investigation. FIXME
13268 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274 cygwin* | mingw* | pw32*)
13275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13276 # as there is no search path for DLLs.
13277 hardcode_libdir_flag_spec_F77='-L$libdir'
13278 allow_undefined_flag_F77=unsupported
13279 always_export_symbols_F77=no
13280 enable_shared_with_static_runtimes_F77=yes
13281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13285 # If the export-symbols file already is a .def file (1st line
13286 # is EXPORTS), use it as is; otherwise, prepend...
13287 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13288 cp $export_symbols $output_objdir/$soname.def;
13290 echo EXPORTS > $output_objdir/$soname.def;
13291 cat $export_symbols >> $output_objdir/$soname.def;
13293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13299 netbsd* | knetbsd*-gnu)
13300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13301 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13310 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13315 *** create shared libraries on Solaris systems. Therefore, libtool
13316 *** is disabling shared libraries support. We urge you to upgrade GNU
13317 *** binutils to release 2.9.1 or newer. Another option is to modify
13318 *** your PATH or compiler configuration so that the native linker is
13319 *** used, and then restart.
13322 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13323 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13333 hardcode_direct_F77=yes
13334 hardcode_shlibpath_var_F77=no
13338 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13339 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 archive_cmds_F77="$tmp_archive_cmds"
13341 supports_anon_versioning=no
13342 case `$LD -v 2>/dev/null` in
13343 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13346 *\ 2.11.*) ;; # other 2.11 versions
13347 *) supports_anon_versioning=yes ;;
13349 if test $supports_anon_versioning = yes; then
13350 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13352 $echo "local: *; };" >> $output_objdir/$libname.ver~
13353 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13355 archive_expsym_cmds_F77="$tmp_archive_cmds"
13363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13372 if test "$ld_shlibs_F77" = yes; then
13373 runpath_var=LD_RUN_PATH
13374 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13375 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13376 # ancient GNU ld didn't support --whole-archive et. al.
13377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13378 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13380 whole_archive_flag_spec_F77=
13384 # PORTME fill in a description of your system's linker (not GNU ld)
13387 allow_undefined_flag_F77=unsupported
13388 always_export_symbols_F77=yes
13389 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'
13390 # Note: this linker hardcodes the directories in LIBPATH if there
13391 # are no directories specified by -L.
13392 hardcode_minus_L_F77=yes
13393 if test "$GCC" = yes && test -z "$link_static_flag"; then
13394 # Neither direct hardcoding nor static linking is supported with a
13396 hardcode_direct_F77=unsupported
13401 if test "$host_cpu" = ia64; then
13402 # On IA64, the linker does run time linking by default, so we don't
13403 # have to do anything special.
13404 aix_use_runtimelinking=no
13405 exp_sym_flag='-Bexport'
13408 # If we're using GNU nm, then we don't want the "-C" option.
13409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13411 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'
13413 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'
13415 aix_use_runtimelinking=no
13417 # Test if we are trying to use run time linking or normal
13418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13419 # need to do runtime linking.
13420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13421 for ld_flag in $LDFLAGS; do
13422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13423 aix_use_runtimelinking=yes
13429 exp_sym_flag='-bexport'
13430 no_entry_flag='-bnoentry'
13433 # When large executables or shared objects are built, AIX ld can
13434 # have problems creating the table of contents. If linking a library
13435 # or program results in "error TOC overflow" add -mminimal-toc to
13436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13439 archive_cmds_F77=''
13440 hardcode_direct_F77=yes
13441 hardcode_libdir_separator_F77=':'
13442 link_all_deplibs_F77=yes
13444 if test "$GCC" = yes; then
13445 case $host_os in aix4.012|aix4.012.*)
13446 # We only want to do this on AIX 4.2 and lower, the check
13447 # below for broken collect2 doesn't work under 4.3+
13448 collect2name=`${CC} -print-prog-name=collect2`
13449 if test -f "$collect2name" && \
13450 strings "$collect2name" | grep resolve_lib_name >/dev/null
13452 # We have reworked collect2
13453 hardcode_direct_F77=yes
13455 # We have old collect2
13456 hardcode_direct_F77=unsupported
13457 # It fails to find uninstalled libraries when the uninstalled
13458 # path is not listed in the libpath. Setting hardcode_minus_L
13459 # to unsupported forces relinking
13460 hardcode_minus_L_F77=yes
13461 hardcode_libdir_flag_spec_F77='-L$libdir'
13462 hardcode_libdir_separator_F77=
13465 shared_flag='-shared'
13468 if test "$host_cpu" = ia64; then
13469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13470 # chokes on -Wl,-G. The following line is correct:
13473 if test "$aix_use_runtimelinking" = yes; then
13474 shared_flag='${wl}-G'
13476 shared_flag='${wl}-bM:SRE'
13481 # It seems that -bexpall does not export symbols beginning with
13482 # underscore (_), so it is better to generate a list of symbols to export.
13483 always_export_symbols_F77=yes
13484 if test "$aix_use_runtimelinking" = yes; then
13485 # Warning - without using the other runtime loading flags (-brtl),
13486 # -berok will link without error, but may produce a broken library.
13487 allow_undefined_flag_F77='-berok'
13488 # Determine the default libpath from the value encoded in an empty executable.
13489 cat > conftest.$ac_ext <<_ACEOF
13494 if ac_fn_f77_try_link "$LINENO"; then :
13496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13498 # Check for a 64-bit object if we didn't find anything.
13499 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13509 if test "$host_cpu" = ia64; then
13510 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13511 allow_undefined_flag_F77="-z nodefs"
13512 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13514 # Determine the default libpath from the value encoded in an empty executable.
13515 cat > conftest.$ac_ext <<_ACEOF
13520 if ac_fn_f77_try_link "$LINENO"; then :
13522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13524 # Check for a 64-bit object if we didn't find anything.
13525 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13532 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13533 # Warning - without using the other run time loading flags,
13534 # -berok will link without error, but may produce a broken library.
13535 no_undefined_flag_F77=' ${wl}-bernotok'
13536 allow_undefined_flag_F77=' ${wl}-berok'
13537 # -bexpall does not export symbols beginning with underscore (_)
13538 always_export_symbols_F77=yes
13539 # Exported symbols can be pulled into shared objects from archives
13540 whole_archive_flag_spec_F77=' '
13541 archive_cmds_need_lc_F77=yes
13542 # This is similar to how AIX traditionally builds it's shared libraries.
13543 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13549 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)'
13550 hardcode_libdir_flag_spec_F77='-L$libdir'
13551 hardcode_minus_L_F77=yes
13552 # see comment about different semantics on the GNU ld section
13557 export_dynamic_flag_spec_F77=-rdynamic
13560 cygwin* | mingw* | pw32*)
13561 # When not using gcc, we currently assume that we are using
13562 # Microsoft Visual C++.
13563 # hardcode_libdir_flag_spec is actually meaningless, as there is
13564 # no search path for DLLs.
13565 hardcode_libdir_flag_spec_F77=' '
13566 allow_undefined_flag_F77=unsupported
13567 # Tell ltmain to make .lib files, not .a files.
13569 # Tell ltmain to make .dll files, not .so files.
13571 # FIXME: Setting linknames here is a bad hack.
13572 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13573 # The linker will automatically build a .lib file if we build a DLL.
13574 old_archive_From_new_cmds_F77='true'
13575 # FIXME: Should let the user specify the lib program.
13576 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13577 fix_srcfile_path='`cygpath -w "$srcfile"`'
13578 enable_shared_with_static_runtimes_F77=yes
13581 darwin* | rhapsody*)
13582 if test "$GXX" = yes ; then
13583 archive_cmds_need_lc_F77=no
13585 rhapsody* | darwin1.[012])
13586 allow_undefined_flag_F77='-undefined suppress'
13589 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13590 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13592 case ${MACOSX_DEPLOYMENT_TARGET} in
13594 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13597 allow_undefined_flag_F77='-undefined dynamic_lookup'
13603 lt_int_apple_cc_single_mod=no
13604 output_verbose_link_cmd='echo'
13605 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13606 lt_int_apple_cc_single_mod=yes
13608 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13609 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13611 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13613 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13615 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13616 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13618 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13620 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}'
13621 hardcode_direct_F77=no
13622 hardcode_automatic_F77=yes
13623 hardcode_shlibpath_var_F77=unsupported
13624 whole_archive_flag_spec_F77='-all_load $convenience'
13625 link_all_deplibs_F77=yes
13632 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13633 hardcode_libdir_flag_spec_F77='-L$libdir'
13634 hardcode_shlibpath_var_F77=no
13641 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13642 # support. Future versions do this automatically, but an explicit c++rt0.o
13643 # does not break anything, and helps significantly (at the cost of a little
13646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13647 hardcode_libdir_flag_spec_F77='-R$libdir'
13648 hardcode_direct_F77=yes
13649 hardcode_shlibpath_var_F77=no
13652 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13655 hardcode_direct_F77=yes
13656 hardcode_minus_L_F77=yes
13657 hardcode_shlibpath_var_F77=no
13660 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13661 freebsd* | kfreebsd*-gnu)
13662 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13663 hardcode_libdir_flag_spec_F77='-R$libdir'
13664 hardcode_direct_F77=yes
13665 hardcode_shlibpath_var_F77=no
13669 if test "$GCC" = yes; then
13670 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'
13672 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'
13674 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13675 hardcode_libdir_separator_F77=:
13676 hardcode_direct_F77=yes
13678 # hardcode_minus_L: Not really in the search PATH,
13679 # but as the default location of the library.
13680 hardcode_minus_L_F77=yes
13681 export_dynamic_flag_spec_F77='${wl}-E'
13685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13686 case "$host_cpu" in
13688 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13691 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13695 case "$host_cpu" in
13697 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13700 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13704 if test "$with_gnu_ld" = no; then
13705 case "$host_cpu" in
13707 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13708 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13709 hardcode_libdir_separator_F77=:
13710 hardcode_direct_F77=no
13711 hardcode_shlibpath_var_F77=no
13714 hardcode_libdir_flag_spec_F77='-L$libdir'
13715 hardcode_direct_F77=no
13716 hardcode_shlibpath_var_F77=no
13718 # hardcode_minus_L: Not really in the search PATH,
13719 # but as the default location of the library.
13720 hardcode_minus_L_F77=yes
13723 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13724 hardcode_libdir_separator_F77=:
13725 hardcode_direct_F77=yes
13726 export_dynamic_flag_spec_F77='${wl}-E'
13728 # hardcode_minus_L: Not really in the search PATH,
13729 # but as the default location of the library.
13730 hardcode_minus_L_F77=yes
13736 irix5* | irix6* | nonstopux*)
13737 if test "$GCC" = yes; then
13738 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'
13740 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'
13741 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13743 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13744 hardcode_libdir_separator_F77=:
13745 link_all_deplibs_F77=yes
13748 netbsd* | knetbsd*-gnu)
13749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13752 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13754 hardcode_libdir_flag_spec_F77='-R$libdir'
13755 hardcode_direct_F77=yes
13756 hardcode_shlibpath_var_F77=no
13760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13761 hardcode_direct_F77=yes
13762 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13763 hardcode_libdir_separator_F77=:
13764 hardcode_shlibpath_var_F77=no
13768 hardcode_direct_F77=yes
13769 hardcode_shlibpath_var_F77=no
13770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13771 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13772 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13773 export_dynamic_flag_spec_F77='${wl}-E'
13776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13777 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_libdir_flag_spec_F77='-R$libdir'
13781 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13789 hardcode_libdir_flag_spec_F77='-L$libdir'
13790 hardcode_minus_L_F77=yes
13791 allow_undefined_flag_F77=unsupported
13792 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'
13793 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13797 if test "$GCC" = yes; then
13798 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13799 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'
13801 allow_undefined_flag_F77=' -expect_unresolved \*'
13802 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'
13804 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13805 hardcode_libdir_separator_F77=:
13808 osf4* | osf5*) # as osf3* with the addition of -msym flag
13809 if test "$GCC" = yes; then
13810 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13811 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'
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13814 allow_undefined_flag_F77=' -expect_unresolved \*'
13815 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'
13816 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~
13817 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13819 # Both c and cxx compiler support -rpath directly
13820 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13822 hardcode_libdir_separator_F77=:
13826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 hardcode_shlibpath_var_F77=no
13828 export_dynamic_flag_spec_F77='${wl}-Bexport'
13829 runpath_var=LD_RUN_PATH
13830 hardcode_runpath_var=yes
13834 no_undefined_flag_F77=' -z text'
13835 if test "$GCC" = yes; then
13836 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13837 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13838 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13840 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13841 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13844 hardcode_libdir_flag_spec_F77='-R$libdir'
13845 hardcode_shlibpath_var_F77=no
13847 solaris2.[0-5] | solaris2.[0-5].*) ;;
13848 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13849 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13851 link_all_deplibs_F77=yes
13855 if test "x$host_vendor" = xsequent; then
13856 # Use $CC to link under sequent, because it throws in some extra .o
13857 # files that make .init and .fini sections work.
13858 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_libdir_flag_spec_F77='-L$libdir'
13863 hardcode_direct_F77=yes
13864 hardcode_minus_L_F77=yes
13865 hardcode_shlibpath_var_F77=no
13869 case $host_vendor in
13871 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872 hardcode_direct_F77=yes # is this really true???
13875 ## LD is ld it makes a PLAMLIB
13876 ## CC just makes a GrossModule.
13877 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13878 reload_cmds_F77='$CC -r -o $output$reload_objs'
13879 hardcode_direct_F77=no
13882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13886 runpath_var='LD_RUN_PATH'
13887 hardcode_shlibpath_var_F77=no
13891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_shlibpath_var_F77=no
13893 export_dynamic_flag_spec_F77='-Bexport'
13897 if test -d /usr/nec; then
13898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899 hardcode_shlibpath_var_F77=no
13900 runpath_var=LD_RUN_PATH
13901 hardcode_runpath_var=yes
13907 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13908 hardcode_direct_F77=yes
13909 hardcode_minus_L_F77=no
13910 hardcode_shlibpath_var_F77=no
13911 hardcode_runpath_var=yes
13912 runpath_var=LD_RUN_PATH
13915 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13916 no_undefined_flag_F77='${wl}-z ${wl}text'
13917 if test "$GCC" = yes; then
13918 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13920 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 runpath_var='LD_RUN_PATH'
13923 hardcode_shlibpath_var_F77=no
13927 no_undefined_flag_F77=' -z text'
13928 # $CC -shared without GNU ld will not create a library from C++
13929 # object files and a static libstdc++, better avoid it by now
13930 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13933 hardcode_libdir_flag_spec_F77=
13934 hardcode_shlibpath_var_F77=no
13935 runpath_var='LD_RUN_PATH'
13939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13940 hardcode_libdir_flag_spec_F77='-L$libdir'
13941 hardcode_shlibpath_var_F77=no
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13951 $as_echo "$ld_shlibs_F77" >&6; }
13952 test "$ld_shlibs_F77" = no && can_build_shared=no
13954 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13955 if test "$GCC" = yes; then
13956 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13960 # Do we need to explicitly link libc?
13962 case "x$archive_cmds_need_lc_F77" in
13964 # Assume -lc should be added
13965 archive_cmds_need_lc_F77=yes
13967 if test "$enable_shared" = yes && test "$GCC" = yes; then
13968 case $archive_cmds_F77 in
13970 # FIXME: we may have to deal with multi-command sequences.
13973 # Test whether the compiler implicitly links with -lc since on some
13974 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13975 # to ld, don't add -lc before -lgcc.
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13982 (eval $ac_compile) 2>&5
13984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985 test $ac_status = 0; } 2>conftest.err; then
13988 libobjs=conftest.$ac_objext
13990 wl=$lt_prog_compiler_wl_F77
13996 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13997 allow_undefined_flag_F77=
13998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13999 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }
14004 archive_cmds_need_lc_F77=no
14006 archive_cmds_need_lc_F77=yes
14008 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14010 cat conftest.err 1>&5
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14014 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14023 library_names_spec=
14024 libname_spec='lib$name'
14028 postuninstall_cmds=
14032 shlibpath_overrides_runpath=unknown
14034 dynamic_linker="$host_os ld.so"
14035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14036 if test "$GCC" = yes; then
14037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14038 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14039 # if the path contains ";" then we assume it to be the separator
14040 # otherwise default to the standard path separator (i.e. ":") - it is
14041 # assumed that no part of a normal pathname contains ";" but that should
14042 # okay in the real world where ";" in dirpaths is itself problematic.
14043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14050 need_lib_prefix=unknown
14051 hardcode_into_libs=no
14053 # when you set need_version to no, make sure it does not cause -set_version
14054 # flags to be left without arguments
14055 need_version=unknown
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14061 shlibpath_var=LIBPATH
14063 # AIX 3 has no versioning support, so we append a major version to the name.
14064 soname_spec='${libname}${release}${shared_ext}$major'
14071 hardcode_into_libs=yes
14072 if test "$host_cpu" = ia64; then
14073 # AIX 5 supports IA64
14074 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14075 shlibpath_var=LD_LIBRARY_PATH
14077 # With GCC up to 2.95.x, collect2 would create an import file
14078 # for dependence libraries. The import file would start with
14079 # the line `#! .'. This would cause the generated library to
14080 # depend on `.', always an invalid library. This was fixed in
14081 # development snapshots of GCC prior to 3.0.
14083 aix4 | aix4.[01] | aix4.[01].*)
14084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14086 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14089 can_build_shared=no
14093 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14094 # soname into executable. Probably we can add versioning support to
14095 # collect2, so additional links can be useful in future.
14096 if test "$aix_use_runtimelinking" = yes; then
14097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14098 # instead of lib<name>.a to let people know that these are not
14099 # typical AIX shared libraries.
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 # We preserve .a as extension for shared libraries through AIX4.2
14103 # and later when we are not doing run time linking.
14104 library_names_spec='${libname}${release}.a $libname.a'
14105 soname_spec='${libname}${release}${shared_ext}$major'
14107 shlibpath_var=LIBPATH
14112 library_names_spec='$libname.ixlibrary $libname.a'
14113 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14114 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'
14118 library_names_spec='${libname}${shared_ext}'
14119 dynamic_linker="$host_os ld.so"
14120 shlibpath_var=LIBRARY_PATH
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14132 # the default ld.so.conf also contains /usr/contrib/lib and
14133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14134 # libtool to hard-code these into programs
14137 cygwin* | mingw* | pw32*)
14138 version_type=windows
14143 case $GCC,$host_os in
14144 yes,cygwin* | yes,mingw* | yes,pw32*)
14145 library_names_spec='$libname.dll.a'
14146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14147 postinstall_cmds='base_file=`basename \${file}`~
14148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14149 dldir=$destdir/`dirname \$dlpath`~
14150 test -d \$dldir || mkdir -p \$dldir~
14151 $install_prog $dir/$dlname \$dldir/$dlname'
14152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14153 dlpath=$dir/\$dldll~
14155 shlibpath_overrides_runpath=yes
14159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14161 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14164 # MinGW DLLs use traditional 'lib' prefix
14165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14167 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14168 # It is most probably a Windows format PATH printed by
14169 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14170 # path with ; separators, and with drive letters. We can handle the
14171 # drive letters (cygwin fileutils understands them), so leave them,
14172 # especially as we might pass files found there to a mingw objdump,
14173 # which wouldn't understand a cygwinified path. Ahh.
14174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14180 # pw32 DLLs use 'pw' prefix rather than 'lib'
14181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14190 dynamic_linker='Win32 ld.exe'
14191 # FIXME: first we should search . and the directory the executable is in
14195 darwin* | rhapsody*)
14196 dynamic_linker="$host_os dyld"
14197 version_type=darwin
14200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14201 soname_spec='${libname}${release}${major}$shared_ext'
14202 shlibpath_overrides_runpath=yes
14203 shlibpath_var=DYLD_LIBRARY_PATH
14204 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14206 if test "$GCC" = yes; then
14207 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14209 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 shlibpath_var=LD_LIBRARY_PATH
14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 shlibpath_var=LD_LIBRARY_PATH
14234 shlibpath_overrides_runpath=no
14235 hardcode_into_libs=yes
14236 dynamic_linker='GNU ld.so'
14240 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14241 version_type=freebsd-$objformat
14242 case $version_type in
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14253 shlibpath_var=LD_LIBRARY_PATH
14256 shlibpath_overrides_runpath=yes
14258 freebsd3.01* | freebsdelf3.01*)
14259 shlibpath_overrides_runpath=yes
14260 hardcode_into_libs=yes
14263 shlibpath_overrides_runpath=no
14264 hardcode_into_libs=yes
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14274 soname_spec='${libname}${release}${shared_ext}$major'
14275 shlibpath_var=LD_LIBRARY_PATH
14276 hardcode_into_libs=yes
14279 hpux9* | hpux10* | hpux11*)
14280 # Give a soname corresponding to the major version so that dld.sl refuses to
14281 # link against other versions.
14285 case "$host_cpu" in
14288 hardcode_into_libs=yes
14289 dynamic_linker="$host_os dld.so"
14290 shlibpath_var=LD_LIBRARY_PATH
14291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 if test "X$HPUX_IA64_MODE" = X32; then
14295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14303 hardcode_into_libs=yes
14304 dynamic_linker="$host_os dld.sl"
14305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14314 dynamic_linker="$host_os dld.sl"
14315 shlibpath_var=SHLIB_PATH
14316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14321 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14322 postinstall_cmds='chmod 555 $lib'
14325 irix5* | irix6* | nonstopux*)
14327 nonstopux*) version_type=nonstopux ;;
14329 if test "$lt_cv_prog_gnu_ld" = yes; then
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14340 irix5* | nonstopux*)
14341 libsuff= shlibsuff=
14344 case $LD in # libtool.m4 will add one of these switches to LD
14345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14346 libsuff= shlibsuff= libmagic=32-bit;;
14347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14348 libsuff=32 shlibsuff=N32 libmagic=N32;;
14349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14351 *) libsuff= shlibsuff= libmagic=never-match;;
14355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14356 shlibpath_overrides_runpath=no
14357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14359 hardcode_into_libs=yes
14362 # No shared lib support for Linux oldld, aout, or coff.
14363 linux*oldld* | linux*aout* | linux*coff*)
14367 # This must be Linux ELF.
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=no
14377 # This implies no fast_install, which is unacceptable.
14378 # Some rework will be needed to allow for fast_install
14379 # before this can be enabled.
14380 hardcode_into_libs=yes
14382 # Append ld.so.conf contents to the search path
14383 if test -f /etc/ld.so.conf; then
14384 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14385 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14388 # We used to test for /lib/ld.so.1 and disable shared libraries on
14389 # powerpc, because MkLinux only supported shared libraries with the
14390 # GNU dynamic linker. Since this was broken with cross compilers,
14391 # most powerpc-linux boxes support dynamic linking these days and
14392 # people can always --disable-shared, the test was removed, and we
14393 # assume the GNU/Linux dynamic linker is in use.
14394 dynamic_linker='GNU/Linux ld.so'
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14402 soname_spec='${libname}${release}${shared_ext}$major'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath=no
14405 hardcode_into_libs=yes
14406 dynamic_linker='GNU ld.so'
14413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 dynamic_linker='NetBSD (a.out) ld.so'
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 dynamic_linker='NetBSD ld.elf_so'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=yes
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14453 openbsd2.[89] | openbsd2.[89].*)
14454 shlibpath_overrides_runpath=no
14457 shlibpath_overrides_runpath=yes
14461 shlibpath_overrides_runpath=yes
14466 libname_spec='$name'
14469 library_names_spec='$libname${shared_ext} $libname.a'
14470 dynamic_linker='OS/2 ld.exe'
14471 shlibpath_var=LIBPATH
14474 osf3* | osf4* | osf5*)
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 shlibpath_overrides_runpath=yes
14500 hardcode_into_libs=yes
14501 # ldd complains unless libraries are executable
14502 postinstall_cmds='chmod +x $lib'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=yes
14511 if test "$with_gnu_ld" = yes; then
14517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 case $host_vendor in
14524 shlibpath_overrides_runpath=no
14526 export_dynamic_flag_spec='${wl}-Blargedynsym'
14527 runpath_var=LD_RUN_PATH
14535 shlibpath_overrides_runpath=no
14536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542 if test -d /usr/nec ;then
14544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14545 soname_spec='$libname${shared_ext}.$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14562 $as_echo "$dynamic_linker" >&6; }
14563 test "$dynamic_linker" = no && can_build_shared=no
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14567 hardcode_action_F77=
14568 if test -n "$hardcode_libdir_flag_spec_F77" || \
14569 test -n "$runpath_var F77" || \
14570 test "X$hardcode_automatic_F77"="Xyes" ; then
14572 # We can hardcode non-existant directories.
14573 if test "$hardcode_direct_F77" != no &&
14574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14575 # have to relink, otherwise we might link with an installed library
14576 # when we should be linking with a yet-to-be-installed one
14577 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14578 test "$hardcode_minus_L_F77" != no; then
14579 # Linking always hardcodes the temporary library directory.
14580 hardcode_action_F77=relink
14582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14583 hardcode_action_F77=immediate
14586 # We cannot hardcode anything, or else we can only hardcode existing
14588 hardcode_action_F77=unsupported
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14591 $as_echo "$hardcode_action_F77" >&6; }
14593 if test "$hardcode_action_F77" = relink; then
14594 # Fast installation is not supported
14595 enable_fast_install=no
14596 elif test "$shlibpath_overrides_runpath" = yes ||
14597 test "$enable_shared" = no; then
14598 # Fast installation is not necessary
14599 enable_fast_install=needless
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14605 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14606 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14607 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14608 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14610 $as_echo "yes" >&6; }
14612 # FIXME - insert some real tests, host_os isn't really good enough
14615 if test -n "$STRIP" ; then
14616 striplib="$STRIP -x"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14618 $as_echo "yes" >&6; }
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14633 # The else clause should only fire when bootstrapping the
14634 # libtool distribution, otherwise you forgot to ship ltmain.sh
14635 # with your package, and you will get complaints that there are
14636 # no rules to generate ltmain.sh.
14637 if test -f "$ltmain"; then
14638 # See if we are running on zsh, and set the options which allow our commands through
14639 # without removal of \ escapes.
14640 if test -n "${ZSH_VERSION+set}" ; then
14641 setopt NO_GLOB_SUBST
14643 # Now quote all the things that may contain metacharacters while being
14644 # careful not to overquote the AC_SUBSTed values. We take copies of the
14645 # variables and quote the copies for generation of the libtool script.
14646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14650 deplibs_check_method reload_flag reload_cmds need_locks \
14651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14652 lt_cv_sys_global_symbol_to_c_name_address \
14653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14654 old_postinstall_cmds old_postuninstall_cmds \
14658 lt_prog_compiler_wl_F77 \
14659 lt_prog_compiler_pic_F77 \
14660 lt_prog_compiler_static_F77 \
14661 lt_prog_compiler_no_builtin_flag_F77 \
14662 export_dynamic_flag_spec_F77 \
14663 thread_safe_flag_spec_F77 \
14664 whole_archive_flag_spec_F77 \
14665 enable_shared_with_static_runtimes_F77 \
14666 old_archive_cmds_F77 \
14667 old_archive_from_new_cmds_F77 \
14668 predep_objects_F77 \
14669 postdep_objects_F77 \
14672 compiler_lib_search_path_F77 \
14674 archive_expsym_cmds_F77 \
14675 postinstall_cmds_F77 \
14676 postuninstall_cmds_F77 \
14677 old_archive_from_expsyms_cmds_F77 \
14678 allow_undefined_flag_F77 \
14679 no_undefined_flag_F77 \
14680 export_symbols_cmds_F77 \
14681 hardcode_libdir_flag_spec_F77 \
14682 hardcode_libdir_flag_spec_ld_F77 \
14683 hardcode_libdir_separator_F77 \
14684 hardcode_automatic_F77 \
14686 module_expsym_cmds_F77 \
14687 lt_cv_prog_compiler_c_o_F77 \
14688 exclude_expsyms_F77 \
14689 include_expsyms_F77; do
14692 old_archive_cmds_F77 | \
14693 old_archive_from_new_cmds_F77 | \
14694 archive_cmds_F77 | \
14695 archive_expsym_cmds_F77 | \
14696 module_cmds_F77 | \
14697 module_expsym_cmds_F77 | \
14698 old_archive_from_expsyms_cmds_F77 | \
14699 export_symbols_cmds_F77 | \
14700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14701 postinstall_cmds | postuninstall_cmds | \
14702 old_postinstall_cmds | old_postuninstall_cmds | \
14703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14704 # Double-quote double-evaled strings.
14705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14714 *'\$0 --fallback-echo"')
14715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14721 cat <<__EOF__ >> "$cfgfile"
14722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14726 # Shell to use when invoking shell scripts.
14729 # Whether or not to build shared libraries.
14730 build_libtool_libs=$enable_shared
14732 # Whether or not to build static libraries.
14733 build_old_libs=$enable_static
14735 # Whether or not to add -lc for building shared libraries.
14736 build_libtool_need_lc=$archive_cmds_need_lc_F77
14738 # Whether or not to disallow shared libs when runtime libs are static
14739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14741 # Whether or not to optimize for fast installation.
14742 fast_install=$enable_fast_install
14745 host_alias=$host_alias
14748 # An echo program that does not interpret backslashes.
14753 AR_FLAGS=$lt_AR_FLAGS
14758 # A language-specific compiler.
14759 CC=$lt_compiler_F77
14761 # Is the compiler the GNU C compiler?
14767 # The linker used to build libraries.
14770 # Whether we need hard or soft links.
14773 # A BSD-compatible nm program.
14776 # A symbol stripping program
14779 # Used to examine libraries when file_magic_cmd begins "file"
14780 MAGIC_CMD=$MAGIC_CMD
14782 # Used on cygwin: DLL creation program.
14785 # Used on cygwin: object dumper.
14788 # Used on cygwin: assembler.
14791 # The name of the directory that contains temporary libtool files.
14794 # How to create reloadable object files.
14795 reload_flag=$lt_reload_flag
14796 reload_cmds=$lt_reload_cmds
14798 # How to pass a linker flag through the compiler.
14799 wl=$lt_lt_prog_compiler_wl_F77
14801 # Object file suffix (normally "o").
14802 objext="$ac_objext"
14804 # Old archive suffix (normally "a").
14807 # Shared library suffix (normally ".so").
14810 # Executable file suffix (normally "").
14813 # Additional compiler flags for building library objects.
14814 pic_flag=$lt_lt_prog_compiler_pic_F77
14817 # What is the maximum length of a command?
14818 max_cmd_len=$lt_cv_sys_max_cmd_len
14820 # Does compiler simultaneously support -c and -o options?
14821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14823 # Must we lock files when doing compilation ?
14824 need_locks=$lt_need_locks
14826 # Do we need the lib prefix for modules?
14827 need_lib_prefix=$need_lib_prefix
14829 # Do we need a version for libraries?
14830 need_version=$need_version
14832 # Whether dlopen is supported.
14833 dlopen_support=$enable_dlopen
14835 # Whether dlopen of programs is supported.
14836 dlopen_self=$enable_dlopen_self
14838 # Whether dlopen of statically linked programs is supported.
14839 dlopen_self_static=$enable_dlopen_self_static
14841 # Compiler flag to prevent dynamic linking.
14842 link_static_flag=$lt_lt_prog_compiler_static_F77
14844 # Compiler flag to turn off builtin functions.
14845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14847 # Compiler flag to allow reflexive dlopens.
14848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14850 # Compiler flag to generate shared objects directly from archives.
14851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14853 # Compiler flag to generate thread-safe objects.
14854 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14856 # Library versioning type.
14857 version_type=$version_type
14859 # Format of library name prefix.
14860 libname_spec=$lt_libname_spec
14862 # List of archive names. First name is the real one, the rest are links.
14863 # The last name is the one that the linker finds with -lNAME.
14864 library_names_spec=$lt_library_names_spec
14866 # The coded name of the library, if different from the real name.
14867 soname_spec=$lt_soname_spec
14869 # Commands used to build and install an old-style archive.
14871 old_archive_cmds=$lt_old_archive_cmds_F77
14872 old_postinstall_cmds=$lt_old_postinstall_cmds
14873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14875 # Create an old-style archive from a shared archive.
14876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14878 # Create a temporary old-style archive to link instead of a shared archive.
14879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14881 # Commands used to build and install a shared archive.
14882 archive_cmds=$lt_archive_cmds_F77
14883 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14884 postinstall_cmds=$lt_postinstall_cmds
14885 postuninstall_cmds=$lt_postuninstall_cmds
14887 # Commands used to build a loadable module (assumed same as above if empty)
14888 module_cmds=$lt_module_cmds_F77
14889 module_expsym_cmds=$lt_module_expsym_cmds_F77
14891 # Commands to strip libraries.
14892 old_striplib=$lt_old_striplib
14893 striplib=$lt_striplib
14895 # Dependencies to place before the objects being linked to create a
14897 predep_objects=$lt_predep_objects_F77
14899 # Dependencies to place after the objects being linked to create a
14901 postdep_objects=$lt_postdep_objects_F77
14903 # Dependencies to place before the objects being linked to create a
14905 predeps=$lt_predeps_F77
14907 # Dependencies to place after the objects being linked to create a
14909 postdeps=$lt_postdeps_F77
14911 # The library search path used internally by the compiler when linking
14912 # a shared library.
14913 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14915 # Method to check whether dependent libraries are shared objects.
14916 deplibs_check_method=$lt_deplibs_check_method
14918 # Command to use when deplibs_check_method == file_magic.
14919 file_magic_cmd=$lt_file_magic_cmd
14921 # Flag that allows shared libraries with undefined symbols to be built.
14922 allow_undefined_flag=$lt_allow_undefined_flag_F77
14924 # Flag that forces no undefined symbols.
14925 no_undefined_flag=$lt_no_undefined_flag_F77
14927 # Commands used to finish a libtool library installation in a directory.
14928 finish_cmds=$lt_finish_cmds
14930 # Same as above, but a single script fragment to be evaled but not shown.
14931 finish_eval=$lt_finish_eval
14933 # Take the output of nm and produce a listing of raw symbols and C names.
14934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14936 # Transform the output of nm in a proper C declaration
14937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14939 # Transform the output of nm in a C name address pair
14940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14942 # This is the shared library runtime path variable.
14943 runpath_var=$runpath_var
14945 # This is the shared library path variable.
14946 shlibpath_var=$shlibpath_var
14948 # Is shlibpath searched before the hard-coded library search path?
14949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14951 # How to hardcode a shared library path into an executable.
14952 hardcode_action=$hardcode_action_F77
14954 # Whether we should hardcode library paths into libraries.
14955 hardcode_into_libs=$hardcode_into_libs
14957 # Flag to hardcode \$libdir into a binary during linking.
14958 # This must work even if \$libdir does not exist.
14959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14961 # If ld is used when linking, flag to hardcode \$libdir into
14962 # a binary during linking. This must work even if \$libdir does
14964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14966 # Whether we need a single -rpath flag with a separated argument.
14967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14969 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14970 # resulting binary.
14971 hardcode_direct=$hardcode_direct_F77
14973 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14974 # resulting binary.
14975 hardcode_minus_L=$hardcode_minus_L_F77
14977 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14978 # the resulting binary.
14979 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14981 # Set to yes if building a shared library automatically hardcodes DIR into the library
14982 # and all subsequent libraries and executables linked against it.
14983 hardcode_automatic=$hardcode_automatic_F77
14985 # Variables whose values should be saved in libtool wrapper scripts and
14986 # restored at relink time.
14987 variables_saved_for_relink="$variables_saved_for_relink"
14989 # Whether libtool must link a program against all its dependency libraries.
14990 link_all_deplibs=$link_all_deplibs_F77
14992 # Compile-time system search path for libraries
14993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14995 # Run-time system search path for libraries
14996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14998 # Fix the shell variable \$srcfile for the compiler.
14999 fix_srcfile_path="$fix_srcfile_path_F77"
15001 # Set to yes if exported symbols are required.
15002 always_export_symbols=$always_export_symbols_F77
15004 # The commands to list exported symbols.
15005 export_symbols_cmds=$lt_export_symbols_cmds_F77
15007 # The commands to extract the exported symbol list from a shared archive.
15008 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15010 # Symbols that should not be listed in the preloaded symbols.
15011 exclude_expsyms=$lt_exclude_expsyms_F77
15013 # Symbols that must always be exported.
15014 include_expsyms=$lt_include_expsyms_F77
15016 # ### END LIBTOOL TAG CONFIG: $tagname
15022 # If there is no Makefile yet, we rely on a make rule to execute
15023 # `config.status --recheck' to rerun these tests and create the
15024 # libtool script then.
15025 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15026 if test -f "$ltmain_in"; then
15027 test -f Makefile && make "$ltmain"
15033 ac_cpp='$CPP $CPPFLAGS'
15034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15046 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15049 # Source file extension for Java test sources.
15052 # Object file extension for compiled Java test sources.
15056 # Code to be used in simple compile tests
15057 lt_simple_compile_test_code="class foo {}\n"
15059 # Code to be used in simple link tests
15060 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15064 # If no C compiler was specified, use CC.
15067 # Allow CC to be a program name with arguments.
15071 # Allow CC to be a program name with arguments.
15077 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15078 archive_cmds_need_lc_GCJ=no
15081 lt_prog_compiler_no_builtin_flag_GCJ=
15083 if test "$GCC" = yes; then
15084 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
15092 lt_cv_prog_compiler_rtti_exceptions=no
15093 ac_outfile=conftest.$ac_objext
15094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="-fno-rtti -fno-exceptions"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15108 cat conftest.err >&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings
15113 if test ! -s conftest.err; then
15114 lt_cv_prog_compiler_rtti_exceptions=yes
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15123 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15124 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15131 lt_prog_compiler_wl_GCJ=
15132 lt_prog_compiler_pic_GCJ=
15133 lt_prog_compiler_static_GCJ=
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138 if test "$GCC" = yes; then
15139 lt_prog_compiler_wl_GCJ='-Wl,'
15140 lt_prog_compiler_static_GCJ='-static'
15144 # All AIX code is PIC.
15145 if test "$host_cpu" = ia64; then
15146 # AIX 5 now supports IA64 processor
15147 lt_prog_compiler_static_GCJ='-Bstatic'
15152 # FIXME: we need at least 68020 code to build shared libraries, but
15153 # adding the `-m68020' flag to GCC prevents building anything better,
15155 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15159 # PIC is the default for these OSes.
15162 mingw* | pw32* | os2*)
15163 # This hack is so that the source file can tell whether it is being
15164 # built for inclusion in a dll (and should export symbols for example).
15165 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15168 darwin* | rhapsody*)
15169 # PIC is the default on this platform
15170 # Common symbols not allowed in MH_DYLIB files
15171 lt_prog_compiler_pic_GCJ='-fno-common'
15175 # Just because we use GCC doesn't mean we suddenly get shared libraries
15176 # on systems that don't support them.
15177 lt_prog_compiler_can_build_shared_GCJ=no
15182 if test -d /usr/nec; then
15183 lt_prog_compiler_pic_GCJ=-Kconform_pic
15188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15189 # not for PA HP-UX.
15190 case "$host_cpu" in
15195 lt_prog_compiler_pic_GCJ='-fPIC'
15201 lt_prog_compiler_pic_GCJ='-fPIC'
15205 # PORTME Check for flag to pass linker flags through the system compiler.
15208 lt_prog_compiler_wl_GCJ='-Wl,'
15209 if test "$host_cpu" = ia64; then
15210 # AIX 5 now supports IA64 processor
15211 lt_prog_compiler_static_GCJ='-Bstatic'
15213 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15217 mingw* | pw32* | os2*)
15218 # This hack is so that the source file can tell whether it is being
15219 # built for inclusion in a dll (and should export symbols for example).
15220 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15223 hpux9* | hpux10* | hpux11*)
15224 lt_prog_compiler_wl_GCJ='-Wl,'
15225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15226 # not for PA HP-UX.
15227 case "$host_cpu" in
15232 lt_prog_compiler_pic_GCJ='+Z'
15235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15236 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15239 irix5* | irix6* | nonstopux*)
15240 lt_prog_compiler_wl_GCJ='-Wl,'
15241 # PIC (with -KPIC) is the default.
15242 lt_prog_compiler_static_GCJ='-non_shared'
15246 lt_prog_compiler_pic_GCJ='-KPIC'
15247 lt_prog_compiler_static_GCJ='-Bstatic'
15253 lt_prog_compiler_wl_GCJ='-Wl,'
15254 lt_prog_compiler_pic_GCJ='-KPIC'
15255 lt_prog_compiler_static_GCJ='-static'
15258 lt_prog_compiler_wl_GCJ='-Wl,'
15259 # All Alpha code is PIC.
15260 lt_prog_compiler_static_GCJ='-non_shared'
15265 osf3* | osf4* | osf5*)
15266 lt_prog_compiler_wl_GCJ='-Wl,'
15267 # All OSF/1 code is PIC.
15268 lt_prog_compiler_static_GCJ='-non_shared'
15272 lt_prog_compiler_pic_GCJ='-Kpic'
15273 lt_prog_compiler_static_GCJ='-dn'
15277 lt_prog_compiler_wl_GCJ='-Wl,'
15278 lt_prog_compiler_pic_GCJ='-KPIC'
15279 lt_prog_compiler_static_GCJ='-Bstatic'
15283 lt_prog_compiler_wl_GCJ='-Qoption ld '
15284 lt_prog_compiler_pic_GCJ='-PIC'
15285 lt_prog_compiler_static_GCJ='-Bstatic'
15288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15289 lt_prog_compiler_wl_GCJ='-Wl,'
15290 lt_prog_compiler_pic_GCJ='-KPIC'
15291 lt_prog_compiler_static_GCJ='-Bstatic'
15295 if test -d /usr/nec ;then
15296 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15297 lt_prog_compiler_static_GCJ='-Bstatic'
15302 lt_prog_compiler_pic_GCJ='-pic'
15303 lt_prog_compiler_static_GCJ='-Bstatic'
15307 lt_prog_compiler_can_build_shared_GCJ=no
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15313 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15316 # Check to make sure the PIC flag actually works.
15318 if test -n "$lt_prog_compiler_pic_GCJ"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15321 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15322 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
15323 $as_echo_n "(cached) " >&6
15325 lt_prog_compiler_pic_works_GCJ=no
15326 ac_outfile=conftest.$ac_objext
15327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15328 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15329 # Insert the option either (1) after the last *FLAGS variable, or
15330 # (2) before a word containing "conftest.", or (3) at the end.
15331 # Note that $ac_compile itself does not contain backslashes and begins
15332 # with a dollar sign (not a hyphen), so the echo should work correctly.
15333 # The option is referenced via a variable to avoid confusing sed.
15334 lt_compile=`echo "$ac_compile" | $SED \
15335 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15337 -e 's:$: $lt_compiler_flag:'`
15338 (eval echo "\"\$as_me:15338: $lt_compile\"" >&5)
15339 (eval "$lt_compile" 2>conftest.err)
15341 cat conftest.err >&5
15342 echo "$as_me:15342: \$? = $ac_status" >&5
15343 if (exit $ac_status) && test -s "$ac_outfile"; then
15344 # The compiler can only warn and ignore the option if not recognized
15345 # So say no if there are warnings
15346 if test ! -s conftest.err; then
15347 lt_prog_compiler_pic_works_GCJ=yes
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15354 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15356 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15357 case $lt_prog_compiler_pic_GCJ in
15359 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15362 lt_prog_compiler_pic_GCJ=
15363 lt_prog_compiler_can_build_shared_GCJ=no
15368 # For platforms which do not support PIC, -DPIC is meaningless:
15370 lt_prog_compiler_pic_GCJ=
15373 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15379 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
15380 $as_echo_n "(cached) " >&6
15382 lt_cv_prog_compiler_c_o_GCJ=no
15383 $rm -r conftest 2>/dev/null
15387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15389 lt_compiler_flag="-o out/conftest2.$ac_objext"
15390 # Insert the option either (1) after the last *FLAGS variable, or
15391 # (2) before a word containing "conftest.", or (3) at the end.
15392 # Note that $ac_compile itself does not contain backslashes and begins
15393 # with a dollar sign (not a hyphen), so the echo should work correctly.
15394 lt_compile=`echo "$ac_compile" | $SED \
15395 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15397 -e 's:$: $lt_compiler_flag:'`
15398 (eval echo "\"\$as_me:15398: $lt_compile\"" >&5)
15399 (eval "$lt_compile" 2>out/conftest.err)
15401 cat out/conftest.err >&5
15402 echo "$as_me:15402: \$? = $ac_status" >&5
15403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15405 # The compiler can only warn and ignore the option if not recognized
15406 # So say no if there are warnings
15407 if test ! -s out/conftest.err; then
15408 lt_cv_prog_compiler_c_o_GCJ=yes
15413 # SGI C++ compiler will create directory out/ii_files/ for
15414 # template instantiation
15415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15416 $rm out/* && rmdir out
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15423 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15426 hard_links="nottested"
15427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15428 # do not overwrite the value of need_locks provided by the user
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15430 $as_echo_n "checking if we can lock with hard links... " >&6; }
15433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15435 ln conftest.a conftest.b 2>&5 || hard_links=no
15436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15438 $as_echo "$hard_links" >&6; }
15439 if test "$hard_links" = no; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15441 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15452 allow_undefined_flag_GCJ=
15453 enable_shared_with_static_runtimes_GCJ=no
15455 archive_expsym_cmds_GCJ=
15456 old_archive_From_new_cmds_GCJ=
15457 old_archive_from_expsyms_cmds_GCJ=
15458 export_dynamic_flag_spec_GCJ=
15459 whole_archive_flag_spec_GCJ=
15460 thread_safe_flag_spec_GCJ=
15461 hardcode_libdir_flag_spec_GCJ=
15462 hardcode_libdir_flag_spec_ld_GCJ=
15463 hardcode_libdir_separator_GCJ=
15464 hardcode_direct_GCJ=no
15465 hardcode_minus_L_GCJ=no
15466 hardcode_shlibpath_var_GCJ=unsupported
15467 link_all_deplibs_GCJ=unknown
15468 hardcode_automatic_GCJ=no
15470 module_expsym_cmds_GCJ=
15471 always_export_symbols_GCJ=no
15472 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15473 # include_expsyms should be a list of space-separated symbols to be *always*
15474 # included in the symbol list
15475 include_expsyms_GCJ=
15476 # exclude_expsyms can be an extended regexp of symbols to exclude
15477 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15478 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15479 # as well as any symbol that contains `d'.
15480 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15481 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15482 # platforms (ab)use it in PIC code, but their linkers get confused if
15483 # the symbol is explicitly referenced. Since portable code cannot
15484 # rely on this symbol name, it's probably fine to never include it in
15485 # preloaded symbol tables.
15486 extract_expsyms_cmds=
15489 cygwin* | mingw* | pw32*)
15490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15491 # When not using gcc, we currently assume that we are using
15492 # Microsoft Visual C++.
15493 if test "$GCC" != yes; then
15503 if test "$with_gnu_ld" = yes; then
15504 # If archive_cmds runs LD, not CC, wlarc should be empty
15507 # See if GNU ld supports shared libraries.
15509 aix3* | aix4* | aix5*)
15510 # On AIX/PPC, the GNU linker is very broken
15511 if test "$host_cpu" != ia64; then
15515 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15516 *** to be unable to reliably create shared libraries on AIX.
15517 *** Therefore, libtool is disabling shared libraries support. If you
15518 *** really care for shared libraries, you may want to modify your PATH
15519 *** so that a non-GNU linker is found, and then restart.
15526 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)'
15527 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15528 hardcode_minus_L_GCJ=yes
15530 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15531 # that the semantics of dynamic libraries on AmigaOS, at least up
15532 # to version 4, is to share data among multiple programs linked
15533 # with the same dynamic library. Since this doesn't match the
15534 # behavior of shared libraries on other platforms, we can't use
15540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541 allow_undefined_flag_GCJ=unsupported
15542 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15543 # support --undefined. This deserves some investigation. FIXME
15544 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 cygwin* | mingw* | pw32*)
15551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15552 # as there is no search path for DLLs.
15553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15554 allow_undefined_flag_GCJ=unsupported
15555 always_export_symbols_GCJ=no
15556 enable_shared_with_static_runtimes_GCJ=yes
15557 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15559 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15561 # If the export-symbols file already is a .def file (1st line
15562 # is EXPORTS), use it as is; otherwise, prepend...
15563 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15564 cp $export_symbols $output_objdir/$soname.def;
15566 echo EXPORTS > $output_objdir/$soname.def;
15567 cat $export_symbols >> $output_objdir/$soname.def;
15569 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15575 netbsd* | knetbsd*-gnu)
15576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15586 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15591 *** create shared libraries on Solaris systems. Therefore, libtool
15592 *** is disabling shared libraries support. We urge you to upgrade GNU
15593 *** binutils to release 2.9.1 or newer. Another option is to modify
15594 *** your PATH or compiler configuration so that the native linker is
15595 *** used, and then restart.
15598 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15599 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15607 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15609 hardcode_direct_GCJ=yes
15610 hardcode_shlibpath_var_GCJ=no
15614 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15615 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 archive_cmds_GCJ="$tmp_archive_cmds"
15617 supports_anon_versioning=no
15618 case `$LD -v 2>/dev/null` in
15619 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15622 *\ 2.11.*) ;; # other 2.11 versions
15623 *) supports_anon_versioning=yes ;;
15625 if test $supports_anon_versioning = yes; then
15626 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15628 $echo "local: *; };" >> $output_objdir/$libname.ver~
15629 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15631 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15641 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15648 if test "$ld_shlibs_GCJ" = yes; then
15649 runpath_var=LD_RUN_PATH
15650 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15651 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15652 # ancient GNU ld didn't support --whole-archive et. al.
15653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15654 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15656 whole_archive_flag_spec_GCJ=
15660 # PORTME fill in a description of your system's linker (not GNU ld)
15663 allow_undefined_flag_GCJ=unsupported
15664 always_export_symbols_GCJ=yes
15665 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'
15666 # Note: this linker hardcodes the directories in LIBPATH if there
15667 # are no directories specified by -L.
15668 hardcode_minus_L_GCJ=yes
15669 if test "$GCC" = yes && test -z "$link_static_flag"; then
15670 # Neither direct hardcoding nor static linking is supported with a
15672 hardcode_direct_GCJ=unsupported
15677 if test "$host_cpu" = ia64; then
15678 # On IA64, the linker does run time linking by default, so we don't
15679 # have to do anything special.
15680 aix_use_runtimelinking=no
15681 exp_sym_flag='-Bexport'
15684 # If we're using GNU nm, then we don't want the "-C" option.
15685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15686 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15687 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'
15689 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'
15691 aix_use_runtimelinking=no
15693 # Test if we are trying to use run time linking or normal
15694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15695 # need to do runtime linking.
15696 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15697 for ld_flag in $LDFLAGS; do
15698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15699 aix_use_runtimelinking=yes
15705 exp_sym_flag='-bexport'
15706 no_entry_flag='-bnoentry'
15709 # When large executables or shared objects are built, AIX ld can
15710 # have problems creating the table of contents. If linking a library
15711 # or program results in "error TOC overflow" add -mminimal-toc to
15712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15715 archive_cmds_GCJ=''
15716 hardcode_direct_GCJ=yes
15717 hardcode_libdir_separator_GCJ=':'
15718 link_all_deplibs_GCJ=yes
15720 if test "$GCC" = yes; then
15721 case $host_os in aix4.012|aix4.012.*)
15722 # We only want to do this on AIX 4.2 and lower, the check
15723 # below for broken collect2 doesn't work under 4.3+
15724 collect2name=`${CC} -print-prog-name=collect2`
15725 if test -f "$collect2name" && \
15726 strings "$collect2name" | grep resolve_lib_name >/dev/null
15728 # We have reworked collect2
15729 hardcode_direct_GCJ=yes
15731 # We have old collect2
15732 hardcode_direct_GCJ=unsupported
15733 # It fails to find uninstalled libraries when the uninstalled
15734 # path is not listed in the libpath. Setting hardcode_minus_L
15735 # to unsupported forces relinking
15736 hardcode_minus_L_GCJ=yes
15737 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15738 hardcode_libdir_separator_GCJ=
15741 shared_flag='-shared'
15744 if test "$host_cpu" = ia64; then
15745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15746 # chokes on -Wl,-G. The following line is correct:
15749 if test "$aix_use_runtimelinking" = yes; then
15750 shared_flag='${wl}-G'
15752 shared_flag='${wl}-bM:SRE'
15757 # It seems that -bexpall does not export symbols beginning with
15758 # underscore (_), so it is better to generate a list of symbols to export.
15759 always_export_symbols_GCJ=yes
15760 if test "$aix_use_runtimelinking" = yes; then
15761 # Warning - without using the other runtime loading flags (-brtl),
15762 # -berok will link without error, but may produce a broken library.
15763 allow_undefined_flag_GCJ='-berok'
15764 # Determine the default libpath from the value encoded in an empty executable.
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15776 if ac_fn_c_try_link "$LINENO"; then :
15778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15780 # Check for a 64-bit object if we didn't find anything.
15781 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15784 rm -f core conftest.err conftest.$ac_objext \
15785 conftest$ac_exeext conftest.$ac_ext
15786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15788 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15789 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15791 if test "$host_cpu" = ia64; then
15792 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15793 allow_undefined_flag_GCJ="-z nodefs"
15794 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15796 # Determine the default libpath from the value encoded in an empty executable.
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15808 if ac_fn_c_try_link "$LINENO"; then :
15810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15812 # Check for a 64-bit object if we didn't find anything.
15813 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15816 rm -f core conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15820 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15821 # Warning - without using the other run time loading flags,
15822 # -berok will link without error, but may produce a broken library.
15823 no_undefined_flag_GCJ=' ${wl}-bernotok'
15824 allow_undefined_flag_GCJ=' ${wl}-berok'
15825 # -bexpall does not export symbols beginning with underscore (_)
15826 always_export_symbols_GCJ=yes
15827 # Exported symbols can be pulled into shared objects from archives
15828 whole_archive_flag_spec_GCJ=' '
15829 archive_cmds_need_lc_GCJ=yes
15830 # This is similar to how AIX traditionally builds it's shared libraries.
15831 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15837 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)'
15838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15839 hardcode_minus_L_GCJ=yes
15840 # see comment about different semantics on the GNU ld section
15845 export_dynamic_flag_spec_GCJ=-rdynamic
15848 cygwin* | mingw* | pw32*)
15849 # When not using gcc, we currently assume that we are using
15850 # Microsoft Visual C++.
15851 # hardcode_libdir_flag_spec is actually meaningless, as there is
15852 # no search path for DLLs.
15853 hardcode_libdir_flag_spec_GCJ=' '
15854 allow_undefined_flag_GCJ=unsupported
15855 # Tell ltmain to make .lib files, not .a files.
15857 # Tell ltmain to make .dll files, not .so files.
15859 # FIXME: Setting linknames here is a bad hack.
15860 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15861 # The linker will automatically build a .lib file if we build a DLL.
15862 old_archive_From_new_cmds_GCJ='true'
15863 # FIXME: Should let the user specify the lib program.
15864 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15865 fix_srcfile_path='`cygpath -w "$srcfile"`'
15866 enable_shared_with_static_runtimes_GCJ=yes
15869 darwin* | rhapsody*)
15870 if test "$GXX" = yes ; then
15871 archive_cmds_need_lc_GCJ=no
15873 rhapsody* | darwin1.[012])
15874 allow_undefined_flag_GCJ='-undefined suppress'
15877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15880 case ${MACOSX_DEPLOYMENT_TARGET} in
15882 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15885 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15891 lt_int_apple_cc_single_mod=no
15892 output_verbose_link_cmd='echo'
15893 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15894 lt_int_apple_cc_single_mod=yes
15896 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15897 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15899 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15901 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15903 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15904 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15906 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15908 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}'
15909 hardcode_direct_GCJ=no
15910 hardcode_automatic_GCJ=yes
15911 hardcode_shlibpath_var_GCJ=unsupported
15912 whole_archive_flag_spec_GCJ='-all_load $convenience'
15913 link_all_deplibs_GCJ=yes
15920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15922 hardcode_shlibpath_var_GCJ=no
15929 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15930 # support. Future versions do this automatically, but an explicit c++rt0.o
15931 # does not break anything, and helps significantly (at the cost of a little
15934 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15936 hardcode_direct_GCJ=yes
15937 hardcode_shlibpath_var_GCJ=no
15940 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15942 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_direct_GCJ=yes
15944 hardcode_minus_L_GCJ=yes
15945 hardcode_shlibpath_var_GCJ=no
15948 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15949 freebsd* | kfreebsd*-gnu)
15950 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15952 hardcode_direct_GCJ=yes
15953 hardcode_shlibpath_var_GCJ=no
15957 if test "$GCC" = yes; then
15958 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'
15960 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'
15962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963 hardcode_libdir_separator_GCJ=:
15964 hardcode_direct_GCJ=yes
15966 # hardcode_minus_L: Not really in the search PATH,
15967 # but as the default location of the library.
15968 hardcode_minus_L_GCJ=yes
15969 export_dynamic_flag_spec_GCJ='${wl}-E'
15973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15974 case "$host_cpu" in
15976 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15983 case "$host_cpu" in
15985 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15988 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15992 if test "$with_gnu_ld" = no; then
15993 case "$host_cpu" in
15995 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15996 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15997 hardcode_libdir_separator_GCJ=:
15998 hardcode_direct_GCJ=no
15999 hardcode_shlibpath_var_GCJ=no
16002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16003 hardcode_direct_GCJ=no
16004 hardcode_shlibpath_var_GCJ=no
16006 # hardcode_minus_L: Not really in the search PATH,
16007 # but as the default location of the library.
16008 hardcode_minus_L_GCJ=yes
16011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16012 hardcode_libdir_separator_GCJ=:
16013 hardcode_direct_GCJ=yes
16014 export_dynamic_flag_spec_GCJ='${wl}-E'
16016 # hardcode_minus_L: Not really in the search PATH,
16017 # but as the default location of the library.
16018 hardcode_minus_L_GCJ=yes
16024 irix5* | irix6* | nonstopux*)
16025 if test "$GCC" = yes; then
16026 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'
16028 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'
16029 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032 hardcode_libdir_separator_GCJ=:
16033 link_all_deplibs_GCJ=yes
16036 netbsd* | knetbsd*-gnu)
16037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16038 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16040 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16043 hardcode_direct_GCJ=yes
16044 hardcode_shlibpath_var_GCJ=no
16048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_direct_GCJ=yes
16050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16051 hardcode_libdir_separator_GCJ=:
16052 hardcode_shlibpath_var_GCJ=no
16056 hardcode_direct_GCJ=yes
16057 hardcode_shlibpath_var_GCJ=no
16058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16059 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16061 export_dynamic_flag_spec_GCJ='${wl}-E'
16064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16069 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16078 hardcode_minus_L_GCJ=yes
16079 allow_undefined_flag_GCJ=unsupported
16080 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'
16081 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16085 if test "$GCC" = yes; then
16086 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16087 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'
16089 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16090 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'
16092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16093 hardcode_libdir_separator_GCJ=:
16096 osf4* | osf5*) # as osf3* with the addition of -msym flag
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16102 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16103 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'
16104 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~
16105 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16107 # Both c and cxx compiler support -rpath directly
16108 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16110 hardcode_libdir_separator_GCJ=:
16114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var_GCJ=no
16116 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16117 runpath_var=LD_RUN_PATH
16118 hardcode_runpath_var=yes
16122 no_undefined_flag_GCJ=' -z text'
16123 if test "$GCC" = yes; then
16124 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16126 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16128 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16130 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16132 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16133 hardcode_shlibpath_var_GCJ=no
16135 solaris2.[0-5] | solaris2.[0-5].*) ;;
16136 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16137 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16139 link_all_deplibs_GCJ=yes
16143 if test "x$host_vendor" = xsequent; then
16144 # Use $CC to link under sequent, because it throws in some extra .o
16145 # files that make .init and .fini sections work.
16146 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151 hardcode_direct_GCJ=yes
16152 hardcode_minus_L_GCJ=yes
16153 hardcode_shlibpath_var_GCJ=no
16157 case $host_vendor in
16159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct_GCJ=yes # is this really true???
16163 ## LD is ld it makes a PLAMLIB
16164 ## CC just makes a GrossModule.
16165 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16167 hardcode_direct_GCJ=no
16170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var_GCJ=no
16179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var_GCJ=no
16181 export_dynamic_flag_spec_GCJ='-Bexport'
16185 if test -d /usr/nec; then
16186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var_GCJ=no
16188 runpath_var=LD_RUN_PATH
16189 hardcode_runpath_var=yes
16195 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_direct_GCJ=yes
16197 hardcode_minus_L_GCJ=no
16198 hardcode_shlibpath_var_GCJ=no
16199 hardcode_runpath_var=yes
16200 runpath_var=LD_RUN_PATH
16203 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16204 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16205 if test "$GCC" = yes; then
16206 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16210 runpath_var='LD_RUN_PATH'
16211 hardcode_shlibpath_var_GCJ=no
16215 no_undefined_flag_GCJ=' -z text'
16216 # $CC -shared without GNU ld will not create a library from C++
16217 # object files and a static libstdc++, better avoid it by now
16218 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16219 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16221 hardcode_libdir_flag_spec_GCJ=
16222 hardcode_shlibpath_var_GCJ=no
16223 runpath_var='LD_RUN_PATH'
16227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16229 hardcode_shlibpath_var_GCJ=no
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16239 $as_echo "$ld_shlibs_GCJ" >&6; }
16240 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16243 if test "$GCC" = yes; then
16244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16248 # Do we need to explicitly link libc?
16250 case "x$archive_cmds_need_lc_GCJ" in
16252 # Assume -lc should be added
16253 archive_cmds_need_lc_GCJ=yes
16255 if test "$enable_shared" = yes && test "$GCC" = yes; then
16256 case $archive_cmds_GCJ in
16258 # FIXME: we may have to deal with multi-command sequences.
16261 # Test whether the compiler implicitly links with -lc since on some
16262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16263 # to ld, don't add -lc before -lgcc.
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16265 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16270 (eval $ac_compile) 2>&5
16272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273 test $ac_status = 0; } 2>conftest.err; then
16276 libobjs=conftest.$ac_objext
16278 wl=$lt_prog_compiler_wl_GCJ
16284 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16285 allow_undefined_flag_GCJ=
16286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16287 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290 test $ac_status = 0; }
16292 archive_cmds_need_lc_GCJ=no
16294 archive_cmds_need_lc_GCJ=yes
16296 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16298 cat conftest.err 1>&5
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
16302 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16311 library_names_spec=
16312 libname_spec='lib$name'
16316 postuninstall_cmds=
16320 shlibpath_overrides_runpath=unknown
16322 dynamic_linker="$host_os ld.so"
16323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16324 if test "$GCC" = yes; then
16325 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16326 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16327 # if the path contains ";" then we assume it to be the separator
16328 # otherwise default to the standard path separator (i.e. ":") - it is
16329 # assumed that no part of a normal pathname contains ";" but that should
16330 # okay in the real world where ";" in dirpaths is itself problematic.
16331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16338 need_lib_prefix=unknown
16339 hardcode_into_libs=no
16341 # when you set need_version to no, make sure it does not cause -set_version
16342 # flags to be left without arguments
16343 need_version=unknown
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16349 shlibpath_var=LIBPATH
16351 # AIX 3 has no versioning support, so we append a major version to the name.
16352 soname_spec='${libname}${release}${shared_ext}$major'
16359 hardcode_into_libs=yes
16360 if test "$host_cpu" = ia64; then
16361 # AIX 5 supports IA64
16362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16363 shlibpath_var=LD_LIBRARY_PATH
16365 # With GCC up to 2.95.x, collect2 would create an import file
16366 # for dependence libraries. The import file would start with
16367 # the line `#! .'. This would cause the generated library to
16368 # depend on `.', always an invalid library. This was fixed in
16369 # development snapshots of GCC prior to 3.0.
16371 aix4 | aix4.[01] | aix4.[01].*)
16372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16374 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16377 can_build_shared=no
16381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16382 # soname into executable. Probably we can add versioning support to
16383 # collect2, so additional links can be useful in future.
16384 if test "$aix_use_runtimelinking" = yes; then
16385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16386 # instead of lib<name>.a to let people know that these are not
16387 # typical AIX shared libraries.
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390 # We preserve .a as extension for shared libraries through AIX4.2
16391 # and later when we are not doing run time linking.
16392 library_names_spec='${libname}${release}.a $libname.a'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16395 shlibpath_var=LIBPATH
16400 library_names_spec='$libname.ixlibrary $libname.a'
16401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402 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'
16406 library_names_spec='${libname}${shared_ext}'
16407 dynamic_linker="$host_os ld.so"
16408 shlibpath_var=LIBRARY_PATH
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16420 # the default ld.so.conf also contains /usr/contrib/lib and
16421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16422 # libtool to hard-code these into programs
16425 cygwin* | mingw* | pw32*)
16426 version_type=windows
16431 case $GCC,$host_os in
16432 yes,cygwin* | yes,mingw* | yes,pw32*)
16433 library_names_spec='$libname.dll.a'
16434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16435 postinstall_cmds='base_file=`basename \${file}`~
16436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16437 dldir=$destdir/`dirname \$dlpath`~
16438 test -d \$dldir || mkdir -p \$dldir~
16439 $install_prog $dir/$dlname \$dldir/$dlname'
16440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16441 dlpath=$dir/\$dldll~
16443 shlibpath_overrides_runpath=yes
16447 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16448 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16449 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16452 # MinGW DLLs use traditional 'lib' prefix
16453 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16455 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16456 # It is most probably a Windows format PATH printed by
16457 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16458 # path with ; separators, and with drive letters. We can handle the
16459 # drive letters (cygwin fileutils understands them), so leave them,
16460 # especially as we might pass files found there to a mingw objdump,
16461 # which wouldn't understand a cygwinified path. Ahh.
16462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16468 # pw32 DLLs use 'pw' prefix rather than 'lib'
16469 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16475 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16478 dynamic_linker='Win32 ld.exe'
16479 # FIXME: first we should search . and the directory the executable is in
16483 darwin* | rhapsody*)
16484 dynamic_linker="$host_os dyld"
16485 version_type=darwin
16488 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16489 soname_spec='${libname}${release}${major}$shared_ext'
16490 shlibpath_overrides_runpath=yes
16491 shlibpath_var=DYLD_LIBRARY_PATH
16492 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16493 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16494 if test "$GCC" = yes; then
16495 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16497 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=no
16523 hardcode_into_libs=yes
16524 dynamic_linker='GNU ld.so'
16528 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16529 version_type=freebsd-$objformat
16530 case $version_type in
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16541 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes
16546 freebsd3.01* | freebsdelf3.01*)
16547 shlibpath_overrides_runpath=yes
16548 hardcode_into_libs=yes
16551 shlibpath_overrides_runpath=no
16552 hardcode_into_libs=yes
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 hardcode_into_libs=yes
16567 hpux9* | hpux10* | hpux11*)
16568 # Give a soname corresponding to the major version so that dld.sl refuses to
16569 # link against other versions.
16573 case "$host_cpu" in
16576 hardcode_into_libs=yes
16577 dynamic_linker="$host_os dld.so"
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 if test "X$HPUX_IA64_MODE" = X32; then
16583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591 hardcode_into_libs=yes
16592 dynamic_linker="$host_os dld.sl"
16593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16602 dynamic_linker="$host_os dld.sl"
16603 shlibpath_var=SHLIB_PATH
16604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16610 postinstall_cmds='chmod 555 $lib'
16613 irix5* | irix6* | nonstopux*)
16615 nonstopux*) version_type=nonstopux ;;
16617 if test "$lt_cv_prog_gnu_ld" = yes; then
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 irix5* | nonstopux*)
16629 libsuff= shlibsuff=
16632 case $LD in # libtool.m4 will add one of these switches to LD
16633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16634 libsuff= shlibsuff= libmagic=32-bit;;
16635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16636 libsuff=32 shlibsuff=N32 libmagic=N32;;
16637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16639 *) libsuff= shlibsuff= libmagic=never-match;;
16643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16644 shlibpath_overrides_runpath=no
16645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16647 hardcode_into_libs=yes
16650 # No shared lib support for Linux oldld, aout, or coff.
16651 linux*oldld* | linux*aout* | linux*coff*)
16655 # This must be Linux ELF.
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=no
16665 # This implies no fast_install, which is unacceptable.
16666 # Some rework will be needed to allow for fast_install
16667 # before this can be enabled.
16668 hardcode_into_libs=yes
16670 # Append ld.so.conf contents to the search path
16671 if test -f /etc/ld.so.conf; then
16672 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16673 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16676 # We used to test for /lib/ld.so.1 and disable shared libraries on
16677 # powerpc, because MkLinux only supported shared libraries with the
16678 # GNU dynamic linker. Since this was broken with cross compilers,
16679 # most powerpc-linux boxes support dynamic linking these days and
16680 # people can always --disable-shared, the test was removed, and we
16681 # assume the GNU/Linux dynamic linker is in use.
16682 dynamic_linker='GNU/Linux ld.so'
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 shlibpath_var=LD_LIBRARY_PATH
16692 shlibpath_overrides_runpath=no
16693 hardcode_into_libs=yes
16694 dynamic_linker='GNU ld.so'
16701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704 dynamic_linker='NetBSD (a.out) ld.so'
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 dynamic_linker='NetBSD ld.elf_so'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 hardcode_into_libs=yes
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 shlibpath_overrides_runpath=yes
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=yes
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16741 openbsd2.[89] | openbsd2.[89].*)
16742 shlibpath_overrides_runpath=no
16745 shlibpath_overrides_runpath=yes
16749 shlibpath_overrides_runpath=yes
16754 libname_spec='$name'
16757 library_names_spec='$libname${shared_ext} $libname.a'
16758 dynamic_linker='OS/2 ld.exe'
16759 shlibpath_var=LIBPATH
16762 osf3* | osf4* | osf5*)
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777 shlibpath_var=LD_LIBRARY_PATH
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 hardcode_into_libs=yes
16789 # ldd complains unless libraries are executable
16790 postinstall_cmds='chmod +x $lib'
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16799 if test "$with_gnu_ld" = yes; then
16805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 case $host_vendor in
16812 shlibpath_overrides_runpath=no
16814 export_dynamic_flag_spec='${wl}-Blargedynsym'
16815 runpath_var=LD_RUN_PATH
16823 shlibpath_overrides_runpath=no
16824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16830 if test -d /usr/nec ;then
16832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16833 soname_spec='$libname${shared_ext}.$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16850 $as_echo "$dynamic_linker" >&6; }
16851 test "$dynamic_linker" = no && can_build_shared=no
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16855 hardcode_action_GCJ=
16856 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16857 test -n "$runpath_var GCJ" || \
16858 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16860 # We can hardcode non-existant directories.
16861 if test "$hardcode_direct_GCJ" != no &&
16862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16863 # have to relink, otherwise we might link with an installed library
16864 # when we should be linking with a yet-to-be-installed one
16865 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16866 test "$hardcode_minus_L_GCJ" != no; then
16867 # Linking always hardcodes the temporary library directory.
16868 hardcode_action_GCJ=relink
16870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16871 hardcode_action_GCJ=immediate
16874 # We cannot hardcode anything, or else we can only hardcode existing
16876 hardcode_action_GCJ=unsupported
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16879 $as_echo "$hardcode_action_GCJ" >&6; }
16881 if test "$hardcode_action_GCJ" = relink; then
16882 # Fast installation is not supported
16883 enable_fast_install=no
16884 elif test "$shlibpath_overrides_runpath" = yes ||
16885 test "$enable_shared" = no; then
16886 # Fast installation is not necessary
16887 enable_fast_install=needless
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16893 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16894 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16895 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16896 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16898 $as_echo "yes" >&6; }
16900 # FIXME - insert some real tests, host_os isn't really good enough
16903 if test -n "$STRIP" ; then
16904 striplib="$STRIP -x"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16906 $as_echo "yes" >&6; }
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16919 if test "x$enable_dlopen" != xyes; then
16920 enable_dlopen=unknown
16921 enable_dlopen_self=unknown
16922 enable_dlopen_self_static=unknown
16929 lt_cv_dlopen="load_add_on"
16931 lt_cv_dlopen_self=yes
16935 lt_cv_dlopen="LoadLibrary"
16940 lt_cv_dlopen="dlopen"
16945 # if libdl is installed we need to link against it
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16951 ac_check_lib_save_LIBS=$LIBS
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 /* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 ac_cv_lib_dl_dlopen=yes
16974 ac_cv_lib_dl_dlopen=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16982 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16986 lt_cv_dlopen="dyld"
16988 lt_cv_dlopen_self=yes
16995 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16996 if test "x$ac_cv_func_shl_load" = x""yes; then :
16997 lt_cv_dlopen="shl_load"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17000 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17002 $as_echo_n "(cached) " >&6
17004 ac_check_lib_save_LIBS=$LIBS
17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h. */
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17019 return shl_load ();
17024 if ac_fn_c_try_link "$LINENO"; then :
17025 ac_cv_lib_dld_shl_load=yes
17027 ac_cv_lib_dld_shl_load=no
17029 rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17031 LIBS=$ac_check_lib_save_LIBS
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17034 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17035 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17036 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17038 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17039 if test "x$ac_cv_func_dlopen" = x""yes; then :
17040 lt_cv_dlopen="dlopen"
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17043 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17045 $as_echo_n "(cached) " >&6
17047 ac_check_lib_save_LIBS=$LIBS
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17052 /* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
17067 if ac_fn_c_try_link "$LINENO"; then :
17068 ac_cv_lib_dl_dlopen=yes
17070 ac_cv_lib_dl_dlopen=no
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074 LIBS=$ac_check_lib_save_LIBS
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17077 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17078 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17082 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17084 $as_echo_n "(cached) " >&6
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lsvld $LIBS"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17106 if ac_fn_c_try_link "$LINENO"; then :
17107 ac_cv_lib_svld_dlopen=yes
17109 ac_cv_lib_svld_dlopen=no
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17116 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17117 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17121 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17122 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17123 $as_echo_n "(cached) " >&6
17125 ac_check_lib_save_LIBS=$LIBS
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17130 /* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17140 return dld_link ();
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 ac_cv_lib_dld_dld_link=yes
17148 ac_cv_lib_dld_dld_link=no
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17155 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17156 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17178 if test "x$lt_cv_dlopen" != xno; then
17184 case $lt_cv_dlopen in
17186 save_CPPFLAGS="$CPPFLAGS"
17187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17189 save_LDFLAGS="$LDFLAGS"
17190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17193 LIBS="$lt_cv_dlopen_libs $LIBS"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17196 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17197 if test "${lt_cv_dlopen_self+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17200 if test "$cross_compiling" = yes; then :
17201 lt_cv_dlopen_self=cross
17203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17204 lt_status=$lt_dlunknown
17205 cat > conftest.$ac_ext <<EOF
17206 #line 17206 "configure"
17207 #include "confdefs.h"
17216 # define LT_DLGLOBAL RTLD_GLOBAL
17219 # define LT_DLGLOBAL DL_GLOBAL
17221 # define LT_DLGLOBAL 0
17225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17226 find out it does not work in some platform. */
17227 #ifndef LT_DLLAZY_OR_NOW
17229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17232 # define LT_DLLAZY_OR_NOW DL_LAZY
17235 # define LT_DLLAZY_OR_NOW RTLD_NOW
17238 # define LT_DLLAZY_OR_NOW DL_NOW
17240 # define LT_DLLAZY_OR_NOW 0
17248 extern "C" void exit (int);
17251 void fnord() { int i=42;}
17254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17255 int status = $lt_dlunknown;
17259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17261 /* dlclose (self); */
17267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17268 (eval $ac_link) 2>&5
17270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17272 (./conftest; exit; ) 2>/dev/null
17274 case x$lt_status in
17275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17280 # compilation failed
17281 lt_cv_dlopen_self=no
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17289 $as_echo "$lt_cv_dlopen_self" >&6; }
17291 if test "x$lt_cv_dlopen_self" = xyes; then
17292 LDFLAGS="$LDFLAGS $link_static_flag"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17294 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17295 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17296 $as_echo_n "(cached) " >&6
17298 if test "$cross_compiling" = yes; then :
17299 lt_cv_dlopen_self_static=cross
17301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17302 lt_status=$lt_dlunknown
17303 cat > conftest.$ac_ext <<EOF
17304 #line 17304 "configure"
17305 #include "confdefs.h"
17314 # define LT_DLGLOBAL RTLD_GLOBAL
17317 # define LT_DLGLOBAL DL_GLOBAL
17319 # define LT_DLGLOBAL 0
17323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17324 find out it does not work in some platform. */
17325 #ifndef LT_DLLAZY_OR_NOW
17327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17330 # define LT_DLLAZY_OR_NOW DL_LAZY
17333 # define LT_DLLAZY_OR_NOW RTLD_NOW
17336 # define LT_DLLAZY_OR_NOW DL_NOW
17338 # define LT_DLLAZY_OR_NOW 0
17346 extern "C" void exit (int);
17349 void fnord() { int i=42;}
17352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17353 int status = $lt_dlunknown;
17357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17359 /* dlclose (self); */
17365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17366 (eval $ac_link) 2>&5
17368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17370 (./conftest; exit; ) 2>/dev/null
17372 case x$lt_status in
17373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17378 # compilation failed
17379 lt_cv_dlopen_self_static=no
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17390 CPPFLAGS="$save_CPPFLAGS"
17391 LDFLAGS="$save_LDFLAGS"
17396 case $lt_cv_dlopen_self in
17397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17398 *) enable_dlopen_self=unknown ;;
17401 case $lt_cv_dlopen_self_static in
17402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17403 *) enable_dlopen_self_static=unknown ;;
17408 # The else clause should only fire when bootstrapping the
17409 # libtool distribution, otherwise you forgot to ship ltmain.sh
17410 # with your package, and you will get complaints that there are
17411 # no rules to generate ltmain.sh.
17412 if test -f "$ltmain"; then
17413 # See if we are running on zsh, and set the options which allow our commands through
17414 # without removal of \ escapes.
17415 if test -n "${ZSH_VERSION+set}" ; then
17416 setopt NO_GLOB_SUBST
17418 # Now quote all the things that may contain metacharacters while being
17419 # careful not to overquote the AC_SUBSTed values. We take copies of the
17420 # variables and quote the copies for generation of the libtool script.
17421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17425 deplibs_check_method reload_flag reload_cmds need_locks \
17426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17427 lt_cv_sys_global_symbol_to_c_name_address \
17428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17429 old_postinstall_cmds old_postuninstall_cmds \
17433 lt_prog_compiler_wl_GCJ \
17434 lt_prog_compiler_pic_GCJ \
17435 lt_prog_compiler_static_GCJ \
17436 lt_prog_compiler_no_builtin_flag_GCJ \
17437 export_dynamic_flag_spec_GCJ \
17438 thread_safe_flag_spec_GCJ \
17439 whole_archive_flag_spec_GCJ \
17440 enable_shared_with_static_runtimes_GCJ \
17441 old_archive_cmds_GCJ \
17442 old_archive_from_new_cmds_GCJ \
17443 predep_objects_GCJ \
17444 postdep_objects_GCJ \
17447 compiler_lib_search_path_GCJ \
17449 archive_expsym_cmds_GCJ \
17450 postinstall_cmds_GCJ \
17451 postuninstall_cmds_GCJ \
17452 old_archive_from_expsyms_cmds_GCJ \
17453 allow_undefined_flag_GCJ \
17454 no_undefined_flag_GCJ \
17455 export_symbols_cmds_GCJ \
17456 hardcode_libdir_flag_spec_GCJ \
17457 hardcode_libdir_flag_spec_ld_GCJ \
17458 hardcode_libdir_separator_GCJ \
17459 hardcode_automatic_GCJ \
17461 module_expsym_cmds_GCJ \
17462 lt_cv_prog_compiler_c_o_GCJ \
17463 exclude_expsyms_GCJ \
17464 include_expsyms_GCJ; do
17467 old_archive_cmds_GCJ | \
17468 old_archive_from_new_cmds_GCJ | \
17469 archive_cmds_GCJ | \
17470 archive_expsym_cmds_GCJ | \
17471 module_cmds_GCJ | \
17472 module_expsym_cmds_GCJ | \
17473 old_archive_from_expsyms_cmds_GCJ | \
17474 export_symbols_cmds_GCJ | \
17475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17476 postinstall_cmds | postuninstall_cmds | \
17477 old_postinstall_cmds | old_postuninstall_cmds | \
17478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17479 # Double-quote double-evaled strings.
17480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17489 *'\$0 --fallback-echo"')
17490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17496 cat <<__EOF__ >> "$cfgfile"
17497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17501 # Shell to use when invoking shell scripts.
17504 # Whether or not to build shared libraries.
17505 build_libtool_libs=$enable_shared
17507 # Whether or not to build static libraries.
17508 build_old_libs=$enable_static
17510 # Whether or not to add -lc for building shared libraries.
17511 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17513 # Whether or not to disallow shared libs when runtime libs are static
17514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17516 # Whether or not to optimize for fast installation.
17517 fast_install=$enable_fast_install
17520 host_alias=$host_alias
17523 # An echo program that does not interpret backslashes.
17528 AR_FLAGS=$lt_AR_FLAGS
17533 # A language-specific compiler.
17534 CC=$lt_compiler_GCJ
17536 # Is the compiler the GNU C compiler?
17542 # The linker used to build libraries.
17545 # Whether we need hard or soft links.
17548 # A BSD-compatible nm program.
17551 # A symbol stripping program
17554 # Used to examine libraries when file_magic_cmd begins "file"
17555 MAGIC_CMD=$MAGIC_CMD
17557 # Used on cygwin: DLL creation program.
17560 # Used on cygwin: object dumper.
17563 # Used on cygwin: assembler.
17566 # The name of the directory that contains temporary libtool files.
17569 # How to create reloadable object files.
17570 reload_flag=$lt_reload_flag
17571 reload_cmds=$lt_reload_cmds
17573 # How to pass a linker flag through the compiler.
17574 wl=$lt_lt_prog_compiler_wl_GCJ
17576 # Object file suffix (normally "o").
17577 objext="$ac_objext"
17579 # Old archive suffix (normally "a").
17582 # Shared library suffix (normally ".so").
17585 # Executable file suffix (normally "").
17588 # Additional compiler flags for building library objects.
17589 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17592 # What is the maximum length of a command?
17593 max_cmd_len=$lt_cv_sys_max_cmd_len
17595 # Does compiler simultaneously support -c and -o options?
17596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17598 # Must we lock files when doing compilation ?
17599 need_locks=$lt_need_locks
17601 # Do we need the lib prefix for modules?
17602 need_lib_prefix=$need_lib_prefix
17604 # Do we need a version for libraries?
17605 need_version=$need_version
17607 # Whether dlopen is supported.
17608 dlopen_support=$enable_dlopen
17610 # Whether dlopen of programs is supported.
17611 dlopen_self=$enable_dlopen_self
17613 # Whether dlopen of statically linked programs is supported.
17614 dlopen_self_static=$enable_dlopen_self_static
17616 # Compiler flag to prevent dynamic linking.
17617 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17619 # Compiler flag to turn off builtin functions.
17620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17622 # Compiler flag to allow reflexive dlopens.
17623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17625 # Compiler flag to generate shared objects directly from archives.
17626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17628 # Compiler flag to generate thread-safe objects.
17629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17631 # Library versioning type.
17632 version_type=$version_type
17634 # Format of library name prefix.
17635 libname_spec=$lt_libname_spec
17637 # List of archive names. First name is the real one, the rest are links.
17638 # The last name is the one that the linker finds with -lNAME.
17639 library_names_spec=$lt_library_names_spec
17641 # The coded name of the library, if different from the real name.
17642 soname_spec=$lt_soname_spec
17644 # Commands used to build and install an old-style archive.
17646 old_archive_cmds=$lt_old_archive_cmds_GCJ
17647 old_postinstall_cmds=$lt_old_postinstall_cmds
17648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17650 # Create an old-style archive from a shared archive.
17651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17653 # Create a temporary old-style archive to link instead of a shared archive.
17654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17656 # Commands used to build and install a shared archive.
17657 archive_cmds=$lt_archive_cmds_GCJ
17658 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17659 postinstall_cmds=$lt_postinstall_cmds
17660 postuninstall_cmds=$lt_postuninstall_cmds
17662 # Commands used to build a loadable module (assumed same as above if empty)
17663 module_cmds=$lt_module_cmds_GCJ
17664 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17666 # Commands to strip libraries.
17667 old_striplib=$lt_old_striplib
17668 striplib=$lt_striplib
17670 # Dependencies to place before the objects being linked to create a
17672 predep_objects=$lt_predep_objects_GCJ
17674 # Dependencies to place after the objects being linked to create a
17676 postdep_objects=$lt_postdep_objects_GCJ
17678 # Dependencies to place before the objects being linked to create a
17680 predeps=$lt_predeps_GCJ
17682 # Dependencies to place after the objects being linked to create a
17684 postdeps=$lt_postdeps_GCJ
17686 # The library search path used internally by the compiler when linking
17687 # a shared library.
17688 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17690 # Method to check whether dependent libraries are shared objects.
17691 deplibs_check_method=$lt_deplibs_check_method
17693 # Command to use when deplibs_check_method == file_magic.
17694 file_magic_cmd=$lt_file_magic_cmd
17696 # Flag that allows shared libraries with undefined symbols to be built.
17697 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17699 # Flag that forces no undefined symbols.
17700 no_undefined_flag=$lt_no_undefined_flag_GCJ
17702 # Commands used to finish a libtool library installation in a directory.
17703 finish_cmds=$lt_finish_cmds
17705 # Same as above, but a single script fragment to be evaled but not shown.
17706 finish_eval=$lt_finish_eval
17708 # Take the output of nm and produce a listing of raw symbols and C names.
17709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17711 # Transform the output of nm in a proper C declaration
17712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17714 # Transform the output of nm in a C name address pair
17715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17717 # This is the shared library runtime path variable.
17718 runpath_var=$runpath_var
17720 # This is the shared library path variable.
17721 shlibpath_var=$shlibpath_var
17723 # Is shlibpath searched before the hard-coded library search path?
17724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17726 # How to hardcode a shared library path into an executable.
17727 hardcode_action=$hardcode_action_GCJ
17729 # Whether we should hardcode library paths into libraries.
17730 hardcode_into_libs=$hardcode_into_libs
17732 # Flag to hardcode \$libdir into a binary during linking.
17733 # This must work even if \$libdir does not exist.
17734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17736 # If ld is used when linking, flag to hardcode \$libdir into
17737 # a binary during linking. This must work even if \$libdir does
17739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17741 # Whether we need a single -rpath flag with a separated argument.
17742 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17745 # resulting binary.
17746 hardcode_direct=$hardcode_direct_GCJ
17748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17749 # resulting binary.
17750 hardcode_minus_L=$hardcode_minus_L_GCJ
17752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17753 # the resulting binary.
17754 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17756 # Set to yes if building a shared library automatically hardcodes DIR into the library
17757 # and all subsequent libraries and executables linked against it.
17758 hardcode_automatic=$hardcode_automatic_GCJ
17760 # Variables whose values should be saved in libtool wrapper scripts and
17761 # restored at relink time.
17762 variables_saved_for_relink="$variables_saved_for_relink"
17764 # Whether libtool must link a program against all its dependency libraries.
17765 link_all_deplibs=$link_all_deplibs_GCJ
17767 # Compile-time system search path for libraries
17768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17770 # Run-time system search path for libraries
17771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17773 # Fix the shell variable \$srcfile for the compiler.
17774 fix_srcfile_path="$fix_srcfile_path_GCJ"
17776 # Set to yes if exported symbols are required.
17777 always_export_symbols=$always_export_symbols_GCJ
17779 # The commands to list exported symbols.
17780 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17782 # The commands to extract the exported symbol list from a shared archive.
17783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17785 # Symbols that should not be listed in the preloaded symbols.
17786 exclude_expsyms=$lt_exclude_expsyms_GCJ
17788 # Symbols that must always be exported.
17789 include_expsyms=$lt_include_expsyms_GCJ
17791 # ### END LIBTOOL TAG CONFIG: $tagname
17797 # If there is no Makefile yet, we rely on a make rule to execute
17798 # `config.status --recheck' to rerun these tests and create the
17799 # libtool script then.
17800 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17801 if test -f "$ltmain_in"; then
17802 test -f Makefile && make "$ltmain"
17808 ac_cpp='$CPP $CPPFLAGS'
17809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17823 # Source file extension for RC test sources.
17826 # Object file extension for compiled RC test sources.
17830 # Code to be used in simple compile tests
17831 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17833 # Code to be used in simple link tests
17834 lt_simple_link_test_code="$lt_simple_compile_test_code"
17836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17838 # If no C compiler was specified, use CC.
17841 # Allow CC to be a program name with arguments.
17845 # Allow CC to be a program name with arguments.
17850 lt_cv_prog_compiler_c_o_RC=yes
17852 # The else clause should only fire when bootstrapping the
17853 # libtool distribution, otherwise you forgot to ship ltmain.sh
17854 # with your package, and you will get complaints that there are
17855 # no rules to generate ltmain.sh.
17856 if test -f "$ltmain"; then
17857 # See if we are running on zsh, and set the options which allow our commands through
17858 # without removal of \ escapes.
17859 if test -n "${ZSH_VERSION+set}" ; then
17860 setopt NO_GLOB_SUBST
17862 # Now quote all the things that may contain metacharacters while being
17863 # careful not to overquote the AC_SUBSTed values. We take copies of the
17864 # variables and quote the copies for generation of the libtool script.
17865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17869 deplibs_check_method reload_flag reload_cmds need_locks \
17870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17871 lt_cv_sys_global_symbol_to_c_name_address \
17872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17873 old_postinstall_cmds old_postuninstall_cmds \
17877 lt_prog_compiler_wl_RC \
17878 lt_prog_compiler_pic_RC \
17879 lt_prog_compiler_static_RC \
17880 lt_prog_compiler_no_builtin_flag_RC \
17881 export_dynamic_flag_spec_RC \
17882 thread_safe_flag_spec_RC \
17883 whole_archive_flag_spec_RC \
17884 enable_shared_with_static_runtimes_RC \
17885 old_archive_cmds_RC \
17886 old_archive_from_new_cmds_RC \
17887 predep_objects_RC \
17888 postdep_objects_RC \
17891 compiler_lib_search_path_RC \
17893 archive_expsym_cmds_RC \
17894 postinstall_cmds_RC \
17895 postuninstall_cmds_RC \
17896 old_archive_from_expsyms_cmds_RC \
17897 allow_undefined_flag_RC \
17898 no_undefined_flag_RC \
17899 export_symbols_cmds_RC \
17900 hardcode_libdir_flag_spec_RC \
17901 hardcode_libdir_flag_spec_ld_RC \
17902 hardcode_libdir_separator_RC \
17903 hardcode_automatic_RC \
17905 module_expsym_cmds_RC \
17906 lt_cv_prog_compiler_c_o_RC \
17907 exclude_expsyms_RC \
17908 include_expsyms_RC; do
17911 old_archive_cmds_RC | \
17912 old_archive_from_new_cmds_RC | \
17913 archive_cmds_RC | \
17914 archive_expsym_cmds_RC | \
17916 module_expsym_cmds_RC | \
17917 old_archive_from_expsyms_cmds_RC | \
17918 export_symbols_cmds_RC | \
17919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17920 postinstall_cmds | postuninstall_cmds | \
17921 old_postinstall_cmds | old_postuninstall_cmds | \
17922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17923 # Double-quote double-evaled strings.
17924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17933 *'\$0 --fallback-echo"')
17934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17940 cat <<__EOF__ >> "$cfgfile"
17941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17945 # Shell to use when invoking shell scripts.
17948 # Whether or not to build shared libraries.
17949 build_libtool_libs=$enable_shared
17951 # Whether or not to build static libraries.
17952 build_old_libs=$enable_static
17954 # Whether or not to add -lc for building shared libraries.
17955 build_libtool_need_lc=$archive_cmds_need_lc_RC
17957 # Whether or not to disallow shared libs when runtime libs are static
17958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17960 # Whether or not to optimize for fast installation.
17961 fast_install=$enable_fast_install
17964 host_alias=$host_alias
17967 # An echo program that does not interpret backslashes.
17972 AR_FLAGS=$lt_AR_FLAGS
17977 # A language-specific compiler.
17980 # Is the compiler the GNU C compiler?
17986 # The linker used to build libraries.
17989 # Whether we need hard or soft links.
17992 # A BSD-compatible nm program.
17995 # A symbol stripping program
17998 # Used to examine libraries when file_magic_cmd begins "file"
17999 MAGIC_CMD=$MAGIC_CMD
18001 # Used on cygwin: DLL creation program.
18004 # Used on cygwin: object dumper.
18007 # Used on cygwin: assembler.
18010 # The name of the directory that contains temporary libtool files.
18013 # How to create reloadable object files.
18014 reload_flag=$lt_reload_flag
18015 reload_cmds=$lt_reload_cmds
18017 # How to pass a linker flag through the compiler.
18018 wl=$lt_lt_prog_compiler_wl_RC
18020 # Object file suffix (normally "o").
18021 objext="$ac_objext"
18023 # Old archive suffix (normally "a").
18026 # Shared library suffix (normally ".so").
18029 # Executable file suffix (normally "").
18032 # Additional compiler flags for building library objects.
18033 pic_flag=$lt_lt_prog_compiler_pic_RC
18036 # What is the maximum length of a command?
18037 max_cmd_len=$lt_cv_sys_max_cmd_len
18039 # Does compiler simultaneously support -c and -o options?
18040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18042 # Must we lock files when doing compilation ?
18043 need_locks=$lt_need_locks
18045 # Do we need the lib prefix for modules?
18046 need_lib_prefix=$need_lib_prefix
18048 # Do we need a version for libraries?
18049 need_version=$need_version
18051 # Whether dlopen is supported.
18052 dlopen_support=$enable_dlopen
18054 # Whether dlopen of programs is supported.
18055 dlopen_self=$enable_dlopen_self
18057 # Whether dlopen of statically linked programs is supported.
18058 dlopen_self_static=$enable_dlopen_self_static
18060 # Compiler flag to prevent dynamic linking.
18061 link_static_flag=$lt_lt_prog_compiler_static_RC
18063 # Compiler flag to turn off builtin functions.
18064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18066 # Compiler flag to allow reflexive dlopens.
18067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18069 # Compiler flag to generate shared objects directly from archives.
18070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18072 # Compiler flag to generate thread-safe objects.
18073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18075 # Library versioning type.
18076 version_type=$version_type
18078 # Format of library name prefix.
18079 libname_spec=$lt_libname_spec
18081 # List of archive names. First name is the real one, the rest are links.
18082 # The last name is the one that the linker finds with -lNAME.
18083 library_names_spec=$lt_library_names_spec
18085 # The coded name of the library, if different from the real name.
18086 soname_spec=$lt_soname_spec
18088 # Commands used to build and install an old-style archive.
18090 old_archive_cmds=$lt_old_archive_cmds_RC
18091 old_postinstall_cmds=$lt_old_postinstall_cmds
18092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18094 # Create an old-style archive from a shared archive.
18095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18097 # Create a temporary old-style archive to link instead of a shared archive.
18098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18100 # Commands used to build and install a shared archive.
18101 archive_cmds=$lt_archive_cmds_RC
18102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18103 postinstall_cmds=$lt_postinstall_cmds
18104 postuninstall_cmds=$lt_postuninstall_cmds
18106 # Commands used to build a loadable module (assumed same as above if empty)
18107 module_cmds=$lt_module_cmds_RC
18108 module_expsym_cmds=$lt_module_expsym_cmds_RC
18110 # Commands to strip libraries.
18111 old_striplib=$lt_old_striplib
18112 striplib=$lt_striplib
18114 # Dependencies to place before the objects being linked to create a
18116 predep_objects=$lt_predep_objects_RC
18118 # Dependencies to place after the objects being linked to create a
18120 postdep_objects=$lt_postdep_objects_RC
18122 # Dependencies to place before the objects being linked to create a
18124 predeps=$lt_predeps_RC
18126 # Dependencies to place after the objects being linked to create a
18128 postdeps=$lt_postdeps_RC
18130 # The library search path used internally by the compiler when linking
18131 # a shared library.
18132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18134 # Method to check whether dependent libraries are shared objects.
18135 deplibs_check_method=$lt_deplibs_check_method
18137 # Command to use when deplibs_check_method == file_magic.
18138 file_magic_cmd=$lt_file_magic_cmd
18140 # Flag that allows shared libraries with undefined symbols to be built.
18141 allow_undefined_flag=$lt_allow_undefined_flag_RC
18143 # Flag that forces no undefined symbols.
18144 no_undefined_flag=$lt_no_undefined_flag_RC
18146 # Commands used to finish a libtool library installation in a directory.
18147 finish_cmds=$lt_finish_cmds
18149 # Same as above, but a single script fragment to be evaled but not shown.
18150 finish_eval=$lt_finish_eval
18152 # Take the output of nm and produce a listing of raw symbols and C names.
18153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18155 # Transform the output of nm in a proper C declaration
18156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18158 # Transform the output of nm in a C name address pair
18159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18161 # This is the shared library runtime path variable.
18162 runpath_var=$runpath_var
18164 # This is the shared library path variable.
18165 shlibpath_var=$shlibpath_var
18167 # Is shlibpath searched before the hard-coded library search path?
18168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18170 # How to hardcode a shared library path into an executable.
18171 hardcode_action=$hardcode_action_RC
18173 # Whether we should hardcode library paths into libraries.
18174 hardcode_into_libs=$hardcode_into_libs
18176 # Flag to hardcode \$libdir into a binary during linking.
18177 # This must work even if \$libdir does not exist.
18178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18180 # If ld is used when linking, flag to hardcode \$libdir into
18181 # a binary during linking. This must work even if \$libdir does
18183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18185 # Whether we need a single -rpath flag with a separated argument.
18186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18189 # resulting binary.
18190 hardcode_direct=$hardcode_direct_RC
18192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18193 # resulting binary.
18194 hardcode_minus_L=$hardcode_minus_L_RC
18196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18197 # the resulting binary.
18198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18200 # Set to yes if building a shared library automatically hardcodes DIR into the library
18201 # and all subsequent libraries and executables linked against it.
18202 hardcode_automatic=$hardcode_automatic_RC
18204 # Variables whose values should be saved in libtool wrapper scripts and
18205 # restored at relink time.
18206 variables_saved_for_relink="$variables_saved_for_relink"
18208 # Whether libtool must link a program against all its dependency libraries.
18209 link_all_deplibs=$link_all_deplibs_RC
18211 # Compile-time system search path for libraries
18212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18214 # Run-time system search path for libraries
18215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18217 # Fix the shell variable \$srcfile for the compiler.
18218 fix_srcfile_path="$fix_srcfile_path_RC"
18220 # Set to yes if exported symbols are required.
18221 always_export_symbols=$always_export_symbols_RC
18223 # The commands to list exported symbols.
18224 export_symbols_cmds=$lt_export_symbols_cmds_RC
18226 # The commands to extract the exported symbol list from a shared archive.
18227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18229 # Symbols that should not be listed in the preloaded symbols.
18230 exclude_expsyms=$lt_exclude_expsyms_RC
18232 # Symbols that must always be exported.
18233 include_expsyms=$lt_include_expsyms_RC
18235 # ### END LIBTOOL TAG CONFIG: $tagname
18241 # If there is no Makefile yet, we rely on a make rule to execute
18242 # `config.status --recheck' to rerun these tests and create the
18243 # libtool script then.
18244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18245 if test -f "$ltmain_in"; then
18246 test -f Makefile && make "$ltmain"
18252 ac_cpp='$CPP $CPPFLAGS'
18253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18266 # Append the new tag name to the list of available tags.
18267 if test -n "$tagname" ; then
18268 available_tags="$available_tags $tagname"
18274 # Now substitute the updated list of available tags.
18275 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18276 mv "${ofile}T" "$ofile"
18280 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18286 # This can be used to rebuild libtool when needed
18287 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18289 # Always use our own libtool.
18290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18292 # Prevent multiple expansion
18317 ac_cpp='$CPP $CPPFLAGS'
18318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18321 if test -n "$ac_tool_prefix"; then
18322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18325 $as_echo_n "checking for $ac_word... " >&6; }
18326 if test "${ac_cv_prog_CC+set}" = set; then :
18327 $as_echo_n "(cached) " >&6
18329 if test -n "$CC"; then
18330 ac_cv_prog_CC="$CC" # Let the user override the test.
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18336 test -z "$as_dir" && as_dir=.
18337 for ac_exec_ext in '' $ac_executable_extensions; do
18338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18350 if test -n "$CC"; then
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18352 $as_echo "$CC" >&6; }
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18360 if test -z "$ac_cv_prog_CC"; then
18362 # Extract the first word of "gcc", so it can be a program name with args.
18363 set dummy gcc; ac_word=$2
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18365 $as_echo_n "checking for $ac_word... " >&6; }
18366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18369 if test -n "$ac_ct_CC"; then
18370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18373 for as_dir in $PATH
18376 test -z "$as_dir" && as_dir=.
18377 for ac_exec_ext in '' $ac_executable_extensions; do
18378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18379 ac_cv_prog_ac_ct_CC="gcc"
18380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18390 if test -n "$ac_ct_CC"; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18392 $as_echo "$ac_ct_CC" >&6; }
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 $as_echo "no" >&6; }
18398 if test "x$ac_ct_CC" = x; then
18401 case $cross_compiling:$ac_tool_warned in
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18405 ac_tool_warned=yes ;;
18410 CC="$ac_cv_prog_CC"
18413 if test -z "$CC"; then
18414 if test -n "$ac_tool_prefix"; then
18415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18416 set dummy ${ac_tool_prefix}cc; ac_word=$2
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18418 $as_echo_n "checking for $ac_word... " >&6; }
18419 if test "${ac_cv_prog_CC+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18422 if test -n "$CC"; then
18423 ac_cv_prog_CC="$CC" # Let the user override the test.
18425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18426 for as_dir in $PATH
18429 test -z "$as_dir" && as_dir=.
18430 for ac_exec_ext in '' $ac_executable_extensions; do
18431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18432 ac_cv_prog_CC="${ac_tool_prefix}cc"
18433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 if test -n "$CC"; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18445 $as_echo "$CC" >&6; }
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18454 if test -z "$CC"; then
18455 # Extract the first word of "cc", so it can be a program name with args.
18456 set dummy cc; ac_word=$2
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18458 $as_echo_n "checking for $ac_word... " >&6; }
18459 if test "${ac_cv_prog_CC+set}" = set; then :
18460 $as_echo_n "(cached) " >&6
18462 if test -n "$CC"; then
18463 ac_cv_prog_CC="$CC" # Let the user override the test.
18465 ac_prog_rejected=no
18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18470 test -z "$as_dir" && as_dir=.
18471 for ac_exec_ext in '' $ac_executable_extensions; do
18472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18474 ac_prog_rejected=yes
18478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485 if test $ac_prog_rejected = yes; then
18486 # We found a bogon in the path, so make sure we never use it.
18487 set dummy $ac_cv_prog_CC
18489 if test $# != 0; then
18490 # We chose a different compiler from the bogus one.
18491 # However, it has the same basename, so the bogon will be chosen
18492 # first if we set CC to just the basename; use the full file name.
18494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18500 if test -n "$CC"; then
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18502 $as_echo "$CC" >&6; }
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18505 $as_echo "no" >&6; }
18510 if test -z "$CC"; then
18511 if test -n "$ac_tool_prefix"; then
18512 for ac_prog in cl.exe
18514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18517 $as_echo_n "checking for $ac_word... " >&6; }
18518 if test "${ac_cv_prog_CC+set}" = set; then :
18519 $as_echo_n "(cached) " >&6
18521 if test -n "$CC"; then
18522 ac_cv_prog_CC="$CC" # Let the user override the test.
18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525 for as_dir in $PATH
18528 test -z "$as_dir" && as_dir=.
18529 for ac_exec_ext in '' $ac_executable_extensions; do
18530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18542 if test -n "$CC"; then
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18544 $as_echo "$CC" >&6; }
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18547 $as_echo "no" >&6; }
18551 test -n "$CC" && break
18554 if test -z "$CC"; then
18556 for ac_prog in cl.exe
18558 # Extract the first word of "$ac_prog", so it can be a program name with args.
18559 set dummy $ac_prog; ac_word=$2
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18561 $as_echo_n "checking for $ac_word... " >&6; }
18562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
18563 $as_echo_n "(cached) " >&6
18565 if test -n "$ac_ct_CC"; then
18566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18572 test -z "$as_dir" && as_dir=.
18573 for ac_exec_ext in '' $ac_executable_extensions; do
18574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18575 ac_cv_prog_ac_ct_CC="$ac_prog"
18576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18586 if test -n "$ac_ct_CC"; then
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18588 $as_echo "$ac_ct_CC" >&6; }
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18595 test -n "$ac_ct_CC" && break
18598 if test "x$ac_ct_CC" = x; then
18601 case $cross_compiling:$ac_tool_warned in
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18605 ac_tool_warned=yes ;;
18614 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18616 as_fn_error $? "no acceptable C compiler found in \$PATH
18617 See \`config.log' for more details" "$LINENO" 5 ; }
18619 # Provide some information about the compiler.
18620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18623 for ac_option in --version -v -V -qversion; do
18624 { { ac_try="$ac_compiler $ac_option >&5"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18630 $as_echo "$ac_try_echo"; } >&5
18631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18633 if test -s conftest.err; then
18635 ... rest of stderr output deleted ...
18636 10q' conftest.err >conftest.er1
18637 cat conftest.er1 >&5
18639 rm -f conftest.er1 conftest.err
18640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18641 test $ac_status = 0; }
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18646 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
18647 $as_echo_n "(cached) " >&6
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18663 if ac_fn_c_try_compile "$LINENO"; then :
18664 ac_compiler_gnu=yes
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18674 if test $ac_compiler_gnu = yes; then
18679 ac_test_CFLAGS=${CFLAGS+set}
18680 ac_save_CFLAGS=$CFLAGS
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18683 if test "${ac_cv_prog_cc_g+set}" = set; then :
18684 $as_echo_n "(cached) " >&6
18686 ac_save_c_werror_flag=$ac_c_werror_flag
18687 ac_c_werror_flag=yes
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18701 if ac_fn_c_try_compile "$LINENO"; then :
18702 ac_cv_prog_cc_g=yes
18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706 /* end confdefs.h. */
18716 if ac_fn_c_try_compile "$LINENO"; then :
18719 ac_c_werror_flag=$ac_save_c_werror_flag
18721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h. */
18732 if ac_fn_c_try_compile "$LINENO"; then :
18733 ac_cv_prog_cc_g=yes
18735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 ac_c_werror_flag=$ac_save_c_werror_flag
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18743 $as_echo "$ac_cv_prog_cc_g" >&6; }
18744 if test "$ac_test_CFLAGS" = set; then
18745 CFLAGS=$ac_save_CFLAGS
18746 elif test $ac_cv_prog_cc_g = yes; then
18747 if test "$GCC" = yes; then
18753 if test "$GCC" = yes; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18761 if test "${ac_cv_prog_cc_c89+set}" = set; then :
18762 $as_echo_n "(cached) " >&6
18764 ac_cv_prog_cc_c89=no
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768 #include <stdarg.h>
18770 #include <sys/types.h>
18771 #include <sys/stat.h>
18772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18773 struct buf { int x; };
18774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18775 static char *e (p, i)
18781 static char *f (char * (*g) (char **, int), char **p, ...)
18786 s = g (p, va_arg (v,int));
18791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18792 function prototypes and stuff, but not '\xHH' hex character constants.
18793 These don't provoke an error unfortunately, instead are silently treated
18794 as 'x'. The following induces an error, until -std is added to get
18795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18796 array size at least. It's necessary to write '\x00'==0 to get something
18797 that's true only with -std. */
18798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18801 inside strings and character constants. */
18803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18805 int test (int i, double x);
18806 struct s1 {int (*f) (int a);};
18807 struct s2 {int (*f) (double a);};
18808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18822 CC="$ac_save_CC $ac_arg"
18823 if ac_fn_c_try_compile "$LINENO"; then :
18824 ac_cv_prog_cc_c89=$ac_arg
18826 rm -f core conftest.err conftest.$ac_objext
18827 test "x$ac_cv_prog_cc_c89" != "xno" && break
18829 rm -f conftest.$ac_ext
18834 case "x$ac_cv_prog_cc_c89" in
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18837 $as_echo "none needed" >&6; } ;;
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18840 $as_echo "unsupported" >&6; } ;;
18842 CC="$CC $ac_cv_prog_cc_c89"
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18846 if test "x$ac_cv_prog_cc_c89" != xno; then :
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18856 depcc="$CC" am_compiler_list=
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18859 $as_echo_n "checking dependency style of $depcc... " >&6; }
18860 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18861 $as_echo_n "(cached) " >&6
18863 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18864 # We make a subdir and do the tests there. Otherwise we can end up
18865 # making bogus files that we don't know about and never remove. For
18866 # instance it was reported that on HP-UX the gcc test will end up
18867 # making a dummy file named `D' -- because `-MD' means `put the output
18870 # Copy depcomp to subdir because otherwise we won't find it if we're
18871 # using a relative directory.
18872 cp "$am_depcomp" conftest.dir
18875 am_cv_CC_dependencies_compiler_type=none
18876 if test "$am_compiler_list" = ""; then
18877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18879 for depmode in $am_compiler_list; do
18880 # We need to recreate these files for each test, as the compiler may
18881 # overwrite some of them when testing with obscure command lines.
18882 # This happens at least with the AIX C compiler.
18883 echo '#include "conftest.h"' > conftest.c
18884 echo 'int i;' > conftest.h
18885 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
18889 # after this tag, mechanisms are not by side-effect, so they'll
18890 # only be used when explicitly requested
18891 if test "x$enable_dependency_tracking" = xyes; then
18899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18900 # mode. It turns out that the SunPro C++ compiler does not properly
18901 # handle `-M -o', and we need to detect this.
18902 if depmode=$depmode \
18903 source=conftest.c object=conftest.o \
18904 depfile=conftest.Po tmpdepfile=conftest.TPo \
18905 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
18906 grep conftest.h conftest.Po > /dev/null 2>&1 &&
18907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18908 am_cv_CC_dependencies_compiler_type=$depmode
18914 rm -rf conftest.dir
18916 am_cv_CC_dependencies_compiler_type=none
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
18929 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
18930 if test "${am_cv_prog_cc_stdc+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18933 am_cv_prog_cc_stdc=no
18935 # Don't try gcc -ansi; that turns off useful extensions and
18936 # breaks some systems' header files.
18937 # AIX -qlanglvl=ansi
18938 # Ultrix and OSF/1 -std1
18939 # HP-UX 10.20 and later -Ae
18940 # HP-UX older versions -Aa -D_HPUX_SOURCE
18941 # SVR4 -Xc -D__EXTENSIONS__
18942 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18944 CC="$ac_save_CC $ac_arg"
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947 #include <stdarg.h>
18949 #include <sys/types.h>
18950 #include <sys/stat.h>
18951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18952 struct buf { int x; };
18953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18954 static char *e (p, i)
18960 static char *f (char * (*g) (char **, int), char **p, ...)
18965 s = g (p, va_arg (v,int));
18969 int test (int i, double x);
18970 struct s1 {int (*f) (int a);};
18971 struct s2 {int (*f) (double a);};
18972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18986 if ac_fn_c_try_compile "$LINENO"; then :
18987 am_cv_prog_cc_stdc="$ac_arg"; break
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 if test -z "$am_cv_prog_cc_stdc"; then
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18997 $as_echo "none needed" >&6; }
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
19000 $as_echo "$am_cv_prog_cc_stdc" >&6; }
19002 case "x$am_cv_prog_cc_stdc" in
19004 *) CC="$CC $am_cv_prog_cc_stdc" ;;
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19011 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19012 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
19013 $as_echo_n "(cached) " >&6
19015 ac_check_lib_save_LIBS=$LIBS
19016 LIBS="-lcposix $LIBS"
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19030 return strerror ();
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 ac_cv_lib_cposix_strerror=yes
19038 ac_cv_lib_cposix_strerror=no
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 LIBS=$ac_check_lib_save_LIBS
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19045 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19046 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
19047 LIBS="$LIBS -lcposix"
19054 # Extract the first word of "db2ps", so it can be a program name with args.
19055 set dummy db2ps; ac_word=$2
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19057 $as_echo_n "checking for $ac_word... " >&6; }
19058 if test "${ac_cv_path_DB2PS+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19063 ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19073 ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext"
19074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19084 DB2PS=$ac_cv_path_DB2PS
19085 if test -n "$DB2PS"; then
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PS" >&5
19087 $as_echo "$DB2PS" >&6; }
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090 $as_echo "no" >&6; }
19094 if test x${DB2PS} = x ; then
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript documentation cannot be generated!" >&5
19096 $as_echo "$as_me: WARNING: PostScript documentation cannot be generated!" >&2;}
19099 # Extract the first word of "ps2pdf", so it can be a program name with args.
19100 set dummy ps2pdf; ac_word=$2
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19102 $as_echo_n "checking for $ac_word... " >&6; }
19103 if test "${ac_cv_path_PS2PDF+set}" = set; then :
19104 $as_echo_n "(cached) " >&6
19108 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
19111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19115 test -z "$as_dir" && as_dir=.
19116 for ac_exec_ext in '' $ac_executable_extensions; do
19117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
19119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19129 PS2PDF=$ac_cv_path_PS2PDF
19130 if test -n "$PS2PDF"; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
19132 $as_echo "$PS2PDF" >&6; }
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135 $as_echo "no" >&6; }
19139 if test x${PS2PDF} = x ; then
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF documentation cannot be generated!" >&5
19141 $as_echo "$as_me: WARNING: PDF documentation cannot be generated!" >&2;}
19148 cygwin | mingw32 | pw32 | interix3 | interix | uwin) libijs_sysdeps="windows";;
19149 *) libijs_sysdeps="unix";;
19153 if test x$libijs_sysdeps = xwindows; then
19154 SYSDEPS_WINDOWS_TRUE=
19155 SYSDEPS_WINDOWS_FALSE='#'
19157 SYSDEPS_WINDOWS_TRUE='#'
19158 SYSDEPS_WINDOWS_FALSE=
19168 ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}"
19171 LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}"
19175 ac_config_files="$ac_config_files Makefile"
19177 ac_config_files="$ac_config_files ijs-config"
19179 ac_config_files="$ac_config_files ijs.pc"
19181 cat >confcache <<\_ACEOF
19182 # This file is a shell script that caches the results of configure
19183 # tests run on this system so they can be shared between configure
19184 # scripts and configure runs, see configure's option --config-cache.
19185 # It is not useful on other systems. If it contains results you don't
19186 # want to keep, you may remove or edit it.
19188 # config.status only pays attention to the cache file if you give it
19189 # the --recheck option to rerun configure.
19191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19193 # following values.
19197 # The following way of writing the cache mishandles newlines in values,
19198 # but we know of no workaround that is simple, portable, and efficient.
19199 # So, we kill variables containing newlines.
19200 # Ultrix sh set writes to stderr and can't be redirected directly,
19201 # and sets the high bit in the cache file unless we assign to the vars.
19203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19204 eval ac_val=\$$ac_var
19208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19209 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19212 _ | IFS | as_nl) ;; #(
19213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19214 *) { eval $ac_var=; unset $ac_var;} ;;
19220 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19221 *${as_nl}ac_space=\ *)
19222 # `set' does not quote correctly, so add quotes: double-quote
19223 # substitution turns \\\\ into \\, and sed turns \\ into \.
19226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19229 # `set' quotes correctly as required by POSIX, so do not add quotes.
19230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19241 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19243 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19244 if test -w "$cache_file"; then
19245 test "x$cache_file" != "x/dev/null" &&
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19247 $as_echo "$as_me: updating cache $cache_file" >&6;}
19248 cat confcache >$cache_file
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19251 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19257 # Let make expand exec_prefix.
19258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19260 # Transform confdefs.h into DEFS.
19261 # Protect against shell expansion while executing Makefile rules.
19262 # Protect against Makefile macro expansion.
19264 # If the first sed substitution is executed (which looks for macros that
19265 # take arguments), then branch to the quote section. Otherwise,
19266 # look for a macro that doesn't take arguments.
19276 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19278 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19282 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19295 DEFS=`sed -n "$ac_script" confdefs.h`
19301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19302 # 1. Remove the extension, and $U if already installed.
19303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19306 # will be set to the directory where LIBOBJS objects are built.
19307 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19308 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19310 LIBOBJS=$ac_libobjs
19312 LTLIBOBJS=$ac_ltlibobjs
19315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19316 as_fn_error $? "conditional \"AMDEP\" was never defined.
19317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19319 if test -z "${SYSDEPS_WINDOWS_TRUE}" && test -z "${SYSDEPS_WINDOWS_FALSE}"; then
19320 as_fn_error $? "conditional \"SYSDEPS_WINDOWS\" was never defined.
19321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19324 : ${CONFIG_STATUS=./config.status}
19326 ac_clean_files_save=$ac_clean_files
19327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19333 # Generated by $as_me.
19334 # Run this file to recreate the current configuration.
19335 # Compiler output produced by configure, useful for debugging
19336 # configure, is in config.log if it exists.
19339 ac_cs_recheck=false
19342 SHELL=\${CONFIG_SHELL-$SHELL}
19345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19346 ## -------------------- ##
19347 ## M4sh Initialization. ##
19348 ## -------------------- ##
19350 # Be more Bourne compatible
19351 DUALCASE=1; export DUALCASE # for MKS sh
19352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19356 # is contrary to our usage. Disable this feature.
19357 alias -g '${1+"$@"}'='"$@"'
19358 setopt NO_GLOB_SUBST
19360 case `(set -o) 2>/dev/null` in #(
19372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19373 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19376 # Prefer a ksh shell builtin over an external printf program on Solaris,
19377 # but without wasting forks for bash or zsh.
19378 if test -z "$BASH_VERSION$ZSH_VERSION" \
19379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19380 as_echo='print -r --'
19381 as_echo_n='print -rn --'
19382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19383 as_echo='printf %s\n'
19384 as_echo_n='printf %s'
19386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19388 as_echo_n='/usr/ucb/echo -n'
19390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19391 as_echo_n_body='eval
19395 expr "X$arg" : "X\\(.*\\)$as_nl";
19396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19400 export as_echo_n_body
19401 as_echo_n='sh -c $as_echo_n_body as_echo'
19403 export as_echo_body
19404 as_echo='sh -c $as_echo_body as_echo'
19407 # The user is always right.
19408 if test "${PATH_SEPARATOR+set}" != set; then
19410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19418 # We need space, tab and new line, in precisely that order. Quoting is
19419 # there to prevent editors from complaining about space-tab.
19420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19421 # splitting by setting IFS to empty value.)
19424 # Find who we are. Look in the path if we contain no directory separator.
19426 *[\\/]* ) as_myself=$0 ;;
19427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19428 for as_dir in $PATH
19431 test -z "$as_dir" && as_dir=.
19432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19438 # We did not find ourselves, most probably we were run as `sh COMMAND'
19439 # in which case we are not to be found in the path.
19440 if test "x$as_myself" = x; then
19443 if test ! -f "$as_myself"; then
19444 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19448 # Unset variables that we do not need and which cause bugs (e.g. in
19449 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19450 # suppresses any "Segmentation fault" message there. '((' could
19451 # trigger a bug in pdksh 5.2.14.
19452 for as_var in BASH_ENV ENV MAIL MAILPATH
19453 do eval test x\${$as_var+set} = xset \
19454 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19467 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19470 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19471 # ----------------------------------------
19472 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19473 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19474 # script with STATUS, using 1 if that was 0.
19477 as_status=$1; test $as_status -eq 0 && as_status=1
19479 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19480 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19482 $as_echo "$as_me: error: $2" >&2
19483 as_fn_exit $as_status
19487 # as_fn_set_status STATUS
19488 # -----------------------
19489 # Set $? to STATUS, without forking.
19490 as_fn_set_status ()
19493 } # as_fn_set_status
19495 # as_fn_exit STATUS
19496 # -----------------
19497 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19501 as_fn_set_status $1
19507 # Portably unset VAR.
19510 { eval $1=; unset $1;}
19512 as_unset=as_fn_unset
19513 # as_fn_append VAR VALUE
19514 # ----------------------
19515 # Append the text in VALUE to the end of the definition contained in VAR. Take
19516 # advantage of any shell optimizations that allow amortized linear growth over
19517 # repeated appends, instead of the typical quadratic growth present in naive
19519 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19520 eval 'as_fn_append ()
19531 # as_fn_arith ARG...
19532 # ------------------
19533 # Perform arithmetic evaluation on the ARGs, and store the result in the
19534 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19535 # must be portable across $(()) and expr.
19536 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19537 eval 'as_fn_arith ()
19544 as_val=`expr "$@" || test $? -eq 1`
19549 if expr a : '\(a\)' >/dev/null 2>&1 &&
19550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19557 as_basename=basename
19562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19568 as_me=`$as_basename -- "$0" ||
19569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19570 X"$0" : 'X\(//\)$' \| \
19571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19573 sed '/^.*\/\([^/][^/]*\)\/*$/{
19587 # Avoid depending upon Character Ranges.
19588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19591 as_cr_digits='0123456789'
19592 as_cr_alnum=$as_cr_Letters$as_cr_digits
19594 ECHO_C= ECHO_N= ECHO_T=
19595 case `echo -n x` in #(((((
19597 case `echo 'xy\c'` in
19598 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19600 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19607 rm -f conf$$ conf$$.exe conf$$.file
19608 if test -d conf$$.dir; then
19609 rm -f conf$$.dir/conf$$.file
19612 mkdir conf$$.dir 2>/dev/null
19614 if (echo >conf$$.file) 2>/dev/null; then
19615 if ln -s conf$$.file conf$$ 2>/dev/null; then
19617 # ... but there are two gotchas:
19618 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19619 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19620 # In both cases, we have to default to `cp -p'.
19621 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19623 elif ln conf$$.file conf$$ 2>/dev/null; then
19631 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19632 rmdir conf$$.dir 2>/dev/null
19637 # Create "$as_dir" as a directory, including parents if necessary.
19642 -*) as_dir=./$as_dir;;
19644 test -d "$as_dir" || eval $as_mkdir_p || {
19648 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19649 *) as_qdir=$as_dir;;
19651 as_dirs="'$as_qdir' $as_dirs"
19652 as_dir=`$as_dirname -- "$as_dir" ||
19653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19654 X"$as_dir" : 'X\(//\)[^/]' \| \
19655 X"$as_dir" : 'X\(//\)$' \| \
19656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19657 $as_echo X"$as_dir" |
19658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19662 /^X\(\/\/\)[^/].*/{
19675 test -d "$as_dir" && break
19677 test -z "$as_dirs" || eval "mkdir $as_dirs"
19678 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19682 if mkdir -p . 2>/dev/null; then
19683 as_mkdir_p='mkdir -p "$as_dir"'
19685 test -d ./-p && rmdir ./-p
19689 if test -x / >/dev/null 2>&1; then
19690 as_test_x='test -x'
19692 if ls -dL / >/dev/null 2>&1; then
19699 if test -d "$1"; then
19705 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19706 ???[sx]*):;;*)false;;esac;fi
19710 as_executable_p=$as_test_x
19712 # Sed expression to map a string onto a valid CPP name.
19713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19715 # Sed expression to map a string onto a valid variable name.
19716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19720 ## ----------------------------------- ##
19721 ## Main body of $CONFIG_STATUS script. ##
19722 ## ----------------------------------- ##
19724 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727 # Save the log message, to keep $0 and so on meaningful, and to
19728 # report actual input values of CONFIG_FILES etc. instead of their
19729 # values after options handling.
19731 This file was extended by ijs $as_me 0.35, which was
19732 generated by GNU Autoconf 2.67. Invocation command line was
19734 CONFIG_FILES = $CONFIG_FILES
19735 CONFIG_HEADERS = $CONFIG_HEADERS
19736 CONFIG_LINKS = $CONFIG_LINKS
19737 CONFIG_COMMANDS = $CONFIG_COMMANDS
19740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19745 case $ac_config_files in *"
19746 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752 # Files that config.status was made for.
19753 config_files="$ac_config_files"
19754 config_commands="$ac_config_commands"
19758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19760 \`$as_me' instantiates files and other configuration actions
19761 from templates according to the current configuration. Unless the files
19762 and actions are specified as TAGs, all are instantiated by default.
19764 Usage: $0 [OPTION]... [TAG]...
19766 -h, --help print this help, then exit
19767 -V, --version print version number and configuration settings, then exit
19768 --config print configuration, then exit
19769 -q, --quiet, --silent
19770 do not print progress messages
19771 -d, --debug don't remove temporary files
19772 --recheck update $as_me by reconfiguring in the same conditions
19773 --file=FILE[:TEMPLATE]
19774 instantiate the configuration file FILE
19776 Configuration files:
19779 Configuration commands:
19782 Report bugs to <inkjet-list@linuxprinting.org>."
19785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19788 ijs config.status 0.35
19789 configured by $0, generated by GNU Autoconf 2.67,
19790 with options \\"\$ac_cs_config\\"
19792 Copyright (C) 2010 Free Software Foundation, Inc.
19793 This config.status script is free software; the Free Software Foundation
19794 gives unlimited permission to copy, distribute and modify it."
19800 test -n "\$AWK" || AWK=awk
19803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19804 # The default lists apply if the user does not specify any file.
19810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19827 # Handling of the options.
19828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19831 $as_echo "$ac_cs_version"; exit ;;
19832 --config | --confi | --conf | --con | --co | --c )
19833 $as_echo "$ac_cs_config"; exit ;;
19834 --debug | --debu | --deb | --de | --d | -d )
19836 --file | --fil | --fi | --f )
19839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19840 '') as_fn_error $? "missing file argument" ;;
19842 as_fn_append CONFIG_FILES " '$ac_optarg'"
19843 ac_need_defaults=false;;
19844 --he | --h | --help | --hel | -h )
19845 $as_echo "$ac_cs_usage"; exit ;;
19846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19850 # This is an error.
19851 -*) as_fn_error $? "unrecognized option: \`$1'
19852 Try \`$0 --help' for more information." ;;
19854 *) as_fn_append ac_config_targets " $1"
19855 ac_need_defaults=false ;;
19861 ac_configure_extra_args=
19863 if $ac_cs_silent; then
19865 ac_configure_extra_args="$ac_configure_extra_args --silent"
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 if \$ac_cs_recheck; then
19871 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19874 CONFIG_SHELL='$SHELL'
19875 export CONFIG_SHELL
19880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19885 ## Running $as_me. ##
19891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19901 # Handling of arguments.
19902 for ac_config_target in $ac_config_targets
19904 case $ac_config_target in
19905 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19907 "ijs-config") CONFIG_FILES="$CONFIG_FILES ijs-config" ;;
19908 "ijs.pc") CONFIG_FILES="$CONFIG_FILES ijs.pc" ;;
19910 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19915 # If the user did not use the arguments to specify the items to instantiate,
19916 # then the envvar interface is used. Set only those that are not.
19917 # We use the long form for the default assignment because of an extremely
19918 # bizarre bug on SunOS 4.1.3.
19919 if $ac_need_defaults; then
19920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19924 # Have a temporary directory for convenience. Make it in the build tree
19925 # simply because there is no reason against having it here, and in addition,
19926 # creating and moving files from /tmp can sometimes cause problems.
19927 # Hook for its removal unless debugging.
19928 # Note that there is a small window in which the directory will not be cleaned:
19929 # after its creation but before its name has been assigned to `$tmp'.
19933 trap 'exit_status=$?
19934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19936 trap 'as_fn_exit 1' 1 2 13 15
19938 # Create a (secure) tmp directory for tmp files.
19941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19942 test -n "$tmp" && test -d "$tmp"
19945 tmp=./conf$$-$RANDOM
19946 (umask 077 && mkdir "$tmp")
19947 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19949 # Set up the scripts for CONFIG_FILES section.
19950 # No need to generate them if there are no CONFIG_FILES.
19951 # This happens for instance with `./config.status config.h'.
19952 if test -n "$CONFIG_FILES"; then
19955 ac_cr=`echo X | tr X '\015'`
19956 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19957 # But we know of no other shell where ac_cr would be empty at this
19958 # point, so we can use a bashism as a fallback.
19959 if test "x$ac_cr" = x; then
19960 eval ac_cr=\$\'\\r\'
19962 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19963 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19966 ac_cs_awk_cr=$ac_cr
19969 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19974 echo "cat >conf$$subs.awk <<_ACEOF" &&
19975 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19977 } >conf$$subs.sh ||
19978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19979 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19981 for ac_last_try in false false false false false :; do
19982 . ./conf$$subs.sh ||
19983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19985 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19986 if test $ac_delim_n = $ac_delim_num; then
19988 elif $ac_last_try; then
19989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19994 rm -f conf$$subs.sh
19996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19997 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20001 s/^/S["/; s/!.*/"]=/
20011 s/\(.\{148\}\)..*/\1/
20013 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20018 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20025 s/\(.\{148\}\)..*/\1/
20027 s/["\\]/\\&/g; s/^/"/; s/$/"/
20031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20036 ' <conf$$subs.awk | sed '
20041 ' >>$CONFIG_STATUS || ac_write_fail=1
20042 rm -f conf$$subs.awk
20043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20045 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20046 for (key in S) S_is_set[key] = 1
20052 nfields = split(line, field, "@")
20054 len = length(field[1])
20055 for (i = 2; i < nfields; i++) {
20057 keylen = length(key)
20058 if (S_is_set[key]) {
20060 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20061 len += length(value) + length(field[++i])
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20074 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20077 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20078 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20081 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20082 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20083 # trailing colons and then remove the whole line if VPATH becomes empty
20084 # (actually we leave an empty line to preserve line numbers).
20085 if test "x$srcdir" = x.; then
20086 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20105 fi # test -n "$CONFIG_FILES"
20108 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20113 :[FHLC]) ac_mode=$ac_tag; continue;;
20115 case $ac_mode$ac_tag in
20117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20118 :[FH]-) ac_tag=-:-;;
20119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20136 -) ac_f="$tmp/stdin";;
20137 *) # Look for the file first in the build tree, then in the source tree
20138 # (if the path is not absolute). The absolute path cannot be DOS-style,
20139 # because $ac_f cannot contain `:'.
20143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20148 as_fn_append ac_file_inputs " '$ac_f'"
20151 # Let's still pretend it is `configure' which instantiates (i.e., don't
20152 # use $as_me), people would be surprised to read:
20153 # /* config.h. Generated by config.status. */
20154 configure_input='Generated from '`
20155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20157 if test x"$ac_file" != x-; then
20158 configure_input="$ac_file. $configure_input"
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20160 $as_echo "$as_me: creating $ac_file" >&6;}
20162 # Neutralize special characters interpreted by sed in replacement strings.
20163 case $configure_input in #(
20164 *\&* | *\|* | *\\* )
20165 ac_sed_conf_input=`$as_echo "$configure_input" |
20166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20167 *) ac_sed_conf_input=$configure_input;;
20171 *:-:* | *:-) cat >"$tmp/stdin" \
20172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20177 ac_dir=`$as_dirname -- "$ac_file" ||
20178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20179 X"$ac_file" : 'X\(//\)[^/]' \| \
20180 X"$ac_file" : 'X\(//\)$' \| \
20181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20182 $as_echo X"$ac_file" |
20183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20187 /^X\(\/\/\)[^/].*/{
20200 as_dir="$ac_dir"; as_fn_mkdir_p
20204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20207 # A ".." for each directory in $ac_dir_suffix.
20208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20209 case $ac_top_builddir_sub in
20210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20214 ac_abs_top_builddir=$ac_pwd
20215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20216 # for backward compatibility:
20217 ac_top_builddir=$ac_top_build_prefix
20220 .) # We are building in place.
20222 ac_top_srcdir=$ac_top_builddir_sub
20223 ac_abs_top_srcdir=$ac_pwd ;;
20224 [\\/]* | ?:[\\/]* ) # Absolute name.
20225 ac_srcdir=$srcdir$ac_dir_suffix;
20226 ac_top_srcdir=$srcdir
20227 ac_abs_top_srcdir=$srcdir ;;
20228 *) # Relative name.
20229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20230 ac_top_srcdir=$ac_top_build_prefix$srcdir
20231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20249 # If the template does not know about datarootdir, expand it.
20250 # FIXME: This hack should be removed a few years after 2.60.
20251 ac_datarootdir_hack=; ac_datarootdir_seen=
20262 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20263 *datarootdir*) ac_datarootdir_seen=yes;;
20264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20266 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20269 ac_datarootdir_hack='
20270 s&@datadir@&$datadir&g
20271 s&@docdir@&$docdir&g
20272 s&@infodir@&$infodir&g
20273 s&@localedir@&$localedir&g
20274 s&@mandir@&$mandir&g
20275 s&\\\${datarootdir}&$datarootdir&g' ;;
20279 # Neutralize VPATH when `$srcdir' = `.'.
20280 # Shell code in configure.ac might set extrasub.
20281 # FIXME: do we really want to maintain this feature?
20282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20283 ac_sed_extra="$ac_vpsub
20286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20289 s|@configure_input@|$ac_sed_conf_input|;t t
20290 s&@top_builddir@&$ac_top_builddir_sub&;t t
20291 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20292 s&@srcdir@&$ac_srcdir&;t t
20293 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20294 s&@top_srcdir@&$ac_top_srcdir&;t t
20295 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20296 s&@builddir@&$ac_builddir&;t t
20297 s&@abs_builddir@&$ac_abs_builddir&;t t
20298 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20299 s&@INSTALL@&$ac_INSTALL&;t t
20300 $ac_datarootdir_hack
20302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20309 which seems to be undefined. Please make sure it is defined" >&5
20310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20311 which seems to be undefined. Please make sure it is defined" >&2;}
20315 -) cat "$tmp/out" && rm -f "$tmp/out";;
20316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20322 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20323 $as_echo "$as_me: executing $ac_file commands" >&6;}
20328 case $ac_file$ac_mode in
20329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20330 # Strip MF so we end up with the name of the file.
20331 mf=`echo "$mf" | sed -e 's/:.*$//'`
20332 # Check whether this is an Automake generated Makefile or not.
20333 # We used to match only the files named `Makefile.in', but
20334 # some people rename them; so instead we look at the file content.
20335 # Grep'ing the first line is not enough: some people post-process
20336 # each Makefile.in and add a new line on top of each file to say so.
20337 # So let's grep whole file.
20338 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20339 dirpart=`$as_dirname -- "$mf" ||
20340 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20341 X"$mf" : 'X\(//\)[^/]' \| \
20342 X"$mf" : 'X\(//\)$' \| \
20343 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20349 /^X\(\/\/\)[^/].*/{
20365 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20366 # Extract the definition of DEP_FILES from the Makefile without
20368 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20369 test -z "$DEPDIR" && continue
20370 # When using ansi2knr, U may be empty or an underscore; expand it
20371 U=`sed -n -e '/^U = / s///p' < "$mf"`
20372 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20373 # We invoke sed twice because it is the simplest approach to
20374 # changing $(DEPDIR) to its actual value in the expansion.
20375 for file in `sed -n -e '
20376 /^DEP_FILES = .*\\\\$/ {
20385 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20386 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20387 # Make sure the directory exists.
20388 test -f "$dirpart/$file" && continue
20389 fdir=`$as_dirname -- "$file" ||
20390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391 X"$file" : 'X\(//\)[^/]' \| \
20392 X"$file" : 'X\(//\)$' \| \
20393 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20394 $as_echo X"$file" |
20395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20399 /^X\(\/\/\)[^/].*/{
20412 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20413 # echo "creating $dirpart/$file"
20414 echo '# dummy' > "$dirpart/$file"
20418 "ijs-config":F) chmod +x ijs-config ;;
20426 ac_clean_files=$ac_clean_files_save
20428 test $ac_write_fail = 0 ||
20429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20432 # configure is writing to config.log, and then calls config.status.
20433 # config.status does its own redirection, appending to config.log.
20434 # Unfortunately, on DOS this fails, as config.log is still kept open
20435 # by configure, so config.status won't be able to write to it; its
20436 # output is simply discarded. So we exec the FD to /dev/null,
20437 # effectively closing config.log, so it can be properly (re)opened and
20438 # appended to by config.status. When coming back to configure, we
20439 # need to make the FD available again.
20440 if test "$no_create" != yes; then
20442 ac_config_status_args=
20443 test "$silent" = yes &&
20444 ac_config_status_args="$ac_config_status_args --quiet"
20446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20449 # would make configure fail if this is the last instruction.
20450 $ac_cs_success || as_fn_exit 1
20452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}