2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for scss 1.0.0.
5 # Report bugs to <konn@users.sourceforge.jp>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # 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.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: konn@users.sourceforge.jp about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $echo works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585 echo_test_string=`eval $cmd` &&
586 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595 test "X$echo_testing_string" = "X$echo_test_string"; then
598 # The Solaris, AIX, and Digital Unix default echo programs unquote
599 # backslashes. This makes it impossible to quote backslashes using
600 # echo "$something" | sed 's/\\/\\\\/g'
602 # So, first we look for a working echo in the user's PATH.
604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605 for dir in $PATH /usr/ucb; do
607 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
617 if test "X$echo" = Xecho; then
618 # We didn't find a better echo, so look for alternatives.
619 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 # This shell has a builtin print -r that does the trick.
624 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625 test "X$CONFIG_SHELL" != X/bin/ksh; then
626 # If we have ksh, try running configure again with it.
627 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628 export ORIGINAL_CONFIG_SHELL
629 CONFIG_SHELL=/bin/ksh
631 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
635 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
640 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 SHELL="$CONFIG_SHELL"
648 echo="$CONFIG_SHELL $0 --fallback-echo"
649 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650 test "X$echo_testing_string" = 'X\t' &&
651 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
653 echo="$CONFIG_SHELL $0 --fallback-echo"
655 # maybe with a smaller string...
658 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
666 if test "$prev" != 'sed 50q "$0"'; then
667 echo_test_string=`eval $prev`
668 export echo_test_string
669 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 # Oops. We lost completely, so just stick with echo.
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
690 tagnames=${tagnames+${tagnames},}CXX
692 tagnames=${tagnames+${tagnames},}F77
694 test -n "$DJDIR" || exec 7<&0 </dev/null
698 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
714 # Identity of this package.
716 PACKAGE_TARNAME='scss'
717 PACKAGE_VERSION='1.0.0'
718 PACKAGE_STRING='scss 1.0.0'
719 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
722 ac_unique_file="src/main.c"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
736 # ifdef HAVE_STDLIB_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
759 ac_subst_vars='LTLIBOBJS
811 INSTALL_STRIP_PROGRAM
865 program_transform_name
878 enable_option_checking
882 enable_dependency_tracking
891 ac_precious_vars='build_alias
917 # Initialize some variables set by options.
919 ac_init_version=false
920 ac_unrecognized_opts=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
931 program_transform_name=s,x,x,
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
977 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1008 -datadir | --datadir | --datadi | --datad)
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1020 -disable-* | --disable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1034 eval enable_$ac_useropt=no ;;
1036 -docdir | --docdir | --docdi | --doc | --do)
1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039 docdir=$ac_optarg ;;
1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044 dvidir=$ac_optarg ;;
1046 -enable-* | --enable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=\$ac_optarg ;;
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used" >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 as_fn_error $? "pwd does not report name of working directory"
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking ...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/scss]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of scss 1.0.0:";;
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 --with-pic try to use only PIC/non-PIC objects [default=use
1550 --with-tags[=TAGS] include additional configurations [automatic]
1551 --with-apr-config=ARG Path of apr-config program file.
1552 --with-apu-config=ARG Path of apu-config program file.
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 CXXCPP C++ preprocessor
1566 F77 Fortran 77 compiler command
1567 FFLAGS Fortran 77 compiler flags
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to <konn@users.sourceforge.jp>.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1635 scss configure 1.0.0
1636 generated by GNU Autoconf 2.68
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_c_try_compile
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ---------------------------------------- ##
1841 ## Report this to konn@users.sourceforge.jp ##
1842 ## ---------------------------------------- ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1851 eval "$3=\$ac_header_compiler"
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1949 #define $2 innocuous_$2
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $2 (); below.
1953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954 <limits.h> exists even on freestanding compilers. */
1957 # include <limits.h>
1959 # include <assert.h>
1964 /* Override any GCC internal prototype to avoid an error.
1965 Use char because int might match the return type of a GCC
1966 builtin and then its argument prototype would still apply. */
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined __stub_$2 || defined __stub___$2
1986 if ac_fn_c_try_link "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext \
1992 conftest$ac_exeext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_func
2001 # ac_fn_cxx_try_compile LINENO
2002 # ----------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext
2008 if { { ac_try="$ac_compile"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_compile") 2>conftest.err
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest.$ac_objext; then :
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_cxx_try_compile
2039 # ac_fn_cxx_try_cpp LINENO
2040 # ------------------------
2041 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_cpp ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } > conftest.i && {
2061 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2062 test ! -s conftest.err
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_cxx_try_cpp
2076 # ac_fn_cxx_try_link LINENO
2077 # -------------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_cxx_try_link ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 $as_test_x conftest$ac_exeext
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2120 } # ac_fn_cxx_try_link
2122 # ac_fn_f77_try_compile LINENO
2123 # ----------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_f77_try_compile ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_f77_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_f77_try_compile
2160 # ac_fn_f77_try_link LINENO
2161 # -------------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_f77_try_link ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { { ac_try="$ac_link"
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_f77_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 $as_test_x conftest$ac_exeext
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_f77_try_link
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2209 It was created by scss $as_me 1.0.0, which was
2210 generated by GNU Autoconf 2.68. Invocation command line was
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2231 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2232 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2235 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2236 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2237 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 $as_echo "PATH: $as_dir"
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_must_keep_next=false
2276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278 | -silent | --silent | --silen | --sile | --sil)
2281 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286 as_fn_append ac_configure_args1 " '$ac_arg'"
2287 if test $ac_must_keep_next = true; then
2288 ac_must_keep_next=false # Got value, back to normal.
2291 *=* | --config-cache | -C | -disable-* | --disable-* \
2292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294 | -with-* | --with-* | -without-* | --without-* | --x)
2295 case "$ac_configure_args0 " in
2296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2299 -* ) ac_must_keep_next=true ;;
2302 as_fn_append ac_configure_args " '$ac_arg'"
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log. We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316 # Save into config.log some information that might help in debugging.
2320 $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2324 # The following way of writing the cache mishandles newlines in values,
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2356 $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2360 for ac_var in $ac_subst_vars
2362 eval ac_val=\$$ac_var
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -n "$ac_subst_files"; then
2371 $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2375 for ac_var in $ac_subst_files
2377 eval ac_val=\$$ac_var
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 $as_echo "$ac_var='\''$ac_val'\''"
2386 if test -s confdefs.h; then
2387 $as_echo "## ----------- ##
2394 test "$ac_signal" != 0 &&
2395 $as_echo "$as_me: caught signal $ac_signal"
2396 $as_echo "$as_me: exit $exit_status"
2398 rm -f core *.core core.conftest.* &&
2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402 for ac_signal in 1 2 13 15; do
2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2410 $as_echo "/* confdefs.h */" > confdefs.h
2412 # Predefined preprocessor variables.
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2443 if test -n "$CONFIG_SITE"; then
2444 # We do not want a PATH search for config.site.
2445 case $CONFIG_SITE in #((
2446 -*) ac_site_file1=./$CONFIG_SITE;;
2447 */*) ac_site_file1=$CONFIG_SITE;;
2448 *) ac_site_file1=./$CONFIG_SITE;;
2450 elif test "x$prefix" != xNONE; then
2451 ac_site_file1=$prefix/share/config.site
2452 ac_site_file2=$prefix/etc/config.site
2454 ac_site_file1=$ac_default_prefix/share/config.site
2455 ac_site_file2=$ac_default_prefix/etc/config.site
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 test "x$ac_site_file" = xNONE && continue
2460 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463 sed 's/^/| /' "$ac_site_file" >&5
2465 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2472 if test -r "$cache_file"; then
2473 # Some versions of bash will fail to source /dev/null (special files
2474 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2475 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2479 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480 *) . "./$cache_file";;
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2489 # Check that the precious variables saved in the cache have kept the same
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494 eval ac_new_set=\$ac_env_${ac_var}_set
2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496 eval ac_new_val=\$ac_env_${ac_var}_value
2497 case $ac_old_set,$ac_new_set in
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505 ac_cache_corrupted=: ;;
2508 if test "x$ac_old_val" != "x$ac_new_val"; then
2509 # differences in whitespace do not lead to failure.
2510 ac_old_val_w=`echo x $ac_old_val`
2511 ac_new_val_w=`echo x $ac_new_val`
2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515 ac_cache_corrupted=:
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519 eval $ac_var=\$ac_old_val
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2522 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2527 # Pass precious variables to config.status.
2528 if test "$ac_new_set" = set; then
2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 *) ac_arg=$ac_var=$ac_new_val ;;
2533 case " $ac_configure_args " in
2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539 if $ac_cache_corrupted; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2559 if test -f "$ac_dir/install-sh"; then
2561 ac_install_sh="$ac_aux_dir/install-sh -c"
2563 elif test -f "$ac_dir/install.sh"; then
2565 ac_install_sh="$ac_aux_dir/install.sh -c"
2567 elif test -f "$ac_dir/shtool"; then
2569 ac_install_sh="$ac_aux_dir/shtool install -c"
2573 if test -z "$ac_aux_dir"; then
2574 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2583 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2586 # Make sure we can run config.sub.
2587 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2588 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2591 $as_echo_n "checking build system type... " >&6; }
2592 if ${ac_cv_build+:} false; then :
2593 $as_echo_n "(cached) " >&6
2595 ac_build_alias=$build_alias
2596 test "x$ac_build_alias" = x &&
2597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2598 test "x$ac_build_alias" = x &&
2599 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2600 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2605 $as_echo "$ac_cv_build" >&6; }
2606 case $ac_cv_build in
2608 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2611 ac_save_IFS=$IFS; IFS='-'
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2621 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2625 $as_echo_n "checking host system type... " >&6; }
2626 if ${ac_cv_host+:} false; then :
2627 $as_echo_n "(cached) " >&6
2629 if test "x$host_alias" = x; then
2630 ac_cv_host=$ac_cv_build
2632 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2638 $as_echo "$ac_cv_host" >&6; }
2641 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2644 ac_save_IFS=$IFS; IFS='-'
2650 # Remember, the first character of IFS is used to create $*,
2651 # except with old shells:
2654 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2658 $as_echo_n "checking target system type... " >&6; }
2659 if ${ac_cv_target+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test "x$target_alias" = x; then
2663 ac_cv_target=$ac_cv_host
2665 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2671 $as_echo "$ac_cv_target" >&6; }
2672 case $ac_cv_target in
2674 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2676 target=$ac_cv_target
2677 ac_save_IFS=$IFS; IFS='-'
2683 # Remember, the first character of IFS is used to create $*,
2684 # except with old shells:
2687 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2690 # The aliases save the names the user supplied, while $host etc.
2691 # will get canonicalized.
2692 test -n "$target_alias" &&
2693 test "$program_prefix$program_suffix$program_transform_name" = \
2695 program_prefix=${target_alias}-
2696 am__api_version='1.10'
2698 # Find a good install program. We prefer a C program (faster),
2699 # so one script is as good as another. But avoid the broken or
2700 # incompatible versions:
2701 # SysV /etc/install, /usr/sbin/install
2702 # SunOS /usr/etc/install
2703 # IRIX /sbin/install
2705 # AmigaOS /C/install, which installs bootblocks on floppy discs
2706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709 # OS/2's system install, which has a completely different semantic
2710 # ./install, which can be erroneously created by make from ./install.sh.
2711 # Reject install programs that cannot install multiple files.
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2714 if test -z "$INSTALL"; then
2715 if ${ac_cv_path_install+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 # Account for people who put trailing slashes in PATH elements.
2724 case $as_dir/ in #((
2725 ./ | .// | /[cC]/* | \
2726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2730 # OSF1 and SCO ODT 3.0 have their own names for install.
2731 # Don't use installbsd from OSF since it installs stuff as root
2733 for ac_prog in ginstall scoinst install; do
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736 if test $ac_prog = install &&
2737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # AIX install. It has an incompatible calling convention.
2740 elif test $ac_prog = install &&
2741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742 # program-specific install script used by HP pwplus--don't use.
2745 rm -rf conftest.one conftest.two conftest.dir
2746 echo one > conftest.one
2747 echo two > conftest.two
2749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2750 test -s conftest.one && test -s conftest.two &&
2751 test -s conftest.dir/conftest.one &&
2752 test -s conftest.dir/conftest.two
2754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2767 rm -rf conftest.one conftest.two conftest.dir
2770 if test "${ac_cv_path_install+set}" = set; then
2771 INSTALL=$ac_cv_path_install
2773 # As a last resort, use the slow shell script. Don't cache a
2774 # value for INSTALL within a source directory, because that will
2775 # break other packages using the cache if that directory is
2776 # removed, or if the value is a relative name.
2777 INSTALL=$ac_install_sh
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781 $as_echo "$INSTALL" >&6; }
2783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784 # It thinks the first close brace ends the variable substitution.
2785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792 $as_echo_n "checking whether build environment is sane... " >&6; }
2795 echo timestamp > conftest.file
2796 # Do `set' in a subshell so we don't clobber the current shell's
2797 # arguments. Must try -L first in case configure is actually a
2798 # symlink; some systems play weird games with the mod time of symlinks
2799 # (eg FreeBSD returns the mod time of the symlink's containing
2802 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2803 if test "$*" = "X"; then
2805 set X `ls -t $srcdir/configure conftest.file`
2808 if test "$*" != "X $srcdir/configure conftest.file" \
2809 && test "$*" != "X conftest.file $srcdir/configure"; then
2811 # If neither matched, then we have a broken ls. This can happen
2812 # if, for instance, CONFIG_SHELL is bash and it inherits a
2813 # broken ls alias from the environment. This has actually
2814 # happened. Such a system could not be considered "sane".
2815 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2816 alias in your environment" "$LINENO" 5
2819 test "$2" = conftest.file
2825 as_fn_error $? "newly created file is older than distributed files!
2826 Check your system clock" "$LINENO" 5
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 test "$program_prefix" != NONE &&
2831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832 # Use a double $ so make ignores it.
2833 test "$program_suffix" != NONE &&
2834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835 # Double any \ or $.
2836 # By default was `s,x,x', remove it if useless.
2837 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2840 # expand $ac_aux_dir to an absolute path
2841 am_aux_dir=`cd $ac_aux_dir && pwd`
2843 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2844 # Use eval to expand $SHELL
2845 if eval "$MISSING --run true"; then
2846 am_missing_run="$MISSING --run "
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2850 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2855 if test -z "$MKDIR_P"; then
2856 if ${ac_cv_path_mkdir+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2863 test -z "$as_dir" && as_dir=.
2864 for ac_prog in mkdir gmkdir; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2868 'mkdir (GNU coreutils) '* | \
2869 'mkdir (coreutils) '* | \
2870 'mkdir (fileutils) '4.1*)
2871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 test -d ./--version && rmdir ./--version
2882 if test "${ac_cv_path_mkdir+set}" = set; then
2883 MKDIR_P="$ac_cv_path_mkdir -p"
2885 # As a last resort, use the slow shell script. Don't cache a
2886 # value for MKDIR_P within a source directory, because that will
2887 # break other packages using the cache if that directory is
2888 # removed, or if the value is a relative name.
2889 MKDIR_P="$ac_install_sh -d"
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893 $as_echo "$MKDIR_P" >&6; }
2897 [\\/$]* | ?:[\\/]*) ;;
2898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2901 for ac_prog in gawk mawk nawk awk
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_AWK+:} false; then :
2908 $as_echo_n "(cached) " >&6
2910 if test -n "$AWK"; then
2911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_AWK="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test -n "$AWK"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 $as_echo "$AWK" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2940 test -n "$AWK" && break
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 cat >conftest.make <<\_ACEOF
2953 @echo '@@@%%%=$(MAKE)=@@@%%%'
2955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958 eval ac_cv_prog_make_${ac_make}_set=yes;;
2960 eval ac_cv_prog_make_${ac_make}_set=no;;
2964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 SET_MAKE="MAKE=${MAKE-make}"
2974 rm -rf .tst 2>/dev/null
2975 mkdir .tst 2>/dev/null
2976 if test -d .tst; then
2981 rmdir .tst 2>/dev/null
2983 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2984 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2985 # is not polluted with repeated "-I."
2986 am__isrc=' -I$(srcdir)'
2987 # test to see if srcdir already configured
2988 if test -f $srcdir/config.status; then
2989 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2993 # test whether we have cygpath
2994 if test -z "$CYGPATH_W"; then
2995 if (cygpath --version) >/dev/null 2>/dev/null; then
2996 CYGPATH_W='cygpath -w'
3003 # Define the identity of the package.
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE "$PACKAGE"
3013 cat >>confdefs.h <<_ACEOF
3014 #define VERSION "$VERSION"
3017 # Some tools Automake needs.
3019 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3022 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3025 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3028 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3035 # Installed binaries are usually stripped using `strip' when the user
3036 # run `make install-strip'. However `strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the `STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_STRIP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_STRIP"; then
3081 # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_STRIP"; then
3089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_STRIP="strip"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_STRIP" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3129 STRIP="$ac_cv_prog_STRIP"
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3135 # We need awk for the "check" target. The system "awk" is bad on
3137 # Always define AMTAR for backward compatibility.
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3148 ac_config_headers="$ac_config_headers include/config.h"
3151 # Checks for programs.
3152 # Check whether --enable-shared was given.
3153 if test "${enable_shared+set}" = set; then :
3154 enableval=$enable_shared; p=${PACKAGE-default}
3156 yes) enable_shared=yes ;;
3157 no) enable_shared=no ;;
3160 # Look at the argument we got. We use all the common list separators.
3161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3162 for pkg in $enableval; do
3164 if test "X$pkg" = "X$p"; then
3176 # Check whether --enable-static was given.
3177 if test "${enable_static+set}" = set; then :
3178 enableval=$enable_static; p=${PACKAGE-default}
3180 yes) enable_static=yes ;;
3181 no) enable_static=no ;;
3184 # Look at the argument we got. We use all the common list separators.
3185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3186 for pkg in $enableval; do
3188 if test "X$pkg" = "X$p"; then
3200 # Check whether --enable-fast-install was given.
3201 if test "${enable_fast_install+set}" = set; then :
3202 enableval=$enable_fast_install; p=${PACKAGE-default}
3204 yes) enable_fast_install=yes ;;
3205 no) enable_fast_install=no ;;
3207 enable_fast_install=no
3208 # Look at the argument we got. We use all the common list separators.
3209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3210 for pkg in $enableval; do
3212 if test "X$pkg" = "X$p"; then
3213 enable_fast_install=yes
3220 enable_fast_install=yes
3224 DEPDIR="${am__leading_dot}deps"
3226 ac_config_commands="$ac_config_commands depfiles"
3229 am_make=${MAKE-make}
3230 cat > confinc << 'END'
3235 # If we don't find an include directive, just comment out the code.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3241 # First try GNU make style include.
3242 echo "include confinc" > confmf
3243 # We grep out `Entering directory' and `Leaving directory'
3244 # messages which can occur if `w' ends up in MAKEFLAGS.
3245 # In particular we don't look at `^make:' because GNU make might
3246 # be invoked under some other name (usually "gmake"), in which
3247 # case it prints its new name instead of `make'.
3248 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3253 # Now try BSD make style include.
3254 if test "$am__include" = "#"; then
3255 echo '.include "confinc"' > confmf
3256 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3257 am__include=.include
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3265 $as_echo "$_am_result" >&6; }
3266 rm -f confinc confmf
3268 # Check whether --enable-dependency-tracking was given.
3269 if test "${enable_dependency_tracking+set}" = set; then :
3270 enableval=$enable_dependency_tracking;
3273 if test "x$enable_dependency_tracking" != xno; then
3274 am_depcomp="$ac_aux_dir/depcomp"
3277 if test "x$enable_dependency_tracking" != xno; then
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3330 if test -z "$ac_cv_prog_CC"; then
3332 # Extract the first word of "gcc", so it can be a program name with args.
3333 set dummy gcc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_ac_ct_CC="gcc"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3368 if test "x$ac_ct_CC" = x; then
3371 case $cross_compiling:$ac_tool_warned in
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3375 ac_tool_warned=yes ;;
3383 if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}cc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="${ac_tool_prefix}cc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3424 if test -z "$CC"; then
3425 # Extract the first word of "cc", so it can be a program name with args.
3426 set dummy cc; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3444 ac_prog_rejected=yes
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test $ac_prog_rejected = yes; then
3456 # We found a bogon in the path, so make sure we never use it.
3457 set dummy $ac_cv_prog_CC
3459 if test $# != 0; then
3460 # We chose a different compiler from the bogus one.
3461 # However, it has the same basename, so the bogon will be chosen
3462 # first if we set CC to just the basename; use the full file name.
3464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3470 if test -n "$CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 $as_echo "$CC" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3480 if test -z "$CC"; then
3481 if test -n "$ac_tool_prefix"; then
3482 for ac_prog in cl.exe
3484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3521 test -n "$CC" && break
3524 if test -z "$CC"; then
3526 for ac_prog in cl.exe
3528 # Extract the first word of "$ac_prog", so it can be a program name with args.
3529 set dummy $ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC="$ac_prog"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3565 test -n "$ac_ct_CC" && break
3568 if test "x$ac_ct_CC" = x; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "no acceptable C compiler found in \$PATH
3587 See \`config.log' for more details" "$LINENO" 5; }
3589 # Provide some information about the compiler.
3590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3593 for ac_option in --version -v -V -qversion; do
3594 { { ac_try="$ac_compiler $ac_option >&5"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3603 if test -s conftest.err; then
3605 ... rest of stderr output deleted ...
3606 10q' conftest.err >conftest.er1
3607 cat conftest.er1 >&5
3609 rm -f conftest.er1 conftest.err
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3631 $as_echo_n "checking whether the C compiler works... " >&6; }
3632 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634 # The possible output files:
3635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3638 for ac_file in $ac_files
3641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3647 if { { ac_try="$ac_link_default"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_link_default") 2>&5
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; then :
3658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3661 # so that the user can short-circuit this test for compilers unknown to
3663 for ac_file in $ac_files ''
3665 test -f "$ac_file" || continue
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3670 # We found the default executable, but exeext='' is most
3674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678 # We set ac_cv_exeext here because the later test for it is not
3679 # safe: cross compilers may not add the suffix if given an `-o'
3680 # argument, so we may need to know it at that point already.
3681 # Even if this section looks crufty: it has the advantage of
3688 test "$ac_cv_exeext" = no && ac_cv_exeext=
3693 if test -z "$ac_file"; then :
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error 77 "C compiler cannot create executables
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3705 $as_echo "yes" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3708 $as_echo_n "checking for C compiler default output file name... " >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3710 $as_echo "$ac_file" >&6; }
3711 ac_exeext=$ac_cv_exeext
3713 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3714 ac_clean_files=$ac_clean_files_save
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3716 $as_echo_n "checking for suffix of executables... " >&6; }
3717 if { { ac_try="$ac_link"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3730 # work properly (i.e., refer to `conftest.exe'), while it won't with
3732 for ac_file in conftest.exe conftest conftest.*; do
3733 test -f "$ac_file" || continue
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3745 See \`config.log' for more details" "$LINENO" 5; }
3747 rm -f conftest conftest$ac_cv_exeext
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3749 $as_echo "$ac_cv_exeext" >&6; }
3751 rm -f conftest.$ac_ext
3752 EXEEXT=$ac_cv_exeext
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3760 FILE *f = fopen ("conftest.out", "w");
3761 return ferror (f) || fclose (f) != 0;
3767 ac_clean_files="$ac_clean_files conftest.out"
3768 # Check that the compiler produces executables we can run. If not, either
3769 # the compiler is broken, or we cross compile.
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3771 $as_echo_n "checking whether we are cross compiling... " >&6; }
3772 if test "$cross_compiling" != yes; then
3773 { { ac_try="$ac_link"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_link") 2>&5
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }
3784 if { ac_try='./conftest$ac_cv_exeext'
3785 { { case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_try") 2>&5
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }; }; then
3797 if test "$cross_compiling" = maybe; then
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "cannot run C compiled programs.
3803 If you meant to cross compile, use \`--host'.
3804 See \`config.log' for more details" "$LINENO" 5; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3809 $as_echo "$cross_compiling" >&6; }
3811 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3814 $as_echo_n "checking for suffix of object files... " >&6; }
3815 if ${ac_cv_objext+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3829 rm -f conftest.o conftest.obj
3830 if { { ac_try="$ac_compile"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compile") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 for ac_file in conftest.o conftest.obj conftest.*; do
3842 test -f "$ac_file" || continue;
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850 $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "cannot compute suffix of object files: cannot compile
3856 See \`config.log' for more details" "$LINENO" 5; }
3858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3861 $as_echo "$ac_cv_objext" >&6; }
3862 OBJEXT=$ac_cv_objext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3866 if ${ac_cv_c_compiler_gnu+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3894 if test $ac_compiler_gnu = yes; then
3899 ac_test_CFLAGS=${CFLAGS+set}
3900 ac_save_CFLAGS=$CFLAGS
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3903 if ${ac_cv_prog_cc_g+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 ac_save_c_werror_flag=$ac_c_werror_flag
3907 ac_c_werror_flag=yes
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3952 if ac_fn_c_try_compile "$LINENO"; then :
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3963 $as_echo "$ac_cv_prog_cc_g" >&6; }
3964 if test "$ac_test_CFLAGS" = set; then
3965 CFLAGS=$ac_save_CFLAGS
3966 elif test $ac_cv_prog_cc_g = yes; then
3967 if test "$GCC" = yes; then
3973 if test "$GCC" = yes; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3981 if ${ac_cv_prog_cc_c89+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 ac_cv_prog_cc_c89=no
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 #include <sys/types.h>
3991 #include <sys/stat.h>
3992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3993 struct buf { int x; };
3994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3995 static char *e (p, i)
4001 static char *f (char * (*g) (char **, int), char **p, ...)
4006 s = g (p, va_arg (v,int));
4011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4012 function prototypes and stuff, but not '\xHH' hex character constants.
4013 These don't provoke an error unfortunately, instead are silently treated
4014 as 'x'. The following induces an error, until -std is added to get
4015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4016 array size at least. It's necessary to write '\x00'==0 to get something
4017 that's true only with -std. */
4018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4020 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4021 inside strings and character constants. */
4023 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4025 int test (int i, double x);
4026 struct s1 {int (*f) (int a);};
4027 struct s2 {int (*f) (double a);};
4028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4039 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4042 CC="$ac_save_CC $ac_arg"
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044 ac_cv_prog_cc_c89=$ac_arg
4046 rm -f core conftest.err conftest.$ac_objext
4047 test "x$ac_cv_prog_cc_c89" != "xno" && break
4049 rm -f conftest.$ac_ext
4054 case "x$ac_cv_prog_cc_c89" in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4057 $as_echo "none needed" >&6; } ;;
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4060 $as_echo "unsupported" >&6; } ;;
4062 CC="$CC $ac_cv_prog_cc_c89"
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4064 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4066 if test "x$ac_cv_prog_cc_c89" != xno; then :
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 depcc="$CC" am_compiler_list=
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4079 $as_echo_n "checking dependency style of $depcc... " >&6; }
4080 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084 # We make a subdir and do the tests there. Otherwise we can end up
4085 # making bogus files that we don't know about and never remove. For
4086 # instance it was reported that on HP-UX the gcc test will end up
4087 # making a dummy file named `D' -- because `-MD' means `put the output
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4102 am_cv_CC_dependencies_compiler_type=none
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106 for depmode in $am_compiler_list; do
4107 # Setup a source with many dependencies, because some compilers
4108 # like to wrap large dependency lists on column 80 (with \), and
4109 # we should not choose a depcomp mode which is confused by this.
4111 # We need to recreate these files for each test, as the compiler may
4112 # overwrite some of them when testing with obscure command lines.
4113 # This happens at least with the AIX C compiler.
4115 for i in 1 2 3 4 5 6; do
4116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4118 # Solaris 8's {/usr,}/bin/sh.
4119 touch sub/conftst$i.h
4121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4125 # after this tag, mechanisms are not by side-effect, so they'll
4126 # only be used when explicitly requested
4127 if test "x$enable_dependency_tracking" = xyes; then
4135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136 # mode. It turns out that the SunPro C++ compiler does not properly
4137 # handle `-M -o', and we need to detect this.
4138 if depmode=$depmode \
4139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4142 >/dev/null 2>conftest.err &&
4143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147 # icc doesn't choke on unknown options, it will just issue warnings
4148 # or remarks (even with -Werror). So we grep stderr for any message
4149 # that says an option was ignored or not supported.
4150 # When given -MP, icc 7.0 and 7.1 complain thusly:
4151 # icc: Command line warning: ignoring option '-M'; no argument required
4152 # The diagnosis changed in icc 8.0:
4153 # icc: Command line remark: option '-MP' not supported
4154 if (grep 'ignoring option' conftest.err ||
4155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156 am_cv_CC_dependencies_compiler_type=$depmode
4165 am_cv_CC_dependencies_compiler_type=none
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4170 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4174 test "x$enable_dependency_tracking" != xno \
4175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4177 am__fastdepCC_FALSE='#'
4179 am__fastdepCC_TRUE='#'
4180 am__fastdepCC_FALSE=
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4185 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4186 if ${lt_cv_path_SED+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 # Loop through the user's path and test for sed and gsed.
4190 # Then use that list of sed's as ones to test for truncation.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for lt_ac_prog in sed gsed; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4208 # along with /bin/sed that truncates output.
4209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4210 test ! -f $lt_ac_sed && continue
4211 cat /dev/null > conftest.in
4213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4214 # Check for GNU sed and select it if it is found.
4215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4216 lt_cv_path_SED=$lt_ac_sed
4220 cat conftest.in conftest.in >conftest.tmp
4221 mv conftest.tmp conftest.in
4222 cp conftest.in conftest.nl
4224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4225 cmp -s conftest.out conftest.nl || break
4226 # 10000 chars as input seems more than enough
4227 test $lt_ac_count -gt 10 && break
4228 lt_ac_count=`expr $lt_ac_count + 1`
4229 if test $lt_ac_count -gt $lt_ac_max; then
4230 lt_ac_max=$lt_ac_count
4231 lt_cv_path_SED=$lt_ac_sed
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4241 $as_echo "$SED" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4245 if ${ac_cv_path_GREP+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -z "$GREP"; then
4249 ac_path_GREP_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4255 test -z "$as_dir" && as_dir=.
4256 for ac_prog in grep ggrep; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4260 # Check for GNU ac_path_GREP and select it if it is found.
4261 # Check for GNU $ac_path_GREP
4262 case `"$ac_path_GREP" --version 2>&1` in
4264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4267 $as_echo_n 0123456789 >"conftest.in"
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo 'GREP' >> "conftest.nl"
4274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_GREP="$ac_path_GREP"
4280 ac_path_GREP_max=$ac_count
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288 $ac_path_GREP_found && break 3
4293 if test -z "$ac_cv_path_GREP"; then
4294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4297 ac_cv_path_GREP=$GREP
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4302 $as_echo "$ac_cv_path_GREP" >&6; }
4303 GREP="$ac_cv_path_GREP"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4307 $as_echo_n "checking for egrep... " >&6; }
4308 if ${ac_cv_path_EGREP+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4312 then ac_cv_path_EGREP="$GREP -E"
4314 if test -z "$EGREP"; then
4315 ac_path_EGREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in egrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4326 # Check for GNU ac_path_EGREP and select it if it is found.
4327 # Check for GNU $ac_path_EGREP
4328 case `"$ac_path_EGREP" --version 2>&1` in
4330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4333 $as_echo_n 0123456789 >"conftest.in"
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'EGREP' >> "conftest.nl"
4340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_EGREP="$ac_path_EGREP"
4346 ac_path_EGREP_max=$ac_count
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4354 $ac_path_EGREP_found && break 3
4359 if test -z "$ac_cv_path_EGREP"; then
4360 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4363 ac_cv_path_EGREP=$EGREP
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4369 $as_echo "$ac_cv_path_EGREP" >&6; }
4370 EGREP="$ac_cv_path_EGREP"
4374 # Check whether --with-gnu-ld was given.
4375 if test "${with_gnu_ld+set}" = set; then :
4376 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4382 if test "$GCC" = yes; then
4383 # Check if gcc -print-prog-name=ld gives a path.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4385 $as_echo_n "checking for ld used by $CC... " >&6; }
4388 # gcc leaves a trailing carriage return which upsets mingw
4389 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4391 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4394 # Accept absolute paths.
4396 re_direlt='/[^/][^/]*/\.\./'
4397 # Canonicalize the pathname of ld
4398 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4399 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4400 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4402 test -z "$LD" && LD="$ac_prog"
4405 # If it fails, then pretend we aren't using GCC.
4409 # If it is relative, then search for the first ld in PATH.
4413 elif test "$with_gnu_ld" = yes; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4415 $as_echo_n "checking for GNU ld... " >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4418 $as_echo_n "checking for non-GNU ld... " >&6; }
4420 if ${lt_cv_path_LD+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -z "$LD"; then
4424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4425 for ac_dir in $PATH; do
4427 test -z "$ac_dir" && ac_dir=.
4428 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4429 lt_cv_path_LD="$ac_dir/$ac_prog"
4430 # Check to see if the program is GNU ld. I'd rather use --version,
4431 # but apparently some variants of GNU ld only accept -v.
4432 # Break only if it was the GNU/non-GNU ld that we prefer.
4433 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4434 *GNU* | *'with BFD'*)
4435 test "$with_gnu_ld" != no && break
4438 test "$with_gnu_ld" != yes && break
4445 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4450 if test -n "$LD"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4452 $as_echo "$LD" >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4457 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4459 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4460 if ${lt_cv_prog_gnu_ld+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4464 case `$LD -v 2>&1 </dev/null` in
4465 *GNU* | *'with BFD'*)
4466 lt_cv_prog_gnu_ld=yes
4469 lt_cv_prog_gnu_ld=no
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4474 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4475 with_gnu_ld=$lt_cv_prog_gnu_ld
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4479 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4480 if ${lt_cv_ld_reload_flag+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 lt_cv_ld_reload_flag='-r'
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4486 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4487 reload_flag=$lt_cv_ld_reload_flag
4488 case $reload_flag in
4490 *) reload_flag=" $reload_flag" ;;
4492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4495 if test "$GCC" = yes; then
4496 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4504 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4505 if ${lt_cv_path_NM+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$NM"; then
4509 # Let the user override the test.
4512 lt_nm_to_check="${ac_tool_prefix}nm"
4513 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4514 lt_nm_to_check="$lt_nm_to_check nm"
4516 for lt_tmp_nm in $lt_nm_to_check; do
4517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4518 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4520 test -z "$ac_dir" && ac_dir=.
4521 tmp_nm="$ac_dir/$lt_tmp_nm"
4522 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4523 # Check to see if the nm accepts a BSD-compat flag.
4524 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4525 # nm: unknown option "B" ignored
4526 # Tru64's nm complains that /dev/null is an invalid object file
4527 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4528 */dev/null* | *'Invalid file or object type'*)
4529 lt_cv_path_NM="$tmp_nm -B"
4533 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4535 lt_cv_path_NM="$tmp_nm -p"
4539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4540 continue # so that we can try to find one that supports BSD flags
4549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4553 $as_echo "$lt_cv_path_NM" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4557 $as_echo_n "checking whether ln -s works... " >&6; }
4559 if test "$LN_S" = "ln -s"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561 $as_echo "yes" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4564 $as_echo "no, using $LN_S" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4568 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4569 if ${lt_cv_deplibs_check_method+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 lt_cv_file_magic_cmd='$MAGIC_CMD'
4573 lt_cv_file_magic_test_file=
4574 lt_cv_deplibs_check_method='unknown'
4575 # Need to set the preceding variable on all platforms that support
4576 # interlibrary dependencies.
4577 # 'none' -- dependencies not supported.
4578 # `unknown' -- same as none, but documents that we really don't know.
4579 # 'pass_all' -- all dependencies passed with no checks.
4580 # 'test_compile' -- check by making test program.
4581 # 'file_magic [[regex]]' -- check by looking for files in library path
4582 # which responds to the $file_magic_cmd with a given extended regex.
4583 # If you have `file' or equivalent on your system and you're not sure
4584 # whether `pass_all' will *always* work, you probably want this one.
4588 lt_cv_deplibs_check_method=pass_all
4592 lt_cv_deplibs_check_method=pass_all
4596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4597 lt_cv_file_magic_cmd='/usr/bin/file -L'
4598 lt_cv_file_magic_test_file=/shlib/libc.so
4602 # func_win32_libid is a shell function defined in ltmain.sh
4603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4604 lt_cv_file_magic_cmd='func_win32_libid'
4608 # Base MSYS/MinGW do not provide the 'file' command needed by
4609 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4610 # unless we find 'file', for example because we are cross-compiling.
4611 if ( file / ) >/dev/null 2>&1; then
4612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4613 lt_cv_file_magic_cmd='func_win32_libid'
4615 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4616 lt_cv_file_magic_cmd='$OBJDUMP -f'
4620 darwin* | rhapsody*)
4621 lt_cv_deplibs_check_method=pass_all
4624 freebsd* | dragonfly*)
4625 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4628 # Not sure whether the presence of OpenBSD here was a mistake.
4629 # Let's accept both of them until this is cleared up.
4630 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4631 lt_cv_file_magic_cmd=/usr/bin/file
4632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4636 lt_cv_deplibs_check_method=pass_all
4641 lt_cv_deplibs_check_method=pass_all
4644 hpux10.20* | hpux11*)
4645 lt_cv_file_magic_cmd=/usr/bin/file
4648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4649 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4652 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]'
4653 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4657 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4663 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4667 irix5* | irix6* | nonstopux*)
4669 *-32|*"-32 ") libmagic=32-bit;;
4670 *-n32|*"-n32 ") libmagic=N32;;
4671 *-64|*"-64 ") libmagic=64-bit;;
4672 *) libmagic=never-match;;
4674 lt_cv_deplibs_check_method=pass_all
4677 # This must be Linux ELF.
4678 linux* | k*bsd*-gnu)
4679 lt_cv_deplibs_check_method=pass_all
4682 netbsd* | netbsdelf*-gnu)
4683 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4692 lt_cv_file_magic_cmd=/usr/bin/file
4693 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4697 lt_cv_deplibs_check_method=unknown
4701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4708 osf3* | osf4* | osf5*)
4709 lt_cv_deplibs_check_method=pass_all
4713 lt_cv_deplibs_check_method=pass_all
4717 lt_cv_deplibs_check_method=pass_all
4721 case $host_vendor in
4723 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]'
4724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4727 lt_cv_deplibs_check_method=pass_all
4730 lt_cv_file_magic_cmd='/bin/file'
4731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4734 lt_cv_file_magic_cmd='/bin/file'
4735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4736 lt_cv_file_magic_test_file=/lib/libc.so
4739 lt_cv_deplibs_check_method=pass_all
4742 lt_cv_deplibs_check_method=pass_all
4747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4748 lt_cv_deplibs_check_method=pass_all
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4755 file_magic_cmd=$lt_cv_file_magic_cmd
4756 deplibs_check_method=$lt_cv_deplibs_check_method
4757 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4762 # If no C compiler was specified, use CC.
4765 # If no C compiler flags were specified, use CFLAGS.
4766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4768 # Allow CC to be a program name with arguments.
4772 # Check whether --enable-libtool-lock was given.
4773 if test "${enable_libtool_lock+set}" = set; then :
4774 enableval=$enable_libtool_lock;
4777 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4779 # Some flags need to be propagated to the compiler or linker for good
4783 # Find out which ABI we are using.
4784 echo 'int i;' > conftest.$ac_ext
4785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4786 (eval $ac_compile) 2>&5
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }; then
4790 case `/usr/bin/file conftest.$ac_objext` in
4802 # Find out which ABI we are using.
4803 echo '#line 4803 "configure"' > conftest.$ac_ext
4804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4805 (eval $ac_compile) 2>&5
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then
4809 if test "$lt_cv_prog_gnu_ld" = yes; then
4810 case `/usr/bin/file conftest.$ac_objext` in
4812 LD="${LD-ld} -melf32bsmip"
4815 LD="${LD-ld} -melf32bmipn32"
4818 LD="${LD-ld} -melf64bmip"
4822 case `/usr/bin/file conftest.$ac_objext` in
4838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4839 s390*-*linux*|sparc*-*linux*)
4840 # Find out which ABI we are using.
4841 echo 'int i;' > conftest.$ac_ext
4842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4843 (eval $ac_compile) 2>&5
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }; then
4847 case `/usr/bin/file conftest.o` in
4850 x86_64-*kfreebsd*-gnu)
4851 LD="${LD-ld} -m elf_i386_fbsd"
4854 LD="${LD-ld} -m elf_i386"
4856 ppc64-*linux*|powerpc64-*linux*)
4857 LD="${LD-ld} -m elf32ppclinux"
4860 LD="${LD-ld} -m elf_s390"
4863 LD="${LD-ld} -m elf32_sparc"
4869 x86_64-*kfreebsd*-gnu)
4870 LD="${LD-ld} -m elf_x86_64_fbsd"
4873 LD="${LD-ld} -m elf_x86_64"
4875 ppc*-*linux*|powerpc*-*linux*)
4876 LD="${LD-ld} -m elf64ppc"
4879 LD="${LD-ld} -m elf64_s390"
4882 LD="${LD-ld} -m elf64_sparc"
4892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4893 SAVE_CFLAGS="$CFLAGS"
4894 CFLAGS="$CFLAGS -belf"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4896 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4897 if ${lt_cv_cc_needs_belf+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4917 if ac_fn_c_try_link "$LINENO"; then :
4918 lt_cv_cc_needs_belf=yes
4920 lt_cv_cc_needs_belf=no
4922 rm -f core conftest.err conftest.$ac_objext \
4923 conftest$ac_exeext conftest.$ac_ext
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4932 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4935 CFLAGS="$SAVE_CFLAGS"
4939 # Find out which ABI we are using.
4940 echo 'int i;' > conftest.$ac_ext
4941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4942 (eval $ac_compile) 2>&5
4944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }; then
4946 case `/usr/bin/file conftest.o` in
4948 case $lt_cv_prog_gnu_ld in
4949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4951 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4965 need_locks="$enable_libtool_lock"
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4979 if test -z "$CPP"; then
4980 if ${ac_cv_prog_CPP+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4998 # include <limits.h>
5000 # include <assert.h>
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: fails on valid input.
5010 rm -f conftest.err conftest.i conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5022 # Passes both tests.
5026 rm -f conftest.err conftest.i conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.i conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.i conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5081 # Passes both tests.
5085 rm -f conftest.err conftest.i conftest.$ac_ext
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.i conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details" "$LINENO" 5; }
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5107 $as_echo_n "checking for ANSI C header files... " >&6; }
5108 if ${ac_cv_header_stdc+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_header_stdc=yes
5129 ac_cv_header_stdc=no
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 if test $ac_cv_header_stdc = yes; then
5134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 $EGREP "memchr" >/dev/null 2>&1; then :
5144 ac_cv_header_stdc=no
5150 if test $ac_cv_header_stdc = yes; then
5151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "free" >/dev/null 2>&1; then :
5161 ac_cv_header_stdc=no
5167 if test $ac_cv_header_stdc = yes; then
5168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5169 if test "$cross_compiling" = yes; then :
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5176 #if ((' ' & 0x0FF) == 0x020)
5177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5180 # define ISLOWER(c) \
5181 (('a' <= (c) && (c) <= 'i') \
5182 || ('j' <= (c) && (c) <= 'r') \
5183 || ('s' <= (c) && (c) <= 'z'))
5184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5192 for (i = 0; i < 256; i++)
5193 if (XOR (islower (i), ISLOWER (i))
5194 || toupper (i) != TOUPPER (i))
5199 if ac_fn_c_try_run "$LINENO"; then :
5202 ac_cv_header_stdc=no
5204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5205 conftest.$ac_objext conftest.beam conftest.$ac_ext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5211 $as_echo "$ac_cv_header_stdc" >&6; }
5212 if test $ac_cv_header_stdc = yes; then
5214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5220 inttypes.h stdint.h unistd.h
5222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5226 cat >>confdefs.h <<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 for ac_header in dlfcn.h
5237 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_DLFCN_H 1
5248 ac_cpp='$CXXCPP $CPPFLAGS'
5249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5252 if test -z "$CXX"; then
5253 if test -n "$CCC"; then
5256 if test -n "$ac_tool_prefix"; then
5257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_CXX+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 if test -n "$CXX"; then
5267 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 if test -n "$CXX"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5289 $as_echo "$CXX" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5296 test -n "$CXX" && break
5299 if test -z "$CXX"; then
5301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5303 # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$ac_ct_CXX"; then
5311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_prog_ac_ct_CXX="$ac_prog"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5331 if test -n "$ac_ct_CXX"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5333 $as_echo "$ac_ct_CXX" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 test -n "$ac_ct_CXX" && break
5343 if test "x$ac_ct_CXX" = x; then
5346 case $cross_compiling:$ac_tool_warned in
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5358 # Provide some information about the compiler.
5359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5362 for ac_option in --version -v -V -qversion; do
5363 { { ac_try="$ac_compiler $ac_option >&5"
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5369 $as_echo "$ac_try_echo"; } >&5
5370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5372 if test -s conftest.err; then
5374 ... rest of stderr output deleted ...
5375 10q' conftest.err >conftest.er1
5376 cat conftest.er1 >&5
5378 rm -f conftest.er1 conftest.err
5379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5380 test $ac_status = 0; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5384 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5385 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5402 if ac_fn_cxx_try_compile "$LINENO"; then :
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5412 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5413 if test $ac_compiler_gnu = yes; then
5418 ac_test_CXXFLAGS=${CXXFLAGS+set}
5419 ac_save_CXXFLAGS=$CXXFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5421 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5422 if ${ac_cv_prog_cxx_g+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5426 ac_cxx_werror_flag=yes
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5440 if ac_fn_cxx_try_compile "$LINENO"; then :
5441 ac_cv_prog_cxx_g=yes
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5455 if ac_fn_cxx_try_compile "$LINENO"; then :
5458 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5471 if ac_fn_cxx_try_compile "$LINENO"; then :
5472 ac_cv_prog_cxx_g=yes
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5483 if test "$ac_test_CXXFLAGS" = set; then
5484 CXXFLAGS=$ac_save_CXXFLAGS
5485 elif test $ac_cv_prog_cxx_g = yes; then
5486 if test "$GXX" = yes; then
5492 if test "$GXX" = yes; then
5499 ac_cpp='$CXXCPP $CPPFLAGS'
5500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5504 depcc="$CXX" am_compiler_list=
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5507 $as_echo_n "checking dependency style of $depcc... " >&6; }
5508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5512 # We make a subdir and do the tests there. Otherwise we can end up
5513 # making bogus files that we don't know about and never remove. For
5514 # instance it was reported that on HP-UX the gcc test will end up
5515 # making a dummy file named `D' -- because `-MD' means `put the output
5518 # Copy depcomp to subdir because otherwise we won't find it if we're
5519 # using a relative directory.
5520 cp "$am_depcomp" conftest.dir
5522 # We will build objects and dependencies in a subdirectory because
5523 # it helps to detect inapplicable dependency modes. For instance
5524 # both Tru64's cc and ICC support -MD to output dependencies as a
5525 # side effect of compilation, but ICC will put the dependencies in
5526 # the current directory while Tru64 will put them in the object
5530 am_cv_CXX_dependencies_compiler_type=none
5531 if test "$am_compiler_list" = ""; then
5532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5534 for depmode in $am_compiler_list; do
5535 # Setup a source with many dependencies, because some compilers
5536 # like to wrap large dependency lists on column 80 (with \), and
5537 # we should not choose a depcomp mode which is confused by this.
5539 # We need to recreate these files for each test, as the compiler may
5540 # overwrite some of them when testing with obscure command lines.
5541 # This happens at least with the AIX C compiler.
5543 for i in 1 2 3 4 5 6; do
5544 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5545 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5546 # Solaris 8's {/usr,}/bin/sh.
5547 touch sub/conftst$i.h
5549 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5553 # after this tag, mechanisms are not by side-effect, so they'll
5554 # only be used when explicitly requested
5555 if test "x$enable_dependency_tracking" = xyes; then
5563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5564 # mode. It turns out that the SunPro C++ compiler does not properly
5565 # handle `-M -o', and we need to detect this.
5566 if depmode=$depmode \
5567 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5569 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5570 >/dev/null 2>conftest.err &&
5571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5573 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5575 # icc doesn't choke on unknown options, it will just issue warnings
5576 # or remarks (even with -Werror). So we grep stderr for any message
5577 # that says an option was ignored or not supported.
5578 # When given -MP, icc 7.0 and 7.1 complain thusly:
5579 # icc: Command line warning: ignoring option '-M'; no argument required
5580 # The diagnosis changed in icc 8.0:
5581 # icc: Command line remark: option '-MP' not supported
5582 if (grep 'ignoring option' conftest.err ||
5583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5584 am_cv_CXX_dependencies_compiler_type=$depmode
5593 am_cv_CXX_dependencies_compiler_type=none
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5598 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5599 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5602 test "x$enable_dependency_tracking" != xno \
5603 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5604 am__fastdepCXX_TRUE=
5605 am__fastdepCXX_FALSE='#'
5607 am__fastdepCXX_TRUE='#'
5608 am__fastdepCXX_FALSE=
5614 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5615 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5616 (test "X$CXX" != "Xg++"))) ; then
5618 ac_cpp='$CXXCPP $CPPFLAGS'
5619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5623 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5624 if test -z "$CXXCPP"; then
5625 if ${ac_cv_prog_CXXCPP+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 # Double quotes because CXXCPP needs to be expanded
5629 for CXXCPP in "$CXX -E" "/lib/cpp"
5632 for ac_cxx_preproc_warn_flag in '' yes
5634 # Use a header file that comes with gcc, so configuring glibc
5635 # with a fresh cross-compiler works.
5636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5637 # <limits.h> exists even on freestanding compilers.
5638 # On the NeXT, cc -E runs the code through the compiler's parser,
5639 # not just through cpp. "Syntax error" is here to catch this case.
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5643 # include <limits.h>
5645 # include <assert.h>
5649 if ac_fn_cxx_try_cpp "$LINENO"; then :
5652 # Broken: fails on valid input.
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5657 # OK, works on sane cases. Now check whether nonexistent headers
5658 # can be detected and how.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <ac_nonexistent.h>
5663 if ac_fn_cxx_try_cpp "$LINENO"; then :
5664 # Broken: success on invalid input.
5667 # Passes both tests.
5671 rm -f conftest.err conftest.i conftest.$ac_ext
5674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5675 rm -f conftest.i conftest.err conftest.$ac_ext
5676 if $ac_preproc_ok; then :
5681 ac_cv_prog_CXXCPP=$CXXCPP
5684 CXXCPP=$ac_cv_prog_CXXCPP
5686 ac_cv_prog_CXXCPP=$CXXCPP
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5689 $as_echo "$CXXCPP" >&6; }
5691 for ac_cxx_preproc_warn_flag in '' yes
5693 # Use a header file that comes with gcc, so configuring glibc
5694 # with a fresh cross-compiler works.
5695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5696 # <limits.h> exists even on freestanding compilers.
5697 # On the NeXT, cc -E runs the code through the compiler's parser,
5698 # not just through cpp. "Syntax error" is here to catch this case.
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5702 # include <limits.h>
5704 # include <assert.h>
5708 if ac_fn_cxx_try_cpp "$LINENO"; then :
5711 # Broken: fails on valid input.
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5716 # OK, works on sane cases. Now check whether nonexistent headers
5717 # can be detected and how.
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <ac_nonexistent.h>
5722 if ac_fn_cxx_try_cpp "$LINENO"; then :
5723 # Broken: success on invalid input.
5726 # Passes both tests.
5730 rm -f conftest.err conftest.i conftest.$ac_ext
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.i conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then :
5738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5740 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5741 See \`config.log' for more details" "$LINENO" 5; }
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5757 if test -n "$ac_tool_prefix"; then
5758 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
5760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_F77+:} false; then :
5765 $as_echo_n "(cached) " >&6
5767 if test -n "$F77"; then
5768 ac_cv_prog_F77="$F77" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 if test -n "$F77"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5790 $as_echo "$F77" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5797 test -n "$F77" && break
5800 if test -z "$F77"; then
5802 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
5804 # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 if test -n "$ac_ct_F77"; then
5812 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_ac_ct_F77="$ac_prog"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5832 if test -n "$ac_ct_F77"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5834 $as_echo "$ac_ct_F77" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5841 test -n "$ac_ct_F77" && break
5844 if test "x$ac_ct_F77" = x; then
5847 case $cross_compiling:$ac_tool_warned in
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851 ac_tool_warned=yes ;;
5858 # Provide some information about the compiler.
5859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5862 for ac_option in --version -v -V -qversion; do
5863 { { ac_try="$ac_compiler $ac_option >&5"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5869 $as_echo "$ac_try_echo"; } >&5
5870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5872 if test -s conftest.err; then
5874 ... rest of stderr output deleted ...
5875 10q' conftest.err >conftest.er1
5876 cat conftest.er1 >&5
5878 rm -f conftest.er1 conftest.err
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }
5884 # If we don't use `.F' as extension, the preprocessor is not run on the
5885 # input file. (Note that this only needs to work for GNU compilers.)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5889 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5890 if ${ac_cv_f77_compiler_gnu+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 cat > conftest.$ac_ext <<_ACEOF
5901 if ac_fn_f77_try_compile "$LINENO"; then :
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5911 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5913 ac_test_FFLAGS=${FFLAGS+set}
5914 ac_save_FFLAGS=$FFLAGS
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5917 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5918 if ${ac_cv_prog_f77_g+:} false; then :
5919 $as_echo_n "(cached) " >&6
5922 cat > conftest.$ac_ext <<_ACEOF
5927 if ac_fn_f77_try_compile "$LINENO"; then :
5928 ac_cv_prog_f77_g=yes
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5936 $as_echo "$ac_cv_prog_f77_g" >&6; }
5937 if test "$ac_test_FFLAGS" = set; then
5938 FFLAGS=$ac_save_FFLAGS
5939 elif test $ac_cv_prog_f77_g = yes; then
5940 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5953 if test $ac_compiler_gnu = yes; then
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5967 # find the maximum length of command line arguments
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5969 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5970 if ${lt_cv_sys_max_cmd_len+:} false; then :
5971 $as_echo_n "(cached) " >&6
5978 # On DJGPP, this test can blow up pretty badly due to problems in libc
5979 # (any single argument exceeding 2000 bytes causes a buffer overrun
5980 # during glob expansion). Even if it were fixed, the result of this
5981 # check would be larger than it should be.
5982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5986 # Under GNU Hurd, this test is not required because there is
5987 # no limit to the length of command line arguments.
5988 # Libtool will interpret -1 as no limit whatsoever
5989 lt_cv_sys_max_cmd_len=-1;
5993 # On Win9x/ME, this test blows up -- it succeeds, but takes
5994 # about 5 minutes as the teststring grows exponentially.
5995 # Worse, since 9x/ME are not pre-emptively multitasking,
5996 # you end up with a "frozen" computer, even though with patience
5997 # the test eventually succeeds (with a max line length of 256k).
5998 # Instead, let's just punt: use the minimum linelength reported by
5999 # all of the supported platforms: 8192 (on NT/2K/XP).
6000 lt_cv_sys_max_cmd_len=8192;
6004 # On AmigaOS with pdksh, this test takes hours, literally.
6005 # So we just punt and use a minimum line length of 8192.
6006 lt_cv_sys_max_cmd_len=8192;
6009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6010 # This has been around since 386BSD, at least. Likely further.
6011 if test -x /sbin/sysctl; then
6012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6013 elif test -x /usr/sbin/sysctl; then
6014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6018 # And add a safety zone
6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6024 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6025 lt_cv_sys_max_cmd_len=196608
6029 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6030 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6031 # nice to cause kernel panics so lets avoid the loop below.
6032 # First set a reasonable default.
6033 lt_cv_sys_max_cmd_len=16384
6035 if test -x /sbin/sysconfig; then
6036 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6037 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6042 lt_cv_sys_max_cmd_len=102400
6044 sysv5* | sco5v6* | sysv4.2uw2*)
6045 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6046 if test -n "$kargmax"; then
6047 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6049 lt_cv_sys_max_cmd_len=32768
6053 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6054 if test -n "$lt_cv_sys_max_cmd_len"; then
6055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6059 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6060 = "XX$teststring") >/dev/null 2>&1 &&
6061 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6062 lt_cv_sys_max_cmd_len=$new_result &&
6063 test $i != 17 # 1/2 MB should be enough
6066 teststring=$teststring$teststring
6069 # Add a significant safety factor because C++ compilers can tack on massive
6070 # amounts of additional arguments before passing them to the linker.
6071 # It appears as though 1/2 is a usable value.
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079 if test -n $lt_cv_sys_max_cmd_len ; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6081 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6084 $as_echo "none" >&6; }
6091 # Check for command to grab the raw symbol name followed by C symbol from nm.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6095 $as_echo_n "(cached) " >&6
6098 # These are sane defaults that work on at least a few old systems.
6099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6101 # Character class describing NM global symbol codes.
6102 symcode='[BCDEGRST]'
6104 # Regexp to match symbols that can be accessed directly from C.
6105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6107 # Transform an extracted symbol line into a proper C declaration
6108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6110 # Transform an extracted symbol line into symbol name and symbol address
6111 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'"
6113 # Define system-specific variables.
6118 cygwin* | mingw* | pw32*)
6119 symcode='[ABCDGISTW]'
6121 hpux*) # Its linker distinguishes data from code symbols
6122 if test "$host_cpu" = ia64; then
6123 symcode='[ABCDEGRST]'
6125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6126 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'"
6128 linux* | k*bsd*-gnu)
6129 if test "$host_cpu" = ia64; then
6130 symcode='[ABCDGIRSTW]'
6131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6132 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'"
6136 symcode='[BCDEGRST]'
6139 symcode='[BCDEGQRST]'
6150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6158 # Handle CRLF in mingw tool chain
6162 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6166 # If we're using GNU nm, then use its standard symbol codes.
6167 case `$NM -V 2>&1` in
6168 *GNU* | *'with BFD'*)
6169 symcode='[ABCDGIRSTW]' ;;
6172 # Try without a prefix undercore, then with it.
6173 for ac_symprfx in "" "_"; do
6175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6176 symxfrm="\\1 $ac_symprfx\\2 \\2"
6178 # Write the raw and C identifiers.
6179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181 # Check to see that the pipe works correctly.
6185 cat > conftest.$ac_ext <<EOF
6190 void nm_test_func(){}
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 # Now try to grab the symbols.
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6205 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; } && test -s "$nlist"; then
6209 # Try sorting and uniquifying the output.
6210 if sort "$nlist" | uniq > "$nlist"T; then
6211 mv -f "$nlist"T "$nlist"
6216 # Make sure that we snagged all the symbols we need.
6217 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6218 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6219 cat <<EOF > conftest.$ac_ext
6225 # Now generate the symbol file.
6226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6228 cat <<EOF >> conftest.$ac_ext
6229 #if defined (__STDC__) && __STDC__
6230 # define lt_ptr_t void *
6232 # define lt_ptr_t char *
6236 /* The mapping between symbol names and symbols. */
6241 lt_preloaded_symbols[] =
6244 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6245 cat <<\EOF >> conftest.$ac_ext
6253 # Now try linking the two files.
6254 mv conftest.$ac_objext conftstm.$ac_objext
6255 lt_save_LIBS="$LIBS"
6256 lt_save_CFLAGS="$CFLAGS"
6257 LIBS="conftstm.$ac_objext"
6258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6260 (eval $ac_link) 2>&5
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6266 LIBS="$lt_save_LIBS"
6267 CFLAGS="$lt_save_CFLAGS"
6269 echo "cannot find nm_test_func in $nlist" >&5
6272 echo "cannot find nm_test_var in $nlist" >&5
6275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6278 echo "$progname: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 rm -rf conftest* conftst*
6283 # Do not use the global_symbol_pipe unless it works.
6284 if test "$pipe_works" = yes; then
6287 lt_cv_sys_global_symbol_pipe=
6293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6294 lt_cv_sys_global_symbol_to_cdecl=
6296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6298 $as_echo "failed" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6301 $as_echo "ok" >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6305 $as_echo_n "checking for objdir... " >&6; }
6306 if ${lt_cv_objdir+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 rm -f .libs 2>/dev/null
6310 mkdir .libs 2>/dev/null
6311 if test -d .libs; then
6314 # MS-DOS does not allow filenames that begin with a dot.
6317 rmdir .libs 2>/dev/null
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6320 $as_echo "$lt_cv_objdir" >&6; }
6321 objdir=$lt_cv_objdir
6329 # AIX sometimes has problems with the GCC collect2 program. For some
6330 # reason, if we set the COLLECT_NAMES environment variable, the problems
6331 # vanish in a puff of smoke.
6332 if test "X${COLLECT_NAMES+set}" != Xset; then
6334 export COLLECT_NAMES
6339 # Sed substitution that helps us do robust quoting. It backslashifies
6340 # metacharacters that are still active within double-quoted strings.
6341 Xsed='sed -e 1s/^X//'
6342 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6344 # Same as above, but do not quote variable references.
6345 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6347 # Sed substitution to delay expansion of an escaped shell variable in a
6348 # double_quote_subst'ed string.
6349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6351 # Sed substitution to avoid accidental globbing in evaled expressions
6352 no_glob_subst='s/\*/\\\*/g'
6358 default_ofile=libtool
6359 can_build_shared=yes
6361 # All known linkers require a `.a' archive for static linking (except MSVC,
6362 # which needs '.lib').
6364 ltmain="$ac_aux_dir/ltmain.sh"
6365 ofile="$default_ofile"
6366 with_gnu_ld="$lt_cv_prog_gnu_ld"
6368 if test -n "$ac_tool_prefix"; then
6369 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}ar; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_AR+:} false; then :
6374 $as_echo_n "(cached) " >&6
6376 if test -n "$AR"; then
6377 ac_cv_prog_AR="$AR" # Let the user override the test.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_AR="${ac_tool_prefix}ar"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 if test -n "$AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6399 $as_echo "$AR" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6407 if test -z "$ac_cv_prog_AR"; then
6409 # Extract the first word of "ar", so it can be a program name with args.
6410 set dummy ar; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6414 $as_echo_n "(cached) " >&6
6416 if test -n "$ac_ct_AR"; then
6417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_ac_ct_AR="ar"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6437 if test -n "$ac_ct_AR"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6439 $as_echo "$ac_ct_AR" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6445 if test "x$ac_ct_AR" = x; then
6448 case $cross_compiling:$ac_tool_warned in
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452 ac_tool_warned=yes ;;
6460 if test -n "$ac_tool_prefix"; then
6461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6462 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_RANLIB+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 if test -n "$RANLIB"; then
6469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 RANLIB=$ac_cv_prog_RANLIB
6489 if test -n "$RANLIB"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6491 $as_echo "$RANLIB" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6499 if test -z "$ac_cv_prog_RANLIB"; then
6500 ac_ct_RANLIB=$RANLIB
6501 # Extract the first word of "ranlib", so it can be a program name with args.
6502 set dummy ranlib; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 if test -n "$ac_ct_RANLIB"; then
6509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_ac_ct_RANLIB="ranlib"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6529 if test -n "$ac_ct_RANLIB"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6531 $as_echo "$ac_ct_RANLIB" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6537 if test "x$ac_ct_RANLIB" = x; then
6540 case $cross_compiling:$ac_tool_warned in
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544 ac_tool_warned=yes ;;
6546 RANLIB=$ac_ct_RANLIB
6549 RANLIB="$ac_cv_prog_RANLIB"
6552 if test -n "$ac_tool_prefix"; then
6553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_STRIP+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$STRIP"; then
6561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 STRIP=$ac_cv_prog_STRIP
6581 if test -n "$STRIP"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6583 $as_echo "$STRIP" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6591 if test -z "$ac_cv_prog_STRIP"; then
6593 # Extract the first word of "strip", so it can be a program name with args.
6594 set dummy strip; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6598 $as_echo_n "(cached) " >&6
6600 if test -n "$ac_ct_STRIP"; then
6601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_ac_ct_STRIP="strip"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6621 if test -n "$ac_ct_STRIP"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6623 $as_echo "$ac_ct_STRIP" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6629 if test "x$ac_ct_STRIP" = x; then
6632 case $cross_compiling:$ac_tool_warned in
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6641 STRIP="$ac_cv_prog_STRIP"
6646 old_CFLAGS="$CFLAGS"
6648 # Set sane defaults for various variables
6649 test -z "$AR" && AR=ar
6650 test -z "$AR_FLAGS" && AR_FLAGS=cru
6651 test -z "$AS" && AS=as
6652 test -z "$CC" && CC=cc
6653 test -z "$LTCC" && LTCC=$CC
6654 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6655 test -z "$DLLTOOL" && DLLTOOL=dlltool
6656 test -z "$LD" && LD=ld
6657 test -z "$LN_S" && LN_S="ln -s"
6658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6659 test -z "$NM" && NM=nm
6660 test -z "$SED" && SED=sed
6661 test -z "$OBJDUMP" && OBJDUMP=objdump
6662 test -z "$RANLIB" && RANLIB=:
6663 test -z "$STRIP" && STRIP=:
6664 test -z "$ac_objext" && ac_objext=o
6666 # Determine commands to create old-style static archives.
6667 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6668 old_postinstall_cmds='chmod 644 $oldlib'
6669 old_postuninstall_cmds=
6671 if test -n "$RANLIB"; then
6674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6680 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6683 for cc_temp in $compiler""; do
6685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6694 # Only perform the check for file, if the check method requires it
6695 case $deplibs_check_method in
6697 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6699 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6701 $as_echo_n "(cached) " >&6
6705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6708 lt_save_MAGIC_CMD="$MAGIC_CMD"
6709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6711 for ac_dir in $ac_dummy; do
6713 test -z "$ac_dir" && ac_dir=.
6714 if test -f $ac_dir/${ac_tool_prefix}file; then
6715 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6716 if test -n "$file_magic_test_file"; then
6717 case $deplibs_check_method in
6719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6722 $EGREP "$file_magic_regex" > /dev/null; then
6727 *** Warning: the command libtool uses to detect shared libraries,
6728 *** $file_magic_cmd, produces output that libtool cannot recognize.
6729 *** The result is that libtool may fail to recognize shared libraries
6730 *** as such. This will affect the creation of libtool libraries that
6731 *** depend on shared libraries, but programs linked with such libtool
6732 *** libraries will work regardless of this problem. Nevertheless, you
6733 *** may want to report the problem to your system manager and/or to
6734 *** bug-libtool@gnu.org
6744 MAGIC_CMD="$lt_save_MAGIC_CMD"
6749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6750 if test -n "$MAGIC_CMD"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6752 $as_echo "$MAGIC_CMD" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6758 if test -z "$lt_cv_path_MAGIC_CMD"; then
6759 if test -n "$ac_tool_prefix"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6761 $as_echo_n "checking for file... " >&6; }
6762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6763 $as_echo_n "(cached) " >&6
6767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6770 lt_save_MAGIC_CMD="$MAGIC_CMD"
6771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6772 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6773 for ac_dir in $ac_dummy; do
6775 test -z "$ac_dir" && ac_dir=.
6776 if test -f $ac_dir/file; then
6777 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6778 if test -n "$file_magic_test_file"; then
6779 case $deplibs_check_method in
6781 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6784 $EGREP "$file_magic_regex" > /dev/null; then
6789 *** Warning: the command libtool uses to detect shared libraries,
6790 *** $file_magic_cmd, produces output that libtool cannot recognize.
6791 *** The result is that libtool may fail to recognize shared libraries
6792 *** as such. This will affect the creation of libtool libraries that
6793 *** depend on shared libraries, but programs linked with such libtool
6794 *** libraries will work regardless of this problem. Nevertheless, you
6795 *** may want to report the problem to your system manager and/or to
6796 *** bug-libtool@gnu.org
6806 MAGIC_CMD="$lt_save_MAGIC_CMD"
6811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6812 if test -n "$MAGIC_CMD"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6814 $as_echo "$MAGIC_CMD" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6831 rhapsody* | darwin*)
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$DSYMUTIL"; then
6841 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6861 if test -n "$DSYMUTIL"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6863 $as_echo "$DSYMUTIL" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6871 if test -z "$ac_cv_prog_DSYMUTIL"; then
6872 ac_ct_DSYMUTIL=$DSYMUTIL
6873 # Extract the first word of "dsymutil", so it can be a program name with args.
6874 set dummy dsymutil; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$ac_ct_DSYMUTIL"; then
6881 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6901 if test -n "$ac_ct_DSYMUTIL"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6903 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6909 if test "x$ac_ct_DSYMUTIL" = x; then
6912 case $cross_compiling:$ac_tool_warned in
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6918 DSYMUTIL=$ac_ct_DSYMUTIL
6921 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_NMEDIT+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$NMEDIT"; then
6933 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 NMEDIT=$ac_cv_prog_NMEDIT
6953 if test -n "$NMEDIT"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6955 $as_echo "$NMEDIT" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6963 if test -z "$ac_cv_prog_NMEDIT"; then
6964 ac_ct_NMEDIT=$NMEDIT
6965 # Extract the first word of "nmedit", so it can be a program name with args.
6966 set dummy nmedit; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 if test -n "$ac_ct_NMEDIT"; then
6973 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6993 if test -n "$ac_ct_NMEDIT"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6995 $as_echo "$ac_ct_NMEDIT" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7001 if test "x$ac_ct_NMEDIT" = x; then
7004 case $cross_compiling:$ac_tool_warned in
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7010 NMEDIT=$ac_ct_NMEDIT
7013 NMEDIT="$ac_cv_prog_NMEDIT"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7018 $as_echo_n "checking for -single_module linker flag... " >&6; }
7019 if ${lt_cv_apple_cc_single_mod+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 lt_cv_apple_cc_single_mod=no
7023 if test -z "${LT_MULTI_MODULE}"; then
7024 # By default we will add the -single_module flag. You can override
7025 # by either setting the environment variable LT_MULTI_MODULE
7026 # non-empty at configure time, or by adding -multi_module to the
7028 echo "int foo(void){return 1;}" > conftest.c
7029 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7030 -dynamiclib ${wl}-single_module conftest.c
7031 if test -f libconftest.dylib; then
7032 lt_cv_apple_cc_single_mod=yes
7033 rm -rf libconftest.dylib*
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7039 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7041 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7042 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 lt_cv_ld_exported_symbols_list=no
7046 save_LDFLAGS=$LDFLAGS
7047 echo "_main" > conftest.sym
7048 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7060 if ac_fn_c_try_link "$LINENO"; then :
7061 lt_cv_ld_exported_symbols_list=yes
7063 lt_cv_ld_exported_symbols_list=no
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067 LDFLAGS="$save_LDFLAGS"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7071 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7073 rhapsody* | darwin1.[0123])
7074 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7076 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7078 # if running on 10.5 or later, the deployment target defaults
7079 # to the OS version, if on x86, and 10.4, the deployment
7080 # target defaults to 10.4. Don't you love it?
7081 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7082 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7085 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7087 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7091 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7092 _lt_dar_single_mod='$single_module'
7094 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7095 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7097 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7099 if test "$DSYMUTIL" != ":"; then
7100 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7111 # Check whether --enable-libtool-lock was given.
7112 if test "${enable_libtool_lock+set}" = set; then :
7113 enableval=$enable_libtool_lock;
7116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7119 # Check whether --with-pic was given.
7120 if test "${with_pic+set}" = set; then :
7121 withval=$with_pic; pic_mode="$withval"
7126 test -z "$pic_mode" && pic_mode=default
7128 # Use C for the default configuration in the libtool script
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 # Source file extension for C test sources.
7141 # Object file extension for compiled C test sources.
7145 # Code to be used in simple compile tests
7146 lt_simple_compile_test_code="int some_variable = 0;"
7148 # Code to be used in simple link tests
7149 lt_simple_link_test_code='int main(){return(0);}'
7152 # If no C compiler was specified, use CC.
7155 # If no C compiler flags were specified, use CFLAGS.
7156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7158 # Allow CC to be a program name with arguments.
7162 # save warnings/boilerplate of simple test code
7163 ac_outfile=conftest.$ac_objext
7164 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166 _lt_compiler_boilerplate=`cat conftest.err`
7169 ac_outfile=conftest.$ac_objext
7170 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7172 _lt_linker_boilerplate=`cat conftest.err`
7177 lt_prog_compiler_no_builtin_flag=
7179 if test "$GCC" = yes; then
7180 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7184 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7185 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 lt_cv_prog_compiler_rtti_exceptions=no
7189 ac_outfile=conftest.$ac_objext
7190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7191 lt_compiler_flag="-fno-rtti -fno-exceptions"
7192 # Insert the option either (1) after the last *FLAGS variable, or
7193 # (2) before a word containing "conftest.", or (3) at the end.
7194 # Note that $ac_compile itself does not contain backslashes and begins
7195 # with a dollar sign (not a hyphen), so the echo should work correctly.
7196 # The option is referenced via a variable to avoid confusing sed.
7197 lt_compile=`echo "$ac_compile" | $SED \
7198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7200 -e 's:$: $lt_compiler_flag:'`
7201 (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
7202 (eval "$lt_compile" 2>conftest.err)
7204 cat conftest.err >&5
7205 echo "$as_me:7205: \$? = $ac_status" >&5
7206 if (exit $ac_status) && test -s "$ac_outfile"; then
7207 # The compiler can only warn and ignore the option if not recognized
7208 # So say no if there are warnings other than the usual output.
7209 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7212 lt_cv_prog_compiler_rtti_exceptions=yes
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7219 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7221 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7222 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7229 lt_prog_compiler_wl=
7230 lt_prog_compiler_pic=
7231 lt_prog_compiler_static=
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7236 if test "$GCC" = yes; then
7237 lt_prog_compiler_wl='-Wl,'
7238 lt_prog_compiler_static='-static'
7242 # All AIX code is PIC.
7243 if test "$host_cpu" = ia64; then
7244 # AIX 5 now supports IA64 processor
7245 lt_prog_compiler_static='-Bstatic'
7250 # FIXME: we need at least 68020 code to build shared libraries, but
7251 # adding the `-m68020' flag to GCC prevents building anything better,
7253 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7257 # PIC is the default for these OSes.
7260 mingw* | cygwin* | pw32* | os2*)
7261 # This hack is so that the source file can tell whether it is being
7262 # built for inclusion in a dll (and should export symbols for example).
7263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7264 # (--disable-auto-import) libraries
7265 lt_prog_compiler_pic='-DDLL_EXPORT'
7268 darwin* | rhapsody*)
7269 # PIC is the default on this platform
7270 # Common symbols not allowed in MH_DYLIB files
7271 lt_prog_compiler_pic='-fno-common'
7275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7276 # Instead, we relocate shared libraries at runtime.
7280 # Just because we use GCC doesn't mean we suddenly get shared libraries
7281 # on systems that don't support them.
7282 lt_prog_compiler_can_build_shared=no
7287 if test -d /usr/nec; then
7288 lt_prog_compiler_pic=-Kconform_pic
7293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7300 lt_prog_compiler_pic='-fPIC'
7306 lt_prog_compiler_pic='-fPIC'
7310 # PORTME Check for flag to pass linker flags through the system compiler.
7313 lt_prog_compiler_wl='-Wl,'
7314 if test "$host_cpu" = ia64; then
7315 # AIX 5 now supports IA64 processor
7316 lt_prog_compiler_static='-Bstatic'
7318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7322 # PIC is the default on this platform
7323 # Common symbols not allowed in MH_DYLIB files
7324 case $cc_basename in
7326 lt_prog_compiler_pic='-qnocommon'
7327 lt_prog_compiler_wl='-Wl,'
7332 mingw* | cygwin* | pw32* | os2*)
7333 # This hack is so that the source file can tell whether it is being
7334 # built for inclusion in a dll (and should export symbols for example).
7335 lt_prog_compiler_pic='-DDLL_EXPORT'
7338 hpux9* | hpux10* | hpux11*)
7339 lt_prog_compiler_wl='-Wl,'
7340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7347 lt_prog_compiler_pic='+Z'
7350 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7351 lt_prog_compiler_static='${wl}-a ${wl}archive'
7354 irix5* | irix6* | nonstopux*)
7355 lt_prog_compiler_wl='-Wl,'
7356 # PIC (with -KPIC) is the default.
7357 lt_prog_compiler_static='-non_shared'
7361 lt_prog_compiler_pic='-KPIC'
7362 lt_prog_compiler_static='-Bstatic'
7365 linux* | k*bsd*-gnu)
7366 case $cc_basename in
7368 lt_prog_compiler_wl='-Wl,'
7369 lt_prog_compiler_pic='-KPIC'
7370 lt_prog_compiler_static='-static'
7372 pgcc* | pgf77* | pgf90* | pgf95*)
7373 # Portland Group compilers (*not* the Pentium gcc compiler,
7374 # which looks to be a dead project)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-fpic'
7377 lt_prog_compiler_static='-Bstatic'
7380 lt_prog_compiler_wl='-Wl,'
7381 # All Alpha code is PIC.
7382 lt_prog_compiler_static='-non_shared'
7385 case `$CC -V 2>&1 | sed 5q` in
7388 lt_prog_compiler_pic='-KPIC'
7389 lt_prog_compiler_static='-Bstatic'
7390 lt_prog_compiler_wl='-Wl,'
7393 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7394 lt_prog_compiler_pic='-KPIC'
7395 lt_prog_compiler_static='-Bstatic'
7396 lt_prog_compiler_wl=''
7403 osf3* | osf4* | osf5*)
7404 lt_prog_compiler_wl='-Wl,'
7405 # All OSF/1 code is PIC.
7406 lt_prog_compiler_static='-non_shared'
7410 lt_prog_compiler_static='-non_shared'
7414 lt_prog_compiler_pic='-KPIC'
7415 lt_prog_compiler_static='-Bstatic'
7416 case $cc_basename in
7418 lt_prog_compiler_wl='-Qoption ld ';;
7420 lt_prog_compiler_wl='-Wl,';;
7425 lt_prog_compiler_wl='-Qoption ld '
7426 lt_prog_compiler_pic='-PIC'
7427 lt_prog_compiler_static='-Bstatic'
7430 sysv4 | sysv4.2uw2* | sysv4.3*)
7431 lt_prog_compiler_wl='-Wl,'
7432 lt_prog_compiler_pic='-KPIC'
7433 lt_prog_compiler_static='-Bstatic'
7437 if test -d /usr/nec ;then
7438 lt_prog_compiler_pic='-Kconform_pic'
7439 lt_prog_compiler_static='-Bstatic'
7443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7444 lt_prog_compiler_wl='-Wl,'
7445 lt_prog_compiler_pic='-KPIC'
7446 lt_prog_compiler_static='-Bstatic'
7450 lt_prog_compiler_wl='-Wl,'
7451 lt_prog_compiler_can_build_shared=no
7455 lt_prog_compiler_pic='-pic'
7456 lt_prog_compiler_static='-Bstatic'
7460 lt_prog_compiler_can_build_shared=no
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7466 $as_echo "$lt_prog_compiler_pic" >&6; }
7469 # Check to make sure the PIC flag actually works.
7471 if test -n "$lt_prog_compiler_pic"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 lt_cv_prog_compiler_pic_works=no
7479 ac_outfile=conftest.$ac_objext
7480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7481 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7482 # Insert the option either (1) after the last *FLAGS variable, or
7483 # (2) before a word containing "conftest.", or (3) at the end.
7484 # Note that $ac_compile itself does not contain backslashes and begins
7485 # with a dollar sign (not a hyphen), so the echo should work correctly.
7486 # The option is referenced via a variable to avoid confusing sed.
7487 lt_compile=`echo "$ac_compile" | $SED \
7488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7490 -e 's:$: $lt_compiler_flag:'`
7491 (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
7492 (eval "$lt_compile" 2>conftest.err)
7494 cat conftest.err >&5
7495 echo "$as_me:7495: \$? = $ac_status" >&5
7496 if (exit $ac_status) && test -s "$ac_outfile"; then
7497 # The compiler can only warn and ignore the option if not recognized
7498 # So say no if there are warnings other than the usual output.
7499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7502 lt_cv_prog_compiler_pic_works=yes
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7512 case $lt_prog_compiler_pic in
7514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7517 lt_prog_compiler_pic=
7518 lt_prog_compiler_can_build_shared=no
7523 # For platforms which do not support PIC, -DPIC is meaningless:
7525 lt_prog_compiler_pic=
7528 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7533 # Check to make sure the static flag actually works.
7535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7538 if ${lt_cv_prog_compiler_static_works+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 lt_cv_prog_compiler_static_works=no
7542 save_LDFLAGS="$LDFLAGS"
7543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7546 # The linker can only warn and ignore the option if not recognized
7547 # So say no if there are warnings
7548 if test -s conftest.err; then
7549 # Append any errors to the config.log.
7550 cat conftest.err 1>&5
7551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7553 if diff conftest.exp conftest.er2 >/dev/null; then
7554 lt_cv_prog_compiler_static_works=yes
7557 lt_cv_prog_compiler_static_works=yes
7561 LDFLAGS="$save_LDFLAGS"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7567 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7570 lt_prog_compiler_static=
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7576 if ${lt_cv_prog_compiler_c_o+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 lt_cv_prog_compiler_c_o=no
7580 $rm -r conftest 2>/dev/null
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="-o out/conftest2.$ac_objext"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
7595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596 (eval "$lt_compile" 2>out/conftest.err)
7598 cat out/conftest.err >&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings
7604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_c_o=yes
7612 # SGI C++ compiler will create directory out/ii_files/ for
7613 # template instantiation
7614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7615 $rm out/* && rmdir out
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7625 hard_links="nottested"
7626 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7627 # do not overwrite the value of need_locks provided by the user
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7629 $as_echo_n "checking if we can lock with hard links... " >&6; }
7632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7634 ln conftest.a conftest.b 2>&5 || hard_links=no
7635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7637 $as_echo "$hard_links" >&6; }
7638 if test "$hard_links" = no; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7651 allow_undefined_flag=
7652 enable_shared_with_static_runtimes=no
7654 archive_expsym_cmds=
7655 old_archive_From_new_cmds=
7656 old_archive_from_expsyms_cmds=
7657 export_dynamic_flag_spec=
7658 whole_archive_flag_spec=
7659 thread_safe_flag_spec=
7660 hardcode_libdir_flag_spec=
7661 hardcode_libdir_flag_spec_ld=
7662 hardcode_libdir_separator=
7665 hardcode_shlibpath_var=unsupported
7666 link_all_deplibs=unknown
7667 hardcode_automatic=no
7670 always_export_symbols=no
7671 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7672 # include_expsyms should be a list of space-separated symbols to be *always*
7673 # included in the symbol list
7675 # exclude_expsyms can be an extended regexp of symbols to exclude
7676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7678 # as well as any symbol that contains `d'.
7679 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7681 # platforms (ab)use it in PIC code, but their linkers get confused if
7682 # the symbol is explicitly referenced. Since portable code cannot
7683 # rely on this symbol name, it's probably fine to never include it in
7684 # preloaded symbol tables.
7685 # Exclude shared library initialization/finalization symbols.
7686 extract_expsyms_cmds=
7687 # Just being paranoid about ensuring that cc_basename is set.
7688 for cc_temp in $compiler""; do
7690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7699 cygwin* | mingw* | pw32*)
7700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7701 # When not using gcc, we currently assume that we are using
7702 # Microsoft Visual C++.
7703 if test "$GCC" != yes; then
7708 # we just hope/assume this is gcc and not c89 (= MSVC++)
7717 if test "$with_gnu_ld" = yes; then
7718 # If archive_cmds runs LD, not CC, wlarc should be empty
7721 # Set some defaults for GNU ld with shared library support. These
7722 # are reset later if shared libraries are not supported. Putting them
7723 # here allows them to be overridden if necessary.
7724 runpath_var=LD_RUN_PATH
7725 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7726 export_dynamic_flag_spec='${wl}--export-dynamic'
7727 # ancient GNU ld didn't support --whole-archive et. al.
7728 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7731 whole_archive_flag_spec=
7733 supports_anon_versioning=no
7734 case `$LD -v 2>/dev/null` in
7735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7738 *\ 2.11.*) ;; # other 2.11 versions
7739 *) supports_anon_versioning=yes ;;
7742 # See if GNU ld supports shared libraries.
7745 # On AIX/PPC, the GNU linker is very broken
7746 if test "$host_cpu" != ia64; then
7750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7751 *** to be unable to reliably create shared libraries on AIX.
7752 *** Therefore, libtool is disabling shared libraries support. If you
7753 *** really care for shared libraries, you may want to modify your PATH
7754 *** so that a non-GNU linker is found, and then restart.
7761 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)'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_minus_L=yes
7765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7766 # that the semantics of dynamic libraries on AmigaOS, at least up
7767 # to version 4, is to share data among multiple programs linked
7768 # with the same dynamic library. Since this doesn't match the
7769 # behavior of shared libraries on other platforms, we can't use
7775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776 allow_undefined_flag=unsupported
7777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7778 # support --undefined. This deserves some investigation. FIXME
7779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7785 cygwin* | mingw* | pw32*)
7786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7787 # as there is no search path for DLLs.
7788 hardcode_libdir_flag_spec='-L$libdir'
7789 allow_undefined_flag=unsupported
7790 always_export_symbols=no
7791 enable_shared_with_static_runtimes=yes
7792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7796 # If the export-symbols file already is a .def file (1st line
7797 # is EXPORTS), use it as is; otherwise, prepend...
7798 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7799 cp $export_symbols $output_objdir/$soname.def;
7801 echo EXPORTS > $output_objdir/$soname.def;
7802 cat $export_symbols >> $output_objdir/$soname.def;
7804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7812 hardcode_shlibpath_var=no
7813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814 export_dynamic_flag_spec='${wl}-E'
7815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7816 # Instead, shared libraries are loaded at an image base (0x10000000 by
7817 # default) and relocated if they conflict, which is a slow very memory
7818 # consuming and fragmenting process. To avoid this, we pick a random,
7819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7822 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7825 gnu* | linux* | k*bsd*-gnu)
7826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7828 case $cc_basename,$host_cpu in
7829 pgcc*) # Portland Group C compiler
7830 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7831 tmp_addflag=' $pic_flag'
7833 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7834 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7835 tmp_addflag=' $pic_flag -Mnomain' ;;
7836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7837 tmp_addflag=' -i_dynamic' ;;
7838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7839 tmp_addflag=' -i_dynamic -nofor_main' ;;
7840 ifc* | ifort*) # Intel Fortran compiler
7841 tmp_addflag=' -nofor_main' ;;
7843 case `$CC -V 2>&1 | sed 5q` in
7844 *Sun\ C*) # Sun C 5.9
7845 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7846 tmp_sharedflag='-G' ;;
7847 *Sun\ F*) # Sun Fortran 8.3
7848 tmp_sharedflag='-G' ;;
7850 tmp_sharedflag='-shared' ;;
7852 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854 if test $supports_anon_versioning = yes; then
7855 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7857 $echo "local: *; };" >> $output_objdir/$libname.ver~
7858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7866 netbsd* | netbsdelf*-gnu)
7867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7882 *** create shared libraries on Solaris systems. Therefore, libtool
7883 *** is disabling shared libraries support. We urge you to upgrade GNU
7884 *** binutils to release 2.9.1 or newer. Another option is to modify
7885 *** your PATH or compiler configuration so that the native linker is
7886 *** used, and then restart.
7889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7898 case `$LD -v 2>&1` in
7899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7904 *** reliably create shared libraries on SCO systems. Therefore, libtool
7905 *** is disabling shared libraries support. We urge you to upgrade GNU
7906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7907 *** your PATH or compiler configuration so that the native linker is
7908 *** used, and then restart.
7913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7914 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_shlibpath_var=no
7932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7941 if test "$ld_shlibs" = no; then
7943 hardcode_libdir_flag_spec=
7944 export_dynamic_flag_spec=
7945 whole_archive_flag_spec=
7948 # PORTME fill in a description of your system's linker (not GNU ld)
7951 allow_undefined_flag=unsupported
7952 always_export_symbols=yes
7953 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'
7954 # Note: this linker hardcodes the directories in LIBPATH if there
7955 # are no directories specified by -L.
7956 hardcode_minus_L=yes
7957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7958 # Neither direct hardcoding nor static linking is supported with a
7960 hardcode_direct=unsupported
7965 if test "$host_cpu" = ia64; then
7966 # On IA64, the linker does run time linking by default, so we don't
7967 # have to do anything special.
7968 aix_use_runtimelinking=no
7969 exp_sym_flag='-Bexport'
7972 # If we're using GNU nm, then we don't want the "-C" option.
7973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7975 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'
7977 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'
7979 aix_use_runtimelinking=no
7981 # Test if we are trying to use run time linking or normal
7982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7983 # need to do runtime linking.
7984 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7985 for ld_flag in $LDFLAGS; do
7986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7987 aix_use_runtimelinking=yes
7994 exp_sym_flag='-bexport'
7995 no_entry_flag='-bnoentry'
7998 # When large executables or shared objects are built, AIX ld can
7999 # have problems creating the table of contents. If linking a library
8000 # or program results in "error TOC overflow" add -mminimal-toc to
8001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8006 hardcode_libdir_separator=':'
8007 link_all_deplibs=yes
8009 if test "$GCC" = yes; then
8010 case $host_os in aix4.[012]|aix4.[012].*)
8011 # We only want to do this on AIX 4.2 and lower, the check
8012 # below for broken collect2 doesn't work under 4.3+
8013 collect2name=`${CC} -print-prog-name=collect2`
8014 if test -f "$collect2name" && \
8015 strings "$collect2name" | grep resolve_lib_name >/dev/null
8017 # We have reworked collect2
8020 # We have old collect2
8021 hardcode_direct=unsupported
8022 # It fails to find uninstalled libraries when the uninstalled
8023 # path is not listed in the libpath. Setting hardcode_minus_L
8024 # to unsupported forces relinking
8025 hardcode_minus_L=yes
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_libdir_separator=
8031 shared_flag='-shared'
8032 if test "$aix_use_runtimelinking" = yes; then
8033 shared_flag="$shared_flag "'${wl}-G'
8037 if test "$host_cpu" = ia64; then
8038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8039 # chokes on -Wl,-G. The following line is correct:
8042 if test "$aix_use_runtimelinking" = yes; then
8043 shared_flag='${wl}-G'
8045 shared_flag='${wl}-bM:SRE'
8050 # It seems that -bexpall does not export symbols beginning with
8051 # underscore (_), so it is better to generate a list of symbols to export.
8052 always_export_symbols=yes
8053 if test "$aix_use_runtimelinking" = yes; then
8054 # Warning - without using the other runtime loading flags (-brtl),
8055 # -berok will link without error, but may produce a broken library.
8056 allow_undefined_flag='-berok'
8057 # Determine the default libpath from the value encoded in an empty executable.
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8069 if ac_fn_c_try_link "$LINENO"; then :
8071 lt_aix_libpath_sed='
8072 /Import File Strings/,/^$/ {
8078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8079 # Check for a 64-bit object if we didn't find anything.
8080 if test -z "$aix_libpath"; then
8081 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8084 rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8088 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8089 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8091 if test "$host_cpu" = ia64; then
8092 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8093 allow_undefined_flag="-z nodefs"
8094 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8096 # Determine the default libpath from the value encoded in an empty executable.
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8108 if ac_fn_c_try_link "$LINENO"; then :
8110 lt_aix_libpath_sed='
8111 /Import File Strings/,/^$/ {
8117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8118 # Check for a 64-bit object if we didn't find anything.
8119 if test -z "$aix_libpath"; then
8120 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8127 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8128 # Warning - without using the other run time loading flags,
8129 # -berok will link without error, but may produce a broken library.
8130 no_undefined_flag=' ${wl}-bernotok'
8131 allow_undefined_flag=' ${wl}-berok'
8132 # Exported symbols can be pulled into shared objects from archives
8133 whole_archive_flag_spec='$convenience'
8134 archive_cmds_need_lc=yes
8135 # This is similar to how AIX traditionally builds its shared libraries.
8136 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8142 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)'
8143 hardcode_libdir_flag_spec='-L$libdir'
8144 hardcode_minus_L=yes
8145 # see comment about different semantics on the GNU ld section
8150 export_dynamic_flag_spec=-rdynamic
8153 cygwin* | mingw* | pw32*)
8154 # When not using gcc, we currently assume that we are using
8155 # Microsoft Visual C++.
8156 # hardcode_libdir_flag_spec is actually meaningless, as there is
8157 # no search path for DLLs.
8158 hardcode_libdir_flag_spec=' '
8159 allow_undefined_flag=unsupported
8160 # Tell ltmain to make .lib files, not .a files.
8162 # Tell ltmain to make .dll files, not .so files.
8164 # FIXME: Setting linknames here is a bad hack.
8165 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8166 # The linker will automatically build a .lib file if we build a DLL.
8167 old_archive_From_new_cmds='true'
8168 # FIXME: Should let the user specify the lib program.
8169 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8170 fix_srcfile_path='`cygpath -w "$srcfile"`'
8171 enable_shared_with_static_runtimes=yes
8174 darwin* | rhapsody*)
8176 rhapsody* | darwin1.[012])
8177 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8180 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8181 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8183 case ${MACOSX_DEPLOYMENT_TARGET} in
8185 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8188 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8194 archive_cmds_need_lc=no
8196 hardcode_automatic=yes
8197 hardcode_shlibpath_var=unsupported
8198 whole_archive_flag_spec=''
8199 link_all_deplibs=yes
8200 if test "$GCC" = yes ; then
8201 output_verbose_link_cmd='echo'
8202 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8203 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8204 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8205 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8207 case $cc_basename in
8209 output_verbose_link_cmd='echo'
8210 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8211 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8213 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8214 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}'
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_libdir_flag_spec='-L$libdir'
8226 hardcode_shlibpath_var=no
8233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8234 # support. Future versions do this automatically, but an explicit c++rt0.o
8235 # does not break anything, and helps significantly (at the cost of a little
8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8239 hardcode_libdir_flag_spec='-R$libdir'
8241 hardcode_shlibpath_var=no
8244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8248 hardcode_minus_L=yes
8249 hardcode_shlibpath_var=no
8252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8253 freebsd* | dragonfly*)
8254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8255 hardcode_libdir_flag_spec='-R$libdir'
8257 hardcode_shlibpath_var=no
8261 if test "$GCC" = yes; then
8262 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'
8264 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'
8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8267 hardcode_libdir_separator=:
8270 # hardcode_minus_L: Not really in the search PATH,
8271 # but as the default location of the library.
8272 hardcode_minus_L=yes
8273 export_dynamic_flag_spec='${wl}-E'
8277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8282 if test "$with_gnu_ld" = no; then
8283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8284 hardcode_libdir_separator=:
8287 export_dynamic_flag_spec='${wl}-E'
8289 # hardcode_minus_L: Not really in the search PATH,
8290 # but as the default location of the library.
8291 hardcode_minus_L=yes
8296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8311 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8321 if test "$with_gnu_ld" = no; then
8322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8323 hardcode_libdir_separator=:
8327 hardcode_libdir_flag_spec_ld='+b $libdir'
8329 hardcode_shlibpath_var=no
8333 export_dynamic_flag_spec='${wl}-E'
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8343 irix5* | irix6* | nonstopux*)
8344 if test "$GCC" = yes; then
8345 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'
8347 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'
8348 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8351 hardcode_libdir_separator=:
8352 link_all_deplibs=yes
8355 netbsd* | netbsdelf*-gnu)
8356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8359 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8361 hardcode_libdir_flag_spec='-R$libdir'
8363 hardcode_shlibpath_var=no
8367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 hardcode_libdir_separator=:
8371 hardcode_shlibpath_var=no
8375 if test -f /usr/libexec/ld.so; then
8377 hardcode_shlibpath_var=no
8378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8380 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8382 export_dynamic_flag_spec='${wl}-E'
8385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8387 hardcode_libdir_flag_spec='-R$libdir'
8390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8401 hardcode_libdir_flag_spec='-L$libdir'
8402 hardcode_minus_L=yes
8403 allow_undefined_flag=unsupported
8404 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'
8405 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8409 if test "$GCC" = yes; then
8410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8411 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'
8413 allow_undefined_flag=' -expect_unresolved \*'
8414 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'
8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417 hardcode_libdir_separator=:
8420 osf4* | osf5*) # as osf3* with the addition of -msym flag
8421 if test "$GCC" = yes; then
8422 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8423 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'
8424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8426 allow_undefined_flag=' -expect_unresolved \*'
8427 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'
8428 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8429 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8431 # Both c and cxx compiler support -rpath directly
8432 hardcode_libdir_flag_spec='-rpath $libdir'
8434 hardcode_libdir_separator=:
8438 no_undefined_flag=' -z text'
8439 if test "$GCC" = yes; then
8441 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8450 hardcode_libdir_flag_spec='-R$libdir'
8451 hardcode_shlibpath_var=no
8453 solaris2.[0-5] | solaris2.[0-5].*) ;;
8455 # The compiler driver will combine and reorder linker options,
8456 # but understands `-z linker_flag'. GCC discards it without `$wl',
8457 # but is careful enough not to reorder.
8458 # Supported since Solaris 2.6 (maybe 2.5.1?)
8459 if test "$GCC" = yes; then
8460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8466 link_all_deplibs=yes
8470 if test "x$host_vendor" = xsequent; then
8471 # Use $CC to link under sequent, because it throws in some extra .o
8472 # files that make .init and .fini sections work.
8473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_minus_L=yes
8480 hardcode_shlibpath_var=no
8484 case $host_vendor in
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_direct=yes # is this really true???
8490 ## LD is ld it makes a PLAMLIB
8491 ## CC just makes a GrossModule.
8492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493 reload_cmds='$CC -r -o $output$reload_objs'
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8501 runpath_var='LD_RUN_PATH'
8502 hardcode_shlibpath_var=no
8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_shlibpath_var=no
8508 export_dynamic_flag_spec='-Bexport'
8512 if test -d /usr/nec; then
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_shlibpath_var=no
8515 runpath_var=LD_RUN_PATH
8516 hardcode_runpath_var=yes
8521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8522 no_undefined_flag='${wl}-z,text'
8523 archive_cmds_need_lc=no
8524 hardcode_shlibpath_var=no
8525 runpath_var='LD_RUN_PATH'
8527 if test "$GCC" = yes; then
8528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 sysv5* | sco3.2v5* | sco5v6*)
8537 # Note: We can NOT use -z defs as we might desire, because we do not
8538 # link with -lc, and that would cause any symbols used from libc to
8539 # always be unresolved, which means just about no library would
8540 # ever link correctly. If we're not using GNU ld we use -z text
8541 # though, which does catch some bad symbols but isn't as heavy-handed
8543 no_undefined_flag='${wl}-z,text'
8544 allow_undefined_flag='${wl}-z,nodefs'
8545 archive_cmds_need_lc=no
8546 hardcode_shlibpath_var=no
8547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548 hardcode_libdir_separator=':'
8549 link_all_deplibs=yes
8550 export_dynamic_flag_spec='${wl}-Bexport'
8551 runpath_var='LD_RUN_PATH'
8553 if test "$GCC" = yes; then
8554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_shlibpath_var=no
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8575 $as_echo "$ld_shlibs" >&6; }
8576 test "$ld_shlibs" = no && can_build_shared=no
8579 # Do we need to explicitly link libc?
8581 case "x$archive_cmds_need_lc" in
8583 # Assume -lc should be added
8584 archive_cmds_need_lc=yes
8586 if test "$enable_shared" = yes && test "$GCC" = yes; then
8587 case $archive_cmds in
8589 # FIXME: we may have to deal with multi-command sequences.
8592 # Test whether the compiler implicitly links with -lc since on some
8593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594 # to ld, don't add -lc before -lgcc.
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8596 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8601 (eval $ac_compile) 2>&5
8603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8604 test $ac_status = 0; } 2>conftest.err; then
8607 libobjs=conftest.$ac_objext
8609 wl=$lt_prog_compiler_wl
8610 pic_flag=$lt_prog_compiler_pic
8616 lt_save_allow_undefined_flag=$allow_undefined_flag
8617 allow_undefined_flag=
8618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622 test $ac_status = 0; }
8624 archive_cmds_need_lc=no
8626 archive_cmds_need_lc=yes
8628 allow_undefined_flag=$lt_save_allow_undefined_flag
8630 cat conftest.err 1>&5
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8634 $as_echo "$archive_cmds_need_lc" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8642 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8644 libname_spec='lib$name'
8652 shlibpath_overrides_runpath=unknown
8654 dynamic_linker="$host_os ld.so"
8655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8657 if test "$GCC" = yes; then
8659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8660 *) lt_awk_arg="/^libraries:/" ;;
8662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8664 # if the path contains ";" then we assume it to be the separator
8665 # otherwise default to the standard path separator (i.e. ":") - it is
8666 # assumed that no part of a normal pathname contains ";" but that should
8667 # okay in the real world where ";" in dirpaths is itself problematic.
8668 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8670 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8672 # Ok, now we have the path, separated by spaces, we can step through it
8673 # and add multilib dir if necessary.
8674 lt_tmp_lt_search_path_spec=
8675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8676 for lt_sys_path in $lt_search_path_spec; do
8677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8680 test -d "$lt_sys_path" && \
8681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8684 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8685 BEGIN {RS=" "; FS="/|\n";} {
8688 for (lt_i = NF; lt_i > 0; lt_i--) {
8689 if ($lt_i != "" && $lt_i != ".") {
8690 if ($lt_i == "..") {
8693 if (lt_count == 0) {
8694 lt_foo="/" $lt_i lt_foo;
8701 if (lt_foo != "") { lt_freq[lt_foo]++; }
8702 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8704 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8708 need_lib_prefix=unknown
8709 hardcode_into_libs=no
8711 # when you set need_version to no, make sure it does not cause -set_version
8712 # flags to be left without arguments
8713 need_version=unknown
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8719 shlibpath_var=LIBPATH
8721 # AIX 3 has no versioning support, so we append a major version to the name.
8722 soname_spec='${libname}${release}${shared_ext}$major'
8729 hardcode_into_libs=yes
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 supports IA64
8732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8733 shlibpath_var=LD_LIBRARY_PATH
8735 # With GCC up to 2.95.x, collect2 would create an import file
8736 # for dependence libraries. The import file would start with
8737 # the line `#! .'. This would cause the generated library to
8738 # depend on `.', always an invalid library. This was fixed in
8739 # development snapshots of GCC prior to 3.0.
8741 aix4 | aix4.[01] | aix4.[01].*)
8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8752 # soname into executable. Probably we can add versioning support to
8753 # collect2, so additional links can be useful in future.
8754 if test "$aix_use_runtimelinking" = yes; then
8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8756 # instead of lib<name>.a to let people know that these are not
8757 # typical AIX shared libraries.
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 # We preserve .a as extension for shared libraries through AIX4.2
8761 # and later when we are not doing run time linking.
8762 library_names_spec='${libname}${release}.a $libname.a'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LIBPATH
8770 library_names_spec='$libname.ixlibrary $libname.a'
8771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772 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'
8776 library_names_spec='${libname}${shared_ext}'
8777 dynamic_linker="$host_os ld.so"
8778 shlibpath_var=LIBRARY_PATH
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8790 # the default ld.so.conf also contains /usr/contrib/lib and
8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792 # libtool to hard-code these into programs
8795 cygwin* | mingw* | pw32*)
8796 version_type=windows
8801 case $GCC,$host_os in
8802 yes,cygwin* | yes,mingw* | yes,pw32*)
8803 library_names_spec='$libname.dll.a'
8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805 postinstall_cmds='base_file=`basename \${file}`~
8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8807 dldir=$destdir/`dirname \$dlpath`~
8808 test -d \$dldir || mkdir -p \$dldir~
8809 $install_prog $dir/$dlname \$dldir/$dlname~
8810 chmod a+x \$dldir/$dlname'
8811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812 dlpath=$dir/\$dldll~
8814 shlibpath_overrides_runpath=yes
8818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8823 # MinGW DLLs use traditional 'lib' prefix
8824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8827 # It is most probably a Windows format PATH printed by
8828 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829 # path with ; separators, and with drive letters. We can handle the
8830 # drive letters (cygwin fileutils understands them), so leave them,
8831 # especially as we might pass files found there to a mingw objdump,
8832 # which wouldn't understand a cygwinified path. Ahh.
8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8839 # pw32 DLLs use 'pw' prefix rather than 'lib'
8840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8849 dynamic_linker='Win32 ld.exe'
8850 # FIXME: first we should search . and the directory the executable is in
8854 darwin* | rhapsody*)
8855 dynamic_linker="$host_os dyld"
8859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860 soname_spec='${libname}${release}${major}$shared_ext'
8861 shlibpath_overrides_runpath=yes
8862 shlibpath_var=DYLD_LIBRARY_PATH
8863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8882 freebsd* | dragonfly*)
8883 # DragonFly does not have aout. When/if they implement a new
8884 # versioning mechanism, adjust this.
8885 if test -x /usr/bin/objformat; then
8886 objformat=`/usr/bin/objformat`
8889 freebsd[123]*) objformat=aout ;;
8893 version_type=freebsd-$objformat
8894 case $version_type in
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8905 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=yes
8910 freebsd3.[01]* | freebsdelf3.[01]*)
8911 shlibpath_overrides_runpath=yes
8912 hardcode_into_libs=yes
8914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8916 shlibpath_overrides_runpath=no
8917 hardcode_into_libs=yes
8919 *) # from 4.6 on, and DragonFly
8920 shlibpath_overrides_runpath=yes
8921 hardcode_into_libs=yes
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 hardcode_into_libs=yes
8936 hpux9* | hpux10* | hpux11*)
8937 # Give a soname corresponding to the major version so that dld.sl refuses to
8938 # link against other versions.
8945 hardcode_into_libs=yes
8946 dynamic_linker="$host_os dld.so"
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 if test "X$HPUX_IA64_MODE" = X32; then
8952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8960 hardcode_into_libs=yes
8961 dynamic_linker="$host_os dld.sl"
8962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8971 dynamic_linker="$host_os dld.sl"
8972 shlibpath_var=SHLIB_PATH
8973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8979 postinstall_cmds='chmod 555 $lib'
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=no
8991 hardcode_into_libs=yes
8994 irix5* | irix6* | nonstopux*)
8996 nonstopux*) version_type=nonstopux ;;
8998 if test "$lt_cv_prog_gnu_ld" = yes; then
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 irix5* | nonstopux*)
9013 case $LD in # libtool.m4 will add one of these switches to LD
9014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9015 libsuff= shlibsuff= libmagic=32-bit;;
9016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9017 libsuff=32 shlibsuff=N32 libmagic=N32;;
9018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9020 *) libsuff= shlibsuff= libmagic=never-match;;
9024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9025 shlibpath_overrides_runpath=no
9026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9028 hardcode_into_libs=yes
9031 # No shared lib support for Linux oldld, aout, or coff.
9032 linux*oldld* | linux*aout* | linux*coff*)
9036 # This must be Linux ELF.
9037 linux* | k*bsd*-gnu)
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 # This implies no fast_install, which is unacceptable.
9047 # Some rework will be needed to allow for fast_install
9048 # before this can be enabled.
9049 hardcode_into_libs=yes
9051 # Append ld.so.conf contents to the search path
9052 if test -f /etc/ld.so.conf; then
9053 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9057 # We used to test for /lib/ld.so.1 and disable shared libraries on
9058 # powerpc, because MkLinux only supported shared libraries with the
9059 # GNU dynamic linker. Since this was broken with cross compilers,
9060 # most powerpc-linux boxes support dynamic linking these days and
9061 # people can always --disable-shared, the test was removed, and we
9062 # assume the GNU/Linux dynamic linker is in use.
9063 dynamic_linker='GNU/Linux ld.so'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=no
9074 hardcode_into_libs=yes
9075 dynamic_linker='NetBSD ld.elf_so'
9082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 dynamic_linker='NetBSD (a.out) ld.so'
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 dynamic_linker='NetBSD ld.elf_so'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9093 hardcode_into_libs=yes
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes
9115 sys_lib_dlsearch_path_spec="/usr/lib"
9117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9119 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9120 *) need_version=no ;;
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9127 openbsd2.[89] | openbsd2.[89].*)
9128 shlibpath_overrides_runpath=no
9131 shlibpath_overrides_runpath=yes
9135 shlibpath_overrides_runpath=yes
9140 libname_spec='$name'
9143 library_names_spec='$libname${shared_ext} $libname.a'
9144 dynamic_linker='OS/2 ld.exe'
9145 shlibpath_var=LIBPATH
9148 osf3* | osf4* | osf5*)
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes
9171 hardcode_into_libs=yes
9172 # ldd complains unless libraries are executable
9173 postinstall_cmds='chmod +x $lib'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9182 if test "$with_gnu_ld" = yes; then
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 case $host_vendor in
9195 shlibpath_overrides_runpath=no
9197 export_dynamic_flag_spec='${wl}-Blargedynsym'
9198 runpath_var=LD_RUN_PATH
9206 shlibpath_overrides_runpath=no
9207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9213 if test -d /usr/nec ;then
9215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9216 soname_spec='$libname${shared_ext}.$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9222 version_type=freebsd-elf
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 hardcode_into_libs=yes
9229 if test "$with_gnu_ld" = yes; then
9230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9231 shlibpath_overrides_runpath=no
9233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9234 shlibpath_overrides_runpath=yes
9237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9241 sys_lib_dlsearch_path_spec='/usr/lib'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9256 $as_echo "$dynamic_linker" >&6; }
9257 test "$dynamic_linker" = no && can_build_shared=no
9259 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9265 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9266 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9267 $as_echo_n "(cached) " >&6
9269 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9272 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9275 if test "$GCC" = yes; then
9276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9280 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9282 if test -n "$hardcode_libdir_flag_spec" || \
9283 test -n "$runpath_var" || \
9284 test "X$hardcode_automatic" = "Xyes" ; then
9286 # We can hardcode non-existant directories.
9287 if test "$hardcode_direct" != no &&
9288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9289 # have to relink, otherwise we might link with an installed library
9290 # when we should be linking with a yet-to-be-installed one
9291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9292 test "$hardcode_minus_L" != no; then
9293 # Linking always hardcodes the temporary library directory.
9294 hardcode_action=relink
9296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9297 hardcode_action=immediate
9300 # We cannot hardcode anything, or else we can only hardcode existing
9302 hardcode_action=unsupported
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9305 $as_echo "$hardcode_action" >&6; }
9307 if test "$hardcode_action" = relink; then
9308 # Fast installation is not supported
9309 enable_fast_install=no
9310 elif test "$shlibpath_overrides_runpath" = yes ||
9311 test "$enable_shared" = no; then
9312 # Fast installation is not necessary
9313 enable_fast_install=needless
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9319 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9326 # FIXME - insert some real tests, host_os isn't really good enough
9329 if test -n "$STRIP" ; then
9330 striplib="$STRIP -x"
9331 old_striplib="$STRIP -S"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9346 if test "x$enable_dlopen" != xyes; then
9347 enable_dlopen=unknown
9348 enable_dlopen_self=unknown
9349 enable_dlopen_self_static=unknown
9356 lt_cv_dlopen="load_add_on"
9358 lt_cv_dlopen_self=yes
9362 lt_cv_dlopen="LoadLibrary"
9367 lt_cv_dlopen="dlopen"
9372 # if libdl is installed we need to link against it
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9374 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9375 if ${ac_cv_lib_dl_dlopen+:} false; then :
9376 $as_echo_n "(cached) " >&6
9378 ac_check_lib_save_LIBS=$LIBS
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 ac_cv_lib_dl_dlopen=yes
9401 ac_cv_lib_dl_dlopen=no
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9408 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9409 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9415 lt_cv_dlopen_self=yes
9422 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9423 if test "x$ac_cv_func_shl_load" = xyes; then :
9424 lt_cv_dlopen="shl_load"
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9427 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9428 if ${ac_cv_lib_dld_shl_load+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 ac_check_lib_save_LIBS=$LIBS
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9451 if ac_fn_c_try_link "$LINENO"; then :
9452 ac_cv_lib_dld_shl_load=yes
9454 ac_cv_lib_dld_shl_load=no
9456 rm -f core conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9461 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9462 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9463 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9465 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9466 if test "x$ac_cv_func_dlopen" = xyes; then :
9467 lt_cv_dlopen="dlopen"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9470 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9471 if ${ac_cv_lib_dl_dlopen+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 ac_check_lib_save_LIBS=$LIBS
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 ac_cv_lib_dl_dlopen=yes
9497 ac_cv_lib_dl_dlopen=no
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9505 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9509 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9510 if ${ac_cv_lib_svld_dlopen+:} false; then :
9511 $as_echo_n "(cached) " >&6
9513 ac_check_lib_save_LIBS=$LIBS
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9533 if ac_fn_c_try_link "$LINENO"; then :
9534 ac_cv_lib_svld_dlopen=yes
9536 ac_cv_lib_svld_dlopen=no
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9543 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9544 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9548 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9549 if ${ac_cv_lib_dld_dld_link+:} false; then :
9550 $as_echo_n "(cached) " >&6
9552 ac_check_lib_save_LIBS=$LIBS
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 ac_cv_lib_dld_dld_link=yes
9575 ac_cv_lib_dld_dld_link=no
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9582 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9583 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9584 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9605 if test "x$lt_cv_dlopen" != xno; then
9611 case $lt_cv_dlopen in
9613 save_CPPFLAGS="$CPPFLAGS"
9614 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9616 save_LDFLAGS="$LDFLAGS"
9617 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9620 LIBS="$lt_cv_dlopen_libs $LIBS"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9623 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9624 if ${lt_cv_dlopen_self+:} false; then :
9625 $as_echo_n "(cached) " >&6
9627 if test "$cross_compiling" = yes; then :
9628 lt_cv_dlopen_self=cross
9630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9631 lt_status=$lt_dlunknown
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9633 "configure"
9634 #include "confdefs.h"
9643 # define LT_DLGLOBAL RTLD_GLOBAL
9646 # define LT_DLGLOBAL DL_GLOBAL
9648 # define LT_DLGLOBAL 0
9652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9653 find out it does not work in some platform. */
9654 #ifndef LT_DLLAZY_OR_NOW
9656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9659 # define LT_DLLAZY_OR_NOW DL_LAZY
9662 # define LT_DLLAZY_OR_NOW RTLD_NOW
9665 # define LT_DLLAZY_OR_NOW DL_NOW
9667 # define LT_DLLAZY_OR_NOW 0
9675 extern "C" void exit (int);
9678 void fnord() { int i=42;}
9681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9682 int status = $lt_dlunknown;
9686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9688 /* dlclose (self); */
9696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9697 (eval $ac_link) 2>&5
9699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9700 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9701 (./conftest; exit; ) >&5 2>/dev/null
9704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9706 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9709 # compilation failed
9710 lt_cv_dlopen_self=no
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9718 $as_echo "$lt_cv_dlopen_self" >&6; }
9720 if test "x$lt_cv_dlopen_self" = xyes; then
9721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9723 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9724 if ${lt_cv_dlopen_self_static+:} false; then :
9725 $as_echo_n "(cached) " >&6
9727 if test "$cross_compiling" = yes; then :
9728 lt_cv_dlopen_self_static=cross
9730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9731 lt_status=$lt_dlunknown
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9733 "configure"
9734 #include "confdefs.h"
9743 # define LT_DLGLOBAL RTLD_GLOBAL
9746 # define LT_DLGLOBAL DL_GLOBAL
9748 # define LT_DLGLOBAL 0
9752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9753 find out it does not work in some platform. */
9754 #ifndef LT_DLLAZY_OR_NOW
9756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9759 # define LT_DLLAZY_OR_NOW DL_LAZY
9762 # define LT_DLLAZY_OR_NOW RTLD_NOW
9765 # define LT_DLLAZY_OR_NOW DL_NOW
9767 # define LT_DLLAZY_OR_NOW 0
9775 extern "C" void exit (int);
9778 void fnord() { int i=42;}
9781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9782 int status = $lt_dlunknown;
9786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9788 /* dlclose (self); */
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9797 (eval $ac_link) 2>&5
9799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9801 (./conftest; exit; ) >&5 2>/dev/null
9804 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9805 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9806 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9809 # compilation failed
9810 lt_cv_dlopen_self_static=no
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9818 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9821 CPPFLAGS="$save_CPPFLAGS"
9822 LDFLAGS="$save_LDFLAGS"
9827 case $lt_cv_dlopen_self in
9828 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9829 *) enable_dlopen_self=unknown ;;
9832 case $lt_cv_dlopen_self_static in
9833 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9834 *) enable_dlopen_self_static=unknown ;;
9839 # Report which library types will actually be built
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9841 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9843 $as_echo "$can_build_shared" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9846 $as_echo_n "checking whether to build shared libraries... " >&6; }
9847 test "$can_build_shared" = "no" && enable_shared=no
9849 # On AIX, shared libraries and static libraries use the same namespace, and
9850 # are all built from PIC.
9853 test "$enable_shared" = yes && enable_static=no
9854 if test -n "$RANLIB"; then
9855 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9856 postinstall_cmds='$RANLIB $lib'
9861 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9862 test "$enable_shared" = yes && enable_static=no
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9867 $as_echo "$enable_shared" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9870 $as_echo_n "checking whether to build static libraries... " >&6; }
9871 # Make sure either enable_shared or enable_static is yes.
9872 test "$enable_shared" = yes || enable_static=yes
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9874 $as_echo "$enable_static" >&6; }
9876 # The else clause should only fire when bootstrapping the
9877 # libtool distribution, otherwise you forgot to ship ltmain.sh
9878 # with your package, and you will get complaints that there are
9879 # no rules to generate ltmain.sh.
9880 if test -f "$ltmain"; then
9881 # See if we are running on zsh, and set the options which allow our commands through
9882 # without removal of \ escapes.
9883 if test -n "${ZSH_VERSION+set}" ; then
9884 setopt NO_GLOB_SUBST
9886 # Now quote all the things that may contain metacharacters while being
9887 # careful not to overquote the AC_SUBSTed values. We take copies of the
9888 # variables and quote the copies for generation of the libtool script.
9889 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9891 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9892 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9893 deplibs_check_method reload_flag reload_cmds need_locks \
9894 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9895 lt_cv_sys_global_symbol_to_c_name_address \
9896 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9897 old_postinstall_cmds old_postuninstall_cmds \
9901 lt_prog_compiler_wl \
9902 lt_prog_compiler_pic \
9903 lt_prog_compiler_static \
9904 lt_prog_compiler_no_builtin_flag \
9905 export_dynamic_flag_spec \
9906 thread_safe_flag_spec \
9907 whole_archive_flag_spec \
9908 enable_shared_with_static_runtimes \
9910 old_archive_from_new_cmds \
9915 compiler_lib_search_path \
9916 compiler_lib_search_dirs \
9918 archive_expsym_cmds \
9920 postuninstall_cmds \
9921 old_archive_from_expsyms_cmds \
9922 allow_undefined_flag \
9924 export_symbols_cmds \
9925 hardcode_libdir_flag_spec \
9926 hardcode_libdir_flag_spec_ld \
9927 hardcode_libdir_separator \
9928 hardcode_automatic \
9930 module_expsym_cmds \
9931 lt_cv_prog_compiler_c_o \
9937 old_archive_cmds | \
9938 old_archive_from_new_cmds | \
9940 archive_expsym_cmds | \
9942 module_expsym_cmds | \
9943 old_archive_from_expsyms_cmds | \
9944 export_symbols_cmds | \
9945 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9946 postinstall_cmds | postuninstall_cmds | \
9947 old_postinstall_cmds | old_postuninstall_cmds | \
9948 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9949 # Double-quote double-evaled strings.
9950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9959 *'\$0 --fallback-echo"')
9960 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9965 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9968 $as_echo "$as_me: creating $ofile" >&6;}
9970 cat <<__EOF__ >> "$cfgfile"
9973 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9974 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9975 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9977 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9978 # Free Software Foundation, Inc.
9980 # This file is part of GNU Libtool:
9981 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9983 # This program is free software; you can redistribute it and/or modify
9984 # it under the terms of the GNU General Public License as published by
9985 # the Free Software Foundation; either version 2 of the License, or
9986 # (at your option) any later version.
9988 # This program is distributed in the hope that it will be useful, but
9989 # WITHOUT ANY WARRANTY; without even the implied warranty of
9990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9991 # General Public License for more details.
9993 # You should have received a copy of the GNU General Public License
9994 # along with this program; if not, write to the Free Software
9995 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9997 # As a special exception to the GNU General Public License, if you
9998 # distribute this file as part of a program that contains a
9999 # configuration script generated by Autoconf, you may include it under
10000 # the same distribution terms that you use for the rest of that program.
10002 # A sed program that does not truncate output.
10005 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10006 Xsed="$SED -e 1s/^X//"
10008 # The HP-UX ksh and POSIX shell print the target directory to stdout
10009 # if CDPATH is set.
10010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10012 # The names of the tagged configurations supported by this script.
10015 # ### BEGIN LIBTOOL CONFIG
10017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10019 # Shell to use when invoking shell scripts.
10022 # Whether or not to build shared libraries.
10023 build_libtool_libs=$enable_shared
10025 # Whether or not to build static libraries.
10026 build_old_libs=$enable_static
10028 # Whether or not to add -lc for building shared libraries.
10029 build_libtool_need_lc=$archive_cmds_need_lc
10031 # Whether or not to disallow shared libs when runtime libs are static
10032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10034 # Whether or not to optimize for fast installation.
10035 fast_install=$enable_fast_install
10038 host_alias=$host_alias
10042 # The build system.
10043 build_alias=$build_alias
10047 # An echo program that does not interpret backslashes.
10052 AR_FLAGS=$lt_AR_FLAGS
10057 # LTCC compiler flags.
10058 LTCFLAGS=$lt_LTCFLAGS
10060 # A language-specific compiler.
10063 # Is the compiler the GNU C compiler?
10069 # The linker used to build libraries.
10072 # Whether we need hard or soft links.
10075 # A BSD-compatible nm program.
10078 # A symbol stripping program
10081 # Used to examine libraries when file_magic_cmd begins "file"
10082 MAGIC_CMD=$MAGIC_CMD
10084 # Used on cygwin: DLL creation program.
10087 # Used on cygwin: object dumper.
10090 # Used on cygwin: assembler.
10093 # The name of the directory that contains temporary libtool files.
10096 # How to create reloadable object files.
10097 reload_flag=$lt_reload_flag
10098 reload_cmds=$lt_reload_cmds
10100 # How to pass a linker flag through the compiler.
10101 wl=$lt_lt_prog_compiler_wl
10103 # Object file suffix (normally "o").
10104 objext="$ac_objext"
10106 # Old archive suffix (normally "a").
10109 # Shared library suffix (normally ".so").
10110 shrext_cmds='$shrext_cmds'
10112 # Executable file suffix (normally "").
10115 # Additional compiler flags for building library objects.
10116 pic_flag=$lt_lt_prog_compiler_pic
10119 # What is the maximum length of a command?
10120 max_cmd_len=$lt_cv_sys_max_cmd_len
10122 # Does compiler simultaneously support -c and -o options?
10123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10125 # Must we lock files when doing compilation?
10126 need_locks=$lt_need_locks
10128 # Do we need the lib prefix for modules?
10129 need_lib_prefix=$need_lib_prefix
10131 # Do we need a version for libraries?
10132 need_version=$need_version
10134 # Whether dlopen is supported.
10135 dlopen_support=$enable_dlopen
10137 # Whether dlopen of programs is supported.
10138 dlopen_self=$enable_dlopen_self
10140 # Whether dlopen of statically linked programs is supported.
10141 dlopen_self_static=$enable_dlopen_self_static
10143 # Compiler flag to prevent dynamic linking.
10144 link_static_flag=$lt_lt_prog_compiler_static
10146 # Compiler flag to turn off builtin functions.
10147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10149 # Compiler flag to allow reflexive dlopens.
10150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10152 # Compiler flag to generate shared objects directly from archives.
10153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10155 # Compiler flag to generate thread-safe objects.
10156 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10158 # Library versioning type.
10159 version_type=$version_type
10161 # Format of library name prefix.
10162 libname_spec=$lt_libname_spec
10164 # List of archive names. First name is the real one, the rest are links.
10165 # The last name is the one that the linker finds with -lNAME.
10166 library_names_spec=$lt_library_names_spec
10168 # The coded name of the library, if different from the real name.
10169 soname_spec=$lt_soname_spec
10171 # Commands used to build and install an old-style archive.
10173 old_archive_cmds=$lt_old_archive_cmds
10174 old_postinstall_cmds=$lt_old_postinstall_cmds
10175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10177 # Create an old-style archive from a shared archive.
10178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10180 # Create a temporary old-style archive to link instead of a shared archive.
10181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10183 # Commands used to build and install a shared archive.
10184 archive_cmds=$lt_archive_cmds
10185 archive_expsym_cmds=$lt_archive_expsym_cmds
10186 postinstall_cmds=$lt_postinstall_cmds
10187 postuninstall_cmds=$lt_postuninstall_cmds
10189 # Commands used to build a loadable module (assumed same as above if empty)
10190 module_cmds=$lt_module_cmds
10191 module_expsym_cmds=$lt_module_expsym_cmds
10193 # Commands to strip libraries.
10194 old_striplib=$lt_old_striplib
10195 striplib=$lt_striplib
10197 # Dependencies to place before the objects being linked to create a
10199 predep_objects=$lt_predep_objects
10201 # Dependencies to place after the objects being linked to create a
10203 postdep_objects=$lt_postdep_objects
10205 # Dependencies to place before the objects being linked to create a
10207 predeps=$lt_predeps
10209 # Dependencies to place after the objects being linked to create a
10211 postdeps=$lt_postdeps
10213 # The directories searched by this compiler when creating a shared
10215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10217 # The library search path used internally by the compiler when linking
10218 # a shared library.
10219 compiler_lib_search_path=$lt_compiler_lib_search_path
10221 # Method to check whether dependent libraries are shared objects.
10222 deplibs_check_method=$lt_deplibs_check_method
10224 # Command to use when deplibs_check_method == file_magic.
10225 file_magic_cmd=$lt_file_magic_cmd
10227 # Flag that allows shared libraries with undefined symbols to be built.
10228 allow_undefined_flag=$lt_allow_undefined_flag
10230 # Flag that forces no undefined symbols.
10231 no_undefined_flag=$lt_no_undefined_flag
10233 # Commands used to finish a libtool library installation in a directory.
10234 finish_cmds=$lt_finish_cmds
10236 # Same as above, but a single script fragment to be evaled but not shown.
10237 finish_eval=$lt_finish_eval
10239 # Take the output of nm and produce a listing of raw symbols and C names.
10240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10242 # Transform the output of nm in a proper C declaration
10243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10245 # Transform the output of nm in a C name address pair
10246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10248 # This is the shared library runtime path variable.
10249 runpath_var=$runpath_var
10251 # This is the shared library path variable.
10252 shlibpath_var=$shlibpath_var
10254 # Is shlibpath searched before the hard-coded library search path?
10255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10257 # How to hardcode a shared library path into an executable.
10258 hardcode_action=$hardcode_action
10260 # Whether we should hardcode library paths into libraries.
10261 hardcode_into_libs=$hardcode_into_libs
10263 # Flag to hardcode \$libdir into a binary during linking.
10264 # This must work even if \$libdir does not exist.
10265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10267 # If ld is used when linking, flag to hardcode \$libdir into
10268 # a binary during linking. This must work even if \$libdir does
10270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10272 # Whether we need a single -rpath flag with a separated argument.
10273 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10276 # resulting binary.
10277 hardcode_direct=$hardcode_direct
10279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10280 # resulting binary.
10281 hardcode_minus_L=$hardcode_minus_L
10283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10284 # the resulting binary.
10285 hardcode_shlibpath_var=$hardcode_shlibpath_var
10287 # Set to yes if building a shared library automatically hardcodes DIR into the library
10288 # and all subsequent libraries and executables linked against it.
10289 hardcode_automatic=$hardcode_automatic
10291 # Variables whose values should be saved in libtool wrapper scripts and
10292 # restored at relink time.
10293 variables_saved_for_relink="$variables_saved_for_relink"
10295 # Whether libtool must link a program against all its dependency libraries.
10296 link_all_deplibs=$link_all_deplibs
10298 # Compile-time system search path for libraries
10299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10301 # Run-time system search path for libraries
10302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10304 # Fix the shell variable \$srcfile for the compiler.
10305 fix_srcfile_path=$lt_fix_srcfile_path
10307 # Set to yes if exported symbols are required.
10308 always_export_symbols=$always_export_symbols
10310 # The commands to list exported symbols.
10311 export_symbols_cmds=$lt_export_symbols_cmds
10313 # The commands to extract the exported symbol list from a shared archive.
10314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10316 # Symbols that should not be listed in the preloaded symbols.
10317 exclude_expsyms=$lt_exclude_expsyms
10319 # Symbols that must always be exported.
10320 include_expsyms=$lt_include_expsyms
10322 # ### END LIBTOOL CONFIG
10329 cat <<\EOF >> "$cfgfile"
10331 # AIX sometimes has problems with the GCC collect2 program. For some
10332 # reason, if we set the COLLECT_NAMES environment variable, the problems
10333 # vanish in a puff of smoke.
10334 if test "X${COLLECT_NAMES+set}" != Xset; then
10336 export COLLECT_NAMES
10342 # We use sed instead of cat because bash on DJGPP gets confused if
10343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10344 # text mode, it properly converts lines to CR/LF. This bash problem
10345 # is reportedly fixed, but why not run on old versions too?
10346 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10348 mv -f "$cfgfile" "$ofile" || \
10349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10353 # If there is no Makefile yet, we rely on a make rule to execute
10354 # `config.status --recheck' to rerun these tests and create the
10355 # libtool script then.
10356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10357 if test -f "$ltmain_in"; then
10358 test -f Makefile && make "$ltmain"
10364 ac_cpp='$CPP $CPPFLAGS'
10365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372 # Check whether --with-tags was given.
10373 if test "${with_tags+set}" = set; then :
10374 withval=$with_tags; tagnames="$withval"
10378 if test -f "$ltmain" && test -n "$tagnames"; then
10379 if test ! -f "${ofile}"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10381 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10384 if test -z "$LTCC"; then
10385 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10386 if test -z "$LTCC"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10388 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10391 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10394 if test -z "$LTCFLAGS"; then
10395 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10398 # Extract list of available tagged configurations in $ofile.
10399 # Note that this assumes the entire list is on one line.
10400 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10403 for tagname in $tagnames; do
10405 # Check whether tagname contains only valid characters
10406 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10408 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10412 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10414 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10417 # Update the list of available tags.
10418 if test -n "$tagname"; then
10419 echo appending configuration tag \"$tagname\" to $ofile
10423 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10424 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10425 (test "X$CXX" != "Xg++"))) ; then
10427 ac_cpp='$CXXCPP $CPPFLAGS'
10428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10435 archive_cmds_need_lc_CXX=no
10436 allow_undefined_flag_CXX=
10437 always_export_symbols_CXX=no
10438 archive_expsym_cmds_CXX=
10439 export_dynamic_flag_spec_CXX=
10440 hardcode_direct_CXX=no
10441 hardcode_libdir_flag_spec_CXX=
10442 hardcode_libdir_flag_spec_ld_CXX=
10443 hardcode_libdir_separator_CXX=
10444 hardcode_minus_L_CXX=no
10445 hardcode_shlibpath_var_CXX=unsupported
10446 hardcode_automatic_CXX=no
10448 module_expsym_cmds_CXX=
10449 link_all_deplibs_CXX=unknown
10450 old_archive_cmds_CXX=$old_archive_cmds
10451 no_undefined_flag_CXX=
10452 whole_archive_flag_spec_CXX=
10453 enable_shared_with_static_runtimes_CXX=no
10455 # Dependencies to place before and after the object being linked:
10456 predep_objects_CXX=
10457 postdep_objects_CXX=
10460 compiler_lib_search_path_CXX=
10461 compiler_lib_search_dirs_CXX=
10463 # Source file extension for C++ test sources.
10466 # Object file extension for compiled C++ test sources.
10470 # Code to be used in simple compile tests
10471 lt_simple_compile_test_code="int some_variable = 0;"
10473 # Code to be used in simple link tests
10474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10478 # If no C compiler was specified, use CC.
10481 # If no C compiler flags were specified, use CFLAGS.
10482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10484 # Allow CC to be a program name with arguments.
10488 # save warnings/boilerplate of simple test code
10489 ac_outfile=conftest.$ac_objext
10490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10492 _lt_compiler_boilerplate=`cat conftest.err`
10495 ac_outfile=conftest.$ac_objext
10496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10498 _lt_linker_boilerplate=`cat conftest.err`
10502 # Allow CC to be a program name with arguments.
10507 lt_save_with_gnu_ld=$with_gnu_ld
10508 lt_save_path_LD=$lt_cv_path_LD
10509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10510 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10512 $as_unset lt_cv_prog_gnu_ld
10514 if test -n "${lt_cv_path_LDCXX+set}"; then
10515 lt_cv_path_LD=$lt_cv_path_LDCXX
10517 $as_unset lt_cv_path_LD
10519 test -z "${LDCXX+set}" || LD=$LDCXX
10523 for cc_temp in $compiler""; do
10525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10534 # We don't want -fno-exception wen compiling C++ code, so set the
10535 # no_builtin_flag separately
10536 if test "$GXX" = yes; then
10537 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10539 lt_prog_compiler_no_builtin_flag_CXX=
10542 if test "$GXX" = yes; then
10543 # Set up default GNU C++ configuration
10546 # Check whether --with-gnu-ld was given.
10547 if test "${with_gnu_ld+set}" = set; then :
10548 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10554 if test "$GCC" = yes; then
10555 # Check if gcc -print-prog-name=ld gives a path.
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10557 $as_echo_n "checking for ld used by $CC... " >&6; }
10560 # gcc leaves a trailing carriage return which upsets mingw
10561 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10563 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10566 # Accept absolute paths.
10568 re_direlt='/[^/][^/]*/\.\./'
10569 # Canonicalize the pathname of ld
10570 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10571 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10572 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10574 test -z "$LD" && LD="$ac_prog"
10577 # If it fails, then pretend we aren't using GCC.
10581 # If it is relative, then search for the first ld in PATH.
10582 with_gnu_ld=unknown
10585 elif test "$with_gnu_ld" = yes; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10587 $as_echo_n "checking for GNU ld... " >&6; }
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10590 $as_echo_n "checking for non-GNU ld... " >&6; }
10592 if ${lt_cv_path_LD+:} false; then :
10593 $as_echo_n "(cached) " >&6
10595 if test -z "$LD"; then
10596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10597 for ac_dir in $PATH; do
10599 test -z "$ac_dir" && ac_dir=.
10600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10601 lt_cv_path_LD="$ac_dir/$ac_prog"
10602 # Check to see if the program is GNU ld. I'd rather use --version,
10603 # but apparently some variants of GNU ld only accept -v.
10604 # Break only if it was the GNU/non-GNU ld that we prefer.
10605 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10606 *GNU* | *'with BFD'*)
10607 test "$with_gnu_ld" != no && break
10610 test "$with_gnu_ld" != yes && break
10617 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10621 LD="$lt_cv_path_LD"
10622 if test -n "$LD"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10624 $as_echo "$LD" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10629 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10631 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10632 if ${lt_cv_prog_gnu_ld+:} false; then :
10633 $as_echo_n "(cached) " >&6
10635 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10636 case `$LD -v 2>&1 </dev/null` in
10637 *GNU* | *'with BFD'*)
10638 lt_cv_prog_gnu_ld=yes
10641 lt_cv_prog_gnu_ld=no
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10646 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10647 with_gnu_ld=$lt_cv_prog_gnu_ld
10651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10652 # archiving commands below assume that GNU ld is being used.
10653 if test "$with_gnu_ld" = yes; then
10654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10655 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'
10657 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10660 # If archive_cmds runs LD, not CC, wlarc should be empty
10661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10662 # investigate it a little bit more. (MM)
10665 # ancient GNU ld didn't support --whole-archive et. al.
10666 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10667 grep 'no-whole-archive' > /dev/null; then
10668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10670 whole_archive_flag_spec_CXX=
10676 # A generic and very simple default shared library creation
10677 # command for GNU C++ for the case where it uses the native
10678 # linker, instead of GNU ld. If possible, this setting should
10679 # overridden to take advantage of the native linker features on
10680 # the platform it is being used on.
10681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10684 # Commands to make compiler produce verbose output that lists
10685 # what "hidden" libraries, object files and flags are used when
10686 # linking a shared library.
10687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10695 # PORTME: fill in a description of your system's C++ link characteristics
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10701 # FIXME: insert proper C++ library support
10705 if test "$host_cpu" = ia64; then
10706 # On IA64, the linker does run time linking by default, so we don't
10707 # have to do anything special.
10708 aix_use_runtimelinking=no
10709 exp_sym_flag='-Bexport'
10712 aix_use_runtimelinking=no
10714 # Test if we are trying to use run time linking or normal
10715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10716 # need to do runtime linking.
10717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10718 for ld_flag in $LDFLAGS; do
10721 aix_use_runtimelinking=yes
10729 exp_sym_flag='-bexport'
10730 no_entry_flag='-bnoentry'
10733 # When large executables or shared objects are built, AIX ld can
10734 # have problems creating the table of contents. If linking a library
10735 # or program results in "error TOC overflow" add -mminimal-toc to
10736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10739 archive_cmds_CXX=''
10740 hardcode_direct_CXX=yes
10741 hardcode_libdir_separator_CXX=':'
10742 link_all_deplibs_CXX=yes
10744 if test "$GXX" = yes; then
10745 case $host_os in aix4.[012]|aix4.[012].*)
10746 # We only want to do this on AIX 4.2 and lower, the check
10747 # below for broken collect2 doesn't work under 4.3+
10748 collect2name=`${CC} -print-prog-name=collect2`
10749 if test -f "$collect2name" && \
10750 strings "$collect2name" | grep resolve_lib_name >/dev/null
10752 # We have reworked collect2
10755 # We have old collect2
10756 hardcode_direct_CXX=unsupported
10757 # It fails to find uninstalled libraries when the uninstalled
10758 # path is not listed in the libpath. Setting hardcode_minus_L
10759 # to unsupported forces relinking
10760 hardcode_minus_L_CXX=yes
10761 hardcode_libdir_flag_spec_CXX='-L$libdir'
10762 hardcode_libdir_separator_CXX=
10766 shared_flag='-shared'
10767 if test "$aix_use_runtimelinking" = yes; then
10768 shared_flag="$shared_flag "'${wl}-G'
10772 if test "$host_cpu" = ia64; then
10773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10774 # chokes on -Wl,-G. The following line is correct:
10777 if test "$aix_use_runtimelinking" = yes; then
10778 shared_flag='${wl}-G'
10780 shared_flag='${wl}-bM:SRE'
10785 # It seems that -bexpall does not export symbols beginning with
10786 # underscore (_), so it is better to generate a list of symbols to export.
10787 always_export_symbols_CXX=yes
10788 if test "$aix_use_runtimelinking" = yes; then
10789 # Warning - without using the other runtime loading flags (-brtl),
10790 # -berok will link without error, but may produce a broken library.
10791 allow_undefined_flag_CXX='-berok'
10792 # Determine the default libpath from the value encoded in an empty executable.
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10804 if ac_fn_cxx_try_link "$LINENO"; then :
10806 lt_aix_libpath_sed='
10807 /Import File Strings/,/^$/ {
10813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10814 # Check for a 64-bit object if we didn't find anything.
10815 if test -z "$aix_libpath"; then
10816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10823 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10825 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10827 if test "$host_cpu" = ia64; then
10828 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10829 allow_undefined_flag_CXX="-z nodefs"
10830 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10832 # Determine the default libpath from the value encoded in an empty executable.
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10844 if ac_fn_cxx_try_link "$LINENO"; then :
10846 lt_aix_libpath_sed='
10847 /Import File Strings/,/^$/ {
10853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854 # Check for a 64-bit object if we didn't find anything.
10855 if test -z "$aix_libpath"; then
10856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10863 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10864 # Warning - without using the other run time loading flags,
10865 # -berok will link without error, but may produce a broken library.
10866 no_undefined_flag_CXX=' ${wl}-bernotok'
10867 allow_undefined_flag_CXX=' ${wl}-berok'
10868 # Exported symbols can be pulled into shared objects from archives
10869 whole_archive_flag_spec_CXX='$convenience'
10870 archive_cmds_need_lc_CXX=yes
10871 # This is similar to how AIX traditionally builds its shared libraries.
10872 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10879 allow_undefined_flag_CXX=unsupported
10880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10881 # support --undefined. This deserves some investigation. FIXME
10882 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10889 case $cc_basename in
10891 # FIXME: insert proper C++ library support
10897 cygwin* | mingw* | pw32*)
10898 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10899 # as there is no search path for DLLs.
10900 hardcode_libdir_flag_spec_CXX='-L$libdir'
10901 allow_undefined_flag_CXX=unsupported
10902 always_export_symbols_CXX=no
10903 enable_shared_with_static_runtimes_CXX=yes
10905 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10907 # If the export-symbols file already is a .def file (1st line
10908 # is EXPORTS), use it as is; otherwise, prepend...
10909 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910 cp $export_symbols $output_objdir/$soname.def;
10912 echo EXPORTS > $output_objdir/$soname.def;
10913 cat $export_symbols >> $output_objdir/$soname.def;
10915 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10920 darwin* | rhapsody*)
10921 archive_cmds_need_lc_CXX=no
10922 hardcode_direct_CXX=no
10923 hardcode_automatic_CXX=yes
10924 hardcode_shlibpath_var_CXX=unsupported
10925 whole_archive_flag_spec_CXX=''
10926 link_all_deplibs_CXX=yes
10927 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10928 if test "$GXX" = yes ; then
10929 output_verbose_link_cmd='echo'
10930 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10931 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10932 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10933 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10934 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10935 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10936 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10939 case $cc_basename in
10941 output_verbose_link_cmd='echo'
10942 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10943 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10944 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10945 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10946 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}'
10956 case $cc_basename in
10958 # FIXME: insert proper C++ library support
10962 # Green Hills C++ Compiler
10963 # FIXME: insert proper C++ library support
10967 # FIXME: insert proper C++ library support
10973 # C++ shared libraries reported to be fairly broken before switch to ELF
10977 archive_cmds_need_lc_CXX=no
10979 freebsd* | dragonfly*)
10980 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10987 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10988 hardcode_libdir_separator_CXX=:
10989 export_dynamic_flag_spec_CXX='${wl}-E'
10990 hardcode_direct_CXX=yes
10991 hardcode_minus_L_CXX=yes # Not in the search PATH,
10992 # but as the default
10993 # location of the library.
10995 case $cc_basename in
10997 # FIXME: insert proper C++ library support
11001 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'
11002 # Commands to make compiler produce verbose output that lists
11003 # what "hidden" libraries, object files and flags are used when
11004 # linking a shared library.
11006 # There doesn't appear to be a way to prevent this compiler from
11007 # explicitly linking system object files so we need to strip them
11008 # from the output so that they don't get included in the library
11010 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'
11013 if test "$GXX" = yes; then
11014 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'
11016 # FIXME: insert proper C++ library support
11023 if test $with_gnu_ld = no; then
11024 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11025 hardcode_libdir_separator_CXX=:
11030 export_dynamic_flag_spec_CXX='${wl}-E'
11036 hardcode_direct_CXX=no
11037 hardcode_shlibpath_var_CXX=no
11040 hardcode_direct_CXX=yes
11041 hardcode_minus_L_CXX=yes # Not in the search PATH,
11042 # but as the default
11043 # location of the library.
11047 case $cc_basename in
11049 # FIXME: insert proper C++ library support
11055 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11061 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11064 # Commands to make compiler produce verbose output that lists
11065 # what "hidden" libraries, object files and flags are used when
11066 # linking a shared library.
11068 # There doesn't appear to be a way to prevent this compiler from
11069 # explicitly linking system object files so we need to strip them
11070 # from the output so that they don't get included in the library
11072 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'
11075 if test "$GXX" = yes; then
11076 if test $with_gnu_ld = no; then
11079 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11082 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11085 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'
11090 # FIXME: insert proper C++ library support
11097 hardcode_direct_CXX=no
11098 hardcode_shlibpath_var_CXX=no
11099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11100 export_dynamic_flag_spec_CXX='${wl}-E'
11101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11102 # Instead, shared libraries are loaded at an image base (0x10000000 by
11103 # default) and relocated if they conflict, which is a slow very memory
11104 # consuming and fragmenting process. To avoid this, we pick a random,
11105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11107 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11108 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11111 case $cc_basename in
11114 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11116 # Archives containing C++ object files must be created using
11117 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11118 # necessary to make sure instantiated templates are included
11120 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11123 if test "$GXX" = yes; then
11124 if test "$with_gnu_ld" = no; then
11125 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11127 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'
11130 link_all_deplibs_CXX=yes
11133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11134 hardcode_libdir_separator_CXX=:
11136 linux* | k*bsd*-gnu)
11137 case $cc_basename in
11139 # Kuck and Associates, Inc. (KAI) C++ Compiler
11141 # KCC will only create a shared library if the output file
11142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11143 # to its proper name (with version) after linking.
11144 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'
11145 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'
11146 # Commands to make compiler produce verbose output that lists
11147 # what "hidden" libraries, object files and flags are used when
11148 # linking a shared library.
11150 # There doesn't appear to be a way to prevent this compiler from
11151 # explicitly linking system object files so we need to strip them
11152 # from the output so that they don't get included in the library
11154 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'
11156 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11159 # Archives containing C++ object files must be created using
11160 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11161 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11166 # version 8.0 and above of icpc choke on multiply defined symbols
11167 # if we add $predep_objects and $postdep_objects, however 7.1 and
11168 # earlier do not add the objects themselves.
11169 case `$CC -V 2>&1` in
11171 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11172 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'
11174 *) # Version 8.0 or newer
11177 ia64*) tmp_idyn=' -i_dynamic';;
11179 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11183 archive_cmds_need_lc_CXX=no
11184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11186 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11189 # Portland Group C++ compiler
11190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11191 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11193 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11194 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11195 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200 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'
11202 runpath_var=LD_RUN_PATH
11203 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11204 hardcode_libdir_separator_CXX=:
11206 # Commands to make compiler produce verbose output that lists
11207 # what "hidden" libraries, object files and flags are used when
11208 # linking a shared library.
11210 # There doesn't appear to be a way to prevent this compiler from
11211 # explicitly linking system object files so we need to strip them
11212 # from the output so that they don't get included in the library
11214 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'
11217 case `$CC -V 2>&1 | sed 5q` in
11220 no_undefined_flag_CXX=' -zdefs'
11221 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11222 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11223 hardcode_libdir_flag_spec_CXX='-R$libdir'
11224 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11226 # Not sure whether something based on
11227 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11229 output_verbose_link_cmd='echo'
11231 # Archives containing C++ object files must be created using
11232 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11233 # necessary to make sure instantiated templates are included
11235 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11242 # FIXME: insert proper C++ library support
11246 # FIXME: insert proper C++ library support
11250 case $cc_basename in
11252 # FIXME: insert proper C++ library support
11256 # FIXME: insert proper C++ library support
11261 netbsd* | netbsdelf*-gnu)
11262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11263 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11265 hardcode_libdir_flag_spec_CXX='-R$libdir'
11266 hardcode_direct_CXX=yes
11267 hardcode_shlibpath_var_CXX=no
11269 # Workaround some broken pre-1.5 toolchains
11270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11273 # C++ shared libraries are fairly broken
11277 if test -f /usr/libexec/ld.so; then
11278 hardcode_direct_CXX=yes
11279 hardcode_shlibpath_var_CXX=no
11280 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11283 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11284 export_dynamic_flag_spec_CXX='${wl}-E'
11285 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11287 output_verbose_link_cmd='echo'
11293 case $cc_basename in
11295 # Kuck and Associates, Inc. (KAI) C++ Compiler
11297 # KCC will only create a shared library if the output file
11298 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11299 # to its proper name (with version) after linking.
11300 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'
11302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11303 hardcode_libdir_separator_CXX=:
11305 # Archives containing C++ object files must be created using
11306 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11307 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11311 # Rational C++ 2.4.1
11312 # FIXME: insert proper C++ library support
11316 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11317 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11320 hardcode_libdir_separator_CXX=:
11322 # Commands to make compiler produce verbose output that lists
11323 # what "hidden" libraries, object files and flags are used when
11324 # linking a shared library.
11326 # There doesn't appear to be a way to prevent this compiler from
11327 # explicitly linking system object files so we need to strip them
11328 # from the output so that they don't get included in the library
11330 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'
11333 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11334 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11335 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11338 hardcode_libdir_separator_CXX=:
11340 # Commands to make compiler produce verbose output that lists
11341 # what "hidden" libraries, object files and flags are used when
11342 # linking a shared library.
11343 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11346 # FIXME: insert proper C++ library support
11353 case $cc_basename in
11355 # Kuck and Associates, Inc. (KAI) C++ Compiler
11357 # KCC will only create a shared library if the output file
11358 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11359 # to its proper name (with version) after linking.
11360 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'
11362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11363 hardcode_libdir_separator_CXX=:
11365 # Archives containing C++ object files must be created using
11366 # the KAI C++ compiler.
11367 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11370 # Rational C++ 2.4.1
11371 # FIXME: insert proper C++ library support
11375 allow_undefined_flag_CXX=' -expect_unresolved \*'
11376 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11377 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11378 echo "-hidden">> $lib.exp~
11379 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11382 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11383 hardcode_libdir_separator_CXX=:
11385 # Commands to make compiler produce verbose output that lists
11386 # what "hidden" libraries, object files and flags are used when
11387 # linking a shared library.
11389 # There doesn't appear to be a way to prevent this compiler from
11390 # explicitly linking system object files so we need to strip them
11391 # from the output so that they don't get included in the library
11393 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'
11396 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11398 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401 hardcode_libdir_separator_CXX=:
11403 # Commands to make compiler produce verbose output that lists
11404 # what "hidden" libraries, object files and flags are used when
11405 # linking a shared library.
11406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11409 # FIXME: insert proper C++ library support
11416 # FIXME: insert proper C++ library support
11420 case $cc_basename in
11423 # FIXME: insert proper C++ library support
11428 # FIXME: insert proper C++ library support
11432 # FIXME: insert proper C++ library support
11438 case $cc_basename in
11440 # Sun C++ 4.2, 5.x and Centerline C++
11441 archive_cmds_need_lc_CXX=yes
11442 no_undefined_flag_CXX=' -zdefs'
11443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11445 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11447 hardcode_libdir_flag_spec_CXX='-R$libdir'
11448 hardcode_shlibpath_var_CXX=no
11450 solaris2.[0-5] | solaris2.[0-5].*) ;;
11452 # The compiler driver will combine and reorder linker options,
11453 # but understands `-z linker_flag'.
11454 # Supported since Solaris 2.6 (maybe 2.5.1?)
11455 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11458 link_all_deplibs_CXX=yes
11460 output_verbose_link_cmd='echo'
11462 # Archives containing C++ object files must be created using
11463 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11464 # necessary to make sure instantiated templates are included
11466 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11469 # Green Hills C++ Compiler
11470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11472 # The C++ compiler must be used to create the archive.
11473 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11476 # GNU C++ compiler with Solaris linker
11477 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11478 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11479 if $CC --version | grep -v '^2\.7' > /dev/null; then
11480 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11481 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11482 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11487 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11489 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11491 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11492 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11493 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11495 # Commands to make compiler produce verbose output that lists
11496 # what "hidden" libraries, object files and flags are used when
11497 # linking a shared library.
11498 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11501 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11503 solaris2.[0-5] | solaris2.[0-5].*) ;;
11505 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11513 no_undefined_flag_CXX='${wl}-z,text'
11514 archive_cmds_need_lc_CXX=no
11515 hardcode_shlibpath_var_CXX=no
11516 runpath_var='LD_RUN_PATH'
11518 case $cc_basename in
11520 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 sysv5* | sco3.2v5* | sco5v6*)
11530 # Note: We can NOT use -z defs as we might desire, because we do not
11531 # link with -lc, and that would cause any symbols used from libc to
11532 # always be unresolved, which means just about no library would
11533 # ever link correctly. If we're not using GNU ld we use -z text
11534 # though, which does catch some bad symbols but isn't as heavy-handed
11536 # For security reasons, it is highly recommended that you always
11537 # use absolute paths for naming shared libraries, and exclude the
11538 # DT_RUNPATH tag from executables and libraries. But doing so
11539 # requires that you compile everything twice, which is a pain.
11540 # So that behaviour is only enabled if SCOABSPATH is set to a
11541 # non-empty value in the environment. Most likely only useful for
11542 # creating official distributions of packages.
11543 # This is a hack until libtool officially supports absolute path
11544 # names for shared libraries.
11545 no_undefined_flag_CXX='${wl}-z,text'
11546 allow_undefined_flag_CXX='${wl}-z,nodefs'
11547 archive_cmds_need_lc_CXX=no
11548 hardcode_shlibpath_var_CXX=no
11549 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11550 hardcode_libdir_separator_CXX=':'
11551 link_all_deplibs_CXX=yes
11552 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11553 runpath_var='LD_RUN_PATH'
11555 case $cc_basename in
11557 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11558 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11561 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 case $cc_basename in
11569 # NonStop-UX NCC 3.20
11570 # FIXME: insert proper C++ library support
11574 # FIXME: insert proper C++ library support
11580 # FIXME: insert proper C++ library support
11584 # FIXME: insert proper C++ library support
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11589 $as_echo "$ld_shlibs_CXX" >&6; }
11590 test "$ld_shlibs_CXX" = no && can_build_shared=no
11595 cat > conftest.$ac_ext <<EOF
11599 Foo (void) { a = 0; }
11605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11606 (eval $ac_compile) 2>&5
11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609 test $ac_status = 0; }; then
11610 # Parse the compiler output and extract the necessary
11611 # objects, libraries and library flags.
11613 # Sentinel used to keep track of whether or not we are before
11614 # the conftest object file.
11615 pre_test_object_deps_done=no
11617 # The `*' in the case matches for architectures that use `case' in
11618 # $output_verbose_cmd can trigger glob expansion during the loop
11619 # eval without this substitution.
11620 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11622 for p in `eval $output_verbose_link_cmd`; do
11626 # Some compilers place space between "-{L,R}" and the path.
11627 # Remove the space.
11628 if test $p = "-L" \
11629 || test $p = "-R"; then
11636 if test "$pre_test_object_deps_done" = no; then
11639 # Internal compiler library paths should come after those
11640 # provided the user. The postdeps already come after the
11641 # user supplied libs so there is no need to process them.
11642 if test -z "$compiler_lib_search_path_CXX"; then
11643 compiler_lib_search_path_CXX="${prev}${p}"
11645 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11648 # The "-l" case would never come before the object being
11649 # linked, so don't bother handling this case.
11652 if test -z "$postdeps_CXX"; then
11653 postdeps_CXX="${prev}${p}"
11655 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11661 # This assumes that the test object file only shows up
11662 # once in the compiler output.
11663 if test "$p" = "conftest.$objext"; then
11664 pre_test_object_deps_done=yes
11668 if test "$pre_test_object_deps_done" = no; then
11669 if test -z "$predep_objects_CXX"; then
11670 predep_objects_CXX="$p"
11672 predep_objects_CXX="$predep_objects_CXX $p"
11675 if test -z "$postdep_objects_CXX"; then
11676 postdep_objects_CXX="$p"
11678 postdep_objects_CXX="$postdep_objects_CXX $p"
11683 *) ;; # Ignore the rest.
11691 echo "libtool.m4: error: problem compiling CXX test program"
11694 $rm -f confest.$objext
11696 compiler_lib_search_dirs_CXX=
11697 if test -n "$compiler_lib_search_path_CXX"; then
11698 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11701 # PORTME: override above test on systems where it is broken
11704 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11705 # hack all around it, let's just trust "g++" to DTRT.
11706 predep_objects_CXX=
11707 postdep_objects_CXX=
11712 case `$CC -V 2>&1 | sed 5q` in
11716 # The more standards-conforming stlport4 library is
11717 # incompatible with the Cstd library. Avoid specifying
11718 # it if it's in CXXFLAGS. Ignore libCrun as
11719 # -library=stlport4 depends on it.
11720 case " $CXX $CXXFLAGS " in
11721 *" -library=stlport4 "*)
11722 solaris_use_stlport4=yes
11725 if test "$solaris_use_stlport4" != yes; then
11726 postdeps_CXX='-library=Cstd -library=Crun'
11733 case $cc_basename in
11735 # The more standards-conforming stlport4 library is
11736 # incompatible with the Cstd library. Avoid specifying
11737 # it if it's in CXXFLAGS. Ignore libCrun as
11738 # -library=stlport4 depends on it.
11739 case " $CXX $CXXFLAGS " in
11740 *" -library=stlport4 "*)
11741 solaris_use_stlport4=yes
11745 # Adding this requires a known-good setup of shared libraries for
11746 # Sun compiler versions before 5.6, else PIC objects from an old
11747 # archive will be linked into the output, leading to subtle bugs.
11748 if test "$solaris_use_stlport4" != yes; then
11749 postdeps_CXX='-library=Cstd -library=Crun'
11756 case " $postdeps_CXX " in
11757 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11760 lt_prog_compiler_wl_CXX=
11761 lt_prog_compiler_pic_CXX=
11762 lt_prog_compiler_static_CXX=
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11765 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11767 # C++ specific cases for pic, static, wl, etc.
11768 if test "$GXX" = yes; then
11769 lt_prog_compiler_wl_CXX='-Wl,'
11770 lt_prog_compiler_static_CXX='-static'
11774 # All AIX code is PIC.
11775 if test "$host_cpu" = ia64; then
11776 # AIX 5 now supports IA64 processor
11777 lt_prog_compiler_static_CXX='-Bstatic'
11781 # FIXME: we need at least 68020 code to build shared libraries, but
11782 # adding the `-m68020' flag to GCC prevents building anything better,
11784 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11787 # PIC is the default for these OSes.
11789 mingw* | cygwin* | os2* | pw32*)
11790 # This hack is so that the source file can tell whether it is being
11791 # built for inclusion in a dll (and should export symbols for example).
11792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11793 # (--disable-auto-import) libraries
11794 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11796 darwin* | rhapsody*)
11797 # PIC is the default on this platform
11798 # Common symbols not allowed in MH_DYLIB files
11799 lt_prog_compiler_pic_CXX='-fno-common'
11802 # DJGPP does not support shared libraries at all
11803 lt_prog_compiler_pic_CXX=
11806 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11807 # Instead, we relocate shared libraries at runtime.
11810 if test -d /usr/nec; then
11811 lt_prog_compiler_pic_CXX=-Kconform_pic
11815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11816 # not for PA HP-UX.
11821 lt_prog_compiler_pic_CXX='-fPIC'
11826 lt_prog_compiler_pic_CXX='-fPIC'
11832 # All AIX code is PIC.
11833 if test "$host_cpu" = ia64; then
11834 # AIX 5 now supports IA64 processor
11835 lt_prog_compiler_static_CXX='-Bstatic'
11837 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11841 case $cc_basename in
11843 # Green Hills C++ Compiler
11844 # _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"
11849 # PIC is the default on this platform
11850 # Common symbols not allowed in MH_DYLIB files
11851 case $cc_basename in
11853 lt_prog_compiler_pic_CXX='-qnocommon'
11854 lt_prog_compiler_wl_CXX='-Wl,'
11859 case $cc_basename in
11861 lt_prog_compiler_pic_CXX='-KPIC'
11864 # Green Hills C++ Compiler
11865 lt_prog_compiler_pic_CXX='-pic'
11871 freebsd* | dragonfly*)
11872 # FreeBSD uses GNU C++
11874 hpux9* | hpux10* | hpux11*)
11875 case $cc_basename in
11877 lt_prog_compiler_wl_CXX='-Wl,'
11878 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11879 if test "$host_cpu" != ia64; then
11880 lt_prog_compiler_pic_CXX='+Z'
11884 lt_prog_compiler_wl_CXX='-Wl,'
11885 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11891 lt_prog_compiler_pic_CXX='+Z'
11900 # This is c89, which is MS Visual C++ (no shared libs)
11901 # Anyone wants to do a port?
11903 irix5* | irix6* | nonstopux*)
11904 case $cc_basename in
11906 lt_prog_compiler_wl_CXX='-Wl,'
11907 lt_prog_compiler_static_CXX='-non_shared'
11908 # CC pic flag -KPIC is the default.
11914 linux* | k*bsd*-gnu)
11915 case $cc_basename in
11918 lt_prog_compiler_wl_CXX='--backend -Wl,'
11919 lt_prog_compiler_pic_CXX='-fPIC'
11923 lt_prog_compiler_wl_CXX='-Wl,'
11924 lt_prog_compiler_pic_CXX='-KPIC'
11925 lt_prog_compiler_static_CXX='-static'
11928 # Portland Group C++ compiler.
11929 lt_prog_compiler_wl_CXX='-Wl,'
11930 lt_prog_compiler_pic_CXX='-fpic'
11931 lt_prog_compiler_static_CXX='-Bstatic'
11935 # Make sure the PIC flag is empty. It appears that all Alpha
11936 # Linux and Compaq Tru64 Unix objects are PIC.
11937 lt_prog_compiler_pic_CXX=
11938 lt_prog_compiler_static_CXX='-non_shared'
11941 case `$CC -V 2>&1 | sed 5q` in
11944 lt_prog_compiler_pic_CXX='-KPIC'
11945 lt_prog_compiler_static_CXX='-Bstatic'
11946 lt_prog_compiler_wl_CXX='-Qoption ld '
11957 case $cc_basename in
11959 lt_prog_compiler_pic_CXX='-W c,exportall'
11965 netbsd* | netbsdelf*-gnu)
11967 osf3* | osf4* | osf5*)
11968 case $cc_basename in
11970 lt_prog_compiler_wl_CXX='--backend -Wl,'
11973 # Rational C++ 2.4.1
11974 lt_prog_compiler_pic_CXX='-pic'
11977 # Digital/Compaq C++
11978 lt_prog_compiler_wl_CXX='-Wl,'
11979 # Make sure the PIC flag is empty. It appears that all Alpha
11980 # Linux and Compaq Tru64 Unix objects are PIC.
11981 lt_prog_compiler_pic_CXX=
11982 lt_prog_compiler_static_CXX='-non_shared'
11991 case $cc_basename in
11993 # Sun C++ 4.2, 5.x and Centerline C++
11994 lt_prog_compiler_pic_CXX='-KPIC'
11995 lt_prog_compiler_static_CXX='-Bstatic'
11996 lt_prog_compiler_wl_CXX='-Qoption ld '
11999 # Green Hills C++ Compiler
12000 lt_prog_compiler_pic_CXX='-PIC'
12007 case $cc_basename in
12010 lt_prog_compiler_pic_CXX='-pic'
12011 lt_prog_compiler_static_CXX='-Bstatic'
12015 lt_prog_compiler_pic_CXX='-pic'
12022 case $cc_basename in
12024 # NonStop-UX NCC 3.20
12025 lt_prog_compiler_pic_CXX='-KPIC'
12031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12032 case $cc_basename in
12034 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_pic_CXX='-KPIC'
12036 lt_prog_compiler_static_CXX='-Bstatic'
12043 lt_prog_compiler_can_build_shared_CXX=no
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12049 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12052 # Check to make sure the PIC flag actually works.
12054 if test -n "$lt_prog_compiler_pic_CXX"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12057 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12058 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12059 $as_echo_n "(cached) " >&6
12061 lt_cv_prog_compiler_pic_works_CXX=no
12062 ac_outfile=conftest.$ac_objext
12063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12064 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12065 # Insert the option either (1) after the last *FLAGS variable, or
12066 # (2) before a word containing "conftest.", or (3) at the end.
12067 # Note that $ac_compile itself does not contain backslashes and begins
12068 # with a dollar sign (not a hyphen), so the echo should work correctly.
12069 # The option is referenced via a variable to avoid confusing sed.
12070 lt_compile=`echo "$ac_compile" | $SED \
12071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12073 -e 's:$: $lt_compiler_flag:'`
12074 (eval echo "\"\$as_me:12074: $lt_compile\"" >&5)
12075 (eval "$lt_compile" 2>conftest.err)
12077 cat conftest.err >&5
12078 echo "$as_me:12078: \$? = $ac_status" >&5
12079 if (exit $ac_status) && test -s "$ac_outfile"; then
12080 # The compiler can only warn and ignore the option if not recognized
12081 # So say no if there are warnings other than the usual output.
12082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12085 lt_cv_prog_compiler_pic_works_CXX=yes
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12092 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12094 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12095 case $lt_prog_compiler_pic_CXX in
12097 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12100 lt_prog_compiler_pic_CXX=
12101 lt_prog_compiler_can_build_shared_CXX=no
12106 # For platforms which do not support PIC, -DPIC is meaningless:
12108 lt_prog_compiler_pic_CXX=
12111 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12116 # Check to make sure the static flag actually works.
12118 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12121 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12122 $as_echo_n "(cached) " >&6
12124 lt_cv_prog_compiler_static_works_CXX=no
12125 save_LDFLAGS="$LDFLAGS"
12126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12129 # The linker can only warn and ignore the option if not recognized
12130 # So say no if there are warnings
12131 if test -s conftest.err; then
12132 # Append any errors to the config.log.
12133 cat conftest.err 1>&5
12134 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12136 if diff conftest.exp conftest.er2 >/dev/null; then
12137 lt_cv_prog_compiler_static_works_CXX=yes
12140 lt_cv_prog_compiler_static_works_CXX=yes
12144 LDFLAGS="$save_LDFLAGS"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12148 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12150 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12153 lt_prog_compiler_static_CXX=
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12159 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 lt_cv_prog_compiler_c_o_CXX=no
12163 $rm -r conftest 2>/dev/null
12167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12169 lt_compiler_flag="-o out/conftest2.$ac_objext"
12170 # Insert the option either (1) after the last *FLAGS variable, or
12171 # (2) before a word containing "conftest.", or (3) at the end.
12172 # Note that $ac_compile itself does not contain backslashes and begins
12173 # with a dollar sign (not a hyphen), so the echo should work correctly.
12174 lt_compile=`echo "$ac_compile" | $SED \
12175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12177 -e 's:$: $lt_compiler_flag:'`
12178 (eval echo "\"\$as_me:12178: $lt_compile\"" >&5)
12179 (eval "$lt_compile" 2>out/conftest.err)
12181 cat out/conftest.err >&5
12182 echo "$as_me:12182: \$? = $ac_status" >&5
12183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12185 # The compiler can only warn and ignore the option if not recognized
12186 # So say no if there are warnings
12187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12190 lt_cv_prog_compiler_c_o_CXX=yes
12195 # SGI C++ compiler will create directory out/ii_files/ for
12196 # template instantiation
12197 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12198 $rm out/* && rmdir out
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12208 hard_links="nottested"
12209 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12210 # do not overwrite the value of need_locks provided by the user
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12212 $as_echo_n "checking if we can lock with hard links... " >&6; }
12215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12217 ln conftest.a conftest.b 2>&5 || hard_links=no
12218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12220 $as_echo "$hard_links" >&6; }
12221 if test "$hard_links" = no; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12223 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12236 # If we're using GNU nm, then we don't want the "-C" option.
12237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12239 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'
12241 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'
12245 export_symbols_cmds_CXX="$ltdll_cmds"
12248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12250 linux* | k*bsd*-gnu)
12251 link_all_deplibs_CXX=no
12254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12257 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12260 $as_echo "$ld_shlibs_CXX" >&6; }
12261 test "$ld_shlibs_CXX" = no && can_build_shared=no
12264 # Do we need to explicitly link libc?
12266 case "x$archive_cmds_need_lc_CXX" in
12268 # Assume -lc should be added
12269 archive_cmds_need_lc_CXX=yes
12271 if test "$enable_shared" = yes && test "$GCC" = yes; then
12272 case $archive_cmds_CXX in
12274 # FIXME: we may have to deal with multi-command sequences.
12277 # Test whether the compiler implicitly links with -lc since on some
12278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12279 # to ld, don't add -lc before -lgcc.
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12281 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12286 (eval $ac_compile) 2>&5
12288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289 test $ac_status = 0; } 2>conftest.err; then
12292 libobjs=conftest.$ac_objext
12294 wl=$lt_prog_compiler_wl_CXX
12295 pic_flag=$lt_prog_compiler_pic_CXX
12301 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12302 allow_undefined_flag_CXX=
12303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12304 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12307 test $ac_status = 0; }
12309 archive_cmds_need_lc_CXX=no
12311 archive_cmds_need_lc_CXX=yes
12313 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12315 cat conftest.err 1>&5
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12328 library_names_spec=
12329 libname_spec='lib$name'
12333 postuninstall_cmds=
12337 shlibpath_overrides_runpath=unknown
12339 dynamic_linker="$host_os ld.so"
12340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12342 need_lib_prefix=unknown
12343 hardcode_into_libs=no
12345 # when you set need_version to no, make sure it does not cause -set_version
12346 # flags to be left without arguments
12347 need_version=unknown
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12353 shlibpath_var=LIBPATH
12355 # AIX 3 has no versioning support, so we append a major version to the name.
12356 soname_spec='${libname}${release}${shared_ext}$major'
12363 hardcode_into_libs=yes
12364 if test "$host_cpu" = ia64; then
12365 # AIX 5 supports IA64
12366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12367 shlibpath_var=LD_LIBRARY_PATH
12369 # With GCC up to 2.95.x, collect2 would create an import file
12370 # for dependence libraries. The import file would start with
12371 # the line `#! .'. This would cause the generated library to
12372 # depend on `.', always an invalid library. This was fixed in
12373 # development snapshots of GCC prior to 3.0.
12375 aix4 | aix4.[01] | aix4.[01].*)
12376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12381 can_build_shared=no
12385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12386 # soname into executable. Probably we can add versioning support to
12387 # collect2, so additional links can be useful in future.
12388 if test "$aix_use_runtimelinking" = yes; then
12389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12390 # instead of lib<name>.a to let people know that these are not
12391 # typical AIX shared libraries.
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 # We preserve .a as extension for shared libraries through AIX4.2
12395 # and later when we are not doing run time linking.
12396 library_names_spec='${libname}${release}.a $libname.a'
12397 soname_spec='${libname}${release}${shared_ext}$major'
12399 shlibpath_var=LIBPATH
12404 library_names_spec='$libname.ixlibrary $libname.a'
12405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12406 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'
12410 library_names_spec='${libname}${shared_ext}'
12411 dynamic_linker="$host_os ld.so"
12412 shlibpath_var=LIBRARY_PATH
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12424 # the default ld.so.conf also contains /usr/contrib/lib and
12425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12426 # libtool to hard-code these into programs
12429 cygwin* | mingw* | pw32*)
12430 version_type=windows
12435 case $GCC,$host_os in
12436 yes,cygwin* | yes,mingw* | yes,pw32*)
12437 library_names_spec='$libname.dll.a'
12438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12439 postinstall_cmds='base_file=`basename \${file}`~
12440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12441 dldir=$destdir/`dirname \$dlpath`~
12442 test -d \$dldir || mkdir -p \$dldir~
12443 $install_prog $dir/$dlname \$dldir/$dlname~
12444 chmod a+x \$dldir/$dlname'
12445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12446 dlpath=$dir/\$dldll~
12448 shlibpath_overrides_runpath=yes
12452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12454 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12457 # MinGW DLLs use traditional 'lib' prefix
12458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12461 # It is most probably a Windows format PATH printed by
12462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12463 # path with ; separators, and with drive letters. We can handle the
12464 # drive letters (cygwin fileutils understands them), so leave them,
12465 # especially as we might pass files found there to a mingw objdump,
12466 # which wouldn't understand a cygwinified path. Ahh.
12467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12473 # pw32 DLLs use 'pw' prefix rather than 'lib'
12474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12483 dynamic_linker='Win32 ld.exe'
12484 # FIXME: first we should search . and the directory the executable is in
12488 darwin* | rhapsody*)
12489 dynamic_linker="$host_os dyld"
12490 version_type=darwin
12493 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12494 soname_spec='${libname}${release}${major}$shared_ext'
12495 shlibpath_overrides_runpath=yes
12496 shlibpath_var=DYLD_LIBRARY_PATH
12497 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 shlibpath_var=LD_LIBRARY_PATH
12515 freebsd* | dragonfly*)
12516 # DragonFly does not have aout. When/if they implement a new
12517 # versioning mechanism, adjust this.
12518 if test -x /usr/bin/objformat; then
12519 objformat=`/usr/bin/objformat`
12522 freebsd[123]*) objformat=aout ;;
12523 *) objformat=elf ;;
12526 version_type=freebsd-$objformat
12527 case $version_type in
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12538 shlibpath_var=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath=yes
12543 freebsd3.[01]* | freebsdelf3.[01]*)
12544 shlibpath_overrides_runpath=yes
12545 hardcode_into_libs=yes
12547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12549 shlibpath_overrides_runpath=no
12550 hardcode_into_libs=yes
12552 *) # from 4.6 on, and DragonFly
12553 shlibpath_overrides_runpath=yes
12554 hardcode_into_libs=yes
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 hardcode_into_libs=yes
12569 hpux9* | hpux10* | hpux11*)
12570 # Give a soname corresponding to the major version so that dld.sl refuses to
12571 # link against other versions.
12578 hardcode_into_libs=yes
12579 dynamic_linker="$host_os dld.so"
12580 shlibpath_var=LD_LIBRARY_PATH
12581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583 soname_spec='${libname}${release}${shared_ext}$major'
12584 if test "X$HPUX_IA64_MODE" = X32; then
12585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12593 hardcode_into_libs=yes
12594 dynamic_linker="$host_os dld.sl"
12595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 soname_spec='${libname}${release}${shared_ext}$major'
12599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12604 dynamic_linker="$host_os dld.sl"
12605 shlibpath_var=SHLIB_PATH
12606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608 soname_spec='${libname}${release}${shared_ext}$major'
12611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12612 postinstall_cmds='chmod 555 $lib'
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 shlibpath_overrides_runpath=no
12624 hardcode_into_libs=yes
12627 irix5* | irix6* | nonstopux*)
12629 nonstopux*) version_type=nonstopux ;;
12631 if test "$lt_cv_prog_gnu_ld" = yes; then
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12642 irix5* | nonstopux*)
12643 libsuff= shlibsuff=
12646 case $LD in # libtool.m4 will add one of these switches to LD
12647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12648 libsuff= shlibsuff= libmagic=32-bit;;
12649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12650 libsuff=32 shlibsuff=N32 libmagic=N32;;
12651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12653 *) libsuff= shlibsuff= libmagic=never-match;;
12657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12658 shlibpath_overrides_runpath=no
12659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12661 hardcode_into_libs=yes
12664 # No shared lib support for Linux oldld, aout, or coff.
12665 linux*oldld* | linux*aout* | linux*coff*)
12669 # This must be Linux ELF.
12670 linux* | k*bsd*-gnu)
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=no
12679 # This implies no fast_install, which is unacceptable.
12680 # Some rework will be needed to allow for fast_install
12681 # before this can be enabled.
12682 hardcode_into_libs=yes
12684 # Append ld.so.conf contents to the search path
12685 if test -f /etc/ld.so.conf; then
12686 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12690 # We used to test for /lib/ld.so.1 and disable shared libraries on
12691 # powerpc, because MkLinux only supported shared libraries with the
12692 # GNU dynamic linker. Since this was broken with cross compilers,
12693 # most powerpc-linux boxes support dynamic linking these days and
12694 # people can always --disable-shared, the test was removed, and we
12695 # assume the GNU/Linux dynamic linker is in use.
12696 dynamic_linker='GNU/Linux ld.so'
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12704 soname_spec='${libname}${release}${shared_ext}$major'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 shlibpath_overrides_runpath=no
12707 hardcode_into_libs=yes
12708 dynamic_linker='NetBSD ld.elf_so'
12715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12718 dynamic_linker='NetBSD (a.out) ld.so'
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 dynamic_linker='NetBSD ld.elf_so'
12724 shlibpath_var=LD_LIBRARY_PATH
12725 shlibpath_overrides_runpath=yes
12726 hardcode_into_libs=yes
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=yes
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12741 soname_spec='${libname}${release}${shared_ext}$major'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 shlibpath_overrides_runpath=yes
12748 sys_lib_dlsearch_path_spec="/usr/lib"
12750 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12752 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12753 *) need_version=no ;;
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12757 shlibpath_var=LD_LIBRARY_PATH
12758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12760 openbsd2.[89] | openbsd2.[89].*)
12761 shlibpath_overrides_runpath=no
12764 shlibpath_overrides_runpath=yes
12768 shlibpath_overrides_runpath=yes
12773 libname_spec='$name'
12776 library_names_spec='$libname${shared_ext} $libname.a'
12777 dynamic_linker='OS/2 ld.exe'
12778 shlibpath_var=LIBPATH
12781 osf3* | osf4* | osf5*)
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12789 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=yes
12804 hardcode_into_libs=yes
12805 # ldd complains unless libraries are executable
12806 postinstall_cmds='chmod +x $lib'
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=yes
12815 if test "$with_gnu_ld" = yes; then
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 case $host_vendor in
12828 shlibpath_overrides_runpath=no
12830 export_dynamic_flag_spec='${wl}-Blargedynsym'
12831 runpath_var=LD_RUN_PATH
12839 shlibpath_overrides_runpath=no
12840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12846 if test -d /usr/nec ;then
12848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12849 soname_spec='$libname${shared_ext}.$major'
12850 shlibpath_var=LD_LIBRARY_PATH
12854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12855 version_type=freebsd-elf
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12859 soname_spec='${libname}${release}${shared_ext}$major'
12860 shlibpath_var=LD_LIBRARY_PATH
12861 hardcode_into_libs=yes
12862 if test "$with_gnu_ld" = yes; then
12863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12864 shlibpath_overrides_runpath=no
12866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12867 shlibpath_overrides_runpath=yes
12870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12874 sys_lib_dlsearch_path_spec='/usr/lib'
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12881 shlibpath_var=LD_LIBRARY_PATH
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12889 $as_echo "$dynamic_linker" >&6; }
12890 test "$dynamic_linker" = no && can_build_shared=no
12892 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
12893 $as_echo_n "(cached) " >&6
12895 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12899 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
12900 $as_echo_n "(cached) " >&6
12902 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12905 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12908 if test "$GCC" = yes; then
12909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12914 hardcode_action_CXX=
12915 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12916 test -n "$runpath_var_CXX" || \
12917 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12919 # We can hardcode non-existant directories.
12920 if test "$hardcode_direct_CXX" != no &&
12921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12922 # have to relink, otherwise we might link with an installed library
12923 # when we should be linking with a yet-to-be-installed one
12924 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12925 test "$hardcode_minus_L_CXX" != no; then
12926 # Linking always hardcodes the temporary library directory.
12927 hardcode_action_CXX=relink
12929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12930 hardcode_action_CXX=immediate
12933 # We cannot hardcode anything, or else we can only hardcode existing
12935 hardcode_action_CXX=unsupported
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12938 $as_echo "$hardcode_action_CXX" >&6; }
12940 if test "$hardcode_action_CXX" = relink; then
12941 # Fast installation is not supported
12942 enable_fast_install=no
12943 elif test "$shlibpath_overrides_runpath" = yes ||
12944 test "$enable_shared" = no; then
12945 # Fast installation is not necessary
12946 enable_fast_install=needless
12950 # The else clause should only fire when bootstrapping the
12951 # libtool distribution, otherwise you forgot to ship ltmain.sh
12952 # with your package, and you will get complaints that there are
12953 # no rules to generate ltmain.sh.
12954 if test -f "$ltmain"; then
12955 # See if we are running on zsh, and set the options which allow our commands through
12956 # without removal of \ escapes.
12957 if test -n "${ZSH_VERSION+set}" ; then
12958 setopt NO_GLOB_SUBST
12960 # Now quote all the things that may contain metacharacters while being
12961 # careful not to overquote the AC_SUBSTed values. We take copies of the
12962 # variables and quote the copies for generation of the libtool script.
12963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12967 deplibs_check_method reload_flag reload_cmds need_locks \
12968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12969 lt_cv_sys_global_symbol_to_c_name_address \
12970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12971 old_postinstall_cmds old_postuninstall_cmds \
12975 lt_prog_compiler_wl_CXX \
12976 lt_prog_compiler_pic_CXX \
12977 lt_prog_compiler_static_CXX \
12978 lt_prog_compiler_no_builtin_flag_CXX \
12979 export_dynamic_flag_spec_CXX \
12980 thread_safe_flag_spec_CXX \
12981 whole_archive_flag_spec_CXX \
12982 enable_shared_with_static_runtimes_CXX \
12983 old_archive_cmds_CXX \
12984 old_archive_from_new_cmds_CXX \
12985 predep_objects_CXX \
12986 postdep_objects_CXX \
12989 compiler_lib_search_path_CXX \
12990 compiler_lib_search_dirs_CXX \
12992 archive_expsym_cmds_CXX \
12993 postinstall_cmds_CXX \
12994 postuninstall_cmds_CXX \
12995 old_archive_from_expsyms_cmds_CXX \
12996 allow_undefined_flag_CXX \
12997 no_undefined_flag_CXX \
12998 export_symbols_cmds_CXX \
12999 hardcode_libdir_flag_spec_CXX \
13000 hardcode_libdir_flag_spec_ld_CXX \
13001 hardcode_libdir_separator_CXX \
13002 hardcode_automatic_CXX \
13004 module_expsym_cmds_CXX \
13005 lt_cv_prog_compiler_c_o_CXX \
13006 fix_srcfile_path_CXX \
13007 exclude_expsyms_CXX \
13008 include_expsyms_CXX; do
13011 old_archive_cmds_CXX | \
13012 old_archive_from_new_cmds_CXX | \
13013 archive_cmds_CXX | \
13014 archive_expsym_cmds_CXX | \
13015 module_cmds_CXX | \
13016 module_expsym_cmds_CXX | \
13017 old_archive_from_expsyms_cmds_CXX | \
13018 export_symbols_cmds_CXX | \
13019 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13020 postinstall_cmds | postuninstall_cmds | \
13021 old_postinstall_cmds | old_postuninstall_cmds | \
13022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13023 # Double-quote double-evaled strings.
13024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13033 *'\$0 --fallback-echo"')
13034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13040 cat <<__EOF__ >> "$cfgfile"
13041 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13045 # Shell to use when invoking shell scripts.
13048 # Whether or not to build shared libraries.
13049 build_libtool_libs=$enable_shared
13051 # Whether or not to build static libraries.
13052 build_old_libs=$enable_static
13054 # Whether or not to add -lc for building shared libraries.
13055 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13057 # Whether or not to disallow shared libs when runtime libs are static
13058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13060 # Whether or not to optimize for fast installation.
13061 fast_install=$enable_fast_install
13064 host_alias=$host_alias
13068 # The build system.
13069 build_alias=$build_alias
13073 # An echo program that does not interpret backslashes.
13078 AR_FLAGS=$lt_AR_FLAGS
13083 # LTCC compiler flags.
13084 LTCFLAGS=$lt_LTCFLAGS
13086 # A language-specific compiler.
13087 CC=$lt_compiler_CXX
13089 # Is the compiler the GNU C compiler?
13095 # The linker used to build libraries.
13098 # Whether we need hard or soft links.
13101 # A BSD-compatible nm program.
13104 # A symbol stripping program
13107 # Used to examine libraries when file_magic_cmd begins "file"
13108 MAGIC_CMD=$MAGIC_CMD
13110 # Used on cygwin: DLL creation program.
13113 # Used on cygwin: object dumper.
13116 # Used on cygwin: assembler.
13119 # The name of the directory that contains temporary libtool files.
13122 # How to create reloadable object files.
13123 reload_flag=$lt_reload_flag
13124 reload_cmds=$lt_reload_cmds
13126 # How to pass a linker flag through the compiler.
13127 wl=$lt_lt_prog_compiler_wl_CXX
13129 # Object file suffix (normally "o").
13130 objext="$ac_objext"
13132 # Old archive suffix (normally "a").
13135 # Shared library suffix (normally ".so").
13136 shrext_cmds='$shrext_cmds'
13138 # Executable file suffix (normally "").
13141 # Additional compiler flags for building library objects.
13142 pic_flag=$lt_lt_prog_compiler_pic_CXX
13145 # What is the maximum length of a command?
13146 max_cmd_len=$lt_cv_sys_max_cmd_len
13148 # Does compiler simultaneously support -c and -o options?
13149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13151 # Must we lock files when doing compilation?
13152 need_locks=$lt_need_locks
13154 # Do we need the lib prefix for modules?
13155 need_lib_prefix=$need_lib_prefix
13157 # Do we need a version for libraries?
13158 need_version=$need_version
13160 # Whether dlopen is supported.
13161 dlopen_support=$enable_dlopen
13163 # Whether dlopen of programs is supported.
13164 dlopen_self=$enable_dlopen_self
13166 # Whether dlopen of statically linked programs is supported.
13167 dlopen_self_static=$enable_dlopen_self_static
13169 # Compiler flag to prevent dynamic linking.
13170 link_static_flag=$lt_lt_prog_compiler_static_CXX
13172 # Compiler flag to turn off builtin functions.
13173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13175 # Compiler flag to allow reflexive dlopens.
13176 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13178 # Compiler flag to generate shared objects directly from archives.
13179 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13181 # Compiler flag to generate thread-safe objects.
13182 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13184 # Library versioning type.
13185 version_type=$version_type
13187 # Format of library name prefix.
13188 libname_spec=$lt_libname_spec
13190 # List of archive names. First name is the real one, the rest are links.
13191 # The last name is the one that the linker finds with -lNAME.
13192 library_names_spec=$lt_library_names_spec
13194 # The coded name of the library, if different from the real name.
13195 soname_spec=$lt_soname_spec
13197 # Commands used to build and install an old-style archive.
13199 old_archive_cmds=$lt_old_archive_cmds_CXX
13200 old_postinstall_cmds=$lt_old_postinstall_cmds
13201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13203 # Create an old-style archive from a shared archive.
13204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13206 # Create a temporary old-style archive to link instead of a shared archive.
13207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13209 # Commands used to build and install a shared archive.
13210 archive_cmds=$lt_archive_cmds_CXX
13211 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13212 postinstall_cmds=$lt_postinstall_cmds
13213 postuninstall_cmds=$lt_postuninstall_cmds
13215 # Commands used to build a loadable module (assumed same as above if empty)
13216 module_cmds=$lt_module_cmds_CXX
13217 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13219 # Commands to strip libraries.
13220 old_striplib=$lt_old_striplib
13221 striplib=$lt_striplib
13223 # Dependencies to place before the objects being linked to create a
13225 predep_objects=$lt_predep_objects_CXX
13227 # Dependencies to place after the objects being linked to create a
13229 postdep_objects=$lt_postdep_objects_CXX
13231 # Dependencies to place before the objects being linked to create a
13233 predeps=$lt_predeps_CXX
13235 # Dependencies to place after the objects being linked to create a
13237 postdeps=$lt_postdeps_CXX
13239 # The directories searched by this compiler when creating a shared
13241 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13243 # The library search path used internally by the compiler when linking
13244 # a shared library.
13245 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13247 # Method to check whether dependent libraries are shared objects.
13248 deplibs_check_method=$lt_deplibs_check_method
13250 # Command to use when deplibs_check_method == file_magic.
13251 file_magic_cmd=$lt_file_magic_cmd
13253 # Flag that allows shared libraries with undefined symbols to be built.
13254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13256 # Flag that forces no undefined symbols.
13257 no_undefined_flag=$lt_no_undefined_flag_CXX
13259 # Commands used to finish a libtool library installation in a directory.
13260 finish_cmds=$lt_finish_cmds
13262 # Same as above, but a single script fragment to be evaled but not shown.
13263 finish_eval=$lt_finish_eval
13265 # Take the output of nm and produce a listing of raw symbols and C names.
13266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13268 # Transform the output of nm in a proper C declaration
13269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13271 # Transform the output of nm in a C name address pair
13272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13274 # This is the shared library runtime path variable.
13275 runpath_var=$runpath_var
13277 # This is the shared library path variable.
13278 shlibpath_var=$shlibpath_var
13280 # Is shlibpath searched before the hard-coded library search path?
13281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13283 # How to hardcode a shared library path into an executable.
13284 hardcode_action=$hardcode_action_CXX
13286 # Whether we should hardcode library paths into libraries.
13287 hardcode_into_libs=$hardcode_into_libs
13289 # Flag to hardcode \$libdir into a binary during linking.
13290 # This must work even if \$libdir does not exist.
13291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13293 # If ld is used when linking, flag to hardcode \$libdir into
13294 # a binary during linking. This must work even if \$libdir does
13296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13298 # Whether we need a single -rpath flag with a separated argument.
13299 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13302 # resulting binary.
13303 hardcode_direct=$hardcode_direct_CXX
13305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13306 # resulting binary.
13307 hardcode_minus_L=$hardcode_minus_L_CXX
13309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13310 # the resulting binary.
13311 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13313 # Set to yes if building a shared library automatically hardcodes DIR into the library
13314 # and all subsequent libraries and executables linked against it.
13315 hardcode_automatic=$hardcode_automatic_CXX
13317 # Variables whose values should be saved in libtool wrapper scripts and
13318 # restored at relink time.
13319 variables_saved_for_relink="$variables_saved_for_relink"
13321 # Whether libtool must link a program against all its dependency libraries.
13322 link_all_deplibs=$link_all_deplibs_CXX
13324 # Compile-time system search path for libraries
13325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13327 # Run-time system search path for libraries
13328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13330 # Fix the shell variable \$srcfile for the compiler.
13331 fix_srcfile_path=$lt_fix_srcfile_path
13333 # Set to yes if exported symbols are required.
13334 always_export_symbols=$always_export_symbols_CXX
13336 # The commands to list exported symbols.
13337 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13339 # The commands to extract the exported symbol list from a shared archive.
13340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13342 # Symbols that should not be listed in the preloaded symbols.
13343 exclude_expsyms=$lt_exclude_expsyms_CXX
13345 # Symbols that must always be exported.
13346 include_expsyms=$lt_include_expsyms_CXX
13348 # ### END LIBTOOL TAG CONFIG: $tagname
13354 # If there is no Makefile yet, we rely on a make rule to execute
13355 # `config.status --recheck' to rerun these tests and create the
13356 # libtool script then.
13357 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13358 if test -f "$ltmain_in"; then
13359 test -f Makefile && make "$ltmain"
13365 ac_cpp='$CPP $CPPFLAGS'
13366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374 with_gnu_ldcxx=$with_gnu_ld
13375 with_gnu_ld=$lt_save_with_gnu_ld
13376 lt_cv_path_LDCXX=$lt_cv_path_LD
13377 lt_cv_path_LD=$lt_save_path_LD
13378 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13379 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13387 if test -n "$F77" && test "X$F77" != "Xno"; then
13390 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13391 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13395 archive_cmds_need_lc_F77=no
13396 allow_undefined_flag_F77=
13397 always_export_symbols_F77=no
13398 archive_expsym_cmds_F77=
13399 export_dynamic_flag_spec_F77=
13400 hardcode_direct_F77=no
13401 hardcode_libdir_flag_spec_F77=
13402 hardcode_libdir_flag_spec_ld_F77=
13403 hardcode_libdir_separator_F77=
13404 hardcode_minus_L_F77=no
13405 hardcode_automatic_F77=no
13407 module_expsym_cmds_F77=
13408 link_all_deplibs_F77=unknown
13409 old_archive_cmds_F77=$old_archive_cmds
13410 no_undefined_flag_F77=
13411 whole_archive_flag_spec_F77=
13412 enable_shared_with_static_runtimes_F77=no
13414 # Source file extension for f77 test sources.
13417 # Object file extension for compiled f77 test sources.
13421 # Code to be used in simple compile tests
13422 lt_simple_compile_test_code="\
13428 # Code to be used in simple link tests
13429 lt_simple_link_test_code="\
13434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13436 # If no C compiler was specified, use CC.
13439 # If no C compiler flags were specified, use CFLAGS.
13440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13442 # Allow CC to be a program name with arguments.
13446 # save warnings/boilerplate of simple test code
13447 ac_outfile=conftest.$ac_objext
13448 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13450 _lt_compiler_boilerplate=`cat conftest.err`
13453 ac_outfile=conftest.$ac_objext
13454 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13456 _lt_linker_boilerplate=`cat conftest.err`
13460 # Allow CC to be a program name with arguments.
13465 for cc_temp in $compiler""; do
13467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13477 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13479 $as_echo "$can_build_shared" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13482 $as_echo_n "checking whether to build shared libraries... " >&6; }
13483 test "$can_build_shared" = "no" && enable_shared=no
13485 # On AIX, shared libraries and static libraries use the same namespace, and
13486 # are all built from PIC.
13489 test "$enable_shared" = yes && enable_static=no
13490 if test -n "$RANLIB"; then
13491 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13492 postinstall_cmds='$RANLIB $lib'
13496 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13497 test "$enable_shared" = yes && enable_static=no
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13502 $as_echo "$enable_shared" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13505 $as_echo_n "checking whether to build static libraries... " >&6; }
13506 # Make sure either enable_shared or enable_static is yes.
13507 test "$enable_shared" = yes || enable_static=yes
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13509 $as_echo "$enable_static" >&6; }
13514 lt_prog_compiler_wl_F77=
13515 lt_prog_compiler_pic_F77=
13516 lt_prog_compiler_static_F77=
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13519 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13521 if test "$GCC" = yes; then
13522 lt_prog_compiler_wl_F77='-Wl,'
13523 lt_prog_compiler_static_F77='-static'
13527 # All AIX code is PIC.
13528 if test "$host_cpu" = ia64; then
13529 # AIX 5 now supports IA64 processor
13530 lt_prog_compiler_static_F77='-Bstatic'
13535 # FIXME: we need at least 68020 code to build shared libraries, but
13536 # adding the `-m68020' flag to GCC prevents building anything better,
13538 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13541 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13542 # PIC is the default for these OSes.
13545 mingw* | cygwin* | pw32* | os2*)
13546 # This hack is so that the source file can tell whether it is being
13547 # built for inclusion in a dll (and should export symbols for example).
13548 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13549 # (--disable-auto-import) libraries
13550 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13553 darwin* | rhapsody*)
13554 # PIC is the default on this platform
13555 # Common symbols not allowed in MH_DYLIB files
13556 lt_prog_compiler_pic_F77='-fno-common'
13560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13561 # Instead, we relocate shared libraries at runtime.
13565 # Just because we use GCC doesn't mean we suddenly get shared libraries
13566 # on systems that don't support them.
13567 lt_prog_compiler_can_build_shared_F77=no
13572 if test -d /usr/nec; then
13573 lt_prog_compiler_pic_F77=-Kconform_pic
13578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13579 # not for PA HP-UX.
13585 lt_prog_compiler_pic_F77='-fPIC'
13591 lt_prog_compiler_pic_F77='-fPIC'
13595 # PORTME Check for flag to pass linker flags through the system compiler.
13598 lt_prog_compiler_wl_F77='-Wl,'
13599 if test "$host_cpu" = ia64; then
13600 # AIX 5 now supports IA64 processor
13601 lt_prog_compiler_static_F77='-Bstatic'
13603 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13607 # PIC is the default on this platform
13608 # Common symbols not allowed in MH_DYLIB files
13609 case $cc_basename in
13611 lt_prog_compiler_pic_F77='-qnocommon'
13612 lt_prog_compiler_wl_F77='-Wl,'
13617 mingw* | cygwin* | pw32* | os2*)
13618 # This hack is so that the source file can tell whether it is being
13619 # built for inclusion in a dll (and should export symbols for example).
13620 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13623 hpux9* | hpux10* | hpux11*)
13624 lt_prog_compiler_wl_F77='-Wl,'
13625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13626 # not for PA HP-UX.
13632 lt_prog_compiler_pic_F77='+Z'
13635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13636 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13639 irix5* | irix6* | nonstopux*)
13640 lt_prog_compiler_wl_F77='-Wl,'
13641 # PIC (with -KPIC) is the default.
13642 lt_prog_compiler_static_F77='-non_shared'
13646 lt_prog_compiler_pic_F77='-KPIC'
13647 lt_prog_compiler_static_F77='-Bstatic'
13650 linux* | k*bsd*-gnu)
13651 case $cc_basename in
13653 lt_prog_compiler_wl_F77='-Wl,'
13654 lt_prog_compiler_pic_F77='-KPIC'
13655 lt_prog_compiler_static_F77='-static'
13657 pgcc* | pgf77* | pgf90* | pgf95*)
13658 # Portland Group compilers (*not* the Pentium gcc compiler,
13659 # which looks to be a dead project)
13660 lt_prog_compiler_wl_F77='-Wl,'
13661 lt_prog_compiler_pic_F77='-fpic'
13662 lt_prog_compiler_static_F77='-Bstatic'
13665 lt_prog_compiler_wl_F77='-Wl,'
13666 # All Alpha code is PIC.
13667 lt_prog_compiler_static_F77='-non_shared'
13670 case `$CC -V 2>&1 | sed 5q` in
13673 lt_prog_compiler_pic_F77='-KPIC'
13674 lt_prog_compiler_static_F77='-Bstatic'
13675 lt_prog_compiler_wl_F77='-Wl,'
13678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13679 lt_prog_compiler_pic_F77='-KPIC'
13680 lt_prog_compiler_static_F77='-Bstatic'
13681 lt_prog_compiler_wl_F77=''
13688 osf3* | osf4* | osf5*)
13689 lt_prog_compiler_wl_F77='-Wl,'
13690 # All OSF/1 code is PIC.
13691 lt_prog_compiler_static_F77='-non_shared'
13695 lt_prog_compiler_static_F77='-non_shared'
13699 lt_prog_compiler_pic_F77='-KPIC'
13700 lt_prog_compiler_static_F77='-Bstatic'
13701 case $cc_basename in
13702 f77* | f90* | f95*)
13703 lt_prog_compiler_wl_F77='-Qoption ld ';;
13705 lt_prog_compiler_wl_F77='-Wl,';;
13710 lt_prog_compiler_wl_F77='-Qoption ld '
13711 lt_prog_compiler_pic_F77='-PIC'
13712 lt_prog_compiler_static_F77='-Bstatic'
13715 sysv4 | sysv4.2uw2* | sysv4.3*)
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 lt_prog_compiler_pic_F77='-KPIC'
13718 lt_prog_compiler_static_F77='-Bstatic'
13722 if test -d /usr/nec ;then
13723 lt_prog_compiler_pic_F77='-Kconform_pic'
13724 lt_prog_compiler_static_F77='-Bstatic'
13728 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13729 lt_prog_compiler_wl_F77='-Wl,'
13730 lt_prog_compiler_pic_F77='-KPIC'
13731 lt_prog_compiler_static_F77='-Bstatic'
13735 lt_prog_compiler_wl_F77='-Wl,'
13736 lt_prog_compiler_can_build_shared_F77=no
13740 lt_prog_compiler_pic_F77='-pic'
13741 lt_prog_compiler_static_F77='-Bstatic'
13745 lt_prog_compiler_can_build_shared_F77=no
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13751 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13754 # Check to make sure the PIC flag actually works.
13756 if test -n "$lt_prog_compiler_pic_F77"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13759 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13760 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 lt_cv_prog_compiler_pic_works_F77=no
13764 ac_outfile=conftest.$ac_objext
13765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13766 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13767 # Insert the option either (1) after the last *FLAGS variable, or
13768 # (2) before a word containing "conftest.", or (3) at the end.
13769 # Note that $ac_compile itself does not contain backslashes and begins
13770 # with a dollar sign (not a hyphen), so the echo should work correctly.
13771 # The option is referenced via a variable to avoid confusing sed.
13772 lt_compile=`echo "$ac_compile" | $SED \
13773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13775 -e 's:$: $lt_compiler_flag:'`
13776 (eval echo "\"\$as_me:13776: $lt_compile\"" >&5)
13777 (eval "$lt_compile" 2>conftest.err)
13779 cat conftest.err >&5
13780 echo "$as_me:13780: \$? = $ac_status" >&5
13781 if (exit $ac_status) && test -s "$ac_outfile"; then
13782 # The compiler can only warn and ignore the option if not recognized
13783 # So say no if there are warnings other than the usual output.
13784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13787 lt_cv_prog_compiler_pic_works_F77=yes
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13794 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13796 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13797 case $lt_prog_compiler_pic_F77 in
13799 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13802 lt_prog_compiler_pic_F77=
13803 lt_prog_compiler_can_build_shared_F77=no
13808 # For platforms which do not support PIC, -DPIC is meaningless:
13810 lt_prog_compiler_pic_F77=
13813 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13818 # Check to make sure the static flag actually works.
13820 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13823 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13824 $as_echo_n "(cached) " >&6
13826 lt_cv_prog_compiler_static_works_F77=no
13827 save_LDFLAGS="$LDFLAGS"
13828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13831 # The linker can only warn and ignore the option if not recognized
13832 # So say no if there are warnings
13833 if test -s conftest.err; then
13834 # Append any errors to the config.log.
13835 cat conftest.err 1>&5
13836 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13838 if diff conftest.exp conftest.er2 >/dev/null; then
13839 lt_cv_prog_compiler_static_works_F77=yes
13842 lt_cv_prog_compiler_static_works_F77=yes
13846 LDFLAGS="$save_LDFLAGS"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13850 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13852 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13855 lt_prog_compiler_static_F77=
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13861 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13862 $as_echo_n "(cached) " >&6
13864 lt_cv_prog_compiler_c_o_F77=no
13865 $rm -r conftest 2>/dev/null
13869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13871 lt_compiler_flag="-o out/conftest2.$ac_objext"
13872 # Insert the option either (1) after the last *FLAGS variable, or
13873 # (2) before a word containing "conftest.", or (3) at the end.
13874 # Note that $ac_compile itself does not contain backslashes and begins
13875 # with a dollar sign (not a hyphen), so the echo should work correctly.
13876 lt_compile=`echo "$ac_compile" | $SED \
13877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879 -e 's:$: $lt_compiler_flag:'`
13880 (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881 (eval "$lt_compile" 2>out/conftest.err)
13883 cat out/conftest.err >&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13887 # The compiler can only warn and ignore the option if not recognized
13888 # So say no if there are warnings
13889 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13892 lt_cv_prog_compiler_c_o_F77=yes
13897 # SGI C++ compiler will create directory out/ii_files/ for
13898 # template instantiation
13899 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13900 $rm out/* && rmdir out
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13907 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13910 hard_links="nottested"
13911 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13912 # do not overwrite the value of need_locks provided by the user
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13914 $as_echo_n "checking if we can lock with hard links... " >&6; }
13917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13919 ln conftest.a conftest.b 2>&5 || hard_links=no
13920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13922 $as_echo "$hard_links" >&6; }
13923 if test "$hard_links" = no; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13925 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13936 allow_undefined_flag_F77=
13937 enable_shared_with_static_runtimes_F77=no
13939 archive_expsym_cmds_F77=
13940 old_archive_From_new_cmds_F77=
13941 old_archive_from_expsyms_cmds_F77=
13942 export_dynamic_flag_spec_F77=
13943 whole_archive_flag_spec_F77=
13944 thread_safe_flag_spec_F77=
13945 hardcode_libdir_flag_spec_F77=
13946 hardcode_libdir_flag_spec_ld_F77=
13947 hardcode_libdir_separator_F77=
13948 hardcode_direct_F77=no
13949 hardcode_minus_L_F77=no
13950 hardcode_shlibpath_var_F77=unsupported
13951 link_all_deplibs_F77=unknown
13952 hardcode_automatic_F77=no
13954 module_expsym_cmds_F77=
13955 always_export_symbols_F77=no
13956 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13957 # include_expsyms should be a list of space-separated symbols to be *always*
13958 # included in the symbol list
13959 include_expsyms_F77=
13960 # exclude_expsyms can be an extended regexp of symbols to exclude
13961 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13962 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13963 # as well as any symbol that contains `d'.
13964 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13965 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13966 # platforms (ab)use it in PIC code, but their linkers get confused if
13967 # the symbol is explicitly referenced. Since portable code cannot
13968 # rely on this symbol name, it's probably fine to never include it in
13969 # preloaded symbol tables.
13970 # Exclude shared library initialization/finalization symbols.
13971 extract_expsyms_cmds=
13972 # Just being paranoid about ensuring that cc_basename is set.
13973 for cc_temp in $compiler""; do
13975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13984 cygwin* | mingw* | pw32*)
13985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13986 # When not using gcc, we currently assume that we are using
13987 # Microsoft Visual C++.
13988 if test "$GCC" != yes; then
13993 # we just hope/assume this is gcc and not c89 (= MSVC++)
14002 if test "$with_gnu_ld" = yes; then
14003 # If archive_cmds runs LD, not CC, wlarc should be empty
14006 # Set some defaults for GNU ld with shared library support. These
14007 # are reset later if shared libraries are not supported. Putting them
14008 # here allows them to be overridden if necessary.
14009 runpath_var=LD_RUN_PATH
14010 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14011 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14012 # ancient GNU ld didn't support --whole-archive et. al.
14013 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14014 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14016 whole_archive_flag_spec_F77=
14018 supports_anon_versioning=no
14019 case `$LD -v 2>/dev/null` in
14020 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14023 *\ 2.11.*) ;; # other 2.11 versions
14024 *) supports_anon_versioning=yes ;;
14027 # See if GNU ld supports shared libraries.
14030 # On AIX/PPC, the GNU linker is very broken
14031 if test "$host_cpu" != ia64; then
14035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14036 *** to be unable to reliably create shared libraries on AIX.
14037 *** Therefore, libtool is disabling shared libraries support. If you
14038 *** really care for shared libraries, you may want to modify your PATH
14039 *** so that a non-GNU linker is found, and then restart.
14046 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)'
14047 hardcode_libdir_flag_spec_F77='-L$libdir'
14048 hardcode_minus_L_F77=yes
14050 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14051 # that the semantics of dynamic libraries on AmigaOS, at least up
14052 # to version 4, is to share data among multiple programs linked
14053 # with the same dynamic library. Since this doesn't match the
14054 # behavior of shared libraries on other platforms, we can't use
14060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14061 allow_undefined_flag_F77=unsupported
14062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14063 # support --undefined. This deserves some investigation. FIXME
14064 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 cygwin* | mingw* | pw32*)
14071 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14072 # as there is no search path for DLLs.
14073 hardcode_libdir_flag_spec_F77='-L$libdir'
14074 allow_undefined_flag_F77=unsupported
14075 always_export_symbols_F77=no
14076 enable_shared_with_static_runtimes_F77=yes
14077 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14081 # If the export-symbols file already is a .def file (1st line
14082 # is EXPORTS), use it as is; otherwise, prepend...
14083 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14084 cp $export_symbols $output_objdir/$soname.def;
14086 echo EXPORTS > $output_objdir/$soname.def;
14087 cat $export_symbols >> $output_objdir/$soname.def;
14089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14096 hardcode_direct_F77=no
14097 hardcode_shlibpath_var_F77=no
14098 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14099 export_dynamic_flag_spec_F77='${wl}-E'
14100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14101 # Instead, shared libraries are loaded at an image base (0x10000000 by
14102 # default) and relocated if they conflict, which is a slow very memory
14103 # consuming and fragmenting process. To avoid this, we pick a random,
14104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14106 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14107 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14110 gnu* | linux* | k*bsd*-gnu)
14111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14113 case $cc_basename,$host_cpu in
14114 pgcc*) # Portland Group C compiler
14115 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14116 tmp_addflag=' $pic_flag'
14118 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14119 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14120 tmp_addflag=' $pic_flag -Mnomain' ;;
14121 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14122 tmp_addflag=' -i_dynamic' ;;
14123 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14124 tmp_addflag=' -i_dynamic -nofor_main' ;;
14125 ifc* | ifort*) # Intel Fortran compiler
14126 tmp_addflag=' -nofor_main' ;;
14128 case `$CC -V 2>&1 | sed 5q` in
14129 *Sun\ C*) # Sun C 5.9
14130 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14131 tmp_sharedflag='-G' ;;
14132 *Sun\ F*) # Sun Fortran 8.3
14133 tmp_sharedflag='-G' ;;
14135 tmp_sharedflag='-shared' ;;
14137 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139 if test $supports_anon_versioning = yes; then
14140 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14142 $echo "local: *; };" >> $output_objdir/$libname.ver~
14143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14145 link_all_deplibs_F77=no
14151 netbsd* | netbsdelf*-gnu)
14152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14153 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14156 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14162 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14167 *** create shared libraries on Solaris systems. Therefore, libtool
14168 *** is disabling shared libraries support. We urge you to upgrade GNU
14169 *** binutils to release 2.9.1 or newer. Another option is to modify
14170 *** your PATH or compiler configuration so that the native linker is
14171 *** used, and then restart.
14174 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14176 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14183 case `$LD -v 2>&1` in
14184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14189 *** reliably create shared libraries on SCO systems. Therefore, libtool
14190 *** is disabling shared libraries support. We urge you to upgrade GNU
14191 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14192 *** your PATH or compiler configuration so that the native linker is
14193 *** used, and then restart.
14198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14199 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14200 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14201 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14210 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14212 hardcode_direct_F77=yes
14213 hardcode_shlibpath_var_F77=no
14217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14218 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14226 if test "$ld_shlibs_F77" = no; then
14228 hardcode_libdir_flag_spec_F77=
14229 export_dynamic_flag_spec_F77=
14230 whole_archive_flag_spec_F77=
14233 # PORTME fill in a description of your system's linker (not GNU ld)
14236 allow_undefined_flag_F77=unsupported
14237 always_export_symbols_F77=yes
14238 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'
14239 # Note: this linker hardcodes the directories in LIBPATH if there
14240 # are no directories specified by -L.
14241 hardcode_minus_L_F77=yes
14242 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14243 # Neither direct hardcoding nor static linking is supported with a
14245 hardcode_direct_F77=unsupported
14250 if test "$host_cpu" = ia64; then
14251 # On IA64, the linker does run time linking by default, so we don't
14252 # have to do anything special.
14253 aix_use_runtimelinking=no
14254 exp_sym_flag='-Bexport'
14257 # If we're using GNU nm, then we don't want the "-C" option.
14258 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14259 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14260 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'
14262 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'
14264 aix_use_runtimelinking=no
14266 # Test if we are trying to use run time linking or normal
14267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14268 # need to do runtime linking.
14269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14270 for ld_flag in $LDFLAGS; do
14271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14272 aix_use_runtimelinking=yes
14279 exp_sym_flag='-bexport'
14280 no_entry_flag='-bnoentry'
14283 # When large executables or shared objects are built, AIX ld can
14284 # have problems creating the table of contents. If linking a library
14285 # or program results in "error TOC overflow" add -mminimal-toc to
14286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14289 archive_cmds_F77=''
14290 hardcode_direct_F77=yes
14291 hardcode_libdir_separator_F77=':'
14292 link_all_deplibs_F77=yes
14294 if test "$GCC" = yes; then
14295 case $host_os in aix4.[012]|aix4.[012].*)
14296 # We only want to do this on AIX 4.2 and lower, the check
14297 # below for broken collect2 doesn't work under 4.3+
14298 collect2name=`${CC} -print-prog-name=collect2`
14299 if test -f "$collect2name" && \
14300 strings "$collect2name" | grep resolve_lib_name >/dev/null
14302 # We have reworked collect2
14305 # We have old collect2
14306 hardcode_direct_F77=unsupported
14307 # It fails to find uninstalled libraries when the uninstalled
14308 # path is not listed in the libpath. Setting hardcode_minus_L
14309 # to unsupported forces relinking
14310 hardcode_minus_L_F77=yes
14311 hardcode_libdir_flag_spec_F77='-L$libdir'
14312 hardcode_libdir_separator_F77=
14316 shared_flag='-shared'
14317 if test "$aix_use_runtimelinking" = yes; then
14318 shared_flag="$shared_flag "'${wl}-G'
14322 if test "$host_cpu" = ia64; then
14323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14324 # chokes on -Wl,-G. The following line is correct:
14327 if test "$aix_use_runtimelinking" = yes; then
14328 shared_flag='${wl}-G'
14330 shared_flag='${wl}-bM:SRE'
14335 # It seems that -bexpall does not export symbols beginning with
14336 # underscore (_), so it is better to generate a list of symbols to export.
14337 always_export_symbols_F77=yes
14338 if test "$aix_use_runtimelinking" = yes; then
14339 # Warning - without using the other runtime loading flags (-brtl),
14340 # -berok will link without error, but may produce a broken library.
14341 allow_undefined_flag_F77='-berok'
14342 # Determine the default libpath from the value encoded in an empty executable.
14343 cat > conftest.$ac_ext <<_ACEOF
14348 if ac_fn_f77_try_link "$LINENO"; then :
14350 lt_aix_libpath_sed='
14351 /Import File Strings/,/^$/ {
14357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14358 # Check for a 64-bit object if we didn't find anything.
14359 if test -z "$aix_libpath"; then
14360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14367 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14368 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14370 if test "$host_cpu" = ia64; then
14371 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14372 allow_undefined_flag_F77="-z nodefs"
14373 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14375 # Determine the default libpath from the value encoded in an empty executable.
14376 cat > conftest.$ac_ext <<_ACEOF
14381 if ac_fn_f77_try_link "$LINENO"; then :
14383 lt_aix_libpath_sed='
14384 /Import File Strings/,/^$/ {
14390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14391 # Check for a 64-bit object if we didn't find anything.
14392 if test -z "$aix_libpath"; then
14393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14396 rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext conftest.$ac_ext
14398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14400 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14401 # Warning - without using the other run time loading flags,
14402 # -berok will link without error, but may produce a broken library.
14403 no_undefined_flag_F77=' ${wl}-bernotok'
14404 allow_undefined_flag_F77=' ${wl}-berok'
14405 # Exported symbols can be pulled into shared objects from archives
14406 whole_archive_flag_spec_F77='$convenience'
14407 archive_cmds_need_lc_F77=yes
14408 # This is similar to how AIX traditionally builds its shared libraries.
14409 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14415 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)'
14416 hardcode_libdir_flag_spec_F77='-L$libdir'
14417 hardcode_minus_L_F77=yes
14418 # see comment about different semantics on the GNU ld section
14423 export_dynamic_flag_spec_F77=-rdynamic
14426 cygwin* | mingw* | pw32*)
14427 # When not using gcc, we currently assume that we are using
14428 # Microsoft Visual C++.
14429 # hardcode_libdir_flag_spec is actually meaningless, as there is
14430 # no search path for DLLs.
14431 hardcode_libdir_flag_spec_F77=' '
14432 allow_undefined_flag_F77=unsupported
14433 # Tell ltmain to make .lib files, not .a files.
14435 # Tell ltmain to make .dll files, not .so files.
14437 # FIXME: Setting linknames here is a bad hack.
14438 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14439 # The linker will automatically build a .lib file if we build a DLL.
14440 old_archive_From_new_cmds_F77='true'
14441 # FIXME: Should let the user specify the lib program.
14442 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14443 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14444 enable_shared_with_static_runtimes_F77=yes
14447 darwin* | rhapsody*)
14449 rhapsody* | darwin1.[012])
14450 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14454 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14456 case ${MACOSX_DEPLOYMENT_TARGET} in
14458 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14461 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14467 archive_cmds_need_lc_F77=no
14468 hardcode_direct_F77=no
14469 hardcode_automatic_F77=yes
14470 hardcode_shlibpath_var_F77=unsupported
14471 whole_archive_flag_spec_F77=''
14472 link_all_deplibs_F77=yes
14473 if test "$GCC" = yes ; then
14474 output_verbose_link_cmd='echo'
14475 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14476 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14477 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14478 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14480 case $cc_basename in
14482 output_verbose_link_cmd='echo'
14483 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14484 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14486 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14487 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}'
14497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 hardcode_libdir_flag_spec_F77='-L$libdir'
14499 hardcode_shlibpath_var_F77=no
14506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14507 # support. Future versions do this automatically, but an explicit c++rt0.o
14508 # does not break anything, and helps significantly (at the cost of a little
14511 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14512 hardcode_libdir_flag_spec_F77='-R$libdir'
14513 hardcode_direct_F77=yes
14514 hardcode_shlibpath_var_F77=no
14517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14520 hardcode_direct_F77=yes
14521 hardcode_minus_L_F77=yes
14522 hardcode_shlibpath_var_F77=no
14525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14526 freebsd* | dragonfly*)
14527 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14528 hardcode_libdir_flag_spec_F77='-R$libdir'
14529 hardcode_direct_F77=yes
14530 hardcode_shlibpath_var_F77=no
14534 if test "$GCC" = yes; then
14535 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'
14537 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'
14539 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator_F77=:
14541 hardcode_direct_F77=yes
14543 # hardcode_minus_L: Not really in the search PATH,
14544 # but as the default location of the library.
14545 hardcode_minus_L_F77=yes
14546 export_dynamic_flag_spec_F77='${wl}-E'
14550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14551 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14555 if test "$with_gnu_ld" = no; then
14556 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14557 hardcode_libdir_separator_F77=:
14559 hardcode_direct_F77=yes
14560 export_dynamic_flag_spec_F77='${wl}-E'
14562 # hardcode_minus_L: Not really in the search PATH,
14563 # but as the default location of the library.
14564 hardcode_minus_L_F77=yes
14569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14572 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14578 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14587 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14590 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14594 if test "$with_gnu_ld" = no; then
14595 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14596 hardcode_libdir_separator_F77=:
14600 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14601 hardcode_direct_F77=no
14602 hardcode_shlibpath_var_F77=no
14605 hardcode_direct_F77=yes
14606 export_dynamic_flag_spec_F77='${wl}-E'
14608 # hardcode_minus_L: Not really in the search PATH,
14609 # but as the default location of the library.
14610 hardcode_minus_L_F77=yes
14616 irix5* | irix6* | nonstopux*)
14617 if test "$GCC" = yes; then
14618 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'
14620 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'
14621 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14623 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14624 hardcode_libdir_separator_F77=:
14625 link_all_deplibs_F77=yes
14628 netbsd* | netbsdelf*-gnu)
14629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14632 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14634 hardcode_libdir_flag_spec_F77='-R$libdir'
14635 hardcode_direct_F77=yes
14636 hardcode_shlibpath_var_F77=no
14640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_direct_F77=yes
14642 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14643 hardcode_libdir_separator_F77=:
14644 hardcode_shlibpath_var_F77=no
14648 if test -f /usr/libexec/ld.so; then
14649 hardcode_direct_F77=yes
14650 hardcode_shlibpath_var_F77=no
14651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14652 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14654 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14655 export_dynamic_flag_spec_F77='${wl}-E'
14658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14659 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14663 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14674 hardcode_libdir_flag_spec_F77='-L$libdir'
14675 hardcode_minus_L_F77=yes
14676 allow_undefined_flag_F77=unsupported
14677 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'
14678 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14682 if test "$GCC" = yes; then
14683 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14684 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'
14686 allow_undefined_flag_F77=' -expect_unresolved \*'
14687 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'
14689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14690 hardcode_libdir_separator_F77=:
14693 osf4* | osf5*) # as osf3* with the addition of -msym flag
14694 if test "$GCC" = yes; then
14695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14696 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'
14697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14699 allow_undefined_flag_F77=' -expect_unresolved \*'
14700 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'
14701 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~
14702 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14704 # Both c and cxx compiler support -rpath directly
14705 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14707 hardcode_libdir_separator_F77=:
14711 no_undefined_flag_F77=' -z text'
14712 if test "$GCC" = yes; then
14714 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14716 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14719 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14723 hardcode_libdir_flag_spec_F77='-R$libdir'
14724 hardcode_shlibpath_var_F77=no
14726 solaris2.[0-5] | solaris2.[0-5].*) ;;
14728 # The compiler driver will combine and reorder linker options,
14729 # but understands `-z linker_flag'. GCC discards it without `$wl',
14730 # but is careful enough not to reorder.
14731 # Supported since Solaris 2.6 (maybe 2.5.1?)
14732 if test "$GCC" = yes; then
14733 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14735 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14739 link_all_deplibs_F77=yes
14743 if test "x$host_vendor" = xsequent; then
14744 # Use $CC to link under sequent, because it throws in some extra .o
14745 # files that make .init and .fini sections work.
14746 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14748 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14750 hardcode_libdir_flag_spec_F77='-L$libdir'
14751 hardcode_direct_F77=yes
14752 hardcode_minus_L_F77=yes
14753 hardcode_shlibpath_var_F77=no
14757 case $host_vendor in
14759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_direct_F77=yes # is this really true???
14763 ## LD is ld it makes a PLAMLIB
14764 ## CC just makes a GrossModule.
14765 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14766 reload_cmds_F77='$CC -r -o $output$reload_objs'
14767 hardcode_direct_F77=no
14770 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14771 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14774 runpath_var='LD_RUN_PATH'
14775 hardcode_shlibpath_var_F77=no
14779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_shlibpath_var_F77=no
14781 export_dynamic_flag_spec_F77='-Bexport'
14785 if test -d /usr/nec; then
14786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_shlibpath_var_F77=no
14788 runpath_var=LD_RUN_PATH
14789 hardcode_runpath_var=yes
14794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14795 no_undefined_flag_F77='${wl}-z,text'
14796 archive_cmds_need_lc_F77=no
14797 hardcode_shlibpath_var_F77=no
14798 runpath_var='LD_RUN_PATH'
14800 if test "$GCC" = yes; then
14801 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 sysv5* | sco3.2v5* | sco5v6*)
14810 # Note: We can NOT use -z defs as we might desire, because we do not
14811 # link with -lc, and that would cause any symbols used from libc to
14812 # always be unresolved, which means just about no library would
14813 # ever link correctly. If we're not using GNU ld we use -z text
14814 # though, which does catch some bad symbols but isn't as heavy-handed
14816 no_undefined_flag_F77='${wl}-z,text'
14817 allow_undefined_flag_F77='${wl}-z,nodefs'
14818 archive_cmds_need_lc_F77=no
14819 hardcode_shlibpath_var_F77=no
14820 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14821 hardcode_libdir_separator_F77=':'
14822 link_all_deplibs_F77=yes
14823 export_dynamic_flag_spec_F77='${wl}-Bexport'
14824 runpath_var='LD_RUN_PATH'
14826 if test "$GCC" = yes; then
14827 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14837 hardcode_libdir_flag_spec_F77='-L$libdir'
14838 hardcode_shlibpath_var_F77=no
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14848 $as_echo "$ld_shlibs_F77" >&6; }
14849 test "$ld_shlibs_F77" = no && can_build_shared=no
14852 # Do we need to explicitly link libc?
14854 case "x$archive_cmds_need_lc_F77" in
14856 # Assume -lc should be added
14857 archive_cmds_need_lc_F77=yes
14859 if test "$enable_shared" = yes && test "$GCC" = yes; then
14860 case $archive_cmds_F77 in
14862 # FIXME: we may have to deal with multi-command sequences.
14865 # Test whether the compiler implicitly links with -lc since on some
14866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14867 # to ld, don't add -lc before -lgcc.
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14874 (eval $ac_compile) 2>&5
14876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 test $ac_status = 0; } 2>conftest.err; then
14880 libobjs=conftest.$ac_objext
14882 wl=$lt_prog_compiler_wl_F77
14883 pic_flag=$lt_prog_compiler_pic_F77
14889 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14890 allow_undefined_flag_F77=
14891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14892 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14895 test $ac_status = 0; }
14897 archive_cmds_need_lc_F77=no
14899 archive_cmds_need_lc_F77=yes
14901 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14903 cat conftest.err 1>&5
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14907 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14915 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14916 library_names_spec=
14917 libname_spec='lib$name'
14921 postuninstall_cmds=
14925 shlibpath_overrides_runpath=unknown
14927 dynamic_linker="$host_os ld.so"
14928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14930 need_lib_prefix=unknown
14931 hardcode_into_libs=no
14933 # when you set need_version to no, make sure it does not cause -set_version
14934 # flags to be left without arguments
14935 need_version=unknown
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14941 shlibpath_var=LIBPATH
14943 # AIX 3 has no versioning support, so we append a major version to the name.
14944 soname_spec='${libname}${release}${shared_ext}$major'
14951 hardcode_into_libs=yes
14952 if test "$host_cpu" = ia64; then
14953 # AIX 5 supports IA64
14954 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14955 shlibpath_var=LD_LIBRARY_PATH
14957 # With GCC up to 2.95.x, collect2 would create an import file
14958 # for dependence libraries. The import file would start with
14959 # the line `#! .'. This would cause the generated library to
14960 # depend on `.', always an invalid library. This was fixed in
14961 # development snapshots of GCC prior to 3.0.
14963 aix4 | aix4.[01] | aix4.[01].*)
14964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14966 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14969 can_build_shared=no
14973 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14974 # soname into executable. Probably we can add versioning support to
14975 # collect2, so additional links can be useful in future.
14976 if test "$aix_use_runtimelinking" = yes; then
14977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14978 # instead of lib<name>.a to let people know that these are not
14979 # typical AIX shared libraries.
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 # We preserve .a as extension for shared libraries through AIX4.2
14983 # and later when we are not doing run time linking.
14984 library_names_spec='${libname}${release}.a $libname.a'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LIBPATH
14992 library_names_spec='$libname.ixlibrary $libname.a'
14993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14994 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'
14998 library_names_spec='${libname}${shared_ext}'
14999 dynamic_linker="$host_os ld.so"
15000 shlibpath_var=LIBRARY_PATH
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15012 # the default ld.so.conf also contains /usr/contrib/lib and
15013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15014 # libtool to hard-code these into programs
15017 cygwin* | mingw* | pw32*)
15018 version_type=windows
15023 case $GCC,$host_os in
15024 yes,cygwin* | yes,mingw* | yes,pw32*)
15025 library_names_spec='$libname.dll.a'
15026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15027 postinstall_cmds='base_file=`basename \${file}`~
15028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15029 dldir=$destdir/`dirname \$dlpath`~
15030 test -d \$dldir || mkdir -p \$dldir~
15031 $install_prog $dir/$dlname \$dldir/$dlname~
15032 chmod a+x \$dldir/$dlname'
15033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034 dlpath=$dir/\$dldll~
15036 shlibpath_overrides_runpath=yes
15040 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15045 # MinGW DLLs use traditional 'lib' prefix
15046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15049 # It is most probably a Windows format PATH printed by
15050 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051 # path with ; separators, and with drive letters. We can handle the
15052 # drive letters (cygwin fileutils understands them), so leave them,
15053 # especially as we might pass files found there to a mingw objdump,
15054 # which wouldn't understand a cygwinified path. Ahh.
15055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15061 # pw32 DLLs use 'pw' prefix rather than 'lib'
15062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15071 dynamic_linker='Win32 ld.exe'
15072 # FIXME: first we should search . and the directory the executable is in
15076 darwin* | rhapsody*)
15077 dynamic_linker="$host_os dyld"
15078 version_type=darwin
15081 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082 soname_spec='${libname}${release}${major}$shared_ext'
15083 shlibpath_overrides_runpath=yes
15084 shlibpath_var=DYLD_LIBRARY_PATH
15085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15103 freebsd* | dragonfly*)
15104 # DragonFly does not have aout. When/if they implement a new
15105 # versioning mechanism, adjust this.
15106 if test -x /usr/bin/objformat; then
15107 objformat=`/usr/bin/objformat`
15110 freebsd[123]*) objformat=aout ;;
15111 *) objformat=elf ;;
15114 version_type=freebsd-$objformat
15115 case $version_type in
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15126 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=yes
15131 freebsd3.[01]* | freebsdelf3.[01]*)
15132 shlibpath_overrides_runpath=yes
15133 hardcode_into_libs=yes
15135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15137 shlibpath_overrides_runpath=no
15138 hardcode_into_libs=yes
15140 *) # from 4.6 on, and DragonFly
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 hardcode_into_libs=yes
15157 hpux9* | hpux10* | hpux11*)
15158 # Give a soname corresponding to the major version so that dld.sl refuses to
15159 # link against other versions.
15166 hardcode_into_libs=yes
15167 dynamic_linker="$host_os dld.so"
15168 shlibpath_var=LD_LIBRARY_PATH
15169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 if test "X$HPUX_IA64_MODE" = X32; then
15173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15181 hardcode_into_libs=yes
15182 dynamic_linker="$host_os dld.sl"
15183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=SHLIB_PATH
15194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15200 postinstall_cmds='chmod 555 $lib'
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=no
15212 hardcode_into_libs=yes
15215 irix5* | irix6* | nonstopux*)
15217 nonstopux*) version_type=nonstopux ;;
15219 if test "$lt_cv_prog_gnu_ld" = yes; then
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 irix5* | nonstopux*)
15231 libsuff= shlibsuff=
15234 case $LD in # libtool.m4 will add one of these switches to LD
15235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236 libsuff= shlibsuff= libmagic=32-bit;;
15237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238 libsuff=32 shlibsuff=N32 libmagic=N32;;
15239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241 *) libsuff= shlibsuff= libmagic=never-match;;
15245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246 shlibpath_overrides_runpath=no
15247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249 hardcode_into_libs=yes
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15257 # This must be Linux ELF.
15258 linux* | k*bsd*-gnu)
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 # This implies no fast_install, which is unacceptable.
15268 # Some rework will be needed to allow for fast_install
15269 # before this can be enabled.
15270 hardcode_into_libs=yes
15272 # Append ld.so.conf contents to the search path
15273 if test -f /etc/ld.so.conf; then
15274 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15278 # We used to test for /lib/ld.so.1 and disable shared libraries on
15279 # powerpc, because MkLinux only supported shared libraries with the
15280 # GNU dynamic linker. Since this was broken with cross compilers,
15281 # most powerpc-linux boxes support dynamic linking these days and
15282 # people can always --disable-shared, the test was removed, and we
15283 # assume the GNU/Linux dynamic linker is in use.
15284 dynamic_linker='GNU/Linux ld.so'
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15296 dynamic_linker='NetBSD ld.elf_so'
15303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306 dynamic_linker='NetBSD (a.out) ld.so'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 dynamic_linker='NetBSD ld.elf_so'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath=yes
15314 hardcode_into_libs=yes
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15336 sys_lib_dlsearch_path_spec="/usr/lib"
15338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15341 *) need_version=no ;;
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15348 openbsd2.[89] | openbsd2.[89].*)
15349 shlibpath_overrides_runpath=no
15352 shlibpath_overrides_runpath=yes
15356 shlibpath_overrides_runpath=yes
15361 libname_spec='$name'
15364 library_names_spec='$libname${shared_ext} $libname.a'
15365 dynamic_linker='OS/2 ld.exe'
15366 shlibpath_var=LIBPATH
15369 osf3* | osf4* | osf5*)
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15392 hardcode_into_libs=yes
15393 # ldd complains unless libraries are executable
15394 postinstall_cmds='chmod +x $lib'
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=yes
15403 if test "$with_gnu_ld" = yes; then
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 case $host_vendor in
15416 shlibpath_overrides_runpath=no
15418 export_dynamic_flag_spec='${wl}-Blargedynsym'
15419 runpath_var=LD_RUN_PATH
15427 shlibpath_overrides_runpath=no
15428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15434 if test -d /usr/nec ;then
15436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15437 soname_spec='$libname${shared_ext}.$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15443 version_type=freebsd-elf
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 hardcode_into_libs=yes
15450 if test "$with_gnu_ld" = yes; then
15451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15452 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15455 shlibpath_overrides_runpath=yes
15458 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15462 sys_lib_dlsearch_path_spec='/usr/lib'
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 shlibpath_var=LD_LIBRARY_PATH
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15477 $as_echo "$dynamic_linker" >&6; }
15478 test "$dynamic_linker" = no && can_build_shared=no
15480 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15481 $as_echo_n "(cached) " >&6
15483 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15486 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15487 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15488 $as_echo_n "(cached) " >&6
15490 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15493 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496 if test "$GCC" = yes; then
15497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15501 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15502 hardcode_action_F77=
15503 if test -n "$hardcode_libdir_flag_spec_F77" || \
15504 test -n "$runpath_var_F77" || \
15505 test "X$hardcode_automatic_F77" = "Xyes" ; then
15507 # We can hardcode non-existant directories.
15508 if test "$hardcode_direct_F77" != no &&
15509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15510 # have to relink, otherwise we might link with an installed library
15511 # when we should be linking with a yet-to-be-installed one
15512 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15513 test "$hardcode_minus_L_F77" != no; then
15514 # Linking always hardcodes the temporary library directory.
15515 hardcode_action_F77=relink
15517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15518 hardcode_action_F77=immediate
15521 # We cannot hardcode anything, or else we can only hardcode existing
15523 hardcode_action_F77=unsupported
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15526 $as_echo "$hardcode_action_F77" >&6; }
15528 if test "$hardcode_action_F77" = relink; then
15529 # Fast installation is not supported
15530 enable_fast_install=no
15531 elif test "$shlibpath_overrides_runpath" = yes ||
15532 test "$enable_shared" = no; then
15533 # Fast installation is not necessary
15534 enable_fast_install=needless
15538 # The else clause should only fire when bootstrapping the
15539 # libtool distribution, otherwise you forgot to ship ltmain.sh
15540 # with your package, and you will get complaints that there are
15541 # no rules to generate ltmain.sh.
15542 if test -f "$ltmain"; then
15543 # See if we are running on zsh, and set the options which allow our commands through
15544 # without removal of \ escapes.
15545 if test -n "${ZSH_VERSION+set}" ; then
15546 setopt NO_GLOB_SUBST
15548 # Now quote all the things that may contain metacharacters while being
15549 # careful not to overquote the AC_SUBSTed values. We take copies of the
15550 # variables and quote the copies for generation of the libtool script.
15551 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15553 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15554 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15555 deplibs_check_method reload_flag reload_cmds need_locks \
15556 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15557 lt_cv_sys_global_symbol_to_c_name_address \
15558 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15559 old_postinstall_cmds old_postuninstall_cmds \
15563 lt_prog_compiler_wl_F77 \
15564 lt_prog_compiler_pic_F77 \
15565 lt_prog_compiler_static_F77 \
15566 lt_prog_compiler_no_builtin_flag_F77 \
15567 export_dynamic_flag_spec_F77 \
15568 thread_safe_flag_spec_F77 \
15569 whole_archive_flag_spec_F77 \
15570 enable_shared_with_static_runtimes_F77 \
15571 old_archive_cmds_F77 \
15572 old_archive_from_new_cmds_F77 \
15573 predep_objects_F77 \
15574 postdep_objects_F77 \
15577 compiler_lib_search_path_F77 \
15578 compiler_lib_search_dirs_F77 \
15580 archive_expsym_cmds_F77 \
15581 postinstall_cmds_F77 \
15582 postuninstall_cmds_F77 \
15583 old_archive_from_expsyms_cmds_F77 \
15584 allow_undefined_flag_F77 \
15585 no_undefined_flag_F77 \
15586 export_symbols_cmds_F77 \
15587 hardcode_libdir_flag_spec_F77 \
15588 hardcode_libdir_flag_spec_ld_F77 \
15589 hardcode_libdir_separator_F77 \
15590 hardcode_automatic_F77 \
15592 module_expsym_cmds_F77 \
15593 lt_cv_prog_compiler_c_o_F77 \
15594 fix_srcfile_path_F77 \
15595 exclude_expsyms_F77 \
15596 include_expsyms_F77; do
15599 old_archive_cmds_F77 | \
15600 old_archive_from_new_cmds_F77 | \
15601 archive_cmds_F77 | \
15602 archive_expsym_cmds_F77 | \
15603 module_cmds_F77 | \
15604 module_expsym_cmds_F77 | \
15605 old_archive_from_expsyms_cmds_F77 | \
15606 export_symbols_cmds_F77 | \
15607 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15608 postinstall_cmds | postuninstall_cmds | \
15609 old_postinstall_cmds | old_postuninstall_cmds | \
15610 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15611 # Double-quote double-evaled strings.
15612 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15615 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15621 *'\$0 --fallback-echo"')
15622 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15628 cat <<__EOF__ >> "$cfgfile"
15629 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15633 # Shell to use when invoking shell scripts.
15636 # Whether or not to build shared libraries.
15637 build_libtool_libs=$enable_shared
15639 # Whether or not to build static libraries.
15640 build_old_libs=$enable_static
15642 # Whether or not to add -lc for building shared libraries.
15643 build_libtool_need_lc=$archive_cmds_need_lc_F77
15645 # Whether or not to disallow shared libs when runtime libs are static
15646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15648 # Whether or not to optimize for fast installation.
15649 fast_install=$enable_fast_install
15652 host_alias=$host_alias
15656 # The build system.
15657 build_alias=$build_alias
15661 # An echo program that does not interpret backslashes.
15666 AR_FLAGS=$lt_AR_FLAGS
15671 # LTCC compiler flags.
15672 LTCFLAGS=$lt_LTCFLAGS
15674 # A language-specific compiler.
15675 CC=$lt_compiler_F77
15677 # Is the compiler the GNU C compiler?
15683 # The linker used to build libraries.
15686 # Whether we need hard or soft links.
15689 # A BSD-compatible nm program.
15692 # A symbol stripping program
15695 # Used to examine libraries when file_magic_cmd begins "file"
15696 MAGIC_CMD=$MAGIC_CMD
15698 # Used on cygwin: DLL creation program.
15701 # Used on cygwin: object dumper.
15704 # Used on cygwin: assembler.
15707 # The name of the directory that contains temporary libtool files.
15710 # How to create reloadable object files.
15711 reload_flag=$lt_reload_flag
15712 reload_cmds=$lt_reload_cmds
15714 # How to pass a linker flag through the compiler.
15715 wl=$lt_lt_prog_compiler_wl_F77
15717 # Object file suffix (normally "o").
15718 objext="$ac_objext"
15720 # Old archive suffix (normally "a").
15723 # Shared library suffix (normally ".so").
15724 shrext_cmds='$shrext_cmds'
15726 # Executable file suffix (normally "").
15729 # Additional compiler flags for building library objects.
15730 pic_flag=$lt_lt_prog_compiler_pic_F77
15733 # What is the maximum length of a command?
15734 max_cmd_len=$lt_cv_sys_max_cmd_len
15736 # Does compiler simultaneously support -c and -o options?
15737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15739 # Must we lock files when doing compilation?
15740 need_locks=$lt_need_locks
15742 # Do we need the lib prefix for modules?
15743 need_lib_prefix=$need_lib_prefix
15745 # Do we need a version for libraries?
15746 need_version=$need_version
15748 # Whether dlopen is supported.
15749 dlopen_support=$enable_dlopen
15751 # Whether dlopen of programs is supported.
15752 dlopen_self=$enable_dlopen_self
15754 # Whether dlopen of statically linked programs is supported.
15755 dlopen_self_static=$enable_dlopen_self_static
15757 # Compiler flag to prevent dynamic linking.
15758 link_static_flag=$lt_lt_prog_compiler_static_F77
15760 # Compiler flag to turn off builtin functions.
15761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15763 # Compiler flag to allow reflexive dlopens.
15764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15766 # Compiler flag to generate shared objects directly from archives.
15767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15769 # Compiler flag to generate thread-safe objects.
15770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15772 # Library versioning type.
15773 version_type=$version_type
15775 # Format of library name prefix.
15776 libname_spec=$lt_libname_spec
15778 # List of archive names. First name is the real one, the rest are links.
15779 # The last name is the one that the linker finds with -lNAME.
15780 library_names_spec=$lt_library_names_spec
15782 # The coded name of the library, if different from the real name.
15783 soname_spec=$lt_soname_spec
15785 # Commands used to build and install an old-style archive.
15787 old_archive_cmds=$lt_old_archive_cmds_F77
15788 old_postinstall_cmds=$lt_old_postinstall_cmds
15789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15791 # Create an old-style archive from a shared archive.
15792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15794 # Create a temporary old-style archive to link instead of a shared archive.
15795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15797 # Commands used to build and install a shared archive.
15798 archive_cmds=$lt_archive_cmds_F77
15799 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15800 postinstall_cmds=$lt_postinstall_cmds
15801 postuninstall_cmds=$lt_postuninstall_cmds
15803 # Commands used to build a loadable module (assumed same as above if empty)
15804 module_cmds=$lt_module_cmds_F77
15805 module_expsym_cmds=$lt_module_expsym_cmds_F77
15807 # Commands to strip libraries.
15808 old_striplib=$lt_old_striplib
15809 striplib=$lt_striplib
15811 # Dependencies to place before the objects being linked to create a
15813 predep_objects=$lt_predep_objects_F77
15815 # Dependencies to place after the objects being linked to create a
15817 postdep_objects=$lt_postdep_objects_F77
15819 # Dependencies to place before the objects being linked to create a
15821 predeps=$lt_predeps_F77
15823 # Dependencies to place after the objects being linked to create a
15825 postdeps=$lt_postdeps_F77
15827 # The directories searched by this compiler when creating a shared
15829 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15831 # The library search path used internally by the compiler when linking
15832 # a shared library.
15833 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15835 # Method to check whether dependent libraries are shared objects.
15836 deplibs_check_method=$lt_deplibs_check_method
15838 # Command to use when deplibs_check_method == file_magic.
15839 file_magic_cmd=$lt_file_magic_cmd
15841 # Flag that allows shared libraries with undefined symbols to be built.
15842 allow_undefined_flag=$lt_allow_undefined_flag_F77
15844 # Flag that forces no undefined symbols.
15845 no_undefined_flag=$lt_no_undefined_flag_F77
15847 # Commands used to finish a libtool library installation in a directory.
15848 finish_cmds=$lt_finish_cmds
15850 # Same as above, but a single script fragment to be evaled but not shown.
15851 finish_eval=$lt_finish_eval
15853 # Take the output of nm and produce a listing of raw symbols and C names.
15854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15856 # Transform the output of nm in a proper C declaration
15857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15859 # Transform the output of nm in a C name address pair
15860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15862 # This is the shared library runtime path variable.
15863 runpath_var=$runpath_var
15865 # This is the shared library path variable.
15866 shlibpath_var=$shlibpath_var
15868 # Is shlibpath searched before the hard-coded library search path?
15869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15871 # How to hardcode a shared library path into an executable.
15872 hardcode_action=$hardcode_action_F77
15874 # Whether we should hardcode library paths into libraries.
15875 hardcode_into_libs=$hardcode_into_libs
15877 # Flag to hardcode \$libdir into a binary during linking.
15878 # This must work even if \$libdir does not exist.
15879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15881 # If ld is used when linking, flag to hardcode \$libdir into
15882 # a binary during linking. This must work even if \$libdir does
15884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15886 # Whether we need a single -rpath flag with a separated argument.
15887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15890 # resulting binary.
15891 hardcode_direct=$hardcode_direct_F77
15893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15894 # resulting binary.
15895 hardcode_minus_L=$hardcode_minus_L_F77
15897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15898 # the resulting binary.
15899 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15901 # Set to yes if building a shared library automatically hardcodes DIR into the library
15902 # and all subsequent libraries and executables linked against it.
15903 hardcode_automatic=$hardcode_automatic_F77
15905 # Variables whose values should be saved in libtool wrapper scripts and
15906 # restored at relink time.
15907 variables_saved_for_relink="$variables_saved_for_relink"
15909 # Whether libtool must link a program against all its dependency libraries.
15910 link_all_deplibs=$link_all_deplibs_F77
15912 # Compile-time system search path for libraries
15913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15915 # Run-time system search path for libraries
15916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15918 # Fix the shell variable \$srcfile for the compiler.
15919 fix_srcfile_path=$lt_fix_srcfile_path
15921 # Set to yes if exported symbols are required.
15922 always_export_symbols=$always_export_symbols_F77
15924 # The commands to list exported symbols.
15925 export_symbols_cmds=$lt_export_symbols_cmds_F77
15927 # The commands to extract the exported symbol list from a shared archive.
15928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15930 # Symbols that should not be listed in the preloaded symbols.
15931 exclude_expsyms=$lt_exclude_expsyms_F77
15933 # Symbols that must always be exported.
15934 include_expsyms=$lt_include_expsyms_F77
15936 # ### END LIBTOOL TAG CONFIG: $tagname
15942 # If there is no Makefile yet, we rely on a make rule to execute
15943 # `config.status --recheck' to rerun these tests and create the
15944 # libtool script then.
15945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15946 if test -f "$ltmain_in"; then
15947 test -f Makefile && make "$ltmain"
15953 ac_cpp='$CPP $CPPFLAGS'
15954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15966 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15969 # Source file extension for Java test sources.
15972 # Object file extension for compiled Java test sources.
15976 # Code to be used in simple compile tests
15977 lt_simple_compile_test_code="class foo {}"
15979 # Code to be used in simple link tests
15980 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15984 # If no C compiler was specified, use CC.
15987 # If no C compiler flags were specified, use CFLAGS.
15988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15990 # Allow CC to be a program name with arguments.
15994 # save warnings/boilerplate of simple test code
15995 ac_outfile=conftest.$ac_objext
15996 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15997 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15998 _lt_compiler_boilerplate=`cat conftest.err`
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16003 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16004 _lt_linker_boilerplate=`cat conftest.err`
16008 # Allow CC to be a program name with arguments.
16013 for cc_temp in $compiler""; do
16015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16021 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16024 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16025 archive_cmds_need_lc_GCJ=no
16027 old_archive_cmds_GCJ=$old_archive_cmds
16030 lt_prog_compiler_no_builtin_flag_GCJ=
16032 if test "$GCC" = yes; then
16033 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16038 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16039 $as_echo_n "(cached) " >&6
16041 lt_cv_prog_compiler_rtti_exceptions=no
16042 ac_outfile=conftest.$ac_objext
16043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044 lt_compiler_flag="-fno-rtti -fno-exceptions"
16045 # Insert the option either (1) after the last *FLAGS variable, or
16046 # (2) before a word containing "conftest.", or (3) at the end.
16047 # Note that $ac_compile itself does not contain backslashes and begins
16048 # with a dollar sign (not a hyphen), so the echo should work correctly.
16049 # The option is referenced via a variable to avoid confusing sed.
16050 lt_compile=`echo "$ac_compile" | $SED \
16051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053 -e 's:$: $lt_compiler_flag:'`
16054 (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16055 (eval "$lt_compile" 2>conftest.err)
16057 cat conftest.err >&5
16058 echo "$as_me:16058: \$? = $ac_status" >&5
16059 if (exit $ac_status) && test -s "$ac_outfile"; then
16060 # The compiler can only warn and ignore the option if not recognized
16061 # So say no if there are warnings other than the usual output.
16062 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16065 lt_cv_prog_compiler_rtti_exceptions=yes
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16074 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16075 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16082 lt_prog_compiler_wl_GCJ=
16083 lt_prog_compiler_pic_GCJ=
16084 lt_prog_compiler_static_GCJ=
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16087 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16089 if test "$GCC" = yes; then
16090 lt_prog_compiler_wl_GCJ='-Wl,'
16091 lt_prog_compiler_static_GCJ='-static'
16095 # All AIX code is PIC.
16096 if test "$host_cpu" = ia64; then
16097 # AIX 5 now supports IA64 processor
16098 lt_prog_compiler_static_GCJ='-Bstatic'
16103 # FIXME: we need at least 68020 code to build shared libraries, but
16104 # adding the `-m68020' flag to GCC prevents building anything better,
16106 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16110 # PIC is the default for these OSes.
16113 mingw* | cygwin* | pw32* | os2*)
16114 # This hack is so that the source file can tell whether it is being
16115 # built for inclusion in a dll (and should export symbols for example).
16116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16117 # (--disable-auto-import) libraries
16121 darwin* | rhapsody*)
16122 # PIC is the default on this platform
16123 # Common symbols not allowed in MH_DYLIB files
16124 lt_prog_compiler_pic_GCJ='-fno-common'
16128 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16129 # Instead, we relocate shared libraries at runtime.
16133 # Just because we use GCC doesn't mean we suddenly get shared libraries
16134 # on systems that don't support them.
16135 lt_prog_compiler_can_build_shared_GCJ=no
16140 if test -d /usr/nec; then
16141 lt_prog_compiler_pic_GCJ=-Kconform_pic
16146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16147 # not for PA HP-UX.
16153 lt_prog_compiler_pic_GCJ='-fPIC'
16159 lt_prog_compiler_pic_GCJ='-fPIC'
16163 # PORTME Check for flag to pass linker flags through the system compiler.
16166 lt_prog_compiler_wl_GCJ='-Wl,'
16167 if test "$host_cpu" = ia64; then
16168 # AIX 5 now supports IA64 processor
16169 lt_prog_compiler_static_GCJ='-Bstatic'
16171 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16175 # PIC is the default on this platform
16176 # Common symbols not allowed in MH_DYLIB files
16177 case $cc_basename in
16179 lt_prog_compiler_pic_GCJ='-qnocommon'
16180 lt_prog_compiler_wl_GCJ='-Wl,'
16185 mingw* | cygwin* | pw32* | os2*)
16186 # This hack is so that the source file can tell whether it is being
16187 # built for inclusion in a dll (and should export symbols for example).
16191 hpux9* | hpux10* | hpux11*)
16192 lt_prog_compiler_wl_GCJ='-Wl,'
16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194 # not for PA HP-UX.
16200 lt_prog_compiler_pic_GCJ='+Z'
16203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16204 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16207 irix5* | irix6* | nonstopux*)
16208 lt_prog_compiler_wl_GCJ='-Wl,'
16209 # PIC (with -KPIC) is the default.
16210 lt_prog_compiler_static_GCJ='-non_shared'
16214 lt_prog_compiler_pic_GCJ='-KPIC'
16215 lt_prog_compiler_static_GCJ='-Bstatic'
16218 linux* | k*bsd*-gnu)
16219 case $cc_basename in
16221 lt_prog_compiler_wl_GCJ='-Wl,'
16222 lt_prog_compiler_pic_GCJ='-KPIC'
16223 lt_prog_compiler_static_GCJ='-static'
16225 pgcc* | pgf77* | pgf90* | pgf95*)
16226 # Portland Group compilers (*not* the Pentium gcc compiler,
16227 # which looks to be a dead project)
16228 lt_prog_compiler_wl_GCJ='-Wl,'
16229 lt_prog_compiler_pic_GCJ='-fpic'
16230 lt_prog_compiler_static_GCJ='-Bstatic'
16233 lt_prog_compiler_wl_GCJ='-Wl,'
16234 # All Alpha code is PIC.
16235 lt_prog_compiler_static_GCJ='-non_shared'
16238 case `$CC -V 2>&1 | sed 5q` in
16241 lt_prog_compiler_pic_GCJ='-KPIC'
16242 lt_prog_compiler_static_GCJ='-Bstatic'
16243 lt_prog_compiler_wl_GCJ='-Wl,'
16246 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16247 lt_prog_compiler_pic_GCJ='-KPIC'
16248 lt_prog_compiler_static_GCJ='-Bstatic'
16249 lt_prog_compiler_wl_GCJ=''
16256 osf3* | osf4* | osf5*)
16257 lt_prog_compiler_wl_GCJ='-Wl,'
16258 # All OSF/1 code is PIC.
16259 lt_prog_compiler_static_GCJ='-non_shared'
16263 lt_prog_compiler_static_GCJ='-non_shared'
16267 lt_prog_compiler_pic_GCJ='-KPIC'
16268 lt_prog_compiler_static_GCJ='-Bstatic'
16269 case $cc_basename in
16270 f77* | f90* | f95*)
16271 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16273 lt_prog_compiler_wl_GCJ='-Wl,';;
16278 lt_prog_compiler_wl_GCJ='-Qoption ld '
16279 lt_prog_compiler_pic_GCJ='-PIC'
16280 lt_prog_compiler_static_GCJ='-Bstatic'
16283 sysv4 | sysv4.2uw2* | sysv4.3*)
16284 lt_prog_compiler_wl_GCJ='-Wl,'
16285 lt_prog_compiler_pic_GCJ='-KPIC'
16286 lt_prog_compiler_static_GCJ='-Bstatic'
16290 if test -d /usr/nec ;then
16291 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16292 lt_prog_compiler_static_GCJ='-Bstatic'
16296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16297 lt_prog_compiler_wl_GCJ='-Wl,'
16298 lt_prog_compiler_pic_GCJ='-KPIC'
16299 lt_prog_compiler_static_GCJ='-Bstatic'
16303 lt_prog_compiler_wl_GCJ='-Wl,'
16304 lt_prog_compiler_can_build_shared_GCJ=no
16308 lt_prog_compiler_pic_GCJ='-pic'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16313 lt_prog_compiler_can_build_shared_GCJ=no
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16319 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16322 # Check to make sure the PIC flag actually works.
16324 if test -n "$lt_prog_compiler_pic_GCJ"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16327 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16328 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16329 $as_echo_n "(cached) " >&6
16331 lt_cv_prog_compiler_pic_works_GCJ=no
16332 ac_outfile=conftest.$ac_objext
16333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16334 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16335 # Insert the option either (1) after the last *FLAGS variable, or
16336 # (2) before a word containing "conftest.", or (3) at the end.
16337 # Note that $ac_compile itself does not contain backslashes and begins
16338 # with a dollar sign (not a hyphen), so the echo should work correctly.
16339 # The option is referenced via a variable to avoid confusing sed.
16340 lt_compile=`echo "$ac_compile" | $SED \
16341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16343 -e 's:$: $lt_compiler_flag:'`
16344 (eval echo "\"\$as_me:16344: $lt_compile\"" >&5)
16345 (eval "$lt_compile" 2>conftest.err)
16347 cat conftest.err >&5
16348 echo "$as_me:16348: \$? = $ac_status" >&5
16349 if (exit $ac_status) && test -s "$ac_outfile"; then
16350 # The compiler can only warn and ignore the option if not recognized
16351 # So say no if there are warnings other than the usual output.
16352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16355 lt_cv_prog_compiler_pic_works_GCJ=yes
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16362 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16364 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16365 case $lt_prog_compiler_pic_GCJ in
16367 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16370 lt_prog_compiler_pic_GCJ=
16371 lt_prog_compiler_can_build_shared_GCJ=no
16376 # For platforms which do not support PIC, -DPIC is meaningless:
16378 lt_prog_compiler_pic_GCJ=
16381 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16386 # Check to make sure the static flag actually works.
16388 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16390 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16391 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16392 $as_echo_n "(cached) " >&6
16394 lt_cv_prog_compiler_static_works_GCJ=no
16395 save_LDFLAGS="$LDFLAGS"
16396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16399 # The linker can only warn and ignore the option if not recognized
16400 # So say no if there are warnings
16401 if test -s conftest.err; then
16402 # Append any errors to the config.log.
16403 cat conftest.err 1>&5
16404 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16406 if diff conftest.exp conftest.er2 >/dev/null; then
16407 lt_cv_prog_compiler_static_works_GCJ=yes
16410 lt_cv_prog_compiler_static_works_GCJ=yes
16414 LDFLAGS="$save_LDFLAGS"
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16418 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16420 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16423 lt_prog_compiler_static_GCJ=
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16429 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 lt_cv_prog_compiler_c_o_GCJ=no
16433 $rm -r conftest 2>/dev/null
16437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16439 lt_compiler_flag="-o out/conftest2.$ac_objext"
16440 # Insert the option either (1) after the last *FLAGS variable, or
16441 # (2) before a word containing "conftest.", or (3) at the end.
16442 # Note that $ac_compile itself does not contain backslashes and begins
16443 # with a dollar sign (not a hyphen), so the echo should work correctly.
16444 lt_compile=`echo "$ac_compile" | $SED \
16445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16447 -e 's:$: $lt_compiler_flag:'`
16448 (eval echo "\"\$as_me:16448: $lt_compile\"" >&5)
16449 (eval "$lt_compile" 2>out/conftest.err)
16451 cat out/conftest.err >&5
16452 echo "$as_me:16452: \$? = $ac_status" >&5
16453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16455 # The compiler can only warn and ignore the option if not recognized
16456 # So say no if there are warnings
16457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16460 lt_cv_prog_compiler_c_o_GCJ=yes
16465 # SGI C++ compiler will create directory out/ii_files/ for
16466 # template instantiation
16467 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16468 $rm out/* && rmdir out
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16475 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16478 hard_links="nottested"
16479 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16480 # do not overwrite the value of need_locks provided by the user
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16482 $as_echo_n "checking if we can lock with hard links... " >&6; }
16485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16487 ln conftest.a conftest.b 2>&5 || hard_links=no
16488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16490 $as_echo "$hard_links" >&6; }
16491 if test "$hard_links" = no; then
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16493 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16504 allow_undefined_flag_GCJ=
16505 enable_shared_with_static_runtimes_GCJ=no
16507 archive_expsym_cmds_GCJ=
16508 old_archive_From_new_cmds_GCJ=
16509 old_archive_from_expsyms_cmds_GCJ=
16510 export_dynamic_flag_spec_GCJ=
16511 whole_archive_flag_spec_GCJ=
16512 thread_safe_flag_spec_GCJ=
16513 hardcode_libdir_flag_spec_GCJ=
16514 hardcode_libdir_flag_spec_ld_GCJ=
16515 hardcode_libdir_separator_GCJ=
16516 hardcode_direct_GCJ=no
16517 hardcode_minus_L_GCJ=no
16518 hardcode_shlibpath_var_GCJ=unsupported
16519 link_all_deplibs_GCJ=unknown
16520 hardcode_automatic_GCJ=no
16522 module_expsym_cmds_GCJ=
16523 always_export_symbols_GCJ=no
16524 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16525 # include_expsyms should be a list of space-separated symbols to be *always*
16526 # included in the symbol list
16527 include_expsyms_GCJ=
16528 # exclude_expsyms can be an extended regexp of symbols to exclude
16529 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16530 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16531 # as well as any symbol that contains `d'.
16532 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16534 # platforms (ab)use it in PIC code, but their linkers get confused if
16535 # the symbol is explicitly referenced. Since portable code cannot
16536 # rely on this symbol name, it's probably fine to never include it in
16537 # preloaded symbol tables.
16538 # Exclude shared library initialization/finalization symbols.
16539 extract_expsyms_cmds=
16540 # Just being paranoid about ensuring that cc_basename is set.
16541 for cc_temp in $compiler""; do
16543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16552 cygwin* | mingw* | pw32*)
16553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16554 # When not using gcc, we currently assume that we are using
16555 # Microsoft Visual C++.
16556 if test "$GCC" != yes; then
16561 # we just hope/assume this is gcc and not c89 (= MSVC++)
16570 if test "$with_gnu_ld" = yes; then
16571 # If archive_cmds runs LD, not CC, wlarc should be empty
16574 # Set some defaults for GNU ld with shared library support. These
16575 # are reset later if shared libraries are not supported. Putting them
16576 # here allows them to be overridden if necessary.
16577 runpath_var=LD_RUN_PATH
16578 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16579 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16580 # ancient GNU ld didn't support --whole-archive et. al.
16581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16582 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16584 whole_archive_flag_spec_GCJ=
16586 supports_anon_versioning=no
16587 case `$LD -v 2>/dev/null` in
16588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16591 *\ 2.11.*) ;; # other 2.11 versions
16592 *) supports_anon_versioning=yes ;;
16595 # See if GNU ld supports shared libraries.
16598 # On AIX/PPC, the GNU linker is very broken
16599 if test "$host_cpu" != ia64; then
16603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16604 *** to be unable to reliably create shared libraries on AIX.
16605 *** Therefore, libtool is disabling shared libraries support. If you
16606 *** really care for shared libraries, you may want to modify your PATH
16607 *** so that a non-GNU linker is found, and then restart.
16614 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)'
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 hardcode_minus_L_GCJ=yes
16618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16619 # that the semantics of dynamic libraries on AmigaOS, at least up
16620 # to version 4, is to share data among multiple programs linked
16621 # with the same dynamic library. Since this doesn't match the
16622 # behavior of shared libraries on other platforms, we can't use
16628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16629 allow_undefined_flag_GCJ=unsupported
16630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16631 # support --undefined. This deserves some investigation. FIXME
16632 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16638 cygwin* | mingw* | pw32*)
16639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16640 # as there is no search path for DLLs.
16641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16642 allow_undefined_flag_GCJ=unsupported
16643 always_export_symbols_GCJ=no
16644 enable_shared_with_static_runtimes_GCJ=yes
16645 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16649 # If the export-symbols file already is a .def file (1st line
16650 # is EXPORTS), use it as is; otherwise, prepend...
16651 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16652 cp $export_symbols $output_objdir/$soname.def;
16654 echo EXPORTS > $output_objdir/$soname.def;
16655 cat $export_symbols >> $output_objdir/$soname.def;
16657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16664 hardcode_direct_GCJ=no
16665 hardcode_shlibpath_var_GCJ=no
16666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16667 export_dynamic_flag_spec_GCJ='${wl}-E'
16668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16669 # Instead, shared libraries are loaded at an image base (0x10000000 by
16670 # default) and relocated if they conflict, which is a slow very memory
16671 # consuming and fragmenting process. To avoid this, we pick a random,
16672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16674 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16675 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16678 gnu* | linux* | k*bsd*-gnu)
16679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16681 case $cc_basename,$host_cpu in
16682 pgcc*) # Portland Group C compiler
16683 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16684 tmp_addflag=' $pic_flag'
16686 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16687 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16688 tmp_addflag=' $pic_flag -Mnomain' ;;
16689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16690 tmp_addflag=' -i_dynamic' ;;
16691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16692 tmp_addflag=' -i_dynamic -nofor_main' ;;
16693 ifc* | ifort*) # Intel Fortran compiler
16694 tmp_addflag=' -nofor_main' ;;
16696 case `$CC -V 2>&1 | sed 5q` in
16697 *Sun\ C*) # Sun C 5.9
16698 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16699 tmp_sharedflag='-G' ;;
16700 *Sun\ F*) # Sun Fortran 8.3
16701 tmp_sharedflag='-G' ;;
16703 tmp_sharedflag='-shared' ;;
16705 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16707 if test $supports_anon_versioning = yes; then
16708 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16710 $echo "local: *; };" >> $output_objdir/$libname.ver~
16711 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16713 link_all_deplibs_GCJ=no
16719 netbsd* | netbsdelf*-gnu)
16720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16721 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16724 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16735 *** create shared libraries on Solaris systems. Therefore, libtool
16736 *** is disabling shared libraries support. We urge you to upgrade GNU
16737 *** binutils to release 2.9.1 or newer. Another option is to modify
16738 *** your PATH or compiler configuration so that the native linker is
16739 *** used, and then restart.
16742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16743 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16751 case `$LD -v 2>&1` in
16752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16756 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16757 *** reliably create shared libraries on SCO systems. Therefore, libtool
16758 *** is disabling shared libraries support. We urge you to upgrade GNU
16759 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16760 *** your PATH or compiler configuration so that the native linker is
16761 *** used, and then restart.
16766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16778 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16780 hardcode_direct_GCJ=yes
16781 hardcode_shlibpath_var_GCJ=no
16785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16786 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16787 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16794 if test "$ld_shlibs_GCJ" = no; then
16796 hardcode_libdir_flag_spec_GCJ=
16797 export_dynamic_flag_spec_GCJ=
16798 whole_archive_flag_spec_GCJ=
16801 # PORTME fill in a description of your system's linker (not GNU ld)
16804 allow_undefined_flag_GCJ=unsupported
16805 always_export_symbols_GCJ=yes
16806 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'
16807 # Note: this linker hardcodes the directories in LIBPATH if there
16808 # are no directories specified by -L.
16809 hardcode_minus_L_GCJ=yes
16810 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16811 # Neither direct hardcoding nor static linking is supported with a
16813 hardcode_direct_GCJ=unsupported
16818 if test "$host_cpu" = ia64; then
16819 # On IA64, the linker does run time linking by default, so we don't
16820 # have to do anything special.
16821 aix_use_runtimelinking=no
16822 exp_sym_flag='-Bexport'
16825 # If we're using GNU nm, then we don't want the "-C" option.
16826 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16827 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16828 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'
16830 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'
16832 aix_use_runtimelinking=no
16834 # Test if we are trying to use run time linking or normal
16835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16836 # need to do runtime linking.
16837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16838 for ld_flag in $LDFLAGS; do
16839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16840 aix_use_runtimelinking=yes
16847 exp_sym_flag='-bexport'
16848 no_entry_flag='-bnoentry'
16851 # When large executables or shared objects are built, AIX ld can
16852 # have problems creating the table of contents. If linking a library
16853 # or program results in "error TOC overflow" add -mminimal-toc to
16854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16857 archive_cmds_GCJ=''
16858 hardcode_direct_GCJ=yes
16859 hardcode_libdir_separator_GCJ=':'
16860 link_all_deplibs_GCJ=yes
16862 if test "$GCC" = yes; then
16863 case $host_os in aix4.[012]|aix4.[012].*)
16864 # We only want to do this on AIX 4.2 and lower, the check
16865 # below for broken collect2 doesn't work under 4.3+
16866 collect2name=`${CC} -print-prog-name=collect2`
16867 if test -f "$collect2name" && \
16868 strings "$collect2name" | grep resolve_lib_name >/dev/null
16870 # We have reworked collect2
16873 # We have old collect2
16874 hardcode_direct_GCJ=unsupported
16875 # It fails to find uninstalled libraries when the uninstalled
16876 # path is not listed in the libpath. Setting hardcode_minus_L
16877 # to unsupported forces relinking
16878 hardcode_minus_L_GCJ=yes
16879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880 hardcode_libdir_separator_GCJ=
16884 shared_flag='-shared'
16885 if test "$aix_use_runtimelinking" = yes; then
16886 shared_flag="$shared_flag "'${wl}-G'
16890 if test "$host_cpu" = ia64; then
16891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16892 # chokes on -Wl,-G. The following line is correct:
16895 if test "$aix_use_runtimelinking" = yes; then
16896 shared_flag='${wl}-G'
16898 shared_flag='${wl}-bM:SRE'
16903 # It seems that -bexpall does not export symbols beginning with
16904 # underscore (_), so it is better to generate a list of symbols to export.
16905 always_export_symbols_GCJ=yes
16906 if test "$aix_use_runtimelinking" = yes; then
16907 # Warning - without using the other runtime loading flags (-brtl),
16908 # -berok will link without error, but may produce a broken library.
16909 allow_undefined_flag_GCJ='-berok'
16910 # Determine the default libpath from the value encoded in an empty executable.
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16922 if ac_fn_c_try_link "$LINENO"; then :
16924 lt_aix_libpath_sed='
16925 /Import File Strings/,/^$/ {
16931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16932 # Check for a 64-bit object if we didn't find anything.
16933 if test -z "$aix_libpath"; then
16934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16937 rm -f core conftest.err conftest.$ac_objext \
16938 conftest$ac_exeext conftest.$ac_ext
16939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16941 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16942 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16944 if test "$host_cpu" = ia64; then
16945 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16946 allow_undefined_flag_GCJ="-z nodefs"
16947 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16949 # Determine the default libpath from the value encoded in an empty executable.
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16961 if ac_fn_c_try_link "$LINENO"; then :
16963 lt_aix_libpath_sed='
16964 /Import File Strings/,/^$/ {
16970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16971 # Check for a 64-bit object if we didn't find anything.
16972 if test -z "$aix_libpath"; then
16973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16980 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16981 # Warning - without using the other run time loading flags,
16982 # -berok will link without error, but may produce a broken library.
16983 no_undefined_flag_GCJ=' ${wl}-bernotok'
16984 allow_undefined_flag_GCJ=' ${wl}-berok'
16985 # Exported symbols can be pulled into shared objects from archives
16986 whole_archive_flag_spec_GCJ='$convenience'
16987 archive_cmds_need_lc_GCJ=yes
16988 # This is similar to how AIX traditionally builds its shared libraries.
16989 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16995 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)'
16996 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16997 hardcode_minus_L_GCJ=yes
16998 # see comment about different semantics on the GNU ld section
17003 export_dynamic_flag_spec_GCJ=-rdynamic
17006 cygwin* | mingw* | pw32*)
17007 # When not using gcc, we currently assume that we are using
17008 # Microsoft Visual C++.
17009 # hardcode_libdir_flag_spec is actually meaningless, as there is
17010 # no search path for DLLs.
17011 hardcode_libdir_flag_spec_GCJ=' '
17012 allow_undefined_flag_GCJ=unsupported
17013 # Tell ltmain to make .lib files, not .a files.
17015 # Tell ltmain to make .dll files, not .so files.
17017 # FIXME: Setting linknames here is a bad hack.
17018 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17019 # The linker will automatically build a .lib file if we build a DLL.
17020 old_archive_From_new_cmds_GCJ='true'
17021 # FIXME: Should let the user specify the lib program.
17022 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17023 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17024 enable_shared_with_static_runtimes_GCJ=yes
17027 darwin* | rhapsody*)
17029 rhapsody* | darwin1.[012])
17030 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17033 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17034 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17036 case ${MACOSX_DEPLOYMENT_TARGET} in
17038 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17041 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17047 archive_cmds_need_lc_GCJ=no
17048 hardcode_direct_GCJ=no
17049 hardcode_automatic_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=unsupported
17051 whole_archive_flag_spec_GCJ=''
17052 link_all_deplibs_GCJ=yes
17053 if test "$GCC" = yes ; then
17054 output_verbose_link_cmd='echo'
17055 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17056 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17057 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17058 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17060 case $cc_basename in
17062 output_verbose_link_cmd='echo'
17063 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17064 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17066 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17067 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}'
17077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17079 hardcode_shlibpath_var_GCJ=no
17086 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17087 # support. Future versions do this automatically, but an explicit c++rt0.o
17088 # does not break anything, and helps significantly (at the cost of a little
17091 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17093 hardcode_direct_GCJ=yes
17094 hardcode_shlibpath_var_GCJ=no
17097 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17099 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17100 hardcode_direct_GCJ=yes
17101 hardcode_minus_L_GCJ=yes
17102 hardcode_shlibpath_var_GCJ=no
17105 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17106 freebsd* | dragonfly*)
17107 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17109 hardcode_direct_GCJ=yes
17110 hardcode_shlibpath_var_GCJ=no
17114 if test "$GCC" = yes; then
17115 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'
17117 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'
17119 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17120 hardcode_libdir_separator_GCJ=:
17121 hardcode_direct_GCJ=yes
17123 # hardcode_minus_L: Not really in the search PATH,
17124 # but as the default location of the library.
17125 hardcode_minus_L_GCJ=yes
17126 export_dynamic_flag_spec_GCJ='${wl}-E'
17130 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17131 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17133 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17135 if test "$with_gnu_ld" = no; then
17136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17137 hardcode_libdir_separator_GCJ=:
17139 hardcode_direct_GCJ=yes
17140 export_dynamic_flag_spec_GCJ='${wl}-E'
17142 # hardcode_minus_L: Not really in the search PATH,
17143 # but as the default location of the library.
17144 hardcode_minus_L_GCJ=yes
17149 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17152 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17155 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17158 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17164 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17170 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17174 if test "$with_gnu_ld" = no; then
17175 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17176 hardcode_libdir_separator_GCJ=:
17180 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17181 hardcode_direct_GCJ=no
17182 hardcode_shlibpath_var_GCJ=no
17185 hardcode_direct_GCJ=yes
17186 export_dynamic_flag_spec_GCJ='${wl}-E'
17188 # hardcode_minus_L: Not really in the search PATH,
17189 # but as the default location of the library.
17190 hardcode_minus_L_GCJ=yes
17196 irix5* | irix6* | nonstopux*)
17197 if test "$GCC" = yes; then
17198 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'
17200 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'
17201 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17204 hardcode_libdir_separator_GCJ=:
17205 link_all_deplibs_GCJ=yes
17208 netbsd* | netbsdelf*-gnu)
17209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17212 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17215 hardcode_direct_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17221 hardcode_direct_GCJ=yes
17222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17223 hardcode_libdir_separator_GCJ=:
17224 hardcode_shlibpath_var_GCJ=no
17228 if test -f /usr/libexec/ld.so; then
17229 hardcode_direct_GCJ=yes
17230 hardcode_shlibpath_var_GCJ=no
17231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17232 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17233 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17235 export_dynamic_flag_spec_GCJ='${wl}-E'
17238 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17243 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255 hardcode_minus_L_GCJ=yes
17256 allow_undefined_flag_GCJ=unsupported
17257 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'
17258 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17262 if test "$GCC" = yes; then
17263 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17264 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'
17266 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17267 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'
17269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17270 hardcode_libdir_separator_GCJ=:
17273 osf4* | osf5*) # as osf3* with the addition of -msym flag
17274 if test "$GCC" = yes; then
17275 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17276 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'
17277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17279 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17280 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'
17281 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~
17282 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17284 # Both c and cxx compiler support -rpath directly
17285 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17287 hardcode_libdir_separator_GCJ=:
17291 no_undefined_flag_GCJ=' -z text'
17292 if test "$GCC" = yes; then
17294 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17296 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17299 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17304 hardcode_shlibpath_var_GCJ=no
17306 solaris2.[0-5] | solaris2.[0-5].*) ;;
17308 # The compiler driver will combine and reorder linker options,
17309 # but understands `-z linker_flag'. GCC discards it without `$wl',
17310 # but is careful enough not to reorder.
17311 # Supported since Solaris 2.6 (maybe 2.5.1?)
17312 if test "$GCC" = yes; then
17313 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17315 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17319 link_all_deplibs_GCJ=yes
17323 if test "x$host_vendor" = xsequent; then
17324 # Use $CC to link under sequent, because it throws in some extra .o
17325 # files that make .init and .fini sections work.
17326 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17328 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17330 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17331 hardcode_direct_GCJ=yes
17332 hardcode_minus_L_GCJ=yes
17333 hardcode_shlibpath_var_GCJ=no
17337 case $host_vendor in
17339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340 hardcode_direct_GCJ=yes # is this really true???
17343 ## LD is ld it makes a PLAMLIB
17344 ## CC just makes a GrossModule.
17345 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17346 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17347 hardcode_direct_GCJ=no
17350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17351 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17354 runpath_var='LD_RUN_PATH'
17355 hardcode_shlibpath_var_GCJ=no
17359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17360 hardcode_shlibpath_var_GCJ=no
17361 export_dynamic_flag_spec_GCJ='-Bexport'
17365 if test -d /usr/nec; then
17366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_shlibpath_var_GCJ=no
17368 runpath_var=LD_RUN_PATH
17369 hardcode_runpath_var=yes
17374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17375 no_undefined_flag_GCJ='${wl}-z,text'
17376 archive_cmds_need_lc_GCJ=no
17377 hardcode_shlibpath_var_GCJ=no
17378 runpath_var='LD_RUN_PATH'
17380 if test "$GCC" = yes; then
17381 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17382 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17385 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17389 sysv5* | sco3.2v5* | sco5v6*)
17390 # Note: We can NOT use -z defs as we might desire, because we do not
17391 # link with -lc, and that would cause any symbols used from libc to
17392 # always be unresolved, which means just about no library would
17393 # ever link correctly. If we're not using GNU ld we use -z text
17394 # though, which does catch some bad symbols but isn't as heavy-handed
17396 no_undefined_flag_GCJ='${wl}-z,text'
17397 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17398 archive_cmds_need_lc_GCJ=no
17399 hardcode_shlibpath_var_GCJ=no
17400 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17401 hardcode_libdir_separator_GCJ=':'
17402 link_all_deplibs_GCJ=yes
17403 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17404 runpath_var='LD_RUN_PATH'
17406 if test "$GCC" = yes; then
17407 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17408 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17411 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17418 hardcode_shlibpath_var_GCJ=no
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17428 $as_echo "$ld_shlibs_GCJ" >&6; }
17429 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17432 # Do we need to explicitly link libc?
17434 case "x$archive_cmds_need_lc_GCJ" in
17436 # Assume -lc should be added
17437 archive_cmds_need_lc_GCJ=yes
17439 if test "$enable_shared" = yes && test "$GCC" = yes; then
17440 case $archive_cmds_GCJ in
17442 # FIXME: we may have to deal with multi-command sequences.
17445 # Test whether the compiler implicitly links with -lc since on some
17446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17447 # to ld, don't add -lc before -lgcc.
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17454 (eval $ac_compile) 2>&5
17456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; } 2>conftest.err; then
17460 libobjs=conftest.$ac_objext
17462 wl=$lt_prog_compiler_wl_GCJ
17463 pic_flag=$lt_prog_compiler_pic_GCJ
17469 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17470 allow_undefined_flag_GCJ=
17471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17472 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17475 test $ac_status = 0; }
17477 archive_cmds_need_lc_GCJ=no
17479 archive_cmds_need_lc_GCJ=yes
17481 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17483 cat conftest.err 1>&5
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17487 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17495 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17496 library_names_spec=
17497 libname_spec='lib$name'
17501 postuninstall_cmds=
17505 shlibpath_overrides_runpath=unknown
17507 dynamic_linker="$host_os ld.so"
17508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17510 need_lib_prefix=unknown
17511 hardcode_into_libs=no
17513 # when you set need_version to no, make sure it does not cause -set_version
17514 # flags to be left without arguments
17515 need_version=unknown
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17521 shlibpath_var=LIBPATH
17523 # AIX 3 has no versioning support, so we append a major version to the name.
17524 soname_spec='${libname}${release}${shared_ext}$major'
17531 hardcode_into_libs=yes
17532 if test "$host_cpu" = ia64; then
17533 # AIX 5 supports IA64
17534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17535 shlibpath_var=LD_LIBRARY_PATH
17537 # With GCC up to 2.95.x, collect2 would create an import file
17538 # for dependence libraries. The import file would start with
17539 # the line `#! .'. This would cause the generated library to
17540 # depend on `.', always an invalid library. This was fixed in
17541 # development snapshots of GCC prior to 3.0.
17543 aix4 | aix4.[01] | aix4.[01].*)
17544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17549 can_build_shared=no
17553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17554 # soname into executable. Probably we can add versioning support to
17555 # collect2, so additional links can be useful in future.
17556 if test "$aix_use_runtimelinking" = yes; then
17557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17558 # instead of lib<name>.a to let people know that these are not
17559 # typical AIX shared libraries.
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562 # We preserve .a as extension for shared libraries through AIX4.2
17563 # and later when we are not doing run time linking.
17564 library_names_spec='${libname}${release}.a $libname.a'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17567 shlibpath_var=LIBPATH
17572 library_names_spec='$libname.ixlibrary $libname.a'
17573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17574 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'
17578 library_names_spec='${libname}${shared_ext}'
17579 dynamic_linker="$host_os ld.so"
17580 shlibpath_var=LIBRARY_PATH
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 soname_spec='${libname}${release}${shared_ext}$major'
17588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17589 shlibpath_var=LD_LIBRARY_PATH
17590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17592 # the default ld.so.conf also contains /usr/contrib/lib and
17593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17594 # libtool to hard-code these into programs
17597 cygwin* | mingw* | pw32*)
17598 version_type=windows
17603 case $GCC,$host_os in
17604 yes,cygwin* | yes,mingw* | yes,pw32*)
17605 library_names_spec='$libname.dll.a'
17606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17607 postinstall_cmds='base_file=`basename \${file}`~
17608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17609 dldir=$destdir/`dirname \$dlpath`~
17610 test -d \$dldir || mkdir -p \$dldir~
17611 $install_prog $dir/$dlname \$dldir/$dlname~
17612 chmod a+x \$dldir/$dlname'
17613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17614 dlpath=$dir/\$dldll~
17616 shlibpath_overrides_runpath=yes
17620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17625 # MinGW DLLs use traditional 'lib' prefix
17626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17629 # It is most probably a Windows format PATH printed by
17630 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17631 # path with ; separators, and with drive letters. We can handle the
17632 # drive letters (cygwin fileutils understands them), so leave them,
17633 # especially as we might pass files found there to a mingw objdump,
17634 # which wouldn't understand a cygwinified path. Ahh.
17635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17641 # pw32 DLLs use 'pw' prefix rather than 'lib'
17642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17651 dynamic_linker='Win32 ld.exe'
17652 # FIXME: first we should search . and the directory the executable is in
17656 darwin* | rhapsody*)
17657 dynamic_linker="$host_os dyld"
17658 version_type=darwin
17661 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17662 soname_spec='${libname}${release}${major}$shared_ext'
17663 shlibpath_overrides_runpath=yes
17664 shlibpath_var=DYLD_LIBRARY_PATH
17665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LD_LIBRARY_PATH
17683 freebsd* | dragonfly*)
17684 # DragonFly does not have aout. When/if they implement a new
17685 # versioning mechanism, adjust this.
17686 if test -x /usr/bin/objformat; then
17687 objformat=`/usr/bin/objformat`
17690 freebsd[123]*) objformat=aout ;;
17691 *) objformat=elf ;;
17694 version_type=freebsd-$objformat
17695 case $version_type in
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17706 shlibpath_var=LD_LIBRARY_PATH
17709 shlibpath_overrides_runpath=yes
17711 freebsd3.[01]* | freebsdelf3.[01]*)
17712 shlibpath_overrides_runpath=yes
17713 hardcode_into_libs=yes
17715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17717 shlibpath_overrides_runpath=no
17718 hardcode_into_libs=yes
17720 *) # from 4.6 on, and DragonFly
17721 shlibpath_overrides_runpath=yes
17722 hardcode_into_libs=yes
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17733 shlibpath_var=LD_LIBRARY_PATH
17734 hardcode_into_libs=yes
17737 hpux9* | hpux10* | hpux11*)
17738 # Give a soname corresponding to the major version so that dld.sl refuses to
17739 # link against other versions.
17746 hardcode_into_libs=yes
17747 dynamic_linker="$host_os dld.so"
17748 shlibpath_var=LD_LIBRARY_PATH
17749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 if test "X$HPUX_IA64_MODE" = X32; then
17753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17761 hardcode_into_libs=yes
17762 dynamic_linker="$host_os dld.sl"
17763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17772 dynamic_linker="$host_os dld.sl"
17773 shlibpath_var=SHLIB_PATH
17774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17779 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17780 postinstall_cmds='chmod 555 $lib'
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath=no
17792 hardcode_into_libs=yes
17795 irix5* | irix6* | nonstopux*)
17797 nonstopux*) version_type=nonstopux ;;
17799 if test "$lt_cv_prog_gnu_ld" = yes; then
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17810 irix5* | nonstopux*)
17811 libsuff= shlibsuff=
17814 case $LD in # libtool.m4 will add one of these switches to LD
17815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17816 libsuff= shlibsuff= libmagic=32-bit;;
17817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17818 libsuff=32 shlibsuff=N32 libmagic=N32;;
17819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17821 *) libsuff= shlibsuff= libmagic=never-match;;
17825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17826 shlibpath_overrides_runpath=no
17827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17829 hardcode_into_libs=yes
17832 # No shared lib support for Linux oldld, aout, or coff.
17833 linux*oldld* | linux*aout* | linux*coff*)
17837 # This must be Linux ELF.
17838 linux* | k*bsd*-gnu)
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 soname_spec='${libname}${release}${shared_ext}$major'
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=no
17847 # This implies no fast_install, which is unacceptable.
17848 # Some rework will be needed to allow for fast_install
17849 # before this can be enabled.
17850 hardcode_into_libs=yes
17852 # Append ld.so.conf contents to the search path
17853 if test -f /etc/ld.so.conf; then
17854 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17855 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17858 # We used to test for /lib/ld.so.1 and disable shared libraries on
17859 # powerpc, because MkLinux only supported shared libraries with the
17860 # GNU dynamic linker. Since this was broken with cross compilers,
17861 # most powerpc-linux boxes support dynamic linking these days and
17862 # people can always --disable-shared, the test was removed, and we
17863 # assume the GNU/Linux dynamic linker is in use.
17864 dynamic_linker='GNU/Linux ld.so'
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 shlibpath_overrides_runpath=no
17875 hardcode_into_libs=yes
17876 dynamic_linker='NetBSD ld.elf_so'
17883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 dynamic_linker='NetBSD (a.out) ld.so'
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17890 dynamic_linker='NetBSD ld.elf_so'
17892 shlibpath_var=LD_LIBRARY_PATH
17893 shlibpath_overrides_runpath=yes
17894 hardcode_into_libs=yes
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 shlibpath_overrides_runpath=yes
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 soname_spec='${libname}${release}${shared_ext}$major'
17910 shlibpath_var=LD_LIBRARY_PATH
17911 shlibpath_overrides_runpath=yes
17916 sys_lib_dlsearch_path_spec="/usr/lib"
17918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17921 *) need_version=no ;;
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17928 openbsd2.[89] | openbsd2.[89].*)
17929 shlibpath_overrides_runpath=no
17932 shlibpath_overrides_runpath=yes
17936 shlibpath_overrides_runpath=yes
17941 libname_spec='$name'
17944 library_names_spec='$libname${shared_ext} $libname.a'
17945 dynamic_linker='OS/2 ld.exe'
17946 shlibpath_var=LIBPATH
17949 osf3* | osf4* | osf5*)
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955 shlibpath_var=LD_LIBRARY_PATH
17956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath=yes
17972 hardcode_into_libs=yes
17973 # ldd complains unless libraries are executable
17974 postinstall_cmds='chmod +x $lib'
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes
17983 if test "$with_gnu_ld" = yes; then
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 soname_spec='${libname}${release}${shared_ext}$major'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 case $host_vendor in
17996 shlibpath_overrides_runpath=no
17998 export_dynamic_flag_spec='${wl}-Blargedynsym'
17999 runpath_var=LD_RUN_PATH
18007 shlibpath_overrides_runpath=no
18008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18014 if test -d /usr/nec ;then
18016 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18017 soname_spec='$libname${shared_ext}.$major'
18018 shlibpath_var=LD_LIBRARY_PATH
18022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18023 version_type=freebsd-elf
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 shlibpath_var=LD_LIBRARY_PATH
18029 hardcode_into_libs=yes
18030 if test "$with_gnu_ld" = yes; then
18031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18032 shlibpath_overrides_runpath=no
18034 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18035 shlibpath_overrides_runpath=yes
18038 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18042 sys_lib_dlsearch_path_spec='/usr/lib'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 shlibpath_var=LD_LIBRARY_PATH
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18057 $as_echo "$dynamic_linker" >&6; }
18058 test "$dynamic_linker" = no && can_build_shared=no
18060 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18061 $as_echo_n "(cached) " >&6
18063 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18067 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18068 $as_echo_n "(cached) " >&6
18070 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18076 if test "$GCC" = yes; then
18077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18081 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18082 hardcode_action_GCJ=
18083 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18084 test -n "$runpath_var_GCJ" || \
18085 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18087 # We can hardcode non-existant directories.
18088 if test "$hardcode_direct_GCJ" != no &&
18089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090 # have to relink, otherwise we might link with an installed library
18091 # when we should be linking with a yet-to-be-installed one
18092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18093 test "$hardcode_minus_L_GCJ" != no; then
18094 # Linking always hardcodes the temporary library directory.
18095 hardcode_action_GCJ=relink
18097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098 hardcode_action_GCJ=immediate
18101 # We cannot hardcode anything, or else we can only hardcode existing
18103 hardcode_action_GCJ=unsupported
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18106 $as_echo "$hardcode_action_GCJ" >&6; }
18108 if test "$hardcode_action_GCJ" = relink; then
18109 # Fast installation is not supported
18110 enable_fast_install=no
18111 elif test "$shlibpath_overrides_runpath" = yes ||
18112 test "$enable_shared" = no; then
18113 # Fast installation is not necessary
18114 enable_fast_install=needless
18118 # The else clause should only fire when bootstrapping the
18119 # libtool distribution, otherwise you forgot to ship ltmain.sh
18120 # with your package, and you will get complaints that there are
18121 # no rules to generate ltmain.sh.
18122 if test -f "$ltmain"; then
18123 # See if we are running on zsh, and set the options which allow our commands through
18124 # without removal of \ escapes.
18125 if test -n "${ZSH_VERSION+set}" ; then
18126 setopt NO_GLOB_SUBST
18128 # Now quote all the things that may contain metacharacters while being
18129 # careful not to overquote the AC_SUBSTed values. We take copies of the
18130 # variables and quote the copies for generation of the libtool script.
18131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18135 deplibs_check_method reload_flag reload_cmds need_locks \
18136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18137 lt_cv_sys_global_symbol_to_c_name_address \
18138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18139 old_postinstall_cmds old_postuninstall_cmds \
18143 lt_prog_compiler_wl_GCJ \
18144 lt_prog_compiler_pic_GCJ \
18145 lt_prog_compiler_static_GCJ \
18146 lt_prog_compiler_no_builtin_flag_GCJ \
18147 export_dynamic_flag_spec_GCJ \
18148 thread_safe_flag_spec_GCJ \
18149 whole_archive_flag_spec_GCJ \
18150 enable_shared_with_static_runtimes_GCJ \
18151 old_archive_cmds_GCJ \
18152 old_archive_from_new_cmds_GCJ \
18153 predep_objects_GCJ \
18154 postdep_objects_GCJ \
18157 compiler_lib_search_path_GCJ \
18158 compiler_lib_search_dirs_GCJ \
18160 archive_expsym_cmds_GCJ \
18161 postinstall_cmds_GCJ \
18162 postuninstall_cmds_GCJ \
18163 old_archive_from_expsyms_cmds_GCJ \
18164 allow_undefined_flag_GCJ \
18165 no_undefined_flag_GCJ \
18166 export_symbols_cmds_GCJ \
18167 hardcode_libdir_flag_spec_GCJ \
18168 hardcode_libdir_flag_spec_ld_GCJ \
18169 hardcode_libdir_separator_GCJ \
18170 hardcode_automatic_GCJ \
18172 module_expsym_cmds_GCJ \
18173 lt_cv_prog_compiler_c_o_GCJ \
18174 fix_srcfile_path_GCJ \
18175 exclude_expsyms_GCJ \
18176 include_expsyms_GCJ; do
18179 old_archive_cmds_GCJ | \
18180 old_archive_from_new_cmds_GCJ | \
18181 archive_cmds_GCJ | \
18182 archive_expsym_cmds_GCJ | \
18183 module_cmds_GCJ | \
18184 module_expsym_cmds_GCJ | \
18185 old_archive_from_expsyms_cmds_GCJ | \
18186 export_symbols_cmds_GCJ | \
18187 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18188 postinstall_cmds | postuninstall_cmds | \
18189 old_postinstall_cmds | old_postuninstall_cmds | \
18190 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18191 # Double-quote double-evaled strings.
18192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18201 *'\$0 --fallback-echo"')
18202 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18208 cat <<__EOF__ >> "$cfgfile"
18209 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18213 # Shell to use when invoking shell scripts.
18216 # Whether or not to build shared libraries.
18217 build_libtool_libs=$enable_shared
18219 # Whether or not to build static libraries.
18220 build_old_libs=$enable_static
18222 # Whether or not to add -lc for building shared libraries.
18223 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18225 # Whether or not to disallow shared libs when runtime libs are static
18226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18228 # Whether or not to optimize for fast installation.
18229 fast_install=$enable_fast_install
18232 host_alias=$host_alias
18236 # The build system.
18237 build_alias=$build_alias
18241 # An echo program that does not interpret backslashes.
18246 AR_FLAGS=$lt_AR_FLAGS
18251 # LTCC compiler flags.
18252 LTCFLAGS=$lt_LTCFLAGS
18254 # A language-specific compiler.
18255 CC=$lt_compiler_GCJ
18257 # Is the compiler the GNU C compiler?
18263 # The linker used to build libraries.
18266 # Whether we need hard or soft links.
18269 # A BSD-compatible nm program.
18272 # A symbol stripping program
18275 # Used to examine libraries when file_magic_cmd begins "file"
18276 MAGIC_CMD=$MAGIC_CMD
18278 # Used on cygwin: DLL creation program.
18281 # Used on cygwin: object dumper.
18284 # Used on cygwin: assembler.
18287 # The name of the directory that contains temporary libtool files.
18290 # How to create reloadable object files.
18291 reload_flag=$lt_reload_flag
18292 reload_cmds=$lt_reload_cmds
18294 # How to pass a linker flag through the compiler.
18295 wl=$lt_lt_prog_compiler_wl_GCJ
18297 # Object file suffix (normally "o").
18298 objext="$ac_objext"
18300 # Old archive suffix (normally "a").
18303 # Shared library suffix (normally ".so").
18304 shrext_cmds='$shrext_cmds'
18306 # Executable file suffix (normally "").
18309 # Additional compiler flags for building library objects.
18310 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18313 # What is the maximum length of a command?
18314 max_cmd_len=$lt_cv_sys_max_cmd_len
18316 # Does compiler simultaneously support -c and -o options?
18317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18319 # Must we lock files when doing compilation?
18320 need_locks=$lt_need_locks
18322 # Do we need the lib prefix for modules?
18323 need_lib_prefix=$need_lib_prefix
18325 # Do we need a version for libraries?
18326 need_version=$need_version
18328 # Whether dlopen is supported.
18329 dlopen_support=$enable_dlopen
18331 # Whether dlopen of programs is supported.
18332 dlopen_self=$enable_dlopen_self
18334 # Whether dlopen of statically linked programs is supported.
18335 dlopen_self_static=$enable_dlopen_self_static
18337 # Compiler flag to prevent dynamic linking.
18338 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18340 # Compiler flag to turn off builtin functions.
18341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18343 # Compiler flag to allow reflexive dlopens.
18344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18346 # Compiler flag to generate shared objects directly from archives.
18347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18349 # Compiler flag to generate thread-safe objects.
18350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18352 # Library versioning type.
18353 version_type=$version_type
18355 # Format of library name prefix.
18356 libname_spec=$lt_libname_spec
18358 # List of archive names. First name is the real one, the rest are links.
18359 # The last name is the one that the linker finds with -lNAME.
18360 library_names_spec=$lt_library_names_spec
18362 # The coded name of the library, if different from the real name.
18363 soname_spec=$lt_soname_spec
18365 # Commands used to build and install an old-style archive.
18367 old_archive_cmds=$lt_old_archive_cmds_GCJ
18368 old_postinstall_cmds=$lt_old_postinstall_cmds
18369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18371 # Create an old-style archive from a shared archive.
18372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18374 # Create a temporary old-style archive to link instead of a shared archive.
18375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18377 # Commands used to build and install a shared archive.
18378 archive_cmds=$lt_archive_cmds_GCJ
18379 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18380 postinstall_cmds=$lt_postinstall_cmds
18381 postuninstall_cmds=$lt_postuninstall_cmds
18383 # Commands used to build a loadable module (assumed same as above if empty)
18384 module_cmds=$lt_module_cmds_GCJ
18385 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18387 # Commands to strip libraries.
18388 old_striplib=$lt_old_striplib
18389 striplib=$lt_striplib
18391 # Dependencies to place before the objects being linked to create a
18393 predep_objects=$lt_predep_objects_GCJ
18395 # Dependencies to place after the objects being linked to create a
18397 postdep_objects=$lt_postdep_objects_GCJ
18399 # Dependencies to place before the objects being linked to create a
18401 predeps=$lt_predeps_GCJ
18403 # Dependencies to place after the objects being linked to create a
18405 postdeps=$lt_postdeps_GCJ
18407 # The directories searched by this compiler when creating a shared
18409 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18411 # The library search path used internally by the compiler when linking
18412 # a shared library.
18413 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18415 # Method to check whether dependent libraries are shared objects.
18416 deplibs_check_method=$lt_deplibs_check_method
18418 # Command to use when deplibs_check_method == file_magic.
18419 file_magic_cmd=$lt_file_magic_cmd
18421 # Flag that allows shared libraries with undefined symbols to be built.
18422 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18424 # Flag that forces no undefined symbols.
18425 no_undefined_flag=$lt_no_undefined_flag_GCJ
18427 # Commands used to finish a libtool library installation in a directory.
18428 finish_cmds=$lt_finish_cmds
18430 # Same as above, but a single script fragment to be evaled but not shown.
18431 finish_eval=$lt_finish_eval
18433 # Take the output of nm and produce a listing of raw symbols and C names.
18434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18436 # Transform the output of nm in a proper C declaration
18437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18439 # Transform the output of nm in a C name address pair
18440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18442 # This is the shared library runtime path variable.
18443 runpath_var=$runpath_var
18445 # This is the shared library path variable.
18446 shlibpath_var=$shlibpath_var
18448 # Is shlibpath searched before the hard-coded library search path?
18449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18451 # How to hardcode a shared library path into an executable.
18452 hardcode_action=$hardcode_action_GCJ
18454 # Whether we should hardcode library paths into libraries.
18455 hardcode_into_libs=$hardcode_into_libs
18457 # Flag to hardcode \$libdir into a binary during linking.
18458 # This must work even if \$libdir does not exist.
18459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18461 # If ld is used when linking, flag to hardcode \$libdir into
18462 # a binary during linking. This must work even if \$libdir does
18464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18466 # Whether we need a single -rpath flag with a separated argument.
18467 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18469 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18470 # resulting binary.
18471 hardcode_direct=$hardcode_direct_GCJ
18473 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18474 # resulting binary.
18475 hardcode_minus_L=$hardcode_minus_L_GCJ
18477 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18478 # the resulting binary.
18479 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18481 # Set to yes if building a shared library automatically hardcodes DIR into the library
18482 # and all subsequent libraries and executables linked against it.
18483 hardcode_automatic=$hardcode_automatic_GCJ
18485 # Variables whose values should be saved in libtool wrapper scripts and
18486 # restored at relink time.
18487 variables_saved_for_relink="$variables_saved_for_relink"
18489 # Whether libtool must link a program against all its dependency libraries.
18490 link_all_deplibs=$link_all_deplibs_GCJ
18492 # Compile-time system search path for libraries
18493 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18495 # Run-time system search path for libraries
18496 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18498 # Fix the shell variable \$srcfile for the compiler.
18499 fix_srcfile_path=$lt_fix_srcfile_path
18501 # Set to yes if exported symbols are required.
18502 always_export_symbols=$always_export_symbols_GCJ
18504 # The commands to list exported symbols.
18505 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18507 # The commands to extract the exported symbol list from a shared archive.
18508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18510 # Symbols that should not be listed in the preloaded symbols.
18511 exclude_expsyms=$lt_exclude_expsyms_GCJ
18513 # Symbols that must always be exported.
18514 include_expsyms=$lt_include_expsyms_GCJ
18516 # ### END LIBTOOL TAG CONFIG: $tagname
18522 # If there is no Makefile yet, we rely on a make rule to execute
18523 # `config.status --recheck' to rerun these tests and create the
18524 # libtool script then.
18525 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18526 if test -f "$ltmain_in"; then
18527 test -f Makefile && make "$ltmain"
18533 ac_cpp='$CPP $CPPFLAGS'
18534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548 # Source file extension for RC test sources.
18551 # Object file extension for compiled RC test sources.
18555 # Code to be used in simple compile tests
18556 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18558 # Code to be used in simple link tests
18559 lt_simple_link_test_code="$lt_simple_compile_test_code"
18561 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18563 # If no C compiler was specified, use CC.
18566 # If no C compiler flags were specified, use CFLAGS.
18567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18569 # Allow CC to be a program name with arguments.
18573 # save warnings/boilerplate of simple test code
18574 ac_outfile=conftest.$ac_objext
18575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18577 _lt_compiler_boilerplate=`cat conftest.err`
18580 ac_outfile=conftest.$ac_objext
18581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18583 _lt_linker_boilerplate=`cat conftest.err`
18587 # Allow CC to be a program name with arguments.
18592 for cc_temp in $compiler""; do
18594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18602 lt_cv_prog_compiler_c_o_RC=yes
18604 # The else clause should only fire when bootstrapping the
18605 # libtool distribution, otherwise you forgot to ship ltmain.sh
18606 # with your package, and you will get complaints that there are
18607 # no rules to generate ltmain.sh.
18608 if test -f "$ltmain"; then
18609 # See if we are running on zsh, and set the options which allow our commands through
18610 # without removal of \ escapes.
18611 if test -n "${ZSH_VERSION+set}" ; then
18612 setopt NO_GLOB_SUBST
18614 # Now quote all the things that may contain metacharacters while being
18615 # careful not to overquote the AC_SUBSTed values. We take copies of the
18616 # variables and quote the copies for generation of the libtool script.
18617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18621 deplibs_check_method reload_flag reload_cmds need_locks \
18622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18623 lt_cv_sys_global_symbol_to_c_name_address \
18624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18625 old_postinstall_cmds old_postuninstall_cmds \
18629 lt_prog_compiler_wl_RC \
18630 lt_prog_compiler_pic_RC \
18631 lt_prog_compiler_static_RC \
18632 lt_prog_compiler_no_builtin_flag_RC \
18633 export_dynamic_flag_spec_RC \
18634 thread_safe_flag_spec_RC \
18635 whole_archive_flag_spec_RC \
18636 enable_shared_with_static_runtimes_RC \
18637 old_archive_cmds_RC \
18638 old_archive_from_new_cmds_RC \
18639 predep_objects_RC \
18640 postdep_objects_RC \
18643 compiler_lib_search_path_RC \
18644 compiler_lib_search_dirs_RC \
18646 archive_expsym_cmds_RC \
18647 postinstall_cmds_RC \
18648 postuninstall_cmds_RC \
18649 old_archive_from_expsyms_cmds_RC \
18650 allow_undefined_flag_RC \
18651 no_undefined_flag_RC \
18652 export_symbols_cmds_RC \
18653 hardcode_libdir_flag_spec_RC \
18654 hardcode_libdir_flag_spec_ld_RC \
18655 hardcode_libdir_separator_RC \
18656 hardcode_automatic_RC \
18658 module_expsym_cmds_RC \
18659 lt_cv_prog_compiler_c_o_RC \
18660 fix_srcfile_path_RC \
18661 exclude_expsyms_RC \
18662 include_expsyms_RC; do
18665 old_archive_cmds_RC | \
18666 old_archive_from_new_cmds_RC | \
18667 archive_cmds_RC | \
18668 archive_expsym_cmds_RC | \
18670 module_expsym_cmds_RC | \
18671 old_archive_from_expsyms_cmds_RC | \
18672 export_symbols_cmds_RC | \
18673 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18674 postinstall_cmds | postuninstall_cmds | \
18675 old_postinstall_cmds | old_postuninstall_cmds | \
18676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18677 # Double-quote double-evaled strings.
18678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18687 *'\$0 --fallback-echo"')
18688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18694 cat <<__EOF__ >> "$cfgfile"
18695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18699 # Shell to use when invoking shell scripts.
18702 # Whether or not to build shared libraries.
18703 build_libtool_libs=$enable_shared
18705 # Whether or not to build static libraries.
18706 build_old_libs=$enable_static
18708 # Whether or not to add -lc for building shared libraries.
18709 build_libtool_need_lc=$archive_cmds_need_lc_RC
18711 # Whether or not to disallow shared libs when runtime libs are static
18712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18714 # Whether or not to optimize for fast installation.
18715 fast_install=$enable_fast_install
18718 host_alias=$host_alias
18722 # The build system.
18723 build_alias=$build_alias
18727 # An echo program that does not interpret backslashes.
18732 AR_FLAGS=$lt_AR_FLAGS
18737 # LTCC compiler flags.
18738 LTCFLAGS=$lt_LTCFLAGS
18740 # A language-specific compiler.
18743 # Is the compiler the GNU C compiler?
18749 # The linker used to build libraries.
18752 # Whether we need hard or soft links.
18755 # A BSD-compatible nm program.
18758 # A symbol stripping program
18761 # Used to examine libraries when file_magic_cmd begins "file"
18762 MAGIC_CMD=$MAGIC_CMD
18764 # Used on cygwin: DLL creation program.
18767 # Used on cygwin: object dumper.
18770 # Used on cygwin: assembler.
18773 # The name of the directory that contains temporary libtool files.
18776 # How to create reloadable object files.
18777 reload_flag=$lt_reload_flag
18778 reload_cmds=$lt_reload_cmds
18780 # How to pass a linker flag through the compiler.
18781 wl=$lt_lt_prog_compiler_wl_RC
18783 # Object file suffix (normally "o").
18784 objext="$ac_objext"
18786 # Old archive suffix (normally "a").
18789 # Shared library suffix (normally ".so").
18790 shrext_cmds='$shrext_cmds'
18792 # Executable file suffix (normally "").
18795 # Additional compiler flags for building library objects.
18796 pic_flag=$lt_lt_prog_compiler_pic_RC
18799 # What is the maximum length of a command?
18800 max_cmd_len=$lt_cv_sys_max_cmd_len
18802 # Does compiler simultaneously support -c and -o options?
18803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18805 # Must we lock files when doing compilation?
18806 need_locks=$lt_need_locks
18808 # Do we need the lib prefix for modules?
18809 need_lib_prefix=$need_lib_prefix
18811 # Do we need a version for libraries?
18812 need_version=$need_version
18814 # Whether dlopen is supported.
18815 dlopen_support=$enable_dlopen
18817 # Whether dlopen of programs is supported.
18818 dlopen_self=$enable_dlopen_self
18820 # Whether dlopen of statically linked programs is supported.
18821 dlopen_self_static=$enable_dlopen_self_static
18823 # Compiler flag to prevent dynamic linking.
18824 link_static_flag=$lt_lt_prog_compiler_static_RC
18826 # Compiler flag to turn off builtin functions.
18827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18829 # Compiler flag to allow reflexive dlopens.
18830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18832 # Compiler flag to generate shared objects directly from archives.
18833 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18835 # Compiler flag to generate thread-safe objects.
18836 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18838 # Library versioning type.
18839 version_type=$version_type
18841 # Format of library name prefix.
18842 libname_spec=$lt_libname_spec
18844 # List of archive names. First name is the real one, the rest are links.
18845 # The last name is the one that the linker finds with -lNAME.
18846 library_names_spec=$lt_library_names_spec
18848 # The coded name of the library, if different from the real name.
18849 soname_spec=$lt_soname_spec
18851 # Commands used to build and install an old-style archive.
18853 old_archive_cmds=$lt_old_archive_cmds_RC
18854 old_postinstall_cmds=$lt_old_postinstall_cmds
18855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18857 # Create an old-style archive from a shared archive.
18858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18860 # Create a temporary old-style archive to link instead of a shared archive.
18861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18863 # Commands used to build and install a shared archive.
18864 archive_cmds=$lt_archive_cmds_RC
18865 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18866 postinstall_cmds=$lt_postinstall_cmds
18867 postuninstall_cmds=$lt_postuninstall_cmds
18869 # Commands used to build a loadable module (assumed same as above if empty)
18870 module_cmds=$lt_module_cmds_RC
18871 module_expsym_cmds=$lt_module_expsym_cmds_RC
18873 # Commands to strip libraries.
18874 old_striplib=$lt_old_striplib
18875 striplib=$lt_striplib
18877 # Dependencies to place before the objects being linked to create a
18879 predep_objects=$lt_predep_objects_RC
18881 # Dependencies to place after the objects being linked to create a
18883 postdep_objects=$lt_postdep_objects_RC
18885 # Dependencies to place before the objects being linked to create a
18887 predeps=$lt_predeps_RC
18889 # Dependencies to place after the objects being linked to create a
18891 postdeps=$lt_postdeps_RC
18893 # The directories searched by this compiler when creating a shared
18895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18897 # The library search path used internally by the compiler when linking
18898 # a shared library.
18899 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18901 # Method to check whether dependent libraries are shared objects.
18902 deplibs_check_method=$lt_deplibs_check_method
18904 # Command to use when deplibs_check_method == file_magic.
18905 file_magic_cmd=$lt_file_magic_cmd
18907 # Flag that allows shared libraries with undefined symbols to be built.
18908 allow_undefined_flag=$lt_allow_undefined_flag_RC
18910 # Flag that forces no undefined symbols.
18911 no_undefined_flag=$lt_no_undefined_flag_RC
18913 # Commands used to finish a libtool library installation in a directory.
18914 finish_cmds=$lt_finish_cmds
18916 # Same as above, but a single script fragment to be evaled but not shown.
18917 finish_eval=$lt_finish_eval
18919 # Take the output of nm and produce a listing of raw symbols and C names.
18920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18922 # Transform the output of nm in a proper C declaration
18923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18925 # Transform the output of nm in a C name address pair
18926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18928 # This is the shared library runtime path variable.
18929 runpath_var=$runpath_var
18931 # This is the shared library path variable.
18932 shlibpath_var=$shlibpath_var
18934 # Is shlibpath searched before the hard-coded library search path?
18935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18937 # How to hardcode a shared library path into an executable.
18938 hardcode_action=$hardcode_action_RC
18940 # Whether we should hardcode library paths into libraries.
18941 hardcode_into_libs=$hardcode_into_libs
18943 # Flag to hardcode \$libdir into a binary during linking.
18944 # This must work even if \$libdir does not exist.
18945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18947 # If ld is used when linking, flag to hardcode \$libdir into
18948 # a binary during linking. This must work even if \$libdir does
18950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18952 # Whether we need a single -rpath flag with a separated argument.
18953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18956 # resulting binary.
18957 hardcode_direct=$hardcode_direct_RC
18959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18960 # resulting binary.
18961 hardcode_minus_L=$hardcode_minus_L_RC
18963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18964 # the resulting binary.
18965 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18967 # Set to yes if building a shared library automatically hardcodes DIR into the library
18968 # and all subsequent libraries and executables linked against it.
18969 hardcode_automatic=$hardcode_automatic_RC
18971 # Variables whose values should be saved in libtool wrapper scripts and
18972 # restored at relink time.
18973 variables_saved_for_relink="$variables_saved_for_relink"
18975 # Whether libtool must link a program against all its dependency libraries.
18976 link_all_deplibs=$link_all_deplibs_RC
18978 # Compile-time system search path for libraries
18979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18981 # Run-time system search path for libraries
18982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18984 # Fix the shell variable \$srcfile for the compiler.
18985 fix_srcfile_path=$lt_fix_srcfile_path
18987 # Set to yes if exported symbols are required.
18988 always_export_symbols=$always_export_symbols_RC
18990 # The commands to list exported symbols.
18991 export_symbols_cmds=$lt_export_symbols_cmds_RC
18993 # The commands to extract the exported symbol list from a shared archive.
18994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18996 # Symbols that should not be listed in the preloaded symbols.
18997 exclude_expsyms=$lt_exclude_expsyms_RC
18999 # Symbols that must always be exported.
19000 include_expsyms=$lt_include_expsyms_RC
19002 # ### END LIBTOOL TAG CONFIG: $tagname
19008 # If there is no Makefile yet, we rely on a make rule to execute
19009 # `config.status --recheck' to rerun these tests and create the
19010 # libtool script then.
19011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19012 if test -f "$ltmain_in"; then
19013 test -f Makefile && make "$ltmain"
19019 ac_cpp='$CPP $CPPFLAGS'
19020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19033 # Append the new tag name to the list of available tags.
19034 if test -n "$tagname" ; then
19035 available_tags="$available_tags $tagname"
19041 # Now substitute the updated list of available tags.
19042 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19043 mv "${ofile}T" "$ofile"
19047 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19053 # This can be used to rebuild libtool when needed
19054 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19056 # Always use our own libtool.
19057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19059 # Prevent multiple expansion
19082 ac_cpp='$CPP $CPPFLAGS'
19083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086 if test -n "$ac_tool_prefix"; then
19087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19090 $as_echo_n "checking for $ac_word... " >&6; }
19091 if ${ac_cv_prog_CC+:} false; then :
19092 $as_echo_n "(cached) " >&6
19094 if test -n "$CC"; then
19095 ac_cv_prog_CC="$CC" # Let the user override the test.
19097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19098 for as_dir in $PATH
19101 test -z "$as_dir" && as_dir=.
19102 for ac_exec_ext in '' $ac_executable_extensions; do
19103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 if test -n "$CC"; then
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19117 $as_echo "$CC" >&6; }
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19120 $as_echo "no" >&6; }
19125 if test -z "$ac_cv_prog_CC"; then
19127 # Extract the first word of "gcc", so it can be a program name with args.
19128 set dummy gcc; ac_word=$2
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19130 $as_echo_n "checking for $ac_word... " >&6; }
19131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19132 $as_echo_n "(cached) " >&6
19134 if test -n "$ac_ct_CC"; then
19135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19141 test -z "$as_dir" && as_dir=.
19142 for ac_exec_ext in '' $ac_executable_extensions; do
19143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19144 ac_cv_prog_ac_ct_CC="gcc"
19145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19155 if test -n "$ac_ct_CC"; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19157 $as_echo "$ac_ct_CC" >&6; }
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160 $as_echo "no" >&6; }
19163 if test "x$ac_ct_CC" = x; then
19166 case $cross_compiling:$ac_tool_warned in
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19170 ac_tool_warned=yes ;;
19175 CC="$ac_cv_prog_CC"
19178 if test -z "$CC"; then
19179 if test -n "$ac_tool_prefix"; then
19180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19181 set dummy ${ac_tool_prefix}cc; ac_word=$2
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19183 $as_echo_n "checking for $ac_word... " >&6; }
19184 if ${ac_cv_prog_CC+:} false; then :
19185 $as_echo_n "(cached) " >&6
19187 if test -n "$CC"; then
19188 ac_cv_prog_CC="$CC" # Let the user override the test.
19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191 for as_dir in $PATH
19194 test -z "$as_dir" && as_dir=.
19195 for ac_exec_ext in '' $ac_executable_extensions; do
19196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19197 ac_cv_prog_CC="${ac_tool_prefix}cc"
19198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19208 if test -n "$CC"; then
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19210 $as_echo "$CC" >&6; }
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19219 if test -z "$CC"; then
19220 # Extract the first word of "cc", so it can be a program name with args.
19221 set dummy cc; ac_word=$2
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19223 $as_echo_n "checking for $ac_word... " >&6; }
19224 if ${ac_cv_prog_CC+:} false; then :
19225 $as_echo_n "(cached) " >&6
19227 if test -n "$CC"; then
19228 ac_cv_prog_CC="$CC" # Let the user override the test.
19230 ac_prog_rejected=no
19231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19232 for as_dir in $PATH
19235 test -z "$as_dir" && as_dir=.
19236 for ac_exec_ext in '' $ac_executable_extensions; do
19237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19239 ac_prog_rejected=yes
19243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19250 if test $ac_prog_rejected = yes; then
19251 # We found a bogon in the path, so make sure we never use it.
19252 set dummy $ac_cv_prog_CC
19254 if test $# != 0; then
19255 # We chose a different compiler from the bogus one.
19256 # However, it has the same basename, so the bogon will be chosen
19257 # first if we set CC to just the basename; use the full file name.
19259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19265 if test -n "$CC"; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19267 $as_echo "$CC" >&6; }
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19275 if test -z "$CC"; then
19276 if test -n "$ac_tool_prefix"; then
19277 for ac_prog in cl.exe
19279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19282 $as_echo_n "checking for $ac_word... " >&6; }
19283 if ${ac_cv_prog_CC+:} false; then :
19284 $as_echo_n "(cached) " >&6
19286 if test -n "$CC"; then
19287 ac_cv_prog_CC="$CC" # Let the user override the test.
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19293 test -z "$as_dir" && as_dir=.
19294 for ac_exec_ext in '' $ac_executable_extensions; do
19295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19307 if test -n "$CC"; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19309 $as_echo "$CC" >&6; }
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19312 $as_echo "no" >&6; }
19316 test -n "$CC" && break
19319 if test -z "$CC"; then
19321 for ac_prog in cl.exe
19323 # Extract the first word of "$ac_prog", so it can be a program name with args.
19324 set dummy $ac_prog; ac_word=$2
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19326 $as_echo_n "checking for $ac_word... " >&6; }
19327 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19328 $as_echo_n "(cached) " >&6
19330 if test -n "$ac_ct_CC"; then
19331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19334 for as_dir in $PATH
19337 test -z "$as_dir" && as_dir=.
19338 for ac_exec_ext in '' $ac_executable_extensions; do
19339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19340 ac_cv_prog_ac_ct_CC="$ac_prog"
19341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19351 if test -n "$ac_ct_CC"; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19353 $as_echo "$ac_ct_CC" >&6; }
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19356 $as_echo "no" >&6; }
19360 test -n "$ac_ct_CC" && break
19363 if test "x$ac_ct_CC" = x; then
19366 case $cross_compiling:$ac_tool_warned in
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19370 ac_tool_warned=yes ;;
19379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19381 as_fn_error $? "no acceptable C compiler found in \$PATH
19382 See \`config.log' for more details" "$LINENO" 5; }
19384 # Provide some information about the compiler.
19385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19388 for ac_option in --version -v -V -qversion; do
19389 { { ac_try="$ac_compiler $ac_option >&5"
19390 case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19395 $as_echo "$ac_try_echo"; } >&5
19396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19398 if test -s conftest.err; then
19400 ... rest of stderr output deleted ...
19401 10q' conftest.err >conftest.er1
19402 cat conftest.er1 >&5
19404 rm -f conftest.er1 conftest.err
19405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19406 test $ac_status = 0; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19411 if ${ac_cv_c_compiler_gnu+:} false; then :
19412 $as_echo_n "(cached) " >&6
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19428 if ac_fn_c_try_compile "$LINENO"; then :
19429 ac_compiler_gnu=yes
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19439 if test $ac_compiler_gnu = yes; then
19444 ac_test_CFLAGS=${CFLAGS+set}
19445 ac_save_CFLAGS=$CFLAGS
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19448 if ${ac_cv_prog_cc_g+:} false; then :
19449 $as_echo_n "(cached) " >&6
19451 ac_save_c_werror_flag=$ac_c_werror_flag
19452 ac_c_werror_flag=yes
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19466 if ac_fn_c_try_compile "$LINENO"; then :
19467 ac_cv_prog_cc_g=yes
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19481 if ac_fn_c_try_compile "$LINENO"; then :
19484 ac_c_werror_flag=$ac_save_c_werror_flag
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19497 if ac_fn_c_try_compile "$LINENO"; then :
19498 ac_cv_prog_cc_g=yes
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 ac_c_werror_flag=$ac_save_c_werror_flag
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19508 $as_echo "$ac_cv_prog_cc_g" >&6; }
19509 if test "$ac_test_CFLAGS" = set; then
19510 CFLAGS=$ac_save_CFLAGS
19511 elif test $ac_cv_prog_cc_g = yes; then
19512 if test "$GCC" = yes; then
19518 if test "$GCC" = yes; then
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19526 if ${ac_cv_prog_cc_c89+:} false; then :
19527 $as_echo_n "(cached) " >&6
19529 ac_cv_prog_cc_c89=no
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h. */
19533 #include <stdarg.h>
19535 #include <sys/types.h>
19536 #include <sys/stat.h>
19537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19538 struct buf { int x; };
19539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19540 static char *e (p, i)
19546 static char *f (char * (*g) (char **, int), char **p, ...)
19551 s = g (p, va_arg (v,int));
19556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19557 function prototypes and stuff, but not '\xHH' hex character constants.
19558 These don't provoke an error unfortunately, instead are silently treated
19559 as 'x'. The following induces an error, until -std is added to get
19560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19561 array size at least. It's necessary to write '\x00'==0 to get something
19562 that's true only with -std. */
19563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19566 inside strings and character constants. */
19568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19570 int test (int i, double x);
19571 struct s1 {int (*f) (int a);};
19572 struct s2 {int (*f) (double a);};
19573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19587 CC="$ac_save_CC $ac_arg"
19588 if ac_fn_c_try_compile "$LINENO"; then :
19589 ac_cv_prog_cc_c89=$ac_arg
19591 rm -f core conftest.err conftest.$ac_objext
19592 test "x$ac_cv_prog_cc_c89" != "xno" && break
19594 rm -f conftest.$ac_ext
19599 case "x$ac_cv_prog_cc_c89" in
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19602 $as_echo "none needed" >&6; } ;;
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19605 $as_echo "unsupported" >&6; } ;;
19607 CC="$CC $ac_cv_prog_cc_c89"
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19611 if test "x$ac_cv_prog_cc_c89" != xno; then :
19616 ac_cpp='$CPP $CPPFLAGS'
19617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621 depcc="$CC" am_compiler_list=
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19624 $as_echo_n "checking dependency style of $depcc... " >&6; }
19625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19626 $as_echo_n "(cached) " >&6
19628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19629 # We make a subdir and do the tests there. Otherwise we can end up
19630 # making bogus files that we don't know about and never remove. For
19631 # instance it was reported that on HP-UX the gcc test will end up
19632 # making a dummy file named `D' -- because `-MD' means `put the output
19635 # Copy depcomp to subdir because otherwise we won't find it if we're
19636 # using a relative directory.
19637 cp "$am_depcomp" conftest.dir
19639 # We will build objects and dependencies in a subdirectory because
19640 # it helps to detect inapplicable dependency modes. For instance
19641 # both Tru64's cc and ICC support -MD to output dependencies as a
19642 # side effect of compilation, but ICC will put the dependencies in
19643 # the current directory while Tru64 will put them in the object
19647 am_cv_CC_dependencies_compiler_type=none
19648 if test "$am_compiler_list" = ""; then
19649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19651 for depmode in $am_compiler_list; do
19652 # Setup a source with many dependencies, because some compilers
19653 # like to wrap large dependency lists on column 80 (with \), and
19654 # we should not choose a depcomp mode which is confused by this.
19656 # We need to recreate these files for each test, as the compiler may
19657 # overwrite some of them when testing with obscure command lines.
19658 # This happens at least with the AIX C compiler.
19660 for i in 1 2 3 4 5 6; do
19661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19663 # Solaris 8's {/usr,}/bin/sh.
19664 touch sub/conftst$i.h
19666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19670 # after this tag, mechanisms are not by side-effect, so they'll
19671 # only be used when explicitly requested
19672 if test "x$enable_dependency_tracking" = xyes; then
19680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19681 # mode. It turns out that the SunPro C++ compiler does not properly
19682 # handle `-M -o', and we need to detect this.
19683 if depmode=$depmode \
19684 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19686 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19687 >/dev/null 2>conftest.err &&
19688 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19690 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19692 # icc doesn't choke on unknown options, it will just issue warnings
19693 # or remarks (even with -Werror). So we grep stderr for any message
19694 # that says an option was ignored or not supported.
19695 # When given -MP, icc 7.0 and 7.1 complain thusly:
19696 # icc: Command line warning: ignoring option '-M'; no argument required
19697 # The diagnosis changed in icc 8.0:
19698 # icc: Command line remark: option '-MP' not supported
19699 if (grep 'ignoring option' conftest.err ||
19700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19701 am_cv_CC_dependencies_compiler_type=$depmode
19708 rm -rf conftest.dir
19710 am_cv_CC_dependencies_compiler_type=none
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19715 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19719 test "x$enable_dependency_tracking" != xno \
19720 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19721 am__fastdepCC_TRUE=
19722 am__fastdepCC_FALSE='#'
19724 am__fastdepCC_TRUE='#'
19725 am__fastdepCC_FALSE=
19730 # Checks for libraries.
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lapr-1" >&5
19732 $as_echo_n "checking for main in -lapr-1... " >&6; }
19733 if ${ac_cv_lib_apr_1_main+:} false; then :
19734 $as_echo_n "(cached) " >&6
19736 ac_check_lib_save_LIBS=$LIBS
19737 LIBS="-lapr-1 $LIBS"
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_apr_1_main=yes
19753 ac_cv_lib_apr_1_main=no
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_1_main" >&5
19760 $as_echo "$ac_cv_lib_apr_1_main" >&6; }
19761 if test "x$ac_cv_lib_apr_1_main" = xyes; then :
19762 cat >>confdefs.h <<_ACEOF
19763 #define HAVE_LIBAPR_1 1
19766 LIBS="-lapr-1 $LIBS"
19771 # Checks for header files.
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19773 $as_echo_n "checking for ANSI C header files... " >&6; }
19774 if ${ac_cv_header_stdc+:} false; then :
19775 $as_echo_n "(cached) " >&6
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779 #include <stdlib.h>
19780 #include <stdarg.h>
19781 #include <string.h>
19792 if ac_fn_c_try_compile "$LINENO"; then :
19793 ac_cv_header_stdc=yes
19795 ac_cv_header_stdc=no
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19799 if test $ac_cv_header_stdc = yes; then
19800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19803 #include <string.h>
19806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19807 $EGREP "memchr" >/dev/null 2>&1; then :
19810 ac_cv_header_stdc=no
19816 if test $ac_cv_header_stdc = yes; then
19817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h. */
19820 #include <stdlib.h>
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824 $EGREP "free" >/dev/null 2>&1; then :
19827 ac_cv_header_stdc=no
19833 if test $ac_cv_header_stdc = yes; then
19834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19835 if test "$cross_compiling" = yes; then :
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19841 #include <stdlib.h>
19842 #if ((' ' & 0x0FF) == 0x020)
19843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19846 # define ISLOWER(c) \
19847 (('a' <= (c) && (c) <= 'i') \
19848 || ('j' <= (c) && (c) <= 'r') \
19849 || ('s' <= (c) && (c) <= 'z'))
19850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19858 for (i = 0; i < 256; i++)
19859 if (XOR (islower (i), ISLOWER (i))
19860 || toupper (i) != TOUPPER (i))
19865 if ac_fn_c_try_run "$LINENO"; then :
19868 ac_cv_header_stdc=no
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19871 conftest.$ac_objext conftest.beam conftest.$ac_ext
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19877 $as_echo "$ac_cv_header_stdc" >&6; }
19878 if test $ac_cv_header_stdc = yes; then
19880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19884 for ac_header in string.h
19886 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
19887 if test "x$ac_cv_header_string_h" = xyes; then :
19888 cat >>confdefs.h <<_ACEOF
19889 #define HAVE_STRING_H 1
19898 # Check whether --with-apr-config was given.
19899 if test "${with_apr_config+set}" = set; then :
19900 withval=$with_apr_config;
19903 if test "x$with_apr_config" = "xyes" ; then
19905 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19910 # Check whether --with-apu-config was given.
19911 if test "${with_apu_config+set}" = set; then :
19912 withval=$with_apu_config;
19915 if test "x$with_apu_config" = "xyes" ; then
19917 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19921 # Extract the first word of "libtool", so it can be a program name with args.
19922 set dummy libtool; ac_word=$2
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19924 $as_echo_n "checking for $ac_word... " >&6; }
19925 if ${ac_cv_path_LIBTOOL+:} false; then :
19926 $as_echo_n "(cached) " >&6
19930 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19935 for as_dir in $as_dummy
19938 test -z "$as_dir" && as_dir=.
19939 for ac_exec_ext in '' $ac_executable_extensions; do
19940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19941 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19949 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19953 LIBTOOL=$ac_cv_path_LIBTOOL
19954 if test -n "$LIBTOOL"; then
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19956 $as_echo "$LIBTOOL" >&6; }
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959 $as_echo "no" >&6; }
19963 if test "x$LIBTOOL" = "xno"; then
19964 as_fn_error $? "libtool not found." "$LINENO" 5
19968 if test "x$with_apr_config" = "x" ; then
19969 # Extract the first word of "apr-config", so it can be a program name with args.
19970 set dummy apr-config; ac_word=$2
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19972 $as_echo_n "checking for $ac_word... " >&6; }
19973 if ${ac_cv_path_APR_CONFIG+:} false; then :
19974 $as_echo_n "(cached) " >&6
19976 case $APR_CONFIG in
19978 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19983 for as_dir in $as_dummy
19986 test -z "$as_dir" && as_dir=.
19987 for ac_exec_ext in '' $ac_executable_extensions; do
19988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19989 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19997 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20001 APR_CONFIG=$ac_cv_path_APR_CONFIG
20002 if test -n "$APR_CONFIG"; then
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
20004 $as_echo "$APR_CONFIG" >&6; }
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20007 $as_echo "no" >&6; }
20011 if test "x$APR_CONFIG" = "xno" ; then
20012 # Extract the first word of "apr-1-config", so it can be a program name with args.
20013 set dummy apr-1-config; ac_word=$2
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20015 $as_echo_n "checking for $ac_word... " >&6; }
20016 if ${ac_cv_path_APR_1_CONFIG+:} false; then :
20017 $as_echo_n "(cached) " >&6
20019 case $APR_1_CONFIG in
20021 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20026 for as_dir in $as_dummy
20029 test -z "$as_dir" && as_dir=.
20030 for ac_exec_ext in '' $ac_executable_extensions; do
20031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20032 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20040 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20044 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20045 if test -n "$APR_1_CONFIG"; then
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_1_CONFIG" >&5
20047 $as_echo "$APR_1_CONFIG" >&6; }
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050 $as_echo "no" >&6; }
20054 if test "x$APR_1_CONFIG" = "xno" ; then
20055 as_fn_error $? "apr-config and apr-1-config not found." "$LINENO" 5
20057 APR_CONFIG="$APR_1_CONFIG"
20061 if test "x$with_apr_config" != "x" ; then
20062 APR_CONFIG=$with_apr_config
20064 if test "x$with_apu_config" = "x" ; then
20065 # Extract the first word of "apu-config", so it can be a program name with args.
20066 set dummy apu-config; ac_word=$2
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20068 $as_echo_n "checking for $ac_word... " >&6; }
20069 if ${ac_cv_path_APU_CONFIG+:} false; then :
20070 $as_echo_n "(cached) " >&6
20072 case $APU_CONFIG in
20074 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20078 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20079 for as_dir in $as_dummy
20082 test -z "$as_dir" && as_dir=.
20083 for ac_exec_ext in '' $ac_executable_extensions; do
20084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20085 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20093 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20097 APU_CONFIG=$ac_cv_path_APU_CONFIG
20098 if test -n "$APU_CONFIG"; then
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
20100 $as_echo "$APU_CONFIG" >&6; }
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20103 $as_echo "no" >&6; }
20107 if test "x$APU_CONFIG" = "xno" ; then
20108 # Extract the first word of "apu-1-config", so it can be a program name with args.
20109 set dummy apu-1-config; ac_word=$2
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20111 $as_echo_n "checking for $ac_word... " >&6; }
20112 if ${ac_cv_path_APU_1_CONFIG+:} false; then :
20113 $as_echo_n "(cached) " >&6
20115 case $APU_1_CONFIG in
20117 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20122 for as_dir in $as_dummy
20125 test -z "$as_dir" && as_dir=.
20126 for ac_exec_ext in '' $ac_executable_extensions; do
20127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20128 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20136 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20140 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20141 if test -n "$APU_1_CONFIG"; then
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_1_CONFIG" >&5
20143 $as_echo "$APU_1_CONFIG" >&6; }
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20150 if test "x$APU_1_CONFIG" = "xno" ; then
20151 as_fn_error $? "apu-config and apu-1-config not found." "$LINENO" 5
20153 APU_CONFIG="$APU_1_CONFIG"
20157 if test "x$with_apu_config" != "x" ; then
20158 APU_CONFIG=$with_apu_config
20162 if test "x$with_apu_config" != "x" ; then
20163 APU_CONFIG=$with_apu_config
20166 <<<<<<< HEAD:src/css/configure
20167 CFLAGS="${CFLAGS} -DLIBICONV_PLUG -I/usr/local/include"
20168 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20169 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20170 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20171 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20175 >>>>>>> branch_0.13.0:src/css/configure
20176 # Checks for typedefs, structures, and compiler characteristics.
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20178 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20179 if ${ac_cv_c_const+:} false; then :
20180 $as_echo_n "(cached) " >&6
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20188 /* FIXME: Include the comments suggested by Paul. */
20189 #ifndef __cplusplus
20190 /* Ultrix mips cc rejects this. */
20191 typedef int charset[2];
20193 /* SunOS 4.1.1 cc rejects this. */
20194 char const *const *pcpcc;
20196 /* NEC SVR4.0.2 mips cc rejects this. */
20197 struct point {int x, y;};
20198 static struct point const zero = {0,0};
20199 /* AIX XL C 1.02.0.0 rejects this.
20200 It does not let you subtract one const X* pointer from another in
20201 an arm of an if-expression whose if-part is not a constant
20203 const char *g = "string";
20204 pcpcc = &g + (g ? g-g : 0);
20205 /* HPUX 7.0 cc rejects these. */
20207 ppc = (char**) pcpcc;
20208 pcpcc = (char const *const *) ppc;
20209 { /* SCO 3.2v4 cc rejects this. */
20211 char const *s = 0 ? (char *) 0 : (char const *) 0;
20216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20217 int x[] = {25, 17};
20218 const int *foo = &x[0];
20221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20222 typedef const int *iptr;
20226 { /* AIX XL C 1.02.0.0 rejects this saying
20227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20228 struct s { int j; const int *ap[3]; };
20229 struct s *b; b->j = 5;
20231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20232 const int foo = 10;
20233 if (!foo) return 0;
20235 return !cs[0] && !zero.x;
20242 if ac_fn_c_try_compile "$LINENO"; then :
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20250 $as_echo "$ac_cv_c_const" >&6; }
20251 if test $ac_cv_c_const = no; then
20253 $as_echo "#define const /**/" >>confdefs.h
20258 # Checks for library functions.
20259 for ac_func in memset strcasecmp strncasecmp
20261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20263 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20264 cat >>confdefs.h <<_ACEOF
20265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20272 CFLAGS="${CFLAGS} -DLIBICONV_PLUG "
20273 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20274 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20275 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20276 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20284 ac_config_files="$ac_config_files Makefile src/Makefile"
20286 cat >confcache <<\_ACEOF
20287 # This file is a shell script that caches the results of configure
20288 # tests run on this system so they can be shared between configure
20289 # scripts and configure runs, see configure's option --config-cache.
20290 # It is not useful on other systems. If it contains results you don't
20291 # want to keep, you may remove or edit it.
20293 # config.status only pays attention to the cache file if you give it
20294 # the --recheck option to rerun configure.
20296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20298 # following values.
20302 # The following way of writing the cache mishandles newlines in values,
20303 # but we know of no workaround that is simple, portable, and efficient.
20304 # So, we kill variables containing newlines.
20305 # Ultrix sh set writes to stderr and can't be redirected directly,
20306 # and sets the high bit in the cache file unless we assign to the vars.
20308 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20309 eval ac_val=\$$ac_var
20313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20317 _ | IFS | as_nl) ;; #(
20318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20319 *) { eval $ac_var=; unset $ac_var;} ;;
20325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20326 *${as_nl}ac_space=\ *)
20327 # `set' does not quote correctly, so add quotes: double-quote
20328 # substitution turns \\\\ into \\, and sed turns \\ into \.
20331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20334 # `set' quotes correctly as required by POSIX, so do not add quotes.
20335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20349 if test -w "$cache_file"; then
20350 if test "x$cache_file" != "x/dev/null"; then
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20352 $as_echo "$as_me: updating cache $cache_file" >&6;}
20353 if test ! -f "$cache_file" || test -h "$cache_file"; then
20354 cat confcache >"$cache_file"
20356 case $cache_file in #(
20358 mv -f confcache "$cache_file"$$ &&
20359 mv -f "$cache_file"$$ "$cache_file" ;; #(
20361 mv -f confcache "$cache_file" ;;
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20373 # Let make expand exec_prefix.
20374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20376 DEFS=-DHAVE_CONFIG_H
20381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20382 # 1. Remove the extension, and $U if already installed.
20383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20386 # will be set to the directory where LIBOBJS objects are built.
20387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20390 LIBOBJS=$ac_libobjs
20392 LTLIBOBJS=$ac_ltlibobjs
20395 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20396 as_fn_error $? "conditional \"AMDEP\" was never defined.
20397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20399 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20400 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20403 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20404 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20408 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20412 : "${CONFIG_STATUS=./config.status}"
20414 ac_clean_files_save=$ac_clean_files
20415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20421 # Generated by $as_me.
20422 # Run this file to recreate the current configuration.
20423 # Compiler output produced by configure, useful for debugging
20424 # configure, is in config.log if it exists.
20427 ac_cs_recheck=false
20430 SHELL=\${CONFIG_SHELL-$SHELL}
20433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20434 ## -------------------- ##
20435 ## M4sh Initialization. ##
20436 ## -------------------- ##
20438 # Be more Bourne compatible
20439 DUALCASE=1; export DUALCASE # for MKS sh
20440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20444 # is contrary to our usage. Disable this feature.
20445 alias -g '${1+"$@"}'='"$@"'
20446 setopt NO_GLOB_SUBST
20448 case `(set -o) 2>/dev/null` in #(
20460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20464 # Prefer a ksh shell builtin over an external printf program on Solaris,
20465 # but without wasting forks for bash or zsh.
20466 if test -z "$BASH_VERSION$ZSH_VERSION" \
20467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20468 as_echo='print -r --'
20469 as_echo_n='print -rn --'
20470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20471 as_echo='printf %s\n'
20472 as_echo_n='printf %s'
20474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20476 as_echo_n='/usr/ucb/echo -n'
20478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20479 as_echo_n_body='eval
20483 expr "X$arg" : "X\\(.*\\)$as_nl";
20484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20488 export as_echo_n_body
20489 as_echo_n='sh -c $as_echo_n_body as_echo'
20491 export as_echo_body
20492 as_echo='sh -c $as_echo_body as_echo'
20495 # The user is always right.
20496 if test "${PATH_SEPARATOR+set}" != set; then
20498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20506 # We need space, tab and new line, in precisely that order. Quoting is
20507 # there to prevent editors from complaining about space-tab.
20508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20509 # splitting by setting IFS to empty value.)
20512 # Find who we are. Look in the path if we contain no directory separator.
20515 *[\\/]* ) as_myself=$0 ;;
20516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20517 for as_dir in $PATH
20520 test -z "$as_dir" && as_dir=.
20521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20527 # We did not find ourselves, most probably we were run as `sh COMMAND'
20528 # in which case we are not to be found in the path.
20529 if test "x$as_myself" = x; then
20532 if test ! -f "$as_myself"; then
20533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20537 # Unset variables that we do not need and which cause bugs (e.g. in
20538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20539 # suppresses any "Segmentation fault" message there. '((' could
20540 # trigger a bug in pdksh 5.2.14.
20541 for as_var in BASH_ENV ENV MAIL MAILPATH
20542 do eval test x\${$as_var+set} = xset \
20543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20560 # ----------------------------------------
20561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20563 # script with STATUS, using 1 if that was 0.
20566 as_status=$1; test $as_status -eq 0 && as_status=1
20568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20571 $as_echo "$as_me: error: $2" >&2
20572 as_fn_exit $as_status
20576 # as_fn_set_status STATUS
20577 # -----------------------
20578 # Set $? to STATUS, without forking.
20579 as_fn_set_status ()
20582 } # as_fn_set_status
20584 # as_fn_exit STATUS
20585 # -----------------
20586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20590 as_fn_set_status $1
20596 # Portably unset VAR.
20599 { eval $1=; unset $1;}
20601 as_unset=as_fn_unset
20602 # as_fn_append VAR VALUE
20603 # ----------------------
20604 # Append the text in VALUE to the end of the definition contained in VAR. Take
20605 # advantage of any shell optimizations that allow amortized linear growth over
20606 # repeated appends, instead of the typical quadratic growth present in naive
20608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20609 eval 'as_fn_append ()
20620 # as_fn_arith ARG...
20621 # ------------------
20622 # Perform arithmetic evaluation on the ARGs, and store the result in the
20623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20624 # must be portable across $(()) and expr.
20625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20626 eval 'as_fn_arith ()
20633 as_val=`expr "$@" || test $? -eq 1`
20638 if expr a : '\(a\)' >/dev/null 2>&1 &&
20639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20646 as_basename=basename
20651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20657 as_me=`$as_basename -- "$0" ||
20658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20659 X"$0" : 'X\(//\)$' \| \
20660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20662 sed '/^.*\/\([^/][^/]*\)\/*$/{
20676 # Avoid depending upon Character Ranges.
20677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20680 as_cr_digits='0123456789'
20681 as_cr_alnum=$as_cr_Letters$as_cr_digits
20683 ECHO_C= ECHO_N= ECHO_T=
20684 case `echo -n x` in #(((((
20686 case `echo 'xy\c'` in
20687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20696 rm -f conf$$ conf$$.exe conf$$.file
20697 if test -d conf$$.dir; then
20698 rm -f conf$$.dir/conf$$.file
20701 mkdir conf$$.dir 2>/dev/null
20703 if (echo >conf$$.file) 2>/dev/null; then
20704 if ln -s conf$$.file conf$$ 2>/dev/null; then
20706 # ... but there are two gotchas:
20707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20709 # In both cases, we have to default to `cp -p'.
20710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20712 elif ln conf$$.file conf$$ 2>/dev/null; then
20720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20721 rmdir conf$$.dir 2>/dev/null
20726 # Create "$as_dir" as a directory, including parents if necessary.
20731 -*) as_dir=./$as_dir;;
20733 test -d "$as_dir" || eval $as_mkdir_p || {
20737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20738 *) as_qdir=$as_dir;;
20740 as_dirs="'$as_qdir' $as_dirs"
20741 as_dir=`$as_dirname -- "$as_dir" ||
20742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20743 X"$as_dir" : 'X\(//\)[^/]' \| \
20744 X"$as_dir" : 'X\(//\)$' \| \
20745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20746 $as_echo X"$as_dir" |
20747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20751 /^X\(\/\/\)[^/].*/{
20764 test -d "$as_dir" && break
20766 test -z "$as_dirs" || eval "mkdir $as_dirs"
20767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20771 if mkdir -p . 2>/dev/null; then
20772 as_mkdir_p='mkdir -p "$as_dir"'
20774 test -d ./-p && rmdir ./-p
20778 if test -x / >/dev/null 2>&1; then
20779 as_test_x='test -x'
20781 if ls -dL / >/dev/null 2>&1; then
20788 if test -d "$1"; then
20794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20795 ???[sx]*):;;*)false;;esac;fi
20799 as_executable_p=$as_test_x
20801 # Sed expression to map a string onto a valid CPP name.
20802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20804 # Sed expression to map a string onto a valid variable name.
20805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20809 ## ----------------------------------- ##
20810 ## Main body of $CONFIG_STATUS script. ##
20811 ## ----------------------------------- ##
20813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 # Save the log message, to keep $0 and so on meaningful, and to
20817 # report actual input values of CONFIG_FILES etc. instead of their
20818 # values after options handling.
20820 This file was extended by scss $as_me 1.0.0, which was
20821 generated by GNU Autoconf 2.68. Invocation command line was
20823 CONFIG_FILES = $CONFIG_FILES
20824 CONFIG_HEADERS = $CONFIG_HEADERS
20825 CONFIG_LINKS = $CONFIG_LINKS
20826 CONFIG_COMMANDS = $CONFIG_COMMANDS
20829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20834 case $ac_config_files in *"
20835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20838 case $ac_config_headers in *"
20839 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20844 # Files that config.status was made for.
20845 config_files="$ac_config_files"
20846 config_headers="$ac_config_headers"
20847 config_commands="$ac_config_commands"
20851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20853 \`$as_me' instantiates files and other configuration actions
20854 from templates according to the current configuration. Unless the files
20855 and actions are specified as TAGs, all are instantiated by default.
20857 Usage: $0 [OPTION]... [TAG]...
20859 -h, --help print this help, then exit
20860 -V, --version print version number and configuration settings, then exit
20861 --config print configuration, then exit
20862 -q, --quiet, --silent
20863 do not print progress messages
20864 -d, --debug don't remove temporary files
20865 --recheck update $as_me by reconfiguring in the same conditions
20866 --file=FILE[:TEMPLATE]
20867 instantiate the configuration file FILE
20868 --header=FILE[:TEMPLATE]
20869 instantiate the configuration header FILE
20871 Configuration files:
20874 Configuration headers:
20877 Configuration commands:
20880 Report bugs to <konn@users.sourceforge.jp>."
20883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20884 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20886 scss config.status 1.0.0
20887 configured by $0, generated by GNU Autoconf 2.68,
20888 with options \\"\$ac_cs_config\\"
20890 Copyright (C) 2010 Free Software Foundation, Inc.
20891 This config.status script is free software; the Free Software Foundation
20892 gives unlimited permission to copy, distribute and modify it."
20899 test -n "\$AWK" || AWK=awk
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 # The default lists apply if the user does not specify any file.
20909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20914 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20926 # Handling of the options.
20927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20929 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20930 $as_echo "$ac_cs_version"; exit ;;
20931 --config | --confi | --conf | --con | --co | --c )
20932 $as_echo "$ac_cs_config"; exit ;;
20933 --debug | --debu | --deb | --de | --d | -d )
20935 --file | --fil | --fi | --f )
20938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20939 '') as_fn_error $? "missing file argument" ;;
20941 as_fn_append CONFIG_FILES " '$ac_optarg'"
20942 ac_need_defaults=false;;
20943 --header | --heade | --head | --hea )
20946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20948 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20949 ac_need_defaults=false;;
20951 # Conflict between --help and --header
20952 as_fn_error $? "ambiguous option: \`$1'
20953 Try \`$0 --help' for more information.";;
20954 --help | --hel | -h )
20955 $as_echo "$ac_cs_usage"; exit ;;
20956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20960 # This is an error.
20961 -*) as_fn_error $? "unrecognized option: \`$1'
20962 Try \`$0 --help' for more information." ;;
20964 *) as_fn_append ac_config_targets " $1"
20965 ac_need_defaults=false ;;
20971 ac_configure_extra_args=
20973 if $ac_cs_silent; then
20975 ac_configure_extra_args="$ac_configure_extra_args --silent"
20979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20980 if \$ac_cs_recheck; then
20981 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20983 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20984 CONFIG_SHELL='$SHELL'
20985 export CONFIG_SHELL
20990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20994 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20995 ## Running $as_me. ##
21001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21005 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21011 # Handling of arguments.
21012 for ac_config_target in $ac_config_targets
21014 case $ac_config_target in
21015 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21018 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21020 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21025 # If the user did not use the arguments to specify the items to instantiate,
21026 # then the envvar interface is used. Set only those that are not.
21027 # We use the long form for the default assignment because of an extremely
21028 # bizarre bug on SunOS 4.1.3.
21029 if $ac_need_defaults; then
21030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21035 # Have a temporary directory for convenience. Make it in the build tree
21036 # simply because there is no reason against having it here, and in addition,
21037 # creating and moving files from /tmp can sometimes cause problems.
21038 # Hook for its removal unless debugging.
21039 # Note that there is a small window in which the directory will not be cleaned:
21040 # after its creation but before its name has been assigned to `$tmp'.
21044 trap 'exit_status=$?
21045 : "${ac_tmp:=$tmp}"
21046 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21048 trap 'as_fn_exit 1' 1 2 13 15
21050 # Create a (secure) tmp directory for tmp files.
21053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21057 tmp=./conf$$-$RANDOM
21058 (umask 077 && mkdir "$tmp")
21059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21062 # Set up the scripts for CONFIG_FILES section.
21063 # No need to generate them if there are no CONFIG_FILES.
21064 # This happens for instance with `./config.status config.h'.
21065 if test -n "$CONFIG_FILES"; then
21068 ac_cr=`echo X | tr X '\015'`
21069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21070 # But we know of no other shell where ac_cr would be empty at this
21071 # point, so we can use a bashism as a fallback.
21072 if test "x$ac_cr" = x; then
21073 eval ac_cr=\$\'\\r\'
21075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21079 ac_cs_awk_cr=$ac_cr
21082 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21087 echo "cat >conf$$subs.awk <<_ACEOF" &&
21088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21090 } >conf$$subs.sh ||
21091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21094 for ac_last_try in false false false false false :; do
21095 . ./conf$$subs.sh ||
21096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21099 if test $ac_delim_n = $ac_delim_num; then
21101 elif $ac_last_try; then
21102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21107 rm -f conf$$subs.sh
21109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21114 s/^/S["/; s/!.*/"]=/
21124 s/\(.\{148\}\)..*/\1/
21126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21138 s/\(.\{148\}\)..*/\1/
21140 s/["\\]/\\&/g; s/^/"/; s/$/"/
21144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21149 ' <conf$$subs.awk | sed '
21154 ' >>$CONFIG_STATUS || ac_write_fail=1
21155 rm -f conf$$subs.awk
21156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21159 for (key in S) S_is_set[key] = 1
21165 nfields = split(line, field, "@")
21167 len = length(field[1])
21168 for (i = 2; i < nfields; i++) {
21170 keylen = length(key)
21171 if (S_is_set[key]) {
21173 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21174 len += length(value) + length(field[++i])
21185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21186 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21187 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21190 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21191 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21194 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21195 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21196 # trailing colons and then remove the whole line if VPATH becomes empty
21197 # (actually we leave an empty line to preserve line numbers).
21198 if test "x$srcdir" = x.; then
21199 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21218 fi # test -n "$CONFIG_FILES"
21220 # Set up the scripts for CONFIG_HEADERS section.
21221 # No need to generate them if there are no CONFIG_HEADERS.
21222 # This happens for instance with `./config.status Makefile'.
21223 if test -n "$CONFIG_HEADERS"; then
21224 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21228 # Transform confdefs.h into an awk script `defines.awk', embedded as
21229 # here-document in config.status, that substitutes the proper values into
21230 # config.h.in to produce config.h.
21232 # Create a delimiter string that does not exist in confdefs.h, to ease
21233 # handling of long lines.
21235 for ac_last_try in false false :; do
21236 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21237 if test -z "$ac_tt"; then
21239 elif $ac_last_try; then
21240 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21246 # For the awk script, D is an array of macro values keyed by name,
21247 # likewise P contains macro parameters if any. Preserve backslash
21248 # newline sequences.
21250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21252 s/.\{148\}/&'"$ac_delim"'/g
21255 s/^[ ]*#[ ]*define[ ][ ]*/ /
21262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21269 D["\1"]=" \3\\\\\\n"\\/p
21271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21276 s/.\{148\}/&'"$ac_delim"'/g
21281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21286 ' <confdefs.h | sed '
21287 s/'"$ac_delim"'/"\\\
21288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21291 for (key in D) D_is_set[key] = 1
21294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21296 split(line, arg, " ")
21297 if (arg[1] == "#") {
21301 defundef = substr(arg[1], 2)
21304 split(mac1, mac2, "(") #)
21306 prefix = substr(line, 1, index(line, defundef) - 1)
21307 if (D_is_set[macro]) {
21308 # Preserve the white space surrounding the "#".
21309 print prefix "define", macro P[macro] D[macro]
21312 # Replace #undef with comments. This is necessary, for example,
21313 # in the case of _POSIX_SOURCE, which is predefined and required
21314 # on some systems where configure will not decide to define it.
21315 if (defundef == "undef") {
21316 print "/*", prefix defundef, macro, "*/"
21324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21325 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21326 fi # test -n "$CONFIG_HEADERS"
21329 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21334 :[FHLC]) ac_mode=$ac_tag; continue;;
21336 case $ac_mode$ac_tag in
21338 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21339 :[FH]-) ac_tag=-:-;;
21340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21357 -) ac_f="$ac_tmp/stdin";;
21358 *) # Look for the file first in the build tree, then in the source tree
21359 # (if the path is not absolute). The absolute path cannot be DOS-style,
21360 # because $ac_f cannot contain `:'.
21364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21366 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21368 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21369 as_fn_append ac_file_inputs " '$ac_f'"
21372 # Let's still pretend it is `configure' which instantiates (i.e., don't
21373 # use $as_me), people would be surprised to read:
21374 # /* config.h. Generated by config.status. */
21375 configure_input='Generated from '`
21376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21378 if test x"$ac_file" != x-; then
21379 configure_input="$ac_file. $configure_input"
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21381 $as_echo "$as_me: creating $ac_file" >&6;}
21383 # Neutralize special characters interpreted by sed in replacement strings.
21384 case $configure_input in #(
21385 *\&* | *\|* | *\\* )
21386 ac_sed_conf_input=`$as_echo "$configure_input" |
21387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21388 *) ac_sed_conf_input=$configure_input;;
21392 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21398 ac_dir=`$as_dirname -- "$ac_file" ||
21399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21400 X"$ac_file" : 'X\(//\)[^/]' \| \
21401 X"$ac_file" : 'X\(//\)$' \| \
21402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21403 $as_echo X"$ac_file" |
21404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21408 /^X\(\/\/\)[^/].*/{
21421 as_dir="$ac_dir"; as_fn_mkdir_p
21425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21428 # A ".." for each directory in $ac_dir_suffix.
21429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21430 case $ac_top_builddir_sub in
21431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21435 ac_abs_top_builddir=$ac_pwd
21436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21437 # for backward compatibility:
21438 ac_top_builddir=$ac_top_build_prefix
21441 .) # We are building in place.
21443 ac_top_srcdir=$ac_top_builddir_sub
21444 ac_abs_top_srcdir=$ac_pwd ;;
21445 [\\/]* | ?:[\\/]* ) # Absolute name.
21446 ac_srcdir=$srcdir$ac_dir_suffix;
21447 ac_top_srcdir=$srcdir
21448 ac_abs_top_srcdir=$srcdir ;;
21449 *) # Relative name.
21450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21451 ac_top_srcdir=$ac_top_build_prefix$srcdir
21452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21467 ac_MKDIR_P=$MKDIR_P
21469 [\\/$]* | ?:[\\/]* ) ;;
21470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21475 # If the template does not know about datarootdir, expand it.
21476 # FIXME: This hack should be removed a few years after 2.60.
21477 ac_datarootdir_hack=; ac_datarootdir_seen=
21488 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21489 *datarootdir*) ac_datarootdir_seen=yes;;
21490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21492 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21495 ac_datarootdir_hack='
21496 s&@datadir@&$datadir&g
21497 s&@docdir@&$docdir&g
21498 s&@infodir@&$infodir&g
21499 s&@localedir@&$localedir&g
21500 s&@mandir@&$mandir&g
21501 s&\\\${datarootdir}&$datarootdir&g' ;;
21505 # Neutralize VPATH when `$srcdir' = `.'.
21506 # Shell code in configure.ac might set extrasub.
21507 # FIXME: do we really want to maintain this feature?
21508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21509 ac_sed_extra="$ac_vpsub
21512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21515 s|@configure_input@|$ac_sed_conf_input|;t t
21516 s&@top_builddir@&$ac_top_builddir_sub&;t t
21517 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21518 s&@srcdir@&$ac_srcdir&;t t
21519 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21520 s&@top_srcdir@&$ac_top_srcdir&;t t
21521 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21522 s&@builddir@&$ac_builddir&;t t
21523 s&@abs_builddir@&$ac_abs_builddir&;t t
21524 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21525 s&@INSTALL@&$ac_INSTALL&;t t
21526 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21527 $ac_datarootdir_hack
21529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21537 which seems to be undefined. Please make sure it is defined" >&5
21538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21539 which seems to be undefined. Please make sure it is defined" >&2;}
21541 rm -f "$ac_tmp/stdin"
21543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21552 if test x"$ac_file" != x-; then
21554 $as_echo "/* $configure_input */" \
21555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21556 } >"$ac_tmp/config.h" \
21557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21563 mv "$ac_tmp/config.h" "$ac_file" \
21564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21567 $as_echo "/* $configure_input */" \
21568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21569 || as_fn_error $? "could not create -" "$LINENO" 5
21571 # Compute "$ac_file"'s index in $config_headers.
21574 for _am_header in $config_headers :; do
21575 case $_am_header in
21576 $_am_arg | $_am_arg:* )
21579 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21582 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21583 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21584 X"$_am_arg" : 'X\(//\)[^/]' \| \
21585 X"$_am_arg" : 'X\(//\)$' \| \
21586 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21587 $as_echo X"$_am_arg" |
21588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21592 /^X\(\/\/\)[^/].*/{
21604 s/.*/./; q'`/stamp-h$_am_stamp_count
21607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21608 $as_echo "$as_me: executing $ac_file commands" >&6;}
21613 case $ac_file$ac_mode in
21614 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21615 # Strip MF so we end up with the name of the file.
21616 mf=`echo "$mf" | sed -e 's/:.*$//'`
21617 # Check whether this is an Automake generated Makefile or not.
21618 # We used to match only the files named `Makefile.in', but
21619 # some people rename them; so instead we look at the file content.
21620 # Grep'ing the first line is not enough: some people post-process
21621 # each Makefile.in and add a new line on top of each file to say so.
21622 # Grep'ing the whole file is not good either: AIX grep has a line
21623 # limit of 2048, but all sed's we know have understand at least 4000.
21624 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21625 dirpart=`$as_dirname -- "$mf" ||
21626 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627 X"$mf" : 'X\(//\)[^/]' \| \
21628 X"$mf" : 'X\(//\)$' \| \
21629 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635 /^X\(\/\/\)[^/].*/{
21651 # Extract the definition of DEPDIR, am__include, and am__quote
21652 # from the Makefile without running `make'.
21653 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21654 test -z "$DEPDIR" && continue
21655 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21656 test -z "am__include" && continue
21657 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21658 # When using ansi2knr, U may be empty or an underscore; expand it
21659 U=`sed -n 's/^U = //p' < "$mf"`
21660 # Find all dependency output files, they are included files with
21661 # $(DEPDIR) in their names. We invoke sed twice because it is the
21662 # simplest approach to changing $(DEPDIR) to its actual value in the
21664 for file in `sed -n "
21665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21667 # Make sure the directory exists.
21668 test -f "$dirpart/$file" && continue
21669 fdir=`$as_dirname -- "$file" ||
21670 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21671 X"$file" : 'X\(//\)[^/]' \| \
21672 X"$file" : 'X\(//\)$' \| \
21673 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21674 $as_echo X"$file" |
21675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21679 /^X\(\/\/\)[^/].*/{
21692 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21693 # echo "creating $dirpart/$file"
21694 echo '# dummy' > "$dirpart/$file"
21705 ac_clean_files=$ac_clean_files_save
21707 test $ac_write_fail = 0 ||
21708 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21711 # configure is writing to config.log, and then calls config.status.
21712 # config.status does its own redirection, appending to config.log.
21713 # Unfortunately, on DOS this fails, as config.log is still kept open
21714 # by configure, so config.status won't be able to write to it; its
21715 # output is simply discarded. So we exec the FD to /dev/null,
21716 # effectively closing config.log, so it can be properly (re)opened and
21717 # appended to by config.status. When coming back to configure, we
21718 # need to make the FD available again.
21719 if test "$no_create" != yes; then
21721 ac_config_status_args=
21722 test "$silent" = yes &&
21723 ac_config_status_args="$ac_config_status_args --quiet"
21725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21728 # would make configure fail if this is the last instruction.
21729 $ac_cs_success || as_fn_exit 1
21731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}